1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016 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 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages ruby)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (gnu packages)
28 #:use-module (gnu packages base)
29 #:use-module (gnu packages compression)
30 #:use-module (gnu packages databases)
31 #:use-module (gnu packages readline)
32 #:use-module (gnu packages autotools)
33 #:use-module (gnu packages java)
34 #:use-module (gnu packages libffi)
35 #:use-module (gnu packages python)
36 #:use-module (gnu packages ragel)
37 #:use-module (gnu packages tls)
38 #:use-module (gnu packages version-control)
39 #:use-module (guix packages)
40 #:use-module (guix download)
41 #:use-module (guix git-download)
42 #:use-module (guix utils)
43 #:use-module (guix build-system gnu)
44 #:use-module (gnu packages xml)
45 #:use-module (gnu packages web)
46 #:use-module (guix build-system ruby))
55 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
56 (version-major+minor version)
57 "/ruby-" version ".tar.xz"))
60 "1p0rfk0blrbfjcnv0vb0ha4hxflgkfhv9zbzp4vvld2pi31ahkqs"))
61 (modules '((guix build utils)))
63 ;; Remove bundled libffi
64 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
66 (build-system gnu-build-system)
68 `(#:test-target "test"
70 (modify-phases %standard-phases
71 (add-before 'configure 'replace-bin-sh-and-remove-libffi
73 (substitute* '("Makefile.in"
78 "test/rubygems/test_gem_ext_configure_builder.rb"
79 "test/rdoc/test_rdoc_parser.rb"
80 "test/ruby/test_rubyoptions.rb"
81 "test/ruby/test_process.rb"
82 "test/ruby/test_system.rb"
84 (("/bin/sh") (which "sh")))
87 `(("readline" ,readline)
93 (list (search-path-specification
95 (files (list (string-append "lib/ruby/gems/"
96 (version-major+minor version)
98 (synopsis "Programming language interpreter")
99 (description "Ruby is a dynamic object-oriented programming language with
100 a focus on simplicity and productivity.")
101 (home-page "https://ruby-lang.org")
102 (license license:ruby)))
104 (define-public ruby-2.2
105 (package (inherit ruby)
111 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
112 (version-major+minor version)
113 "/ruby-" version ".tar.xz"))
116 "0fbk2pyjphynj4kxn27vb5rsq6brr3y85p784jd1rxwws30fq54l"))))))
118 (define-public ruby-2.1
119 (package (inherit ruby)
125 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
126 (version-major+minor version)
127 "/ruby-" version ".tar.bz2"))
130 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
132 `(#:test-target "test"
136 'configure 'replace-bin-sh
138 (substitute* '("Makefile.in"
143 (("/bin/sh") (which "sh"))))
146 (list (search-path-specification
147 (variable "GEM_PATH")
148 (files (list (string-append "lib/ruby/gems/"
149 (version-major+minor version)
152 (define-public ruby-1.8
153 (package (inherit ruby)
155 (version "1.8.7-p374")
159 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
160 (version-major+minor version)
161 "/ruby-" version ".tar.bz2"))
164 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
165 (native-search-paths '())
167 `(#:test-target "test"
171 'configure 'replace-bin-sh
173 (substitute* '("Makefile.in"
178 (("/bin/sh") (which "sh"))))
179 %standard-phases)))))
181 (define-public ruby-hoe
187 (uri (rubygems-uri "hoe" version))
190 "03r8nsw4n4mnia9iqiqk9kqhvrl96m2i81j4yg8cpnppd8vk7vlb"))))
191 (build-system ruby-build-system)
192 (synopsis "Ruby project management helper")
194 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
195 maintain, and release projects and includes a dynamic plug-in system allowing
196 for easy extensibility. Hoe ships with plug-ins for all the usual project
197 tasks including rdoc generation, testing, packaging, deployment, and
199 (home-page "http://www.zenspider.com/projects/hoe.html")
200 (license license:expat)))
202 (define-public ruby-rake-compiler
204 (name "ruby-rake-compiler")
208 (uri (rubygems-uri "rake-compiler" version))
211 "1lf91nf1fcnmsh54mxz06wyfmjkwh58vljr35zns5cwbg8fwmi20"))))
212 (build-system ruby-build-system)
214 '(#:tests? #f)) ; needs cucumber
215 (synopsis "Building and packaging helper for Ruby native extensions")
216 (description "Rake-compiler provides a framework for building and
217 packaging native C and Java extensions in Ruby.")
218 (home-page "https://github.com/rake-compiler/rake-compiler")
219 (license license:expat)))
221 (define-public ruby-i18n
227 (uri (rubygems-uri "i18n" version))
230 "1i5z1ykl8zhszsxcs8mzl8d0dxgs3ylz8qlzrw74jb0gplkx6758"))))
231 (build-system ruby-build-system)
233 '(#:tests? #f)) ; no tests
234 (synopsis "Internationalization library for Ruby")
235 (description "Ruby i18n is an internationalization and localization
236 solution for Ruby programs. It features translation and localization,
237 interpolation of values to translations, pluralization, customizable
238 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
239 translation data, custom key/scope separator, custom exception handlers, and
240 an extensible architecture with a swappable backend.")
241 (home-page "http://github.com/svenfuchs/i18n")
242 (license license:expat)))
244 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
245 ;; dependencies use RSpec for their test suites! To avoid these circular
246 ;; dependencies, we disable tests for all of the RSpec-related packages.
247 (define ruby-rspec-support
249 (name "ruby-rspec-support")
253 (uri (rubygems-uri "rspec-support" version))
256 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
257 (build-system ruby-build-system)
259 '(#:tests? #f)) ; avoid dependency cycles
260 (synopsis "RSpec support library")
261 (description "Support utilities for RSpec gems.")
262 (home-page "https://github.com/rspec/rspec-support")
263 (license license:expat)))
265 (define-public ruby-rspec-core
267 (name "ruby-rspec-core")
271 (uri (rubygems-uri "rspec-core" version))
274 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
275 (build-system ruby-build-system)
277 '(#:tests? #f)) ; avoid dependency cycles
279 `(("ruby-rspec-support" ,ruby-rspec-support)))
280 (synopsis "RSpec core library")
281 (description "Rspec-core provides the RSpec test runner and example
283 (home-page "https://github.com/rspec/rspec-core")
284 (license license:expat)))
286 (define-public ruby-rspec-core-2
287 (package (inherit ruby-rspec-core)
291 (uri (rubygems-uri "rspec-core" version))
294 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
295 (propagated-inputs `())))
297 (define-public ruby-diff-lcs
299 (name "ruby-diff-lcs")
303 (uri (rubygems-uri "diff-lcs" version))
306 "1vf9civd41bnqi6brr5d9jifdw73j9khc6fkhfl1f8r9cpkdvlx1"))))
307 (build-system ruby-build-system)
309 '(#:tests? #f)) ; avoid dependency cycles
310 (synopsis "Compute the difference between two Enumerable sequences")
311 (description "Diff::LCS computes the difference between two Enumerable
312 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
313 It includes utilities to create a simple HTML diff output format and a
314 standard diff-like tool.")
315 (home-page "https://github.com/halostatue/diff-lcs")
316 (license license:expat)))
318 (define-public ruby-rspec-expectations
320 (name "ruby-rspec-expectations")
324 (uri (rubygems-uri "rspec-expectations" version))
327 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
328 (build-system ruby-build-system)
330 '(#:tests? #f)) ; avoid dependency cycles
332 `(("ruby-rspec-support" ,ruby-rspec-support)
333 ("ruby-diff-lcs" ,ruby-diff-lcs)))
334 (synopsis "RSpec expectations library")
335 (description "Rspec-expectations provides a simple API to express expected
336 outcomes of a code example.")
337 (home-page "https://github.com/rspec/rspec-expectations")
338 (license license:expat)))
340 (define-public ruby-rspec-expectations-2
341 (package (inherit ruby-rspec-expectations)
345 (uri (rubygems-uri "rspec-expectations" version))
348 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
350 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
352 (define-public ruby-rspec-mocks
354 (name "ruby-rspec-mocks")
358 (uri (rubygems-uri "rspec-mocks" version))
361 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
362 (build-system ruby-build-system)
364 '(#:tests? #f)) ; avoid dependency cycles
366 `(("ruby-rspec-support" ,ruby-rspec-support)
367 ("ruby-diff-lcs" ,ruby-diff-lcs)))
368 (synopsis "RSpec stubbing and mocking library")
369 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
370 support for stubbing and mocking.")
371 (home-page "https://github.com/rspec/rspec-mocks")
372 (license license:expat)))
374 (define-public ruby-rspec-mocks-2
375 (package (inherit ruby-rspec-mocks)
379 (uri (rubygems-uri "rspec-mocks" version))
382 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
384 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
386 (define-public ruby-rspec
392 (uri (rubygems-uri "rspec" version))
395 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
396 (build-system ruby-build-system)
398 '(#:tests? #f)) ; avoid dependency cycles
400 `(("ruby-rspec-core" ,ruby-rspec-core)
401 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
402 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
403 (synopsis "Behavior-driven development framework for Ruby")
404 (description "RSpec is a behavior-driven development (BDD) framework for
405 Ruby. This meta-package includes the RSpec test runner, along with the
406 expectations and mocks frameworks.")
407 (home-page "http://rspec.info/")
408 (license license:expat)))
410 (define-public ruby-rspec-2
411 (package (inherit ruby-rspec)
415 (uri (rubygems-uri "rspec" version))
418 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
420 `(("ruby-rspec-core" ,ruby-rspec-core-2)
421 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
422 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
424 ;; Bundler is yet another source of circular dependencies, so we must disable
425 ;; its test suite as well.
426 (define-public bundler
432 (uri (rubygems-uri "bundler" version))
435 "0635s6naz9hn4iqbvkhnm1by4j4spvv13mb7nzwwimnpbqgx663i"))))
436 (build-system ruby-build-system)
438 '(#:tests? #f)) ; avoid dependency cycles
439 (synopsis "Ruby gem bundler")
440 (description "Bundler automatically downloads and installs a list of gems
441 specified in a \"Gemfile\", as well as their dependencies.")
442 (home-page "http://bundler.io/")
443 (license license:expat)))
445 (define-public ruby-builder
447 (name "ruby-builder")
451 (uri (rubygems-uri "builder" version))
454 "14fii7ab8qszrvsvhz6z2z3i4dw0h41a62fjr2h1j8m41vbrmyv2"))))
455 (build-system ruby-build-system)
458 (modify-phases %standard-phases
459 (add-after 'unpack 'do-not-use-rvm
461 (substitute* "rakelib/tags.rake"
462 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
464 (synopsis "Ruby library to create structured data")
465 (description "Builder provides a number of builder objects that make it
466 easy to create structured data. Currently the following builder objects are
467 supported: XML Markup and XML Events.")
468 (home-page "https://github.com/jimweirich/builder")
469 (license license:expat)))
471 (define-public ruby-rjb
477 (uri (rubygems-uri "rjb" version))
480 "0gzs92dagk981s4vrymnqg0vll783b9k564j0cdgp167nc5a2zg4"))))
481 (build-system ruby-build-system)
483 `(#:tests? #f ; no rakefile
485 (modify-phases %standard-phases
486 (add-before 'build 'set-java-home
487 (lambda* (#:key inputs #:allow-other-keys)
488 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
491 `(("jdk" ,icedtea "jdk")))
492 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
493 (description "RJB is a bridge program that connects Ruby and Java via the
494 Java Native Interface.")
495 (home-page "http://www.artonx.org/collabo/backyard/?RubyJavaBridge")
496 (license license:lgpl2.1+)))
498 (define-public ruby-log4r
505 (uri (rubygems-uri "log4r" version))
508 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
509 (build-system ruby-build-system)
511 '(#:tests? #f)) ; no Rakefile in gem
512 (synopsis "Flexible logging library for Ruby")
513 (description "Comprehensive and flexible logging library written
514 in Ruby for use in Ruby programs. It features a hierarchical logging
515 system of any number of levels, custom level names, logger
516 inheritance, multiple output destinations per log event, execution
517 tracing, custom formatting, thread safteyness, XML and YAML
518 configuration, and more.")
519 (home-page "http://log4r.rubyforge.org/")
520 (license license:bsd-3)))
522 (define-public ruby-atoulme-antwrap
524 (name "ruby-atoulme-antwrap")
528 (uri (rubygems-uri "atoulme-Antwrap" version))
531 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
532 (build-system ruby-build-system)
533 ;; Test data required for most of the tests are not included.
534 (arguments `(#:tests? #f))
536 `(("ruby-hoe" ,ruby-hoe)))
538 `(("ruby-rjb" ,ruby-rjb)))
539 (synopsis "Ruby wrapper for the Ant build tool")
540 (description "Antwrap is a Ruby module that wraps the Apache Ant build
541 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
543 (home-page "http://rubyforge.org/projects/antwrap/")
544 (license license:expat)))
546 (define-public ruby-atoulme-saikuro
548 (name "ruby-atoulme-saikuro")
552 (uri (rubygems-uri "atoulme-Saikuro" version))
555 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
556 (build-system ruby-build-system)
557 ;; FIXME: There are no unit tests. The tests are demonstrations of the
559 (arguments `(#:tests? #f))
560 (synopsis "Cyclomatic complexity analyzer")
561 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
562 given Ruby source code Saikuro will generate a report listing the cyclomatic
563 complexity of each method found. In addition, Saikuro counts the number of
564 lines per method and can generate a listing of the number of tokens on each
566 (home-page "http://www.github.com/atoulme/Saikuro")
567 ;; File headers contain the BSD-3 license and the README.rdoc says that
568 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
569 ;; of the Expat license.
570 (license license:bsd-3)))
572 (define-public ruby-ci-reporter
574 (name "ruby-ci-reporter")
578 (uri (rubygems-uri "ci_reporter" version))
581 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
582 (build-system ruby-build-system)
584 `(#:test-target "rspec"))
586 `(("ruby-builder" ,ruby-builder)))
588 `(("bundler" ,bundler)
589 ("ruby-rspec" ,ruby-rspec)))
590 (synopsis "Generate XML reports of runs test")
592 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
593 you to generate XML reports of your test runs. The resulting files can be
594 read by a continuous integration system that understands Ant's JUnit report
596 (home-page "https://github.com/nicksieger/ci_reporter")
597 (license license:expat)))
599 (define-public ruby-saikuro-treemap
601 (name "ruby-saikuro-treemap")
605 (uri (rubygems-uri "saikuro_treemap" version))
608 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
609 (build-system ruby-build-system)
610 ;; Some of the tests fail because the generated JSON has keys in a
611 ;; different order. This is a problem with the test suite rather than any
612 ;; of the involved libraries.
613 (arguments `(#:tests? #f))
615 `(("ruby-json-pure" ,ruby-json-pure)
616 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
617 (synopsis "Generate complexity treemap based on saikuro analysis")
619 "This gem generates a treemap showing the complexity of Ruby code on
620 which it is run. It uses Saikuro under the covers to analyze Ruby code
622 (home-page "http://github.com/ThoughtWorksStudios/saikuro_treemap")
623 (license license:expat)))
625 (define-public ruby-orderedhash
627 (name "ruby-orderedhash")
631 (uri (rubygems-uri "orderedhash" version))
634 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
635 (build-system ruby-build-system)
637 '(#:tests? #f)) ; no test suite
638 (synopsis "Ruby library providing an order-preserving hash")
639 (description "Orderedhash is a Ruby library providing a hash
640 implementation that preserves the order of items and features some array-like
642 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
643 (license license:public-domain)))
645 (define-public ruby-libxml
652 (uri (rubygems-uri "libxml-ruby" version))
655 "1dhjqp4r9vkdp00l6h1cj8qfndzxlhlxk6b9g0w4v55gz857ilhb"))))
656 (build-system ruby-build-system)
659 ("libxml2" ,libxml2)))
661 '(#:tests? #f ; test suite hangs for unknown reason
664 (string-append "--with-xml2-include="
665 (assoc-ref %build-inputs "libxml2")
666 "/include/libxml2" ))))
667 (synopsis "Ruby bindings for GNOME Libxml2")
668 (description "The Libxml-Ruby project provides Ruby language bindings for
669 the GNOME Libxml2 XML toolkit.")
670 (home-page "http://xml4r.github.com/libxml-ruby")
671 (license license:expat)))
673 (define-public ruby-xml-simple
675 (name "ruby-xml-simple")
679 (uri (rubygems-uri "xml-simple" version))
682 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
683 (build-system ruby-build-system)
685 '(#:tests? #f)) ; no test suite
686 (synopsis "Simple Ruby library for XML processing")
687 (description "This library provides a simple API for XML processing in
689 (home-page "https://github.com/maik/xml-simple")
690 (license license:ruby)))
692 (define-public ruby-thor
698 (uri (rubygems-uri "thor" version))
701 "08p5gx18yrbnwc6xc0mxvsfaxzgy2y9i78xq7ds0qmdm67q39y4z"))))
702 (build-system ruby-build-system)
704 '(#:tests? #f)) ; no test suite
706 `(("bundler" ,bundler)))
707 (synopsis "Ruby toolkit for building command-line interfaces")
708 (description "Thor is a toolkit for building powerful command-line
710 (home-page "http://whatisthor.com/")
711 (license license:expat)))
713 (define-public ruby-lumberjack
715 (name "ruby-lumberjack")
719 (uri (rubygems-uri "lumberjack" version))
722 "0ily8j83q959w19zb7qm6m7y53sdj9afxj4x6mn2adl4i7vpdsv4"))))
723 (build-system ruby-build-system)
725 `(("ruby-rspec" ,ruby-rspec)
726 ("ruby-timecop" ,ruby-timecop)))
727 (synopsis "Logging utility library for Ruby")
728 (description "Lumberjack is a simple logging utility that can be a drop in
729 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
730 for automatically rolling log files even with multiple processes writing the
732 (home-page "http://github.com/bdurand/lumberjack")
733 (license license:expat)))
735 (define-public ruby-nenv
741 (uri (rubygems-uri "nenv" version))
744 "152wxwri0afwgnxdf93gi6wjl9rr5z7vwp8ln0gpa3rddbfc27s6"))))
745 (build-system ruby-build-system)
747 `(#:tests? #f)) ; no tests included
749 `(("ruby-rspec" ,ruby-rspec)
750 ("bundler" ,bundler)))
751 (synopsis "Ruby interface for modifying the environment")
752 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
753 and inspect the environment.")
754 (home-page "https://github.com/e2/nenv")
755 (license license:expat)))
757 (define-public ruby-permutation
759 (name "ruby-permutation")
763 (uri (rubygems-uri "permutation" version))
766 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
767 (build-system ruby-build-system)
770 (modify-phases %standard-phases
771 (add-after 'unpack 'fix-rakefile
773 (substitute* "Rakefile"
774 (("require 'rake/gempackagetask'")
775 "require 'rubygems/package_task'")
776 (("include Config") ""))
780 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
781 (synopsis "Library to perform operations with sequence permutations")
782 (description "This package provides a Ruby library to perform different
783 operations with permutations of sequences, such as strings and arrays.")
784 (home-page "http://flori.github.io/permutation")
785 (license license:gpl2))) ; GPL 2 only
787 (define-public ruby-shellany
789 (name "ruby-shellany")
793 (uri (rubygems-uri "shellany" version))
796 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
797 (build-system ruby-build-system)
799 `(#:test-target "default"
801 (modify-phases %standard-phases
802 (add-after 'unpack 'fix-version-test
804 (substitute* "spec/shellany_spec.rb"
805 (("^RSpec") "require \"shellany\"\nRSpec"))
808 `(("ruby-rspec" ,ruby-rspec)
809 ("ruby-nenv" ,ruby-nenv)
810 ("bundler" ,bundler)))
811 (synopsis "Capture command output")
812 (description "Shellany is a Ruby library providing functions to capture
813 the output produced by running shell commands.")
814 (home-page "https://rubygems.org/gems/shellany")
815 (license license:expat)))
817 (define-public ruby-notiffany
819 (name "ruby-notiffany")
823 (uri (rubygems-uri "notiffany" version))
826 "1v5x1w59qq85r6dpv3y9ga34dfd7hka1qxyiykaw7gm0i6kggbhi"))))
827 (build-system ruby-build-system)
828 ;; Tests are not included in the gem.
829 (arguments `(#:tests? #f))
831 `(("ruby-shellany" ,ruby-shellany)
832 ("ruby-nenv" ,ruby-nenv)))
834 `(("bundler" ,bundler)))
835 (synopsis "Wrapper libray for notification libraries")
836 (description "Notiffany is a Ruby wrapper libray for notification
837 libraries such as Libnotify.")
838 (home-page "https://github.com/guard/notiffany")
839 (license license:expat)))
841 (define-public ruby-formatador
843 (name "ruby-formatador")
847 (uri (rubygems-uri "formatador" version))
850 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
851 (build-system ruby-build-system)
852 ;; Circular dependency: Tests require ruby-shindo, which requires
853 ;; ruby-formatador at runtime.
854 (arguments `(#:tests? #f))
855 (synopsis "Ruby library to format text on stdout")
856 (description "Formatador is a Ruby library to format text printed to the
857 standard output stream.")
858 (home-page "http://github.com/geemus/formatador")
859 (license license:expat)))
861 (define-public ruby-shindo
867 (uri (rubygems-uri "shindo" version))
870 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
871 (build-system ruby-build-system)
873 `(#:test-target "shindo_tests"
875 (modify-phases %standard-phases
876 (add-after 'unpack 'fix-tests
878 (substitute* "Rakefile"
879 (("system \"shindo") "system \"./bin/shindo")
880 ;; This test doesn't work, so we disable it.
881 (("fail \"The build_error test should fail") "#"))
884 `(("ruby-formatador" ,ruby-formatador)))
885 (synopsis "Simple depth first Ruby testing")
886 (description "Shindo is a simple depth first testing library for Ruby.")
887 (home-page "https://github.com/geemus/shindo")
888 (license license:expat)))
890 (define-public ruby-rubygems-tasks
892 (name "ruby-rubygems-tasks")
896 (uri (rubygems-uri "rubygems-tasks" version))
899 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
900 (build-system ruby-build-system)
901 ;; Tests need Internet access.
902 (arguments `(#:tests? #f))
904 `(("ruby-rspec" ,ruby-rspec)
905 ("ruby-yard" ,ruby-yard)))
906 (synopsis "Rake tasks for managing and releasing Ruby Gems")
907 (description "Rubygems-task provides Rake tasks for managing and releasing
909 (home-page "https://github.com/postmodern/rubygems-tasks")
910 (license license:expat)))
912 (define-public ruby-ffi
918 (uri (rubygems-uri "ffi" version))
921 "1nkcrmxqr0vb1y4rwliclwlj2ajsi4ddpdx2gvzjy0xbkk5iqzfp"))))
922 (build-system ruby-build-system)
923 ;; FIXME: Before running tests the build system attempts to build libffi
925 (arguments `(#:tests? #f))
927 `(("ruby-rake-compiler" ,ruby-rake-compiler)
928 ("ruby-rspec" ,ruby-rspec)
929 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
931 `(("libffi" ,libffi)))
932 (synopsis "Ruby foreign function interface library")
933 (description "Ruby-FFI is a Ruby extension for programmatically loading
934 dynamic libraries, binding functions within them, and calling those functions
935 from Ruby code. Moreover, a Ruby-FFI extension works without changes on Ruby
937 (home-page "http://wiki.github.com/ffi/ffi")
938 (license license:bsd-3)))
940 (define-public ruby-simplecov-html
942 (name "ruby-simplecov-html")
946 (uri (rubygems-uri "simplecov-html" version))
949 "1qni8g0xxglkx25w54qcfbi4wjkpvmb28cb7rj5zk3iqynjcdrqf"))))
950 (build-system ruby-build-system)
951 (arguments `(#:tests? #f)) ; there are no tests
953 `(("bundler" ,bundler)))
954 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
955 (description "This package provides the default HTML formatter for
956 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
957 (home-page "https://github.com/colszowka/simplecov-html")
958 (license license:expat)))
960 (define-public ruby-simplecov
962 (name "ruby-simplecov")
966 (uri (rubygems-uri "simplecov" version))
969 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
970 (build-system ruby-build-system)
971 ;; Simplecov depends on rubocop for code style checking at build time.
972 ;; Rubocop needs simplecov at build time.
973 (arguments `(#:tests? #f))
975 `(("ruby-json" ,ruby-json)
976 ("ruby-docile" ,ruby-docile)
977 ("ruby-simplecov-html" ,ruby-simplecov-html)))
979 `(("bundler" ,bundler)))
980 (synopsis "Code coverage framework for Ruby")
981 (description "SimpleCov is a code coverage framework for Ruby with a
982 powerful configuration library and automatic merging of coverage across test
984 (home-page "http://github.com/colszowka/simplecov")
985 (license license:expat)))
987 (define-public ruby-useragent
989 (name "ruby-useragent")
993 (uri (rubygems-uri "useragent" version))
996 "0kz7yyz7528bv4a2kfymvkcm8whqcddhmgaw1ksw1d90n30hhkpc"))))
997 (build-system ruby-build-system)
999 '(#:tests? #f)) ; no test suite
1000 (synopsis "HTTP user agent parser for Ruby")
1001 (description "UserAgent is a Ruby library that parses and compares HTTP
1003 (home-page "https://github.com/gshutler/useragent")
1004 (license license:expat)))
1006 (define-public ruby-bacon
1012 (uri (rubygems-uri "bacon" version))
1015 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1016 (build-system ruby-build-system)
1017 (synopsis "Small RSpec clone")
1018 (description "Bacon is a small RSpec clone providing all essential
1020 (home-page "https://github.com/chneukirchen/bacon")
1021 (license license:expat)))
1023 (define-public ruby-connection-pool
1025 (name "ruby-connection-pool")
1029 (uri (rubygems-uri "connection_pool" version))
1032 "1b2bb3k39ni5mzcnqlv9y4yjkbin20s7dkwzp0jw2jf1rmzcgrmy"))))
1033 (build-system ruby-build-system)
1035 `(("bundler" ,bundler)))
1036 (synopsis "Generic connection pool for Ruby")
1037 (description "Connection_pool provides a generic connection pooling
1038 interface for Ruby programs.")
1039 (home-page "https://github.com/mperham/connection_pool")
1040 (license license:expat)))
1042 (define-public ruby-net-http-persistent
1044 (name "ruby-net-http-persistent")
1048 (uri (rubygems-uri "net-http-persistent" version))
1051 "1y9fhaax0d9kkslyiqi1zys6cvpaqx9a0y0cywp24rpygwh4s9r4"))))
1052 (build-system ruby-build-system)
1054 `(("ruby-connection-pool" ,ruby-connection-pool)
1055 ("ruby-hoe" ,ruby-hoe)))
1056 (synopsis "Persistent HTTP connection manager")
1057 (description "Net::HTTP::Persistent manages persistent HTTP connections
1058 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1059 (home-page "https://github.com/drbrain/net-http-persistent")
1060 (license license:expat)))
1062 (define-public ruby-power-assert
1064 (name "ruby-power-assert")
1068 (uri (rubygems-uri "power_assert" version))
1071 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1072 (build-system ruby-build-system)
1074 `(("bundler" ,bundler)))
1075 (synopsis "Assert library with descriptive assertion messages")
1076 (description "Power-assert is an assertion library providing descriptive
1077 assertion messages for tests.")
1078 (home-page "https://github.com/k-tsj/power_assert")
1079 (license (list license:bsd-2 license:ruby))))
1081 (define-public ruby-locale
1083 (name "ruby-locale")
1087 (uri (rubygems-uri "locale" version))
1090 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1091 (build-system ruby-build-system)
1092 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1093 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1094 ;; dependency cycle we disable tests.
1095 (arguments `(#:tests? #f))
1097 `(("bundler" ,bundler)
1098 ("ruby-yard" ,ruby-yard)))
1099 (synopsis "Ruby library providing basic localization APIs")
1101 "Ruby-Locale is the pure ruby library which provides basic APIs for
1103 (home-page "https://github.com/ruby-gettext/locale")
1104 (license (list license:lgpl3+ license:ruby))))
1106 (define-public ruby-text
1112 (uri (rubygems-uri "text" version))
1115 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1116 (build-system ruby-build-system)
1117 (synopsis "Collection of text algorithms for Ruby")
1119 "This package provides a collection of text algorithms: Levenshtein,
1120 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1121 (home-page "http://github.com/threedaymonk/text")
1122 (license license:expat)))
1124 (define-public ruby-gettext
1126 (name "ruby-gettext")
1130 (uri (rubygems-uri "gettext" version))
1133 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1134 (build-system ruby-build-system)
1135 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1136 ;; which needs ruby-gettext. To break the dependency cycle we disable
1138 (arguments `(#:tests? #f))
1140 `(("ruby-locale" ,ruby-locale)
1141 ("ruby-text" ,ruby-text)))
1143 `(("bundler" ,bundler)
1144 ("ruby-yard" ,ruby-yard)))
1145 (synopsis "GNU gettext-like program for Ruby")
1147 "Gettext is a GNU gettext-like program for Ruby. The catalog
1148 file (po-file) used is the same as that used by GNU gettext, allowing you to
1149 use GNU gettext tools for maintenance.")
1150 (home-page "http://ruby-gettext.github.com/")
1151 (license (list license:lgpl3+ license:ruby))))
1153 (define-public ruby-packnga
1155 (name "ruby-packnga")
1159 (uri (rubygems-uri "packnga" version))
1162 "1i71yhvlkvi5fp3m8jl9317cnddkbnrcy0syrmiw4y1lrq0cbncj"))))
1163 (build-system ruby-build-system)
1164 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1165 ;; To break the dependency cycle we disable tests.
1166 (arguments `(#:tests? #f))
1168 `(("ruby-gettext" ,ruby-gettext)
1169 ("ruby-yard" ,ruby-yard)))
1171 `(("bundler" ,bundler)))
1172 (synopsis "Utility library to package internationalized libraries")
1174 "Packnga is a library to translate to many languages using YARD.")
1175 (home-page "http://ranguba.org/packnga/")
1176 (license license:lgpl2.0+)))
1178 (define-public ruby-test-unit
1180 (name "ruby-test-unit")
1184 (uri (rubygems-uri "test-unit" version))
1187 "0jxznjzwmrlp8wqjxsd06qbiddffn68pdhz6nrqpjbiln1z3af4w"))))
1188 (build-system ruby-build-system)
1190 `(("ruby-power-assert" ,ruby-power-assert)))
1192 `(("bundler" ,bundler)
1193 ("ruby-packnga" ,ruby-packnga)
1194 ("ruby-yard" ,ruby-yard)))
1195 (synopsis "Unit testing framework for Ruby")
1196 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1197 on xUnit principles. These were originally designed by Kent Beck, creator of
1198 extreme programming software development methodology, for Smalltalk's SUnit.
1199 It allows writing tests, checking results and automated testing in Ruby.")
1200 (home-page "http://test-unit.github.io/")
1201 (license (list license:psfl license:ruby))))
1203 (define-public ruby-metaclass
1205 (name "ruby-metaclass")
1209 (uri (rubygems-uri "metaclass" version))
1212 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1213 (build-system ruby-build-system)
1216 (modify-phases %standard-phases
1217 (add-after 'unpack 'add-test-unit-to-search-path
1218 (lambda* (#:key inputs #:allow-other-keys)
1219 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1220 (test-unit-home (gem-home test-unit
1221 ,(package-version ruby))))
1222 (substitute* "Rakefile"
1223 (("t\\.libs << \"test\"" line)
1224 (string-append line "; t.libs << \""
1227 ,(package-version ruby-test-unit)
1231 `(("bundler" ,bundler)
1232 ("ruby-test-unit" ,ruby-test-unit)))
1233 (synopsis "Ruby library adding metaclass method to all objects")
1235 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1237 (home-page "http://github.com/floehopper/metaclass")
1238 (license license:expat)))
1240 (define-public ruby-blankslate
1242 (name "ruby-blankslate")
1246 (uri (rubygems-uri "blankslate" version))
1249 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1250 (build-system ruby-build-system)
1253 (modify-phases %standard-phases
1255 (lambda _ (zero? (system* "rspec" "spec/")))))))
1257 `(("bundler" ,bundler)
1258 ("ruby-rspec" ,ruby-rspec)))
1259 (synopsis "Abstract base class with no predefined methods")
1261 "BlankSlate provides an abstract base class with no predefined
1262 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1263 as a base class when writing classes that depend upon
1264 @code{method_missing} (e.g. dynamic proxies).")
1265 (home-page "http://github.com/masover/blankslate")
1266 (license license:expat)))
1268 (define-public ruby-instantiator
1270 (name "ruby-instantiator")
1274 (uri (rubygems-uri "instantiator" version))
1277 "0mfmqhg9xrv9i8i1kmphf15ywddhivyh2z3ccl0xjw8qy54zr21i"))))
1278 (build-system ruby-build-system)
1281 (modify-phases %standard-phases
1282 (add-after 'unpack 'add-test-unit-to-search-path
1283 (lambda* (#:key inputs #:allow-other-keys)
1284 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1285 (test-unit-home (gem-home test-unit ,(package-version
1287 (substitute* "Rakefile"
1288 (("t\\.libs << \"test\"" line)
1289 (string-append line "; t.libs << \""
1292 ,(package-version ruby-test-unit)
1296 `(("ruby-blankslate" ,ruby-blankslate)))
1298 `(("bundler" ,bundler)
1299 ("ruby-test-unit" ,ruby-test-unit)))
1300 (synopsis "Instantiate an arbitrary Ruby class")
1302 "Instantiator lets you instantiate an arbitrary Ruby class without
1303 knowing anything about the constructor.")
1304 (home-page "https://github.com/floehopper/instantiator")
1305 (license license:expat)))
1307 (define-public ruby-introspection
1309 (name "ruby-introspection")
1313 (uri (rubygems-uri "introspection" version))
1316 "0g1j71sqfxbqk32wj7d0bkd3dlayfqzprfq3dbr0rq107xbxjcrr"))))
1317 (build-system ruby-build-system)
1320 (modify-phases %standard-phases
1321 (add-after 'unpack 'add-test-unit-to-search-path
1322 (lambda* (#:key inputs #:allow-other-keys)
1323 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1324 (test-unit-home (gem-home test-unit ,(package-version
1326 (substitute* "Rakefile"
1327 (("t\\.libs << \"test\"" line)
1328 (string-append line "; t.libs << \""
1331 ,(package-version ruby-test-unit)
1335 `(("ruby-instantiator" ,ruby-instantiator)
1336 ("ruby-metaclass" ,ruby-metaclass)))
1338 `(("bundler" ,bundler)
1339 ("ruby-blankslate" ,ruby-blankslate)
1340 ("ruby-test-unit" ,ruby-test-unit)))
1341 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1343 "Introspection provides tools to inspect the hierarchy of method
1344 definitions on a Ruby object.")
1345 (home-page "https://github.com/floehopper/introspection")
1346 (license license:expat)))
1348 (define-public ruby-redcarpet
1350 (name "ruby-redcarpet")
1354 (uri (rubygems-uri "redcarpet" version))
1357 "14i3wypp97bpk20679d1csy88q4hsgfqbnqw6mryl77m2g0d09pk"))))
1358 (build-system ruby-build-system)
1361 (modify-phases %standard-phases
1362 ;; The gem archive does not include the conformance tests.
1363 (add-after 'unpack 'disable-conformance-tests
1365 (substitute* "Rakefile"
1366 (("task :test => %w\\[test:unit test:conformance\\]")
1367 "task :test => %w[test:unit]"))
1370 `(("bundler" ,bundler)
1371 ("ruby-test-unit" ,ruby-test-unit)
1372 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1373 (synopsis "Extensible Markdown to (X)HTML converter")
1375 "Redcarpet is an extensible Ruby library for Markdown processing and
1376 conversion to (X)HTML.")
1377 (home-page "http://github.com/vmg/redcarpet")
1378 (license license:expat)))
1380 (define-public ruby-mocha
1386 (uri (rubygems-uri "mocha" version))
1389 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1390 (build-system ruby-build-system)
1393 (modify-phases %standard-phases
1394 (add-after 'unpack 'add-test-unit-to-search-path
1395 (lambda* (#:key inputs #:allow-other-keys)
1396 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1397 (test-unit-home (gem-home test-unit
1398 ,(package-version ruby))))
1399 (substitute* "Rakefile"
1400 (("t\\.libs << 'test'" line)
1401 (string-append line "; t.libs << \""
1404 ,(package-version ruby-test-unit)
1407 (add-before 'check 'use-latest-redcarpet
1409 (substitute* "mocha.gemspec"
1410 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1411 "<redcarpet>.freeze, [\">= 3\"]"))
1413 (add-before 'check 'hardcode-version
1415 ;; Mocha is undefined at build time
1416 (substitute* "Rakefile"
1417 (("#\\{Mocha::VERSION\\}") ,version))
1419 (add-before 'check 'remove-failing-test
1420 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1422 (delete-file "test/acceptance/stubbing_nil_test.rb")
1425 `(("ruby-metaclass" ,ruby-metaclass)))
1427 `(("bundler" ,bundler)
1428 ("ruby-yard" ,ruby-yard)
1429 ("ruby-introspection" ,ruby-introspection)
1430 ("ruby-test-unit" ,ruby-test-unit)
1431 ("ruby-redcarpet" ,ruby-redcarpet)))
1432 (synopsis "Mocking and stubbing library for Ruby")
1434 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1435 allows mocking and stubbing of methods on real (non-mock) classes.")
1436 (home-page "http://gofreerange.com/mocha/docs")
1437 (license license:expat)))
1439 (define-public ruby-net-ssh
1441 (name "ruby-net-ssh")
1445 (uri (rubygems-uri "net-ssh" version))
1448 "1dzqkgwi9xm6mbfk1rkk17rzmz8m5xakqi21w1b97ybng6kkw0hf"))))
1449 (build-system ruby-build-system)
1451 `(("ruby-mocha" ,ruby-mocha)
1452 ("ruby-test-unit" ,ruby-test-unit)))
1453 (synopsis "Ruby implementation of the SSH2 client protocol")
1454 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1455 client protocol. It allows you to write programs that invoke and interact
1456 with processes on remote servers, via SSH2.")
1457 (home-page "https://github.com/net-ssh/net-ssh")
1458 (license license:expat)))
1460 (define-public ruby-minitest
1462 (name "ruby-minitest")
1466 (uri (rubygems-uri "minitest" version))
1469 "1yk2m8sp0p5m1niawa3ncg157a4i0594cg7z91rzjxv963rzrwab"))))
1470 (build-system ruby-build-system)
1472 `(("ruby-hoe" ,ruby-hoe)))
1473 (synopsis "Small test suite library for Ruby")
1474 (description "Minitest provides a complete suite of Ruby testing
1475 facilities supporting TDD, BDD, mocking, and benchmarking.")
1476 (home-page "https://github.com/seattlerb/minitest")
1477 (license license:expat)))
1479 ;; This is the last release of Minitest 4, which is used by some packages.
1480 (define-public ruby-minitest-4
1481 (package (inherit ruby-minitest)
1485 (uri (rubygems-uri "minitest" version))
1488 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1491 (modify-phases %standard-phases
1492 (add-after 'unpack 'remove-unsupported-method
1494 (substitute* "Rakefile"
1495 (("self\\.rubyforge_name = .*") ""))
1498 (define-public ruby-minitest-sprint
1500 (name "ruby-minitest-sprint")
1504 (uri (rubygems-uri "minitest-sprint" version))
1507 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
1508 (build-system ruby-build-system)
1510 `(("ruby-hoe" ,ruby-hoe)
1511 ("ruby-minitest" ,ruby-minitest)))
1512 (synopsis "Fast test suite runner for minitest")
1513 (description "Minitest-sprint is a test runner for minitest that makes it
1514 easier to re-run individual failing tests.")
1515 (home-page "https://github.com/seattlerb/minitest-sprint")
1516 (license license:expat)))
1518 (define-public ruby-minitest-bacon
1520 (name "ruby-minitest-bacon")
1524 (uri (rubygems-uri "minitest-bacon" version))
1527 "0cm7r68422743i3b6fm4rrm0r6cnnjmglq5gcmmgl1f0rk5hnf6r"))))
1528 (build-system ruby-build-system)
1530 `(("ruby-hoe" ,ruby-hoe)))
1532 `(("ruby-minitest" ,ruby-minitest)))
1533 (synopsis "Bacon compatibility library for minitest")
1534 (description "Minitest-bacon extends minitest with bacon-like
1535 functionality, making it easier to migrate test suites from bacon to minitest.")
1536 (home-page "https://github.com/seattlerb/minitest-bacon")
1537 (license license:expat)))
1539 (define-public ruby-minitest-focus
1541 (name "ruby-minitest-focus")
1546 (uri (rubygems-uri "minitest-focus" version))
1549 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1550 (build-system ruby-build-system)
1552 `(("ruby-minitest" ,ruby-minitest)))
1554 `(("ruby-hoe" ,ruby-hoe)))
1555 (synopsis "Allows a few specific tests to be focused on")
1557 "@code{minitest-focus} gives the ability focus on a few tests with ease
1558 without having to use command-line arguments. It introduces a @code{focus}
1559 class method for use in testing classes, specifying that the next defined test
1561 (home-page "https://github.com/seattlerb/minitest-focus")
1562 (license license:expat)))
1564 (define-public ruby-minitest-pretty-diff
1565 ;; Use git reference because gem is out of date and does not contain testing
1566 ;; script. There are no releases on GitHub.
1567 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
1569 (name "ruby-minitest-pretty-diff")
1570 (version (string-append "0.1-1." (string-take commit 8)))
1574 (url "https://github.com/adammck/minitest-pretty_diff.git")
1576 (file-name (string-append name "-" version "-checkout"))
1579 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
1580 (build-system ruby-build-system)
1583 (modify-phases %standard-phases
1586 (zero? (system* "script/test")))))))
1588 `(("bundler" ,bundler)
1589 ("ruby-turn" ,ruby-turn)))
1590 (synopsis "Pretty-print hashes and arrays in MiniTest")
1592 "@code{minitest-pretty_diff} monkey-patches
1593 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
1594 diffing them. This makes it easier to spot differences between nested
1595 structures when tests fail.")
1596 (home-page "https://github.com/adammck/minitest-pretty_diff")
1597 (license license:expat))))
1599 (define-public ruby-minitest-moar
1601 (name "ruby-minitest-moar")
1606 (uri (rubygems-uri "minitest-moar" version))
1609 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
1610 (build-system ruby-build-system)
1613 (modify-phases %standard-phases
1614 (add-before 'check 'clean-dependencies
1616 ;; Remove all gems defined in the Gemfile because these are not
1618 (substitute* "Gemfile"
1620 ;; Remove byebug as not needed to run tests.
1621 (substitute* "test/test_helper.rb"
1622 (("require 'byebug'") ""))
1625 `(("bundler" ,bundler)
1626 ("ruby-minitest" ,ruby-minitest)))
1627 (synopsis "Extra features and changes to MiniTest")
1628 (description "@code{MiniTest Moar} add some additional features and
1629 changes some default behaviours in MiniTest. For instance, Moar replaces the
1630 MiniTest @code{Object#stub} with a global @code{stub} method.")
1631 (home-page "https://github.com/dockyard/minitest-moar")
1632 (license license:expat)))
1634 (define-public ruby-minitest-bonus-assertions
1636 (name "ruby-minitest-bonus-assertions")
1641 (uri (rubygems-uri "minitest-bonus-assertions" version))
1644 "11nrd32kwy61ndg9csk7l1ifya79ghrrv3vsrxj57k50m7na6jkm"))))
1645 (build-system ruby-build-system)
1648 (modify-phases %standard-phases
1649 (add-before 'check 'clean-dependencies
1651 ;; Remove unneeded require statement that would entail another
1653 (substitute* "test/minitest_config.rb"
1654 (("require 'minitest/bisect'") ""))
1657 `(("ruby-hoe" ,ruby-hoe)
1658 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
1659 ("ruby-minitest-focus" ,ruby-minitest-focus)
1660 ("ruby-minitest-moar" ,ruby-minitest-moar)))
1661 (synopsis "Bonus assertions for @code{Minitest}")
1663 "Minitest bonus assertions provides extra MiniTest assertions. For
1664 instance, it provides @code{assert_true}, @code{assert_false} and
1665 @code{assert_set_equal}.")
1666 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
1667 (license license:expat)))
1669 (define-public ruby-minitest-rg
1671 (name "ruby-minitest-rg")
1676 (uri (rubygems-uri "minitest-rg" version))
1679 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
1680 (build-system ruby-build-system)
1682 ;; Some tests fail even outside Guix, so disable tests.
1683 ;; https://github.com/blowmage/minitest-rg/issues/12
1684 ;; https://github.com/blowmage/minitest-rg/pull/13
1687 `(("ruby-minitest" ,ruby-minitest)))
1688 (synopsis "Coloured output for Minitest")
1690 "@code{minitest-rg} changes the colour of the output from Minitest.")
1691 (home-page "http://blowmage.com/minitest-rg")
1692 (license license:expat)))
1694 (define-public ruby-minitest-hooks
1696 (name "ruby-minitest-hooks")
1701 (uri (rubygems-uri "minitest-hooks" version))
1704 "092fymh0c09v3a585qw3hc15b0zf159s74rxx1ga87drk5jr958z"))))
1705 (build-system ruby-build-system)
1707 '(#:test-target "spec"))
1709 `(("ruby-sequel" ,ruby-sequel)
1710 ("ruby-sqlite3" ,ruby-sqlite3)))
1711 (synopsis "Hooks for the minitest framework")
1713 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
1714 @code{around_all} hooks for Minitest. This allows, for instance, running each
1715 suite of specs inside a database transaction, running each spec inside its own
1716 savepoint inside that transaction. This can significantly speed up testing
1717 for specs that share expensive database setup code.")
1718 (home-page "http://github.com/jeremyevans/minitest-hooks")
1719 (license license:expat)))
1721 (define-public ruby-daemons
1723 (name "ruby-daemons")
1727 (uri (rubygems-uri "daemons" version))
1730 "121c7vkimg3baxga69xvdkwxiq8wkmxqvdbyqi5i82vhih5d3cn3"))))
1731 (build-system ruby-build-system)
1733 `(#:tests? #f)) ; no test suite
1734 (synopsis "Daemonize Ruby programs")
1735 (description "Daemons provides a way to wrap existing Ruby scripts to be
1736 run as a daemon and to be controlled by simple start/stop/restart commands.")
1737 (home-page "https://github.com/thuehlinger/daemons")
1738 (license license:expat)))
1740 (define-public ruby-git
1746 (uri (rubygems-uri "git" version))
1749 "1sqfj8lmhl7c5zamcckkpik4izfph2zkv6krw0i8mzj5pdws5acs"))))
1750 (build-system ruby-build-system)
1752 `(#:tests? #f ; no tests
1753 #:phases (modify-phases %standard-phases
1754 (add-after 'install 'patch-git-binary
1755 (lambda* (#:key inputs outputs #:allow-other-keys)
1756 ;; Make the default git binary an absolute path to the
1758 (let ((git (string-append (assoc-ref inputs "git")
1760 (config (string-append (getenv "GEM_HOME")
1761 "/gems/git-" ,version
1762 "/lib/git/config.rb")))
1763 (substitute* (list config)
1765 (string-append "'" git "'")))
1769 (synopsis "Ruby wrappers for Git")
1770 (description "Ruby/Git is a Ruby library that can be used to create, read
1771 and manipulate Git repositories by wrapping system calls to the git binary.")
1772 (home-page "https://github.com/schacon/ruby-git")
1773 (license license:expat)))
1775 (define-public ruby-slop
1781 (uri (rubygems-uri "slop" version))
1784 "0dj0ps6v1mqd02k84mgwd7hp578n2bzl7c51h3grdhxfl3jkfsj5"))))
1785 (build-system ruby-build-system)
1787 `(("ruby-minitest" ,ruby-minitest)))
1788 (synopsis "Ruby command line option parser")
1789 (description "Slop provides a Ruby domain specific language for gathering
1790 options and parsing command line flags.")
1791 (home-page "https://github.com/leejarvis/slop")
1792 (license license:expat)))
1794 (define-public ruby-slop-3
1795 (package (inherit ruby-slop)
1799 (uri (rubygems-uri "slop" version))
1802 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
1804 (define-public ruby-multipart-post
1806 (name "ruby-multipart-post")
1810 (uri (rubygems-uri "multipart-post" version))
1813 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
1814 (build-system ruby-build-system)
1816 `(("bundler" ,bundler)))
1817 (synopsis "Multipart POST library for Ruby")
1818 (description "Multipart-Post Adds multipart POST capability to Ruby's
1820 (home-page "https://github.com/nicksieger/multipart-post")
1821 (license license:expat)))
1823 (define-public ruby-arel
1829 (uri (rubygems-uri "arel" version))
1832 "0l757dkkaxk5fq3368l79jpyzq9a9driricjamhiwhwvh0h7xcyx"))))
1833 (build-system ruby-build-system)
1834 (arguments '(#:tests? #f)) ; no tests
1835 (home-page "https://github.com/rails/arel")
1836 (synopsis "SQL AST manager for Ruby")
1837 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
1838 Ruby. It simplifies the generation of complex SQL queries and adapts to
1839 various relational database implementations.")
1840 (license license:expat)))
1842 (define-public ruby-minitar
1843 ;; We package from the GitHub source to fix the security issue reported at
1844 ;; https://github.com/halostatue/minitar/issues/16.
1845 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
1847 (name "ruby-minitar")
1848 (version (string-append "0.5.4-1." (string-take commit 8)))
1853 (url "https://github.com/halostatue/minitar.git")
1855 (file-name (string-append name "-" version "-checkout"))
1858 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
1859 (build-system ruby-build-system)
1861 '(#:tests? #f)) ; missing a gemspec
1862 (synopsis "Ruby library and utility for handling tar archives")
1864 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
1865 that provides the ability to deal with POSIX tar archive files.")
1866 (home-page "http://www.github.com/atoulme/minitar")
1867 (license (list license:gpl2+ license:ruby)))))
1869 (define-public ruby-mini-portile
1871 (name "ruby-mini-portile")
1876 (uri (rubygems-uri "mini_portile" version))
1879 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
1880 (build-system ruby-build-system)
1882 '(#:tests? #f)) ; tests require network access
1883 (synopsis "Ports system for Ruby developers")
1884 (description "Mini-portile is a port/recipe system for Ruby developers.
1885 It provides a standard way to compile against specific versions of libraries
1886 to reproduce user environments.")
1887 (home-page "http://github.com/flavorjones/mini_portile")
1888 (license license:expat)))
1890 (define-public ruby-mini-portile-2
1891 (package (inherit ruby-mini-portile)
1895 (uri (rubygems-uri "mini_portile2" version))
1898 "1y25adxb1hgg1wb2rn20g3vl07qziq6fz364jc5694611zz863hb"))))))
1900 (define-public ruby-nokogiri
1902 (name "ruby-nokogiri")
1906 (uri (rubygems-uri "nokogiri" version))
1909 "10xahg0fwydh27psm8bv429mdja2ks6x83vxizq26ib8wvs05mv3"))))
1910 (build-system ruby-build-system)
1912 ;; Tests fail because Nokogiri can only test with an installed extension,
1913 ;; and also because many test framework dependencies are missing.
1915 #:gem-flags (list "--" "--use-system-libraries"
1916 (string-append "--with-xml2-include="
1917 (assoc-ref %build-inputs "libxml2")
1918 "/include/libxml2" ))
1920 (modify-phases %standard-phases
1921 (add-before 'build 'patch-extconf
1922 ;; 'pkg-config' is not included in the GEM_PATH during
1923 ;; installation, so we add it directly to the load path.
1924 (lambda* (#:key inputs #:allow-other-keys)
1925 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))
1926 (pkg-config-home (gem-home pkg-config
1927 ,(package-version ruby))))
1928 (substitute* "ext/nokogiri/extconf.rb"
1929 (("gem 'pkg-config'.*")
1930 (string-append "$:.unshift '"
1933 ,(package-version ruby-pkg-config)
1937 `(("ruby-hoe" ,ruby-hoe)))
1940 ("libxml2" ,libxml2)
1941 ("libxslt" ,libxslt)))
1943 `(("ruby-mini-portile" ,ruby-mini-portile-2)
1944 ("ruby-pkg-config" ,ruby-pkg-config)))
1945 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
1946 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
1947 both CSS3 selector and XPath 1.0 support.")
1948 (home-page "http://www.nokogiri.org/")
1949 (license license:expat)))
1951 (define-public ruby-method-source
1953 (name "ruby-method-source")
1958 (uri (rubygems-uri "method_source" version))
1961 "1g5i4w0dmlhzd18dijlqw5gk27bv6dj2kziqzrzb7mpgxgsd1sf2"))))
1962 (build-system ruby-build-system)
1964 `(("ruby-bacon" ,ruby-bacon)
1966 (synopsis "Retrieve the source code for Ruby methods")
1967 (description "Method_source retrieves the source code for Ruby methods.
1968 Additionally, it can extract source code from Proc and Lambda objects or just
1970 (home-page "https://github.com/banister/method_source")
1971 (license license:expat)))
1973 (define-public ruby-coderay
1975 (name "ruby-coderay")
1980 (uri (rubygems-uri "coderay" version))
1983 "1x6z923iwr1hi04k6kz5a6llrixflz8h5sskl9mhaaxy9jx2x93r"))))
1984 (build-system ruby-build-system)
1986 '(#:tests? #f)) ; missing test files
1987 (synopsis "Ruby syntax highlighting library")
1988 (description "Coderay is a Ruby library that provides syntax highlighting
1989 for select languages.")
1990 (home-page "http://coderay.rubychan.de")
1991 (license license:expat)))
1993 (define-public ruby-pry
2000 (uri (rubygems-uri "pry" version))
2003 "05xbzyin63aj2prrv8fbq2d5df2mid93m81hz5bvf2v4hnzs42ar"))))
2004 (build-system ruby-build-system)
2006 '(#:tests? #f)) ; no tests
2008 `(("ruby-coderay" ,ruby-coderay)
2009 ("ruby-method-source" ,ruby-method-source)
2010 ("ruby-slop" ,ruby-slop-3)))
2011 (synopsis "Ruby REPL")
2012 (description "Pry is an IRB alternative and runtime developer console for
2013 Ruby. It features syntax highlighting, a plugin architecture, runtime
2014 invocation, and source and documentation browsing.")
2015 (home-page "http://pryrepl.org")
2016 (license license:expat)))
2018 (define-public ruby-guard
2024 ;; The gem does not include a Rakefile, nor does it contain a
2025 ;; gemspec file, nor does it come with the tests. This is why
2026 ;; we fetch the tarball from Github.
2027 (uri (string-append "https://github.com/guard/guard/archive/v"
2029 (file-name (string-append name "-" version ".tar.gz"))
2032 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2033 (build-system ruby-build-system)
2035 `(#:tests? #f ; tests require cucumber
2037 (modify-phases %standard-phases
2038 (add-after 'unpack 'remove-git-ls-files
2039 (lambda* (#:key outputs #:allow-other-keys)
2040 (substitute* "guard.gemspec"
2041 (("git ls-files -z") "find . -type f -print0"))
2045 (zero? (system* "gem" "build" "guard.gemspec")))))))
2047 `(("ruby-formatador" ,ruby-formatador)
2048 ("ruby-listen" ,ruby-listen)
2049 ("ruby-lumberjack" ,ruby-lumberjack)
2050 ("ruby-nenv" ,ruby-nenv)
2051 ("ruby-notiffany" ,ruby-notiffany)
2052 ("ruby-pry" ,ruby-pry)
2053 ("ruby-shellany" ,ruby-shellany)
2054 ("ruby-thor" ,ruby-thor)))
2056 `(("bundler" ,bundler)
2057 ("ruby-rspec" ,ruby-rspec)))
2058 (synopsis "Tool to handle events on file system modifications")
2060 "Guard is a command line tool to easily handle events on file system
2061 modifications. Guard automates various tasks by running custom rules whenever
2062 file or directories are modified.")
2063 (home-page "http://guardgem.org/")
2064 (license license:expat)))
2066 (define-public ruby-thread-safe
2068 (name "ruby-thread-safe")
2073 (uri (rubygems-uri "thread_safe" version))
2076 "1hq46wqsyylx5afkp6jmcihdpv4ynzzq9ygb6z2pb1cbz5js0gcr"))))
2077 (build-system ruby-build-system)
2079 '(#:tests? #f)) ; needs simplecov, among others
2080 (synopsis "Thread-safe utilities for Ruby")
2081 (description "The thread_safe library provides thread-safe collections and
2082 utilities for Ruby.")
2083 (home-page "https://github.com/ruby-concurrency/thread_safe")
2084 (license license:asl2.0)))
2086 (define-public ruby-tzinfo
2088 (name "ruby-tzinfo")
2093 (uri (rubygems-uri "tzinfo" version))
2096 "1c01p3kg6xvy1cgjnzdfq45fggbwish8krd0h864jvbpybyx7cgx"))))
2097 (build-system ruby-build-system)
2099 `(("ruby-thread-safe" ,ruby-thread-safe)))
2100 (synopsis "Time zone library for Ruby")
2101 (description "TZInfo is a Ruby library that provides daylight savings
2102 aware transformations between times in different time zones.")
2103 (home-page "http://tzinfo.github.io")
2104 (license license:expat)))
2106 (define-public ruby-tzinfo-data
2108 (name "ruby-tzinfo-data")
2109 (version "1.2016.9")
2113 ;; Download from GitHub because the rubygems version does not contain
2114 ;; Rakefile or tests.
2116 "https://github.com/tzinfo/tzinfo-data/archive/v"
2119 (file-name (string-append name "-" version ".tar.gz"))
2122 "0i8vz2j7wmcpr4pd066qvlg4if5blscjrgxk2imavfa49nq5lp06"))
2123 ;; Remove the known test failure.
2124 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2125 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2126 (patches (search-patches
2127 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2128 (build-system ruby-build-system)
2130 `(("ruby-tzinfo" ,ruby-tzinfo)))
2131 (synopsis "Data from the IANA Time Zone database")
2133 "This library provides @code{TZInfo::Data}, which contains data from the
2134 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2135 (home-page "http://tzinfo.github.io")
2136 (license license:expat)))
2138 (define-public ruby-rb-inotify
2140 (name "ruby-rb-inotify")
2145 (uri (rubygems-uri "rb-inotify" version))
2148 "0kddx2ia0qylw3r52nhg83irkaclvrncgy2m1ywpbhlhsz1rymb9"))))
2149 (build-system ruby-build-system)
2151 '(#:tests? #f ; there are no tests
2153 (modify-phases %standard-phases
2154 ;; Building the gemspec with rake is not working here since it is
2155 ;; generated with Jeweler. It is also unnecessary because the
2156 ;; existing gemspec does not use any development tools to generate a
2160 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2162 `(("ruby-ffi" ,ruby-ffi)))
2164 `(("ruby-yard" ,ruby-yard)))
2165 (synopsis "Ruby wrapper for Linux's inotify")
2166 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2167 kernel subsystem for monitoring changes to files and directories.")
2168 (home-page "https://github.com/nex3/rb-inotify")
2169 (license license:expat)))
2171 (define-public ruby-pry-editline
2173 (name "ruby-pry-editline")
2177 (uri (rubygems-uri "pry-editline" version))
2180 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2181 (build-system ruby-build-system)
2182 (arguments `(#:tests? #f)) ; no tests included
2184 `(("bundler" ,bundler)))
2185 (synopsis "Open the current REPL line in an editor")
2187 "This gem provides a plugin for the Ruby REPL to enable opening the
2188 current line in an external editor.")
2189 (home-page "https://github.com/tpope/pry-editline")
2190 (license license:expat)))
2192 (define-public ruby-sdoc
2198 (uri (rubygems-uri "sdoc" version))
2201 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
2202 (build-system ruby-build-system)
2205 (modify-phases %standard-phases
2206 (add-before 'check 'set-rubylib
2208 (setenv "RUBYLIB" "lib")
2211 `(("ruby-json" ,ruby-json)))
2213 `(("bundler" ,bundler)
2214 ("ruby-minitest" ,ruby-minitest)
2215 ("ruby-hoe" ,ruby-hoe)))
2216 (synopsis "Generate searchable RDoc documentation")
2218 "SDoc is an RDoc documentation generator to build searchable HTML
2219 documentation for Ruby code.")
2220 (home-page "http://github.com/voloko/sdoc")
2221 (license license:expat)))
2223 (define-public ruby-tins
2229 (uri (rubygems-uri "tins" version))
2232 "1060h8dgnjl9az0sv1b74yrni8d4mh3x858wq6yfbfdf5dxrfl0a"))))
2233 (build-system ruby-build-system)
2234 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2235 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2238 `(#:tests? #f ; there are no tests
2240 (modify-phases %standard-phases
2243 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2245 (substitute* "tins.gemspec"
2246 (("\"lib/spruz\", ") ""))
2247 (zero? (system* "gem" "build" "tins.gemspec")))))))
2248 (synopsis "Assorted tools for Ruby")
2249 (description "Tins is a Ruby library providing assorted tools.")
2250 (home-page "https://github.com/flori/tins")
2251 (license license:expat)))
2253 (define-public ruby-gem-hadar
2255 (name "ruby-gem-hadar")
2259 (uri (rubygems-uri "gem_hadar" version))
2262 "1j8qri4m9wf8nbfv0kakrgsv2x8vg10914xgm6f69nw8zi3i39ws"))))
2263 (build-system ruby-build-system)
2264 ;; This gem needs itself at development time. We disable rebuilding of the
2265 ;; gemspec to avoid this loop.
2267 `(#:tests? #f ; there are no tests
2269 (modify-phases %standard-phases
2272 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2275 ("ruby-tins" ,ruby-tins)
2276 ("ruby-sdoc" ,ruby-sdoc)))
2278 `(("bundler" ,bundler)))
2279 (synopsis "Library for the development of Ruby gems")
2281 "This library contains some useful functionality to support the
2282 development of Ruby gems.")
2283 (home-page "https://github.com/flori/gem_hadar")
2284 (license license:expat)))
2286 (define-public ruby-minitest-tu-shim
2288 (name "ruby-minitest-tu-shim")
2292 (uri (rubygems-uri "minitest_tu_shim" version))
2295 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2296 (build-system ruby-build-system)
2299 (modify-phases %standard-phases
2300 (add-after 'unpack 'fix-test-include-path
2301 (lambda* (#:key inputs #:allow-other-keys)
2302 (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))
2303 (minitest-home (gem-home minitest
2304 ,(package-version ruby))))
2305 (substitute* "Rakefile"
2306 (("Hoe\\.add_include_dirs .*")
2307 (string-append "Hoe.add_include_dirs \""
2310 ,(package-version ruby-minitest-4)
2313 (add-before 'check 'fix-test-assumptions
2315 ;; The test output includes the file name, so a couple of tests
2316 ;; fail. Changing the regular expressions slightly fixes this
2318 (substitute* "test/test_mini_test.rb"
2319 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2320 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2321 (("gsub\\(/.*, 'FILE:LINE'\\)")
2322 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2325 `(("ruby-minitest-4" ,ruby-minitest-4)))
2327 `(("ruby-hoe" ,ruby-hoe)))
2328 (synopsis "Adapter library between minitest and test/unit")
2330 "This library bridges the gap between the small and fast minitest and
2331 Ruby's large and slower test/unit.")
2332 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2333 (license license:expat)))
2335 (define-public ruby-term-ansicolor
2337 (name "ruby-term-ansicolor")
2341 (uri (rubygems-uri "term-ansicolor" version))
2344 "0ydbbyjmk5p7fsi55ffnkq79jnfqx65c3nj8d9rpgl6sw85ahyys"))))
2345 (build-system ruby-build-system)
2346 ;; Rebuilding the gemspec seems to require git, even though this is not a
2347 ;; git repository, so we just build the gem from the existing gemspec.
2350 (modify-phases %standard-phases
2353 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2355 `(("ruby-tins" ,ruby-tins)))
2357 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2358 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2359 (synopsis "Ruby library to control the attributes of terminal output")
2361 "This Ruby library uses ANSI escape sequences to control the attributes
2362 of terminal output.")
2363 (home-page "http://flori.github.io/term-ansicolor/")
2364 ;; There is no mention of the "or later" clause.
2365 (license license:gpl2)))
2367 (define-public ruby-pstree
2369 (name "ruby-pstree")
2373 (uri (rubygems-uri "pstree" version))
2376 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2377 (build-system ruby-build-system)
2379 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2380 ("bundler" ,bundler)))
2381 (synopsis "Create a process tree data structure")
2383 "This library uses the output of the @code{ps} command to create a
2384 process tree data structure for the current host.")
2385 (home-page "http://flori.github.com/pstree")
2386 ;; There is no mention of the "or later" clause.
2387 (license license:gpl2)))
2389 (define-public ruby-utils
2395 (uri (rubygems-uri "utils" version))
2398 "0vycgscxf3s1xn4yyfsq54zlh082581ga8azybmqgc4pij6iz2cd"))))
2399 (build-system ruby-build-system)
2401 `(("ruby-tins" ,ruby-tins)
2402 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2403 ("ruby-pstree" ,ruby-pstree)
2404 ("ruby-pry-editline" ,ruby-pry-editline)))
2406 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2407 ("bundler" ,bundler)))
2408 (synopsis "Command line tools for working with Ruby")
2410 "This package provides assorted command line tools that may be useful
2411 when working with Ruby code.")
2412 (home-page "https://github.com/flori/utils")
2413 ;; There is no mention of the "or later" clause.
2414 (license license:gpl2)))
2416 (define-public ruby-json
2423 (uri (rubygems-uri "json" version))
2426 "1nsby6ry8l9xg3yw4adlhk2pnc7i0h0rznvcss4vk3v74qg0k8lc"))))
2427 (build-system ruby-build-system)
2428 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2429 (synopsis "JSON library for Ruby")
2430 (description "This Ruby library provides a JSON implementation written as
2431 a native C extension.")
2432 (home-page "http://json-jruby.rubyforge.org/")
2433 (license (list license:ruby license:gpl2)))) ; GPL2 only
2435 (define-public ruby-json-pure
2437 (name "ruby-json-pure")
2441 (uri (rubygems-uri "json_pure" version))
2444 "025aykr360x6dr1jmg8pmsrx7gr30pws4p1q686vnb48zyw1sc94"))))
2445 (build-system ruby-build-system)
2447 `(#:modules ((srfi srfi-1)
2450 (guix build ruby-build-system)
2453 (modify-phases %standard-phases
2454 (add-after 'unpack 'replace-git-ls-files
2456 ;; The existing gemspec file already contains a nice list of
2457 ;; files that belong to the gem. We extract the list from the
2458 ;; gemspec file and then replace the file list in the Rakefile to
2459 ;; get rid of the call to "git ls-files".
2460 (let* ((contents (call-with-input-file "json.gemspec" get-string-all))
2461 ;; Guile is unhappy about the #\nul characters in comments.
2462 (filtered (string-filter (lambda (char)
2463 (not (equal? #\nul char)))
2465 (files (match:substring
2466 (string-match " s\\.files = ([^]]+\\])" filtered) 1)))
2467 (substitute* "Rakefile"
2468 (("FileList\\[`git ls-files`\\.split\\(/\\\\n/\\)\\]")
2469 (string-append "FileList" files))))
2470 (substitute* "Gemfile"
2471 ((".*json-java.*") "\n"))
2474 `(("ruby-permutation" ,ruby-permutation)
2475 ("ruby-utils" ,ruby-utils)
2477 ("bundler" ,bundler)))
2478 (synopsis "JSON implementation in pure Ruby")
2480 "This package provides a JSON implementation written in pure Ruby.")
2481 (home-page "http://flori.github.com/json")
2482 (license license:ruby)))
2484 ;; Even though this package only provides bindings for a Mac OSX API it is
2485 ;; required by "ruby-listen" at runtime.
2486 (define-public ruby-rb-fsevent
2488 (name "ruby-rb-fsevent")
2492 (uri (rubygems-uri "rb-fsevent" version))
2495 "1hq57by28iv0ijz8pk9ynih0xdg7vnl1010xjcijfklrcv89a1j2"))))
2496 (build-system ruby-build-system)
2497 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
2498 ;; "listen", which needs "rb-fsevent" at runtime.
2499 (arguments `(#:tests? #f))
2500 (synopsis "FSEvents API with signals catching")
2502 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
2503 (home-page "https://rubygems.org/gems/rb-fsevent")
2504 (license license:expat)))
2506 (define-public ruby-listen
2508 (name "ruby-listen")
2513 (uri (rubygems-uri "listen" version))
2516 "10lhshjklxlrkw7999j0xl6sdxd4x32kiy8rp88jwr68kis5vq2b"))))
2517 (build-system ruby-build-system)
2518 (arguments '(#:tests? #f)) ; no tests
2520 `(("ruby-rb-inotify" ,ruby-rb-inotify)
2521 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
2522 (synopsis "Listen to file modifications")
2523 (description "The Listen gem listens to file modifications and notifies
2524 you about the changes.")
2525 (home-page "https://github.com/guard/listen")
2526 (license license:expat)))
2528 (define-public ruby-activesupport
2530 (name "ruby-activesupport")
2535 (uri (rubygems-uri "activesupport" version))
2538 "0k7zhnz0aw1ym8phs10r85f91ja45vsd058fm9v0h2k0igw12cpf"))))
2539 (build-system ruby-build-system)
2542 (modify-phases %standard-phases
2545 ;; There is no tests, instead attempt to load the library.
2546 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
2548 `(("ruby-concurrent" ,ruby-concurrent)
2549 ("ruby-i18n" ,ruby-i18n)
2550 ("ruby-minitest" ,ruby-minitest)
2551 ("ruby-tzinfo" ,ruby-tzinfo)
2552 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
2553 (synopsis "Ruby on Rails utility library")
2554 (description "ActiveSupport is a toolkit of support libraries and Ruby
2555 core extensions extracted from the Rails framework. It includes support for
2556 multibyte strings, internationalization, time zones, and testing.")
2557 (home-page "http://www.rubyonrails.org")
2558 (license license:expat)))
2560 (define-public ruby-crass
2566 (uri (rubygems-uri "crass" version))
2569 "1c377r8g7m58y22803iyjgqkkvnnii0pymskda1pardxrzaighj9"))))
2570 (build-system ruby-build-system)
2572 `(("bundler" ,bundler)
2573 ("ruby-minitest" ,ruby-minitest)))
2574 (synopsis "Pure Ruby CSS parser")
2576 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
2577 (home-page "https://github.com/rgrove/crass/")
2578 (license license:expat)))
2580 (define-public ruby-nokogumbo
2581 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
2583 (name "ruby-nokogumbo")
2584 (version (string-append "1.4.7-1." (string-take commit 8)))
2586 ;; We use the git reference, because there's no Rakefile in the
2587 ;; published gem and the tarball on Github is outdated.
2590 (url "https://github.com/rubys/nokogumbo.git")
2591 (commit "d56f954d20a")))
2592 (file-name (string-append name "-" version "-checkout"))
2595 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
2596 (build-system ruby-build-system)
2598 `(#:modules ((guix build ruby-build-system)
2602 (modify-phases %standard-phases
2603 (add-after 'unpack 'build-gemspec
2605 (substitute* "Rakefile"
2606 ;; Build Makefile even without a copy of gumbo-parser sources
2607 (("'gumbo-parser/src',") "")
2608 ;; We don't bundle gumbo-parser sources
2609 (("'gumbo-parser/src/\\*',") "")
2610 (("'gumbo-parser/visualc/include/\\*',") "")
2611 ;; The definition of SOURCES will be cut in gemspec, and
2612 ;; "FileList" will be undefined.
2613 (("SOURCES \\+ FileList\\[")
2614 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
2616 ;; Copy the Rakefile and cut out the gemspec.
2617 (copy-file "Rakefile" ".gemspec")
2618 (with-atomic-file-replacement ".gemspec"
2620 (let loop ((line (read-line in 'concat))
2622 (if (eof-object? line)
2624 (let ((skip-next? (if skipping?
2625 (not (string-prefix? "SPEC =" line))
2626 (string-prefix? "end" line))))
2627 (when (or (not skipping?)
2628 (and skipping? (not skip-next?)))
2629 (format #t "~a" line)
2631 (loop (read-line in 'concat) skip-next?))))))
2634 `(("gumbo-parser" ,gumbo-parser)))
2636 `(("ruby-nokogiri" ,ruby-nokogiri)))
2637 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
2639 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
2640 access the result as a Nokogiri parsed document.")
2641 (home-page "https://github.com/rubys/nokogumbo/")
2642 (license license:asl2.0))))
2644 (define-public ruby-sanitize
2646 (name "ruby-sanitize")
2650 ;; The gem does not include the Rakefile, so we download the
2651 ;; release tarball from Github.
2652 (uri (string-append "https://github.com/rgrove/"
2653 "sanitize/archive/v" version ".tar.gz"))
2654 (file-name (string-append name "-" version ".tar.gz"))
2657 "055xnj38l60gxnnng76kpy2l2jbrp0byjdyq17jw79w7l4b40znr"))))
2658 (build-system ruby-build-system)
2660 `(("ruby-crass" ,ruby-crass)
2661 ("ruby-nokogiri" ,ruby-nokogiri)
2662 ("ruby-nokogumbo" ,ruby-nokogumbo)))
2664 `(("bundler" ,bundler)
2665 ("ruby-minitest" ,ruby-minitest)
2666 ("ruby-redcarpet" ,ruby-redcarpet)
2667 ("ruby-yard" ,ruby-yard)))
2668 (synopsis "Whitelist-based HTML and CSS sanitizer")
2670 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
2671 acceptable elements, attributes, and CSS properties, Sanitize will remove all
2672 unacceptable HTML and/or CSS from a string.")
2673 (home-page "https://github.com/rgrove/sanitize/")
2674 (license license:expat)))
2676 (define-public ruby-ox
2683 (uri (rubygems-uri "ox" version))
2686 "00i11xd4ayh7349rhgskajfxn0qzkb74ab01217zix9qcapssxax"))))
2687 (build-system ruby-build-system)
2689 '(#:tests? #f)) ; no tests
2690 (synopsis "Optimized XML library for Ruby")
2692 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
2693 written as a native C extension. It was designed to be an alternative to
2694 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
2695 alternative to Marshal for Object serialization. ")
2696 (home-page "http://www.ohler.com/ox")
2697 (license license:expat)))
2699 (define-public ruby-redcloth
2701 (name "ruby-redcloth")
2705 (uri (rubygems-uri "RedCloth" version))
2708 "06pahxyrckhgb7alsxwhhlx1ib2xsx33793finj01jk8i054bkxl"))))
2709 (build-system ruby-build-system)
2711 `(#:tests? #f ; no tests
2713 (modify-phases %standard-phases
2714 ;; Redcloth has complicated rake tasks to build various versions for
2715 ;; multiple targets using RVM. We don't want this so we just use the
2716 ;; existing gemspec.
2719 (zero? (system* "gem" "build" "redcloth.gemspec"))))
2720 ;; Make sure that the "redcloth" executable finds required Ruby
2722 (add-after 'install 'wrap-bin-redcloth
2723 (lambda* (#:key outputs #:allow-other-keys)
2724 (wrap-program (string-append (assoc-ref outputs "out")
2726 `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
2729 `(("bundler" ,bundler)
2730 ("ruby-diff-lcs" ,ruby-diff-lcs)
2731 ("ruby-rspec-2" ,ruby-rspec-2)))
2732 (synopsis "Textile markup language parser for Ruby")
2734 "RedCloth is a Ruby parser for the Textile markup language.")
2735 (home-page "http://redcloth.org")
2736 (license license:expat)))
2738 (define-public ruby-pg
2745 (uri (rubygems-uri "pg" version))
2748 "1axxbf6ij1iqi3i1r3asvjc80b0py5bz0m2wy5kdi5xkrpr82kpf"))))
2749 (build-system ruby-build-system)
2751 '(#:test-target "spec"))
2753 `(("ruby-rake-compiler" ,ruby-rake-compiler)
2754 ("ruby-hoe" ,ruby-hoe)
2755 ("ruby-rspec" ,ruby-rspec)))
2757 `(("postgresql" ,postgresql)))
2758 (synopsis "Ruby interface to PostgreSQL")
2759 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
2760 with PostgreSQL 8.4 and later.")
2761 (home-page "https://bitbucket.org/ged/ruby-pg")
2762 (license license:ruby)))
2764 (define-public ruby-byebug
2766 (name "ruby-byebug")
2771 (uri (rubygems-uri "byebug" version))
2774 "0537h9qbhr6csahmzyn4lk1g5b2lcligbzd21gfy93nx9lbfdnzc"))))
2775 (build-system ruby-build-system)
2777 '(#:tests? #f)) ; no tests
2778 (synopsis "Debugger for Ruby 2")
2779 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
2780 TracePoint C API for execution control and the Debug Inspector C API for call
2781 stack navigation. The core component provides support that front-ends can
2782 build on. It provides breakpoint handling and bindings for stack frames among
2783 other things and it comes with a command line interface.")
2784 (home-page "http://github.com/deivid-rodriguez/byebug")
2785 (license license:bsd-2)))
2787 (define-public ruby-netrc
2793 (uri (rubygems-uri "netrc" version))
2796 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
2797 (build-system ruby-build-system)
2800 (modify-phases %standard-phases
2802 ;; There is no Rakefile and minitest can only run one file at once,
2803 ;; so we have to iterate over all test files.
2805 (and (map (lambda (file)
2806 (zero? (system* "ruby" "-Itest" file)))
2807 (find-files "./test" "test_.*\\.rb"))))))))
2809 `(("ruby-minitest" ,ruby-minitest)))
2810 (synopsis "Library to read and update netrc files")
2812 "This library can read and update netrc files, preserving formatting
2813 including comments and whitespace.")
2814 (home-page "https://github.com/geemus/netrc")
2815 (license license:expat)))
2817 (define-public ruby-unf-ext
2819 (name "ruby-unf-ext")
2823 (uri (rubygems-uri "unf_ext" version))
2826 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
2827 (build-system ruby-build-system)
2830 (modify-phases %standard-phases
2831 (add-after 'build 'build-ext
2832 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
2834 `(("bundler" ,bundler)
2835 ("ruby-rake-compiler" ,ruby-rake-compiler)
2836 ("ruby-test-unit" ,ruby-test-unit)))
2837 (synopsis "Unicode normalization form support library")
2839 "This package provides unicode normalization form support for Ruby.")
2840 (home-page "https://github.com/knu/ruby-unf_ext")
2841 (license license:expat)))
2843 (define-public ruby-tdiff
2849 (uri (rubygems-uri "tdiff" version))
2852 "0k41jbvn8qq4mgrixnhlk742b971d136i8wpbcv2cczvi22xpc86"))))
2853 (build-system ruby-build-system)
2855 `(("ruby-rspec-2" ,ruby-rspec-2)
2856 ("ruby-yard" ,ruby-yard)
2857 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2858 (synopsis "Calculate the differences between two tree-like structures")
2860 "This library provides functions to calculate the differences between two
2861 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
2862 (home-page "https://github.com/postmodern/tdiff")
2863 (license license:expat)))
2865 (define-public ruby-nokogiri-diff
2867 (name "ruby-nokogiri-diff")
2871 (uri (rubygems-uri "nokogiri-diff" version))
2874 "0njr1s42war0bj1axb2psjvk49l74a8wzr799wckqqdcb6n51lc1"))))
2875 (build-system ruby-build-system)
2877 `(("ruby-tdiff" ,ruby-tdiff)
2878 ("ruby-nokogiri" ,ruby-nokogiri)))
2880 `(("ruby-rspec-2" ,ruby-rspec-2)
2881 ("ruby-yard" ,ruby-yard)
2882 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2883 (synopsis "Calculate the differences between two XML/HTML documents")
2885 "@code{Nokogiri::Diff} adds the ability to calculate the
2886 differences (added or removed nodes) between two XML/HTML documents.")
2887 (home-page "https://github.com/postmodern/nokogiri-diff")
2888 (license license:expat)))
2890 (define-public ruby-rack
2897 ;; Download from GitHub so that the patch can be applied.
2899 "https://github.com/rack/rack/archive/"
2902 (file-name (string-append name "-" version ".tar.gz"))
2905 "00k62v8lpyjzghkn0h0awrnqj1jmlcs2wp57py27m43y65v89cp3"))
2906 ;; Ignore test which fails inside the build environment but works
2908 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
2909 (build-system ruby-build-system)
2912 (modify-phases %standard-phases
2913 (add-before 'check 'fix-tests
2915 ;; A few of the tests use the length of a file on disk for
2916 ;; Content-Length and Content-Range headers. However, this file
2917 ;; has a shebang in it which an earlier phase patches, growing
2918 ;; the file size from 193 to 239 bytes when the store prefix is
2920 (let ((size-diff (- (string-length (which "ruby"))
2921 (string-length "/usr/bin/env ruby"))))
2922 (substitute* '("test/spec_file.rb")
2924 (number->string (+ 193 size-diff)))
2925 (("bytes(.)22-33" all delimiter)
2926 (string-append "bytes"
2928 (number->string (+ 22 size-diff))
2930 (number->string (+ 33 size-diff))))))
2933 `(("ruby-minitest" ,ruby-minitest)
2934 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
2937 `(("ruby-concurrent" ,ruby-concurrent)))
2938 (synopsis "Unified web application interface for Ruby")
2939 (description "Rack provides a minimal, modular and adaptable interface for
2940 developing web applications in Ruby. By wrapping HTTP requests and responses,
2941 it unifies the API for web servers, web frameworks, and software in between
2942 into a single method call.")
2943 (home-page "http://rack.github.io/")
2944 (license license:expat)))
2946 (define-public ruby-docile
2948 (name "ruby-docile")
2953 (uri (rubygems-uri "docile" version))
2956 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
2957 (build-system ruby-build-system)
2959 '(#:tests? #f)) ; needs github-markup, among others
2960 (synopsis "Ruby EDSL helper library")
2961 (description "Docile is a Ruby library that provides an interface for
2962 creating embedded domain specific languages (EDSLs) that manipulate existing
2964 (home-page "https://ms-ati.github.io/docile/")
2965 (license license:expat)))
2967 (define-public ruby-gherkin
2969 (name "ruby-gherkin")
2974 (uri (rubygems-uri "gherkin" version))
2977 "1ripjv97hg746xszx9isal8z8vrlb98asc2rdxl291b3hr6pj0pr"))))
2978 (build-system ruby-build-system)
2980 `(("bundler" ,bundler)))
2982 '(#:tests? #f)) ; needs simplecov, among others
2983 (synopsis "Gherkin parser for Ruby")
2984 (description "Gherkin is a parser and compiler for the Gherkin language.
2985 It is intended be used by all Cucumber implementations to parse '.feature'
2987 (home-page "https://github.com/cucumber/gherkin3")
2988 (license license:expat)))
2990 (define-public ruby-cucumber-core
2992 (name "ruby-cucumber-core")
2997 (uri (rubygems-uri "cucumber-core" version))
3000 "0qj2fsqvp94nggnikbnrfvnmzr1pl6ifmdsxj69kdw1kkab30jjr"))))
3001 (build-system ruby-build-system)
3003 `(("ruby-gherkin" ,ruby-gherkin)))
3005 `(("bundler" ,bundler)))
3007 '(#:tests? #f)) ; needs simplecov, among others
3008 (synopsis "Core library for the Cucumber BDD app")
3009 (description "Cucumber is a tool for running automated tests
3010 written in plain language. Because they're written in plain language,
3011 they can be read by anyone on your team. Because they can be read by
3012 anyone, you can use them to help improve communication, collaboration
3013 and trust on your team.")
3014 (home-page "https://cucumber.io/")
3015 (license license:expat)))
3017 (define-public ruby-bio-logger
3019 (name "ruby-bio-logger")
3024 (uri (rubygems-uri "bio-logger" version))
3027 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3028 (build-system ruby-build-system)
3030 `(#:tests? #f)) ; rake errors, missing shoulda
3032 `(("ruby-log4r" ,ruby-log4r)))
3033 (synopsis "Log4r wrapper for Ruby")
3034 (description "Bio-logger is a wrapper around Log4r adding extra logging
3035 features such as filtering and fine grained logging.")
3036 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3037 (license license:expat)))
3039 (define-public ruby-yard
3046 ;; Tests do not pass if we build from the distributed gem.
3047 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3049 (file-name (string-append name "-" version ".tar.gz"))
3052 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3053 (build-system ruby-build-system)
3056 (modify-phases %standard-phases
3059 ;; $HOME needs to be set to somewhere writeable for tests to run
3060 (setenv "HOME" "/tmp")
3061 ;; Run tests without using 'rake' to avoid dependencies.
3062 (zero? (system* "rspec")))))))
3064 `(("ruby-rspec" ,ruby-rspec)
3065 ("ruby-rack" ,ruby-rack)))
3066 (synopsis "Documentation generation tool for Ruby")
3068 "YARD is a documentation generation tool for the Ruby programming
3069 language. It enables the user to generate consistent, usable documentation
3070 that can be exported to a number of formats very easily, and also supports
3071 extending for custom Ruby constructs such as custom class level definitions.")
3072 (home-page "http://yardoc.org")
3073 (license license:expat)))
3075 (define-public ruby-clap
3081 (uri (rubygems-uri "clap" version))
3084 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3085 (build-system ruby-build-system)
3086 ;; Clap needs cutest for running tests, but cutest needs clap.
3087 (arguments `(#:tests? #f))
3088 (synopsis "Command line argument parsing for simple applications")
3090 "Clap provides command line argument parsing features. It covers the
3091 simple case of executing code based on the flags or parameters passed.")
3092 (home-page "https://github.com/djanowski/cutest")
3093 (license license:expat)))
3095 (define-public ruby-cutest
3097 (name "ruby-cutest")
3101 (uri (rubygems-uri "cutest" version))
3104 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3105 (build-system ruby-build-system)
3107 `(("ruby-clap" ,ruby-clap)))
3108 (synopsis "Run tests in separate processes")
3110 "Cutest runs tests in separate processes to avoid shared state.")
3111 (home-page "https://github.com/djanowski/cutest")
3112 (license license:expat)))
3114 (define-public ruby-pygmentize
3116 (name "ruby-pygmentize")
3120 (uri (rubygems-uri "pygmentize" version))
3123 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3124 (build-system ruby-build-system)
3127 (modify-phases %standard-phases
3128 (add-after 'unpack 'fix-pygmentize-path
3130 (substitute* "lib/pygmentize.rb"
3131 (("\"/usr/bin/env python.*")
3132 (string-append "\"" (which "pygmentize") "\"\n")))
3134 (add-after 'build 'do-not-use-vendor-directory
3136 ;; Remove bundled pygments sources
3137 ;; FIXME: ruby-build-system does not support snippets.
3138 (delete-file-recursively "vendor")
3139 (substitute* "pygmentize.gemspec"
3140 (("\"vendor/\\*\\*/\\*\",") ""))
3143 `(("pygments" ,python-pygments)))
3145 `(("ruby-cutest" ,ruby-cutest)
3146 ("ruby-nokogiri" ,ruby-nokogiri)))
3147 (synopsis "Thin Ruby wrapper around pygmentize")
3149 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3151 (home-page "https://github.com/djanowski/pygmentize")
3152 (license license:expat)))
3154 (define-public ruby-eventmachine
3156 (name "ruby-eventmachine")
3161 (uri (rubygems-uri "eventmachine" version))
3164 "1frvpk3p73xc64qkn0ymll3flvn4xcycq5yx8a43zd3gyzc1ifjp"))))
3165 (build-system ruby-build-system)
3167 '(#:tests? #f)) ; test suite tries to connect to google.com
3169 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3170 (synopsis "Single-threaded network event framework for Ruby")
3172 "EventMachine implements a single-threaded engine for arbitrary network
3173 communications. EventMachine wraps all interactions with sockets, allowing
3174 programs to concentrate on the implementation of network protocols. It can be
3175 used to create both network servers and clients.")
3176 (home-page "http://rubyeventmachine.com")
3177 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
3179 (define-public ruby-turn
3186 (uri (rubygems-uri "turn" version))
3189 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3190 (build-system ruby-build-system)
3193 (modify-phases %standard-phases
3194 ;; Tests fail because turn changes its environment so can no longer
3195 ;; find test/unit. Instead simply test if the executable runs
3199 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3201 `(("ruby-ansi" ,ruby-ansi)
3202 ("ruby-minitest" ,ruby-minitest-4)))
3203 (synopsis "Alternate set of alternative runners for MiniTest")
3205 "TURN provides a set of alternative runners for MiniTest which are both
3206 colorful and informative. TURN displays each test on a separate line with
3207 failures being displayed immediately instead of at the end of the tests. Note
3208 that TURN is no longer being maintained.")
3209 (home-page "http://rubygems.org/gems/turn")
3210 (license license:expat)))
3212 (define-public ruby-mime-types-data
3214 (name "ruby-mime-types-data")
3215 (version "3.2016.0521")
3219 (uri (rubygems-uri "mime-types-data" version))
3222 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
3223 (build-system ruby-build-system)
3225 `(("ruby-hoe" ,ruby-hoe)))
3226 (synopsis "Registry for information about MIME media type definitions")
3228 "@code{mime-types-data} provides a registry for information about
3229 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3230 be used with the Ruby mime-types library or other software to determine
3231 defined filename extensions for MIME types, or to use filename extensions to
3232 look up the likely MIME type definitions.")
3233 (home-page "https://github.com/mime-types/mime-types-data/")
3234 (license license:expat)))
3236 (define-public ruby-mime-types
3238 (name "ruby-mime-types")
3243 (uri (rubygems-uri "mime-types" version))
3246 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
3247 (build-system ruby-build-system)
3249 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3251 `(("ruby-hoe" ,ruby-hoe)
3252 ("ruby-fivemat" ,ruby-fivemat)
3253 ("ruby-minitest-focus" ,ruby-minitest-focus)
3254 ("ruby-minitest-rg" ,ruby-minitest-rg)
3255 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3256 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
3257 (synopsis "Library and registry for MIME content type definitions")
3258 (description "The mime-types library provides a library and registry for
3259 information about Multipurpose Internet Mail Extensions (MIME) content type
3260 definitions. It can be used to determine defined filename extensions for MIME
3261 types, or to use filename extensions to look up the likely MIME type
3263 (home-page "https://github.com/mime-types/ruby-mime-types")
3264 (license license:expat)))
3266 (define-public ruby-fivemat
3268 (name "ruby-fivemat")
3273 (uri (rubygems-uri "fivemat" version))
3276 "1gvw6g4yc96l2pcyvigahyfsjxpdjx21iiwzvf965zippchdh6gk"))))
3277 (build-system ruby-build-system)
3279 `(#:tests? #f)) ; no tests
3280 (synopsis "Each test file given its own line of dots")
3282 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3283 its own line of dots during testing. It aims to provide test output that is
3284 neither too verbose nor too minimal.")
3285 (home-page "https://github.com/tpope/fivemat")
3286 (license license:expat)))
3288 (define-public ruby-sqlite3
3290 (name "ruby-sqlite3")
3295 (uri (rubygems-uri "sqlite3" version))
3298 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
3299 (build-system ruby-build-system)
3302 (modify-phases %standard-phases
3303 (add-before 'check 'add-gemtest-file
3304 ;; This file exists in the repository but is not distributed.
3305 (lambda _ (zero? (system* "touch" ".gemtest")))))))
3307 `(("sqlite" ,sqlite)))
3309 `(("ruby-hoe" ,ruby-hoe)
3310 ("ruby-rake-compiler" ,ruby-rake-compiler)
3311 ("ruby-mini-portile" ,ruby-mini-portile)))
3312 (synopsis "Interface with SQLite3 databases")
3314 "This module allows Ruby programs to interface with the SQLite3 database
3317 "https://github.com/sparklemotion/sqlite3-ruby")
3318 (license license:bsd-3)))
3320 (define-public ruby-shoulda-context
3322 (name "ruby-shoulda-context")
3327 (uri (rubygems-uri "shoulda-context" version))
3330 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
3331 (build-system ruby-build-system)
3334 (modify-phases %standard-phases
3337 ;; Do not run tests to avoid circular dependence with rails.
3338 ;; Instead just import the library to test.
3339 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
3340 (synopsis "Test::Unit context framework extracted from Shoulda")
3342 "@code{shoulda-context} is the context framework extracted from Shoulda.
3343 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
3344 context, setup, and should blocks combine to produce natural test method
3346 (home-page "https://github.com/thoughtbot/shoulda-context")
3347 (license license:expat)))
3349 (define-public ruby-shoulda-matchers
3351 (name "ruby-shoulda-matchers")
3356 (uri (rubygems-uri "shoulda-matchers" version))
3359 "1cf6d2d9br82vylr9p362yk9cfrd14jz8v77n0yb0lbcxdbk7xzq"))))
3360 (build-system ruby-build-system)
3363 (modify-phases %standard-phases
3366 ;; Do not run tests to avoid circular dependence with rails. Instead
3367 ;; just import the library to test.
3368 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
3370 `(("ruby-activesupport" ,ruby-activesupport)))
3371 (synopsis "Collection of testing matchers extracted from Shoulda")
3373 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
3374 test common Rails functionality. These tests would otherwise be much longer,
3375 more complex, and error-prone.")
3376 (home-page "https://github.com/thoughtbot/shoulda-matchers")
3377 (license license:expat)))
3379 (define-public ruby-shoulda-matchers-2
3381 (inherit ruby-shoulda-matchers)
3385 (uri (rubygems-uri "shoulda-matchers" version))
3388 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
3390 (define-public ruby-shoulda
3392 (name "ruby-shoulda")
3397 (uri (rubygems-uri "shoulda" version))
3400 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
3401 (build-system ruby-build-system)
3404 (modify-phases %standard-phases
3406 ;; Don't run tests to avoid circular dependence with rails. Instead
3407 ;; just import the library to test.
3408 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
3410 `(("ruby-shoulda-context" ,ruby-shoulda-context)
3411 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
3412 (synopsis "Context framework and matchers for testing")
3414 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
3415 @code{shoulda-matchers} providing tools for writing tests.")
3416 (home-page "https://github.com/thoughtbot/shoulda")
3417 (license license:expat)))
3419 (define-public ruby-unf
3426 (uri (rubygems-uri "unf" version))
3429 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
3430 (build-system ruby-build-system)
3433 (modify-phases %standard-phases
3434 (add-before 'check 'add-dependency-to-bundler
3436 ;; test-unit is required but not provided by the bundler
3437 ;; environment. This is fixed in the upstream repository but fix
3438 ;; has not been released.
3439 (substitute* "Gemfile"
3440 (("^gemspec") "gem 'test-unit'\ngemspec"))
3443 `(("ruby-unf-ext" ,ruby-unf-ext)))
3445 `(("ruby-shoulda" ,ruby-shoulda)
3446 ("bundler" ,bundler)
3447 ("ruby-test-unit" ,ruby-test-unit)))
3448 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
3450 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
3451 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
3452 @code{java.text.Normalizer} on JRuby.")
3453 (home-page "https://github.com/knu/ruby-unf")
3454 (license license:bsd-2)))
3456 (define-public ruby-domain-name
3458 (name "ruby-domain-name")
3459 (version "0.5.20161021")
3463 (uri (rubygems-uri "domain_name" version))
3466 "1y5c96gzyh6z4nrnkisljqngfvljdba36dww657ka0x7khzvx7jl"))))
3467 (build-system ruby-build-system)
3470 (modify-phases %standard-phases
3471 (add-before 'check 'fix-versions
3473 ;; Fix NameError that appears to already be fixed upstream.
3474 (substitute* "Rakefile"
3475 (("DomainName::VERSION")
3476 "Bundler::GemHelper.gemspec.version"))
3477 ;; Loosen unnecessarily strict test-unit version specification.
3478 (substitute* "domain_name.gemspec"
3479 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
3482 `(("ruby-unf" ,ruby-unf)))
3484 `(("ruby-shoulda" ,ruby-shoulda)
3485 ("bundler" ,bundler)
3486 ("ruby-test-unit" ,ruby-test-unit)))
3487 (synopsis "Domain name manipulation library")
3489 "@code{domain_name} is a Domain name manipulation library. It parses a
3490 domain name ready for extracting the registered domain and TLD (Top Level
3491 Domain). It can also be used for cookie domain validation based on the Public
3493 (home-page "https://github.com/knu/ruby-domain_name")
3494 (license license:bsd-2)))
3496 (define-public ruby-http-cookie
3498 (name "ruby-http-cookie")
3503 (uri (rubygems-uri "http-cookie" version))
3506 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
3507 (build-system ruby-build-system)
3510 (modify-phases %standard-phases
3511 (add-before 'check 'add-dependency-to-bundler
3514 (substitute* "Rakefile"
3515 (("HTTP::Cookie::VERSION")
3516 "Bundler::GemHelper.gemspec.version"))
3519 `(("ruby-domain-name" ,ruby-domain-name)))
3521 `(("rubysimplecov" ,ruby-simplecov)
3522 ("bundler" ,bundler)
3523 ("ruby-sqlite3" ,ruby-sqlite3)
3524 ("ruby-test-unit" ,ruby-test-unit)))
3525 (synopsis "Handle HTTP Cookies based on RFC 6265")
3527 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
3528 RFC 6265. It has been designed with security, standards compliance and
3529 compatibility in mind, to behave just the same as today's major web browsers.
3530 It has built-in support for the legacy @code{cookies.txt} and
3531 @code{cookies.sqlite} formats of Mozilla Firefox.")
3532 (home-page "https://github.com/sparklemotion/http-cookie")
3533 (license license:expat)))
3535 (define-public ruby-ansi
3542 ;; Fetch from GitHub as the gem does not contain testing code.
3543 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
3545 (file-name (string-append name "-" version ".tar.gz"))
3548 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
3549 (build-system ruby-build-system)
3552 (modify-phases %standard-phases
3553 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
3554 ;; cycle ansi, qed, ansi. Instead simply test that the library can
3558 (zero? (system* "ruby" "-Ilib" "-r" "ansi")))))))
3559 (synopsis "ANSI escape code related libraries")
3561 "This package is a collection of ANSI escape code related libraries
3562 enabling ANSI colorization and stylization of console output. Included in the
3563 library are the @code{Code} module, which defines ANSI codes as constants and
3564 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
3565 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
3566 @code{Terminal} module which provides information about the current output
3568 (home-page "http://rubyworks.github.io/ansi")
3569 (license license:bsd-2)))
3571 (define-public ruby-systemu
3573 (name "ruby-systemu")
3578 (uri (rubygems-uri "systemu" version))
3581 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
3582 (build-system ruby-build-system)
3585 (modify-phases %standard-phases
3586 (add-before 'check 'set-version
3588 (setenv "VERSION" ,version)
3590 (synopsis "Capture of stdout/stderr and handling of child processes")
3592 "Systemu can be used on any platform to return status, stdout, and stderr
3593 of any command. Unlike other methods like @code{open3} and @code{popen4}
3594 there is no danger of full pipes or threading issues hanging your process or
3596 (home-page "https://github.com/ahoward/systemu")
3597 (license license:ruby)))
3599 (define-public ruby-bio-commandeer
3601 (name "ruby-bio-commandeer")
3606 (uri (rubygems-uri "bio-commandeer" version))
3609 "0lin6l99ldqqjc90l9ihcrv882c4xgbgqm16jqkdy6jf955jd9a8"))))
3610 (build-system ruby-build-system)
3613 (modify-phases %standard-phases
3615 ;; Run test without calling 'rake' so that jeweler is
3616 ;; not required as an input.
3618 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
3620 `(("ruby-bio-logger" ,ruby-bio-logger)
3621 ("ruby-systemu" ,ruby-systemu)))
3623 `(("bundler" ,bundler)
3624 ("ruby-rspec" ,ruby-rspec)))
3625 (synopsis "Simplified running of shell commands from within Ruby")
3627 "Bio-commandeer provides an opinionated method of running shell commands
3628 from within Ruby. The advantage of bio-commandeer over other methods of
3629 running external commands is that when something goes wrong, messages printed
3630 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
3631 detail to ease debugging.")
3632 (home-page "http://github.com/wwood/bioruby-commandeer")
3633 (license license:expat)))
3635 (define-public ruby-rubytest
3637 (name "ruby-rubytest")
3642 (uri (rubygems-uri "rubytest" version))
3645 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
3646 (build-system ruby-build-system)
3648 ;; Disable regular testing to break the cycle rubytest, qed, brass,
3649 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
3650 ;; simply test that the library can be require'd.
3652 (modify-phases %standard-phases
3655 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
3657 `(("ruby-ansi" ,ruby-ansi)))
3658 (synopsis "Universal test harness for Ruby")
3660 "Rubytest is a testing meta-framework for Ruby. It can handle any
3661 compliant test framework and can run tests from multiple frameworks in a
3663 (home-page "http://rubyworks.github.io/rubytest")
3664 (license license:bsd-2)))
3666 (define-public ruby-brass
3673 (uri (rubygems-uri "brass" version))
3676 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
3677 (build-system ruby-build-system)
3679 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
3680 ;; Instead simply test that the library can be require'd.
3682 (modify-phases %standard-phases
3685 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
3686 (synopsis "Basic foundational assertions framework")
3688 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
3689 foundational assertions framework for other assertion and test frameworks to
3691 (home-page "http://rubyworks.github.io/brass")
3692 (license license:bsd-2)))
3694 (define-public ruby-qed
3701 (uri (rubygems-uri "qed" version))
3704 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
3705 (build-system ruby-build-system)
3707 ;; Disable testing to break the cycle qed, ansi, qed, among others.
3708 ;; Instead simply test that the executable runs using --copyright.
3710 (modify-phases %standard-phases
3713 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
3715 `(("ruby-ansi" ,ruby-ansi)
3716 ("ruby-brass" ,ruby-brass)))
3717 (synopsis "Test framework utilizing literate programming techniques")
3719 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
3720 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
3721 Development} (BDD) utilizing Literate Programming techniques. QED sits
3722 somewhere between lower-level testing tools like @code{Test::Unit} and
3723 requirement specifications systems like Cucumber.")
3724 (home-page "http://rubyworks.github.io/qed")
3725 (license license:bsd-2)))
3727 (define-public ruby-ae
3734 ;; Fetch from github so tests are included.
3736 "https://github.com/rubyworks/ae/archive/"
3738 (file-name (string-append name "-" version ".tar.gz"))
3741 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
3742 (build-system ruby-build-system)
3745 (modify-phases %standard-phases
3747 (lambda _ (zero? (system* "qed")))))))
3749 `(("ruby-ansi" ,ruby-ansi)))
3751 `(("ruby-qed" ,ruby-qed)))
3752 (synopsis "Assertions library")
3754 "Assertive Expressive (AE) is an assertions library specifically designed
3755 for reuse by other test frameworks.")
3756 (home-page "http://rubyworks.github.io/ae")
3757 (license license:bsd-2)))
3759 (define-public ruby-lemon
3766 (uri (rubygems-uri "lemon" version))
3769 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
3770 (build-system ruby-build-system)
3773 (modify-phases %standard-phases
3774 (replace 'check (lambda _ (zero? (system* "qed")))))))
3776 `(("ruby-ae" ,ruby-ae)
3777 ("ruby-ansi" ,ruby-ansi)
3778 ("ruby-rubytest" ,ruby-rubytest)))
3780 `(("ruby-qed" ,ruby-qed)))
3781 (synopsis "Test framework correlating code structure and test unit")
3783 "Lemon is a unit testing framework that enforces highly formal
3784 case-to-class and unit-to-method test construction. This enforcement can help
3785 focus concern on individual units of behavior.")
3786 (home-page "http://rubyworks.github.io/lemon")
3787 (license license:bsd-2)))
3789 (define-public ruby-rubytest-cli
3791 (name "ruby-rubytest-cli")
3796 (uri (rubygems-uri "rubytest-cli" version))
3799 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
3800 (build-system ruby-build-system)
3802 `(#:tests? #f)) ; no tests
3804 `(("ruby-ansi" ,ruby-ansi)
3805 ("ruby-rubytest" ,ruby-rubytest)))
3806 (synopsis "Command-line interface for rubytest")
3808 "Rubytest CLI is a command-line interface for running tests for
3809 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
3810 (home-page "http://rubyworks.github.io/rubytest-cli")
3811 (license license:bsd-2)))
3813 (define-public ruby-hashery
3815 (name "ruby-hashery")
3820 (uri (rubygems-uri "hashery" version))
3823 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
3824 (build-system ruby-build-system)
3827 (modify-phases %standard-phases
3830 (and (zero? (system* "qed"))
3831 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
3833 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
3834 ("ruby-qed" ,ruby-qed)
3835 ("ruby-lemon" ,ruby-lemon)))
3836 (synopsis "Hash-like classes with extra features")
3838 "The Hashery is a tight collection of @code{Hash}-like classes.
3839 Included are the auto-sorting @code{Dictionary} class, the efficient
3840 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
3841 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
3842 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
3843 standard @code{Hash} making it possible to subclass and augment to fit any
3844 specific use case.")
3845 (home-page "http://rubyworks.github.io/hashery")
3846 (license license:bsd-2)))
3848 (define-public ruby-rc4
3855 (uri (rubygems-uri "ruby-rc4" version))
3858 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
3859 (build-system ruby-build-system)
3862 (modify-phases %standard-phases
3865 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
3867 `(("ruby-rspec" ,ruby-rspec-2)))
3868 (synopsis "Implementation of the RC4 algorithm")
3870 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
3871 (home-page "https://github.com/caiges/Ruby-RC4")
3872 (license license:expat)))
3874 (define-public ruby-afm
3881 (uri (rubygems-uri "afm" version))
3884 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
3885 (build-system ruby-build-system)
3887 `(("bundler" ,bundler)))
3888 (synopsis "Read Adobe Font Metrics (afm) files")
3890 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
3891 files and use the data therein.")
3892 (home-page "http://github.com/halfbyte/afm")
3893 (license license:expat)))
3895 (define-public ruby-ascii85
3897 (name "ruby-ascii85")
3902 (uri (rubygems-uri "Ascii85" version))
3905 "0j95sbxd18kc8rhcnvl1w37kflqpax1r12h1x47gh4xxn3mz4m7q"))))
3906 (build-system ruby-build-system)
3908 `(("bundler" ,bundler)))
3909 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
3911 "This library provides methods to encode and decode Ascii85
3912 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
3913 @dfn{Portable Document Format} (PDF) file formats.")
3914 (home-page "https://github.com/datawraith/ascii85gem")
3915 (license license:expat)))
3917 (define-public ruby-ttfunk
3919 (name "ruby-ttfunk")
3924 ;; fetch from github as the gem does not contain testing code
3926 "https://github.com/prawnpdf/ttfunk/archive/"
3928 (file-name (string-append name "-" version ".tar.gz"))
3931 "1izq84pnm9niyvkzp8k0vl232q9zj41hwmp9na9fzycfh1pbnsl6"))))
3932 (build-system ruby-build-system)
3934 `(#:test-target "spec"
3936 (modify-phases %standard-phases
3937 (add-before 'check 'remove-rubocop
3939 ;; remove rubocop as a dependency as not needed for testing
3940 (substitute* "ttfunk.gemspec"
3941 (("spec.add_development_dependency\\('rubocop'.*") ""))
3942 (substitute* "Rakefile"
3943 (("require 'rubocop/rake_task'") "")
3944 (("Rubocop::RakeTask.new") ""))
3947 `(("ruby-rspec" ,ruby-rspec)
3948 ("bundler" ,bundler)))
3949 (synopsis "Font metrics parser for the Prawn PDF generator")
3951 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
3952 part of the Prawn PDF generator.")
3953 (home-page "https://github.com/prawnpdf/ttfunk")
3954 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
3956 (license (list license:gpl2 license:gpl3 license:ruby))))
3958 (define-public ruby-puma
3965 ;; Fetch from GitHub because distributed gem does not contain tests.
3966 (uri (string-append "https://github.com/puma/puma/archive/v"
3968 (file-name (string-append name "-" version ".tar.gz"))
3971 "08aws79n9slcr50d9lwm011cp1pxvr1409c2jmyjxywvrc0a30v1"))
3972 ;; Ignore broken tests reported upstream.
3973 ;; https://github.com/puma/puma/issues/995
3974 ;; https://github.com/puma/puma/issues/1044
3975 (patches (search-patches "ruby-puma-ignore-broken-test.patch"))))
3976 (build-system ruby-build-system)
3979 (modify-phases %standard-phases
3980 (add-after 'unpack 'delete-integration-tests
3982 ;; One broken test in this file cannot be easily removed in
3983 ;; isolation, it probably causes race conditions. So we delete
3985 (delete-file "test/test_integration.rb")
3987 (add-before 'build 'fix-gemspec
3989 (substitute* "puma.gemspec"
3990 (("git ls-files") "find * |sort"))
3993 `(("ruby-hoe" ,ruby-hoe)
3994 ("ruby-rake-compiler" ,ruby-rake-compiler)
3995 ("ruby-hoe-git" ,ruby-hoe-git)
3996 ("ruby-rack" ,ruby-rack)))
3997 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
3999 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4000 for Ruby/Rack applications. Puma is intended for use in both development and
4001 production environments. In order to get the best throughput, it is highly
4002 recommended that you use a Ruby implementation with real threads like Rubinius
4004 (home-page "http://puma.io")
4005 (license license:expat)))
4007 (define-public ruby-hoe-git
4009 (name "ruby-hoe-git")
4014 (uri (rubygems-uri "hoe-git" version))
4017 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4018 (build-system ruby-build-system)
4020 `(("ruby-hoe" ,ruby-hoe)
4022 (synopsis "Hoe plugins for tighter Git integration")
4024 "This package provides a set of Hoe plugins for tighter Git integration.
4025 It provides tasks to automate release tagging and pushing and changelog
4027 (home-page "http://github.com/jbarnette/hoe-git")
4028 (license license:expat)))
4030 (define-public ruby-sequel
4032 (name "ruby-sequel")
4037 (uri (rubygems-uri "sequel" version))
4040 "0r39dv3yprai0cy7hslfxswjr4fg783xwxskmbih8ry24f18lbk0"))))
4041 (build-system ruby-build-system)
4043 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4044 (synopsis "Database toolkit for Ruby")
4045 (description "Sequel provides thread safety, connection pooling and a
4046 concise DSL for constructing SQL queries and table schemas. It includes a
4047 comprehensive ORM layer for mapping records to Ruby objects and handling
4048 associated records.")
4049 (home-page "http://sequel.jeremyevans.net")
4050 (license license:expat)))
4052 (define-public ruby-timecop
4054 (name "ruby-timecop")
4059 (uri (rubygems-uri "timecop" version))
4062 "0vwbkwqyxhavzvr1820hqwz43ylnfcf6w4x6sag0nghi44sr9kmx"))))
4063 (build-system ruby-build-system)
4066 (modify-phases %standard-phases
4067 (add-before 'check 'set-check-rubylib
4069 ;; Set RUBYLIB so timecop tests finds its own lib.
4070 (setenv "RUBYLIB" "lib")
4073 `(("bundler" ,bundler)
4074 ("ruby-minitest-rg" ,ruby-minitest-rg)
4075 ("ruby-mocha" ,ruby-mocha)
4076 ("ruby-activesupport" ,ruby-activesupport)))
4077 (synopsis "Test mocks for time-dependent functions")
4079 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4080 making it easier to test time-dependent code. It provides a unified method to
4081 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4083 (home-page "https://github.com/travisjeffery/timecop")
4084 (license license:expat)))
4086 (define-public ruby-concurrent
4088 (name "ruby-concurrent")
4093 ;; Download from GitHub because the rubygems version does not contain
4096 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4099 (file-name (string-append name "-" version ".tar.gz"))
4102 "1x3g2admp14ykwfxidsicqbhlfsnxh9wyc806np4i15hws4if1d8"))
4103 ;; Exclude failing test reported at
4104 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4105 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"))))
4106 (build-system ruby-build-system)
4108 `(#:test-target "spec"
4110 (modify-phases %standard-phases
4111 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
4113 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4115 (delete-file "concurrent-ruby-edge.gemspec")
4116 (delete-file "concurrent-ruby-ext.gemspec")
4118 (add-before 'build 'replace-git-ls-files2
4120 (substitute* "support/file_map.rb"
4121 (("git ls-files") "find * |sort"))
4123 (add-before 'check 'rake-compile
4124 ;; Fix the test error described at
4125 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
4126 (lambda _ (zero? (system* "rake" "compile"))))
4127 (add-before 'check 'remove-timecop-dependency
4128 ;; Remove timecop-dependent tests as having timecop as a depedency
4129 ;; causes circular depedencies.
4131 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4132 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4135 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4136 ("ruby-rspec" ,ruby-rspec)))
4137 (synopsis "Concurrency tools for Ruby")
4139 "This library provides modern concurrency tools including agents,
4140 futures, promises, thread pools, actors, supervisors, and more. It is
4141 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4143 (home-page "http://www.concurrent-ruby.com")
4144 (license license:expat)))
4146 (define-public ruby-pkg-config
4148 (name "ruby-pkg-config")
4153 (uri (rubygems-uri "pkg-config" version))
4156 "0lljiqnm0b4z6iy87lzapwrdfa6ps63x2z5zbs038iig8dqx2g0z"))))
4157 (build-system ruby-build-system)
4159 ;; Tests require extra files not included in the gem.
4161 (synopsis "Detect libraries for compiling Ruby native extensions")
4163 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4164 libraries for compiling Ruby native extensions.")
4165 (home-page "https://github.com/ruby-gnome2/pkg-config")
4166 (license license:lgpl2.0+)))
4168 (define-public ruby-net-http-digest-auth
4170 (name "ruby-net-http-digest-auth")
4175 (uri (rubygems-uri "net-http-digest_auth" version))
4178 "14801gr34g0rmqz9pv4rkfa3crfdbyfk6r48vpg5a5407v0sixqi"))))
4179 (build-system ruby-build-system)
4181 `(("ruby-hoe" ,ruby-hoe)))
4182 (synopsis "RFC 2617 HTTP digest authentication library")
4184 "This library implements HTTP's digest authentication scheme based on
4185 RFC 2617. This enables the use of the digest authentication scheme instead
4186 of the more insecure basic authentication scheme.")
4187 (home-page "http://github.com/drbrain/net-http-digest_auth")
4188 (license license:expat)))
4190 (define-public ruby-mail
4197 (uri (rubygems-uri "mail" version))
4200 "0c9vqfy0na9b5096i5i4qvrvhwamjnmajhgqi3kdsdfl8l6agmkp"))))
4201 (build-system ruby-build-system)
4203 `(("ruby-mime-types" ,ruby-mime-types)))
4205 ;; Tests require extra gems not included in the Gemfile.
4206 ;; XXX: Try enabling this for the next version with mini_mime.
4208 (synopsis "Mail library for Ruby")
4210 "Mail is an internet library for Ruby that is designed to handle email
4211 generation, parsing and sending. The purpose of this library is to provide
4212 a single point of access to handle all email functions, including sending
4213 and receiving emails. All network type actions are done through proxy
4214 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
4216 Mail has been designed with a very simple object oriented system that
4217 really opens up the email messages you are parsing, if you know what you
4218 are doing, you can fiddle with every last bit of your email directly.")
4219 (home-page "https://github.com/mikel/mail")
4220 (license license:expat)))