gnu: Add ruby-commander.
[jackhill/guix/guix.git] / gnu / packages / ruby.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
9 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
14 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
15 ;;;
16 ;;; This file is part of GNU Guix.
17 ;;;
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
22 ;;;
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
27 ;;;
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30
31 (define-module (gnu packages ruby)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages base)
35 #:use-module (gnu packages check)
36 #:use-module (gnu packages compression)
37 #:use-module (gnu packages databases)
38 #:use-module (gnu packages dbm)
39 #:use-module (gnu packages rails)
40 #:use-module (gnu packages readline)
41 #:use-module (gnu packages autotools)
42 #:use-module (gnu packages java)
43 #:use-module (gnu packages libffi)
44 #:use-module (gnu packages libidn)
45 #:use-module (gnu packages linux)
46 #:use-module (gnu packages lsof)
47 #:use-module (gnu packages maths)
48 #:use-module (gnu packages ncurses)
49 #:use-module (gnu packages networking)
50 #:use-module (gnu packages python)
51 #:use-module (gnu packages python-xyz)
52 #:use-module (gnu packages ragel)
53 #:use-module (gnu packages sqlite)
54 #:use-module (gnu packages tls)
55 #:use-module (gnu packages version-control)
56 #:use-module (guix packages)
57 #:use-module (guix download)
58 #:use-module (guix git-download)
59 #:use-module (guix utils)
60 #:use-module (guix build-system gnu)
61 #:use-module (gnu packages xml)
62 #:use-module (gnu packages web)
63 #:use-module (guix build-system ruby)
64 #:use-module ((srfi srfi-1) #:select (alist-delete)))
65
66 (define-public ruby
67 (package
68 (name "ruby")
69 (version "2.5.3")
70 (source
71 (origin
72 (method url-fetch)
73 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
74 (version-major+minor version)
75 "/ruby-" version ".tar.xz"))
76 (sha256
77 (base32
78 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
79 (modules '((guix build utils)))
80 (snippet `(begin
81 ;; Remove bundled libffi
82 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
83 #t))))
84 (build-system gnu-build-system)
85 (arguments
86 `(#:test-target "test"
87 #:phases
88 (modify-phases %standard-phases
89 (add-before 'configure 'replace-bin-sh-and-remove-libffi
90 (lambda _
91 (substitute* '("Makefile.in"
92 "ext/pty/pty.c"
93 "io.c"
94 "lib/mkmf.rb"
95 "process.c"
96 "test/rubygems/test_gem_ext_configure_builder.rb"
97 "test/rdoc/test_rdoc_parser.rb"
98 "test/ruby/test_rubyoptions.rb"
99 "test/ruby/test_process.rb"
100 "test/ruby/test_system.rb"
101 "tool/rbinstall.rb")
102 (("/bin/sh") (which "sh")))
103 #t)))))
104 (inputs
105 `(("readline" ,readline)
106 ("openssl" ,openssl)
107 ("libffi" ,libffi)
108 ("gdbm" ,gdbm)
109 ("zlib" ,zlib)))
110 (native-search-paths
111 (list (search-path-specification
112 (variable "GEM_PATH")
113 (files (list (string-append "lib/ruby/vendor_ruby"))))))
114 (synopsis "Programming language interpreter")
115 (description "Ruby is a dynamic object-oriented programming language with
116 a focus on simplicity and productivity.")
117 (home-page "https://www.ruby-lang.org")
118 (license license:ruby)))
119
120 (define-public ruby-2.4
121 (package
122 (inherit ruby)
123 (version "2.4.3")
124 (source
125 (origin
126 (method url-fetch)
127 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
128 (version-major+minor version)
129 "/ruby-" version ".tar.xz"))
130 (sha256
131 (base32
132 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
133 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
134 (modules '((guix build utils)))
135 (snippet `(begin
136 ;; Remove bundled libffi
137 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
138 #t))))))
139
140 (define-public ruby-2.3
141 (package
142 (inherit ruby)
143 (version "2.3.8")
144 (source
145 (origin
146 (method url-fetch)
147 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
148 (version-major+minor version)
149 "/ruby-" version ".tar.xz"))
150 (sha256
151 (base32
152 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
153 (modules '((guix build utils)))
154 (snippet `(begin
155 ;; Remove bundled libffi
156 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
157 #t))))))
158
159 (define-public ruby-commander
160 (package
161 (name "ruby-commander")
162 (version "4.4.7")
163 (source
164 (origin
165 (method url-fetch)
166 (uri (rubygems-uri "commander" version))
167 (sha256
168 (base32
169 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
170 (build-system ruby-build-system)
171 (arguments
172 `(#:test-target "spec"
173 #:phases
174 (modify-phases %standard-phases
175 ;; Don't run or require rubocop, the code linting tool, as this is a
176 ;; bit unnecessary.
177 (add-after 'unpack 'dont-run-rubocop
178 (lambda _
179 (substitute* "Rakefile"
180 ((".*rubocop.*") "")
181 ((".*RuboCop.*") ""))
182 #t)))))
183 (propagated-inputs
184 `(("ruby-highline" ,ruby-highline)))
185 (native-inputs
186 `(("bundler" ,bundler)
187 ("ruby-rspec-core" ,ruby-rspec-core)
188 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
189 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
190 ("ruby-simplecov" ,ruby-simplecov)))
191 (home-page "https://github.com/commander-rb/commander")
192 (synopsis "Library for building Ruby command-line executables")
193 (description
194 "Commander aims to be a complete solution for Ruby command-line
195 executables. Commander bridges the gap between other terminal related
196 libraries (OptionParser, HighLine), while providing many new features, and an
197 elegant API.")
198 (license license:expat)))
199
200 (define-public ruby-highline
201 (package
202 (name "ruby-highline")
203 (version "2.0.1")
204 (source
205 (origin
206 (method url-fetch)
207 (uri (rubygems-uri "highline" version))
208 (sha256
209 (base32
210 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
211 (build-system ruby-build-system)
212 (arguments
213 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
214 (native-inputs
215 `(("bundler" ,bundler)
216 ("ruby-code-statistics" ,ruby-code-statistics)))
217 (synopsis
218 "HighLine helps you build command-line interfaces")
219 (description
220 "HighLine provides a high-level IO library that provides validation,
221 type conversion, and more for command-line interfaces. HighLine also includes
222 a menu system for providing multiple options to the user.")
223 (home-page "https://github.com/JEG2/highline")
224 (license (list license:gpl2 license:ruby))))
225
226 (define-public ruby-hoe
227 (package
228 (name "ruby-hoe")
229 (version "3.16.2")
230 (source (origin
231 (method url-fetch)
232 (uri (rubygems-uri "hoe" version))
233 (sha256
234 (base32
235 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
236 (build-system ruby-build-system)
237 (synopsis "Ruby project management helper")
238 (description
239 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
240 maintain, and release projects and includes a dynamic plug-in system allowing
241 for easy extensibility. Hoe ships with plug-ins for all the usual project
242 tasks including rdoc generation, testing, packaging, deployment, and
243 announcement.")
244 (home-page "https://www.zenspider.com/projects/hoe.html")
245 (license license:expat)))
246
247 (define-public ruby-rake-compiler
248 (package
249 (name "ruby-rake-compiler")
250 (version "1.0.4")
251 (source (origin
252 (method url-fetch)
253 (uri (rubygems-uri "rake-compiler" version))
254 (sha256
255 (base32
256 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
257 (build-system ruby-build-system)
258 (arguments
259 '(#:tests? #f)) ; needs cucumber
260 (synopsis "Building and packaging helper for Ruby native extensions")
261 (description "Rake-compiler provides a framework for building and
262 packaging native C and Java extensions in Ruby.")
263 (home-page "https://github.com/rake-compiler/rake-compiler")
264 (license license:expat)))
265
266 (define-public ruby-i18n
267 (package
268 (name "ruby-i18n")
269 (version "1.1.0")
270 (source (origin
271 (method url-fetch)
272 (uri (rubygems-uri "i18n" version))
273 (sha256
274 (base32
275 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
276 (build-system ruby-build-system)
277 (arguments
278 '(#:tests? #f)) ; no tests
279 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
280 (synopsis "Internationalization library for Ruby")
281 (description "Ruby i18n is an internationalization and localization
282 solution for Ruby programs. It features translation and localization,
283 interpolation of values to translations, pluralization, customizable
284 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
285 translation data, custom key/scope separator, custom exception handlers, and
286 an extensible architecture with a swappable backend.")
287 (home-page "https://github.com/svenfuchs/i18n")
288 (license license:expat)))
289
290 (define-public ruby-iruby
291 (package
292 (name "ruby-iruby")
293 (version "0.3")
294 (source
295 (origin
296 (method url-fetch)
297 (uri (rubygems-uri "iruby" version))
298 (sha256
299 (base32
300 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
301 (build-system ruby-build-system)
302 (arguments
303 ;; TODO: Tests currently fail.
304 ;;
305 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
306 ;;
307 ;; 1) Failure:
308 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
309 ;; In [ expected
310 ;;
311 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
312 '(#:tests? #f
313 #:phases
314 (modify-phases %standard-phases
315 (add-after 'unpack 'patch-ipython
316 (lambda* (#:key inputs #:allow-other-keys)
317 (substitute* "lib/iruby/command.rb"
318 (("version = `")
319 (string-append
320 "version = `"
321 (assoc-ref inputs "python-ipython")
322 "/bin/"))
323 (("Kernel\\.exec\\('")
324 (string-append
325 "Kernel.exec('"
326 (assoc-ref inputs "python-ipython")
327 "/bin/")))
328 #t)))))
329 (inputs
330 `(("python-ipython" ,python-ipython)))
331 (propagated-inputs
332 `(("ruby-bond" ,ruby-bond)
333 ("ruby-data_uri" ,ruby-data_uri)
334 ("ruby-mimemagic" ,ruby-mimemagic)
335 ("ruby-multi-json" ,ruby-multi-json)
336 ("ruby-cztop" ,ruby-cztop)
337 ;; Optional inputs
338 ("ruby-pry" ,ruby-pry)))
339 (synopsis "Ruby kernel for Jupyter/IPython")
340 (description
341 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
342 notebook).")
343 (home-page "https://github.com/SciRuby/iruby")
344 (license license:expat)))
345
346 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
347 ;; dependencies use RSpec for their test suites! To avoid these circular
348 ;; dependencies, we disable tests for all of the RSpec-related packages.
349 (define ruby-rspec-support
350 (package
351 (name "ruby-rspec-support")
352 (version "3.5.0")
353 (source (origin
354 (method url-fetch)
355 (uri (rubygems-uri "rspec-support" version))
356 (sha256
357 (base32
358 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
359 (build-system ruby-build-system)
360 (arguments
361 '(#:tests? #f)) ; avoid dependency cycles
362 (synopsis "RSpec support library")
363 (description "Support utilities for RSpec gems.")
364 (home-page "https://github.com/rspec/rspec-support")
365 (license license:expat)))
366
367 (define-public ruby-rspec-core
368 (package
369 (name "ruby-rspec-core")
370 (version "3.5.4")
371 (source (origin
372 (method url-fetch)
373 (uri (rubygems-uri "rspec-core" version))
374 (sha256
375 (base32
376 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
377 (build-system ruby-build-system)
378 (arguments
379 '(#:tests? #f)) ; avoid dependency cycles
380 (propagated-inputs
381 `(("ruby-rspec-support" ,ruby-rspec-support)))
382 (synopsis "RSpec core library")
383 (description "Rspec-core provides the RSpec test runner and example
384 groups.")
385 (home-page "https://github.com/rspec/rspec-core")
386 (license license:expat)))
387
388 (define-public ruby-rspec-core-2
389 (package (inherit ruby-rspec-core)
390 (version "2.14.8")
391 (source (origin
392 (method url-fetch)
393 (uri (rubygems-uri "rspec-core" version))
394 (sha256
395 (base32
396 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
397 (propagated-inputs `())))
398
399 (define-public ruby-diff-lcs
400 (package
401 (name "ruby-diff-lcs")
402 (version "1.3")
403 (source (origin
404 (method url-fetch)
405 (uri (rubygems-uri "diff-lcs" version))
406 (sha256
407 (base32
408 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
409 (build-system ruby-build-system)
410 (arguments
411 '(#:tests? #f)) ; avoid dependency cycles
412 (synopsis "Compute the difference between two Enumerable sequences")
413 (description "Diff::LCS computes the difference between two Enumerable
414 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
415 It includes utilities to create a simple HTML diff output format and a
416 standard diff-like tool.")
417 (home-page "https://github.com/halostatue/diff-lcs")
418 (license license:expat)))
419
420 (define-public ruby-rspec-expectations
421 (package
422 (name "ruby-rspec-expectations")
423 (version "3.5.0")
424 (source (origin
425 (method url-fetch)
426 (uri (rubygems-uri "rspec-expectations" version))
427 (sha256
428 (base32
429 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
430 (build-system ruby-build-system)
431 (arguments
432 '(#:tests? #f)) ; avoid dependency cycles
433 (propagated-inputs
434 `(("ruby-rspec-support" ,ruby-rspec-support)
435 ("ruby-diff-lcs" ,ruby-diff-lcs)))
436 (synopsis "RSpec expectations library")
437 (description "Rspec-expectations provides a simple API to express expected
438 outcomes of a code example.")
439 (home-page "https://github.com/rspec/rspec-expectations")
440 (license license:expat)))
441
442 (define-public ruby-rspec-expectations-2
443 (package (inherit ruby-rspec-expectations)
444 (version "2.14.5")
445 (source (origin
446 (method url-fetch)
447 (uri (rubygems-uri "rspec-expectations" version))
448 (sha256
449 (base32
450 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
451 (propagated-inputs
452 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
453
454 (define-public ruby-rspec-its
455 (package
456 (name "ruby-rspec-its")
457 (version "1.2.0")
458 (source
459 (origin
460 (method git-fetch)
461 (uri (git-reference
462 (url "https://github.com/rspec/rspec-its.git")
463 (commit (string-append "v" version))))
464 (file-name (git-file-name name version))
465 (sha256
466 (base32
467 "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f"))
468 (patches
469 (list
470 (origin (method url-fetch)
471 (uri (string-append
472 "https://github.com/rspec/rspec-its/commit/"
473 "bfaab439c7c879f5ef25552f41827891f6308373.patch"))
474 (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch")
475 (sha256
476 (base32
477 "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh")))))))
478 (build-system ruby-build-system)
479 (arguments
480 `(#:test-target "spec"
481 #:phases
482 (modify-phases %standard-phases
483 (add-after 'unpack 'dont-install-gems-from-gemfile
484 (lambda _
485 (substitute* "Gemfile"
486 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
487 ""))
488 #t))
489 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
490 (lambda _
491 (substitute* "rspec-its.gemspec"
492 (("rake.*") "rake'\n")
493 (("cucumber.*") "cucumber'\n")
494 (("bundler.*") "bundler'\n")
495 (("aruba.*") "aruba'\n"))
496 #t)))))
497 (propagated-inputs
498 `(("ruby-rspec-core" ,ruby-rspec-core)
499 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
500 (native-inputs
501 `(("bundler" ,bundler)
502 ("ruby-cucumber" ,ruby-cucumber)
503 ("ruby-aruba" ,ruby-aruba)))
504 (synopsis "RSpec extension that provides the @code{its} method")
505 (description
506 "RSpec::Its provides the its method as a short-hand to specify the expected
507 value of an attribute. For example, one can use @code{its(:size)\\{should
508 eq(1)\\}}.")
509 (home-page "https://github.com/rspec/rspec-its")
510 (license license:expat)))
511
512 (define-public ruby-rspec-mocks
513 (package
514 (name "ruby-rspec-mocks")
515 (version "3.5.0")
516 (source (origin
517 (method url-fetch)
518 (uri (rubygems-uri "rspec-mocks" version))
519 (sha256
520 (base32
521 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
522 (build-system ruby-build-system)
523 (arguments
524 '(#:tests? #f)) ; avoid dependency cycles
525 (propagated-inputs
526 `(("ruby-rspec-support" ,ruby-rspec-support)
527 ("ruby-diff-lcs" ,ruby-diff-lcs)))
528 (synopsis "RSpec stubbing and mocking library")
529 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
530 support for stubbing and mocking.")
531 (home-page "https://github.com/rspec/rspec-mocks")
532 (license license:expat)))
533
534 (define-public ruby-rspec-mocks-2
535 (package (inherit ruby-rspec-mocks)
536 (version "2.14.6")
537 (source (origin
538 (method url-fetch)
539 (uri (rubygems-uri "rspec-mocks" version))
540 (sha256
541 (base32
542 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
543 (propagated-inputs
544 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
545
546 (define-public ruby-rspec-rerun
547 (package
548 (name "ruby-rspec-rerun")
549 (version "1.1.0")
550 (source
551 (origin
552 (method url-fetch)
553 (uri (rubygems-uri "rspec-rerun" version))
554 (sha256
555 (base32
556 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
557 (build-system ruby-build-system)
558 (arguments
559 '(;; No included tests
560 #:tests? #f))
561 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
562 (synopsis "Track failed RSpec tests to re-run them")
563 (description
564 "This package provides an automated way to track, and then re-run failed
565 RSpec tests.")
566 (home-page "https://github.com/dblock/rspec-rerun")
567 (license license:expat)))
568
569 (define-public ruby-rspec
570 (package
571 (name "ruby-rspec")
572 (version "3.5.0")
573 (source (origin
574 (method url-fetch)
575 (uri (rubygems-uri "rspec" version))
576 (sha256
577 (base32
578 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
579 (build-system ruby-build-system)
580 (arguments
581 '(#:tests? #f)) ; avoid dependency cycles
582 (propagated-inputs
583 `(("ruby-rspec-core" ,ruby-rspec-core)
584 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
585 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
586 (synopsis "Behavior-driven development framework for Ruby")
587 (description "RSpec is a behavior-driven development (BDD) framework for
588 Ruby. This meta-package includes the RSpec test runner, along with the
589 expectations and mocks frameworks.")
590 (home-page "http://rspec.info/")
591 (license license:expat)))
592
593 (define-public ruby-rspec-2
594 (package (inherit ruby-rspec)
595 (version "2.14.1")
596 (source (origin
597 (method url-fetch)
598 (uri (rubygems-uri "rspec" version))
599 (sha256
600 (base32
601 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
602 (propagated-inputs
603 `(("ruby-rspec-core" ,ruby-rspec-core-2)
604 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
605 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
606
607 ;; Bundler is yet another source of circular dependencies, so we must disable
608 ;; its test suite as well.
609 (define-public bundler
610 (package
611 (name "bundler")
612 (version "1.15.4")
613 (source (origin
614 (method url-fetch)
615 (uri (rubygems-uri "bundler" version))
616 (sha256
617 (base32
618 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
619 (build-system ruby-build-system)
620 (arguments
621 '(#:tests? #f)) ; avoid dependency cycles
622 (synopsis "Ruby gem bundler")
623 (description "Bundler automatically downloads and installs a list of gems
624 specified in a \"Gemfile\", as well as their dependencies.")
625 (home-page "https://bundler.io/")
626 (license license:expat)))
627
628 (define-public ruby-builder
629 (package
630 (name "ruby-builder")
631 (version "3.2.3")
632 (source (origin
633 (method url-fetch)
634 (uri (rubygems-uri "builder" version))
635 (sha256
636 (base32
637 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
638 (build-system ruby-build-system)
639 (arguments
640 `(#:phases
641 (modify-phases %standard-phases
642 (add-after 'unpack 'do-not-use-rvm
643 (lambda _
644 (substitute* "rakelib/tags.rake"
645 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
646 #t)))))
647 (synopsis "Ruby library to create structured data")
648 (description "Builder provides a number of builder objects that make it
649 easy to create structured data. Currently the following builder objects are
650 supported: XML Markup and XML Events.")
651 (home-page "https://github.com/jimweirich/builder")
652 (license license:expat)))
653
654 (define-public ruby-bump
655 (package
656 (name "ruby-bump")
657 (version "0.7.0")
658 (source
659 (origin
660 (method url-fetch)
661 (uri (rubygems-uri "bump" version))
662 (sha256
663 (base32
664 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
665 (build-system ruby-build-system)
666 (arguments
667 '(;; No included tests
668 #:tests? #f))
669 (synopsis "Tool for working with Rubygems")
670 (description
671 "Bump provides commands to manage Rubygem versioning, updating to the
672 next patch version for example.")
673 (home-page "https://github.com/gregorym/bump")
674 (license license:expat)))
675
676 (define-public ruby-rjb
677 (package
678 (name "ruby-rjb")
679 (version "1.5.5")
680 (source (origin
681 (method url-fetch)
682 (uri (rubygems-uri "rjb" version))
683 (sha256
684 (base32
685 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
686 (build-system ruby-build-system)
687 (arguments
688 `(#:tests? #f ; no rakefile
689 #:phases
690 (modify-phases %standard-phases
691 (add-before 'build 'set-java-home
692 (lambda* (#:key inputs #:allow-other-keys)
693 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
694 #t)))))
695 (native-inputs
696 `(("jdk" ,icedtea "jdk")))
697 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
698 (description "RJB is a bridge program that connects Ruby and Java via the
699 Java Native Interface.")
700 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
701 (license license:lgpl2.1+)))
702
703 (define-public ruby-log4r
704 (package
705 (name "ruby-log4r")
706 (version "1.1.10")
707 (source
708 (origin
709 (method url-fetch)
710 (uri (rubygems-uri "log4r" version))
711 (sha256
712 (base32
713 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
714 (build-system ruby-build-system)
715 (arguments
716 '(#:tests? #f)) ; no Rakefile in gem
717 (synopsis "Flexible logging library for Ruby")
718 (description "Comprehensive and flexible logging library written
719 in Ruby for use in Ruby programs. It features a hierarchical logging
720 system of any number of levels, custom level names, logger
721 inheritance, multiple output destinations per log event, execution
722 tracing, custom formatting, thread safteyness, XML and YAML
723 configuration, and more.")
724 (home-page "http://log4r.rubyforge.org/")
725 (license license:bsd-3)))
726
727 (define-public ruby-atoulme-antwrap
728 (package
729 (name "ruby-atoulme-antwrap")
730 (version "0.7.5")
731 (source (origin
732 (method url-fetch)
733 (uri (rubygems-uri "atoulme-Antwrap" version))
734 (sha256
735 (base32
736 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
737 (build-system ruby-build-system)
738 ;; Test data required for most of the tests are not included.
739 (arguments `(#:tests? #f))
740 (native-inputs
741 `(("ruby-hoe" ,ruby-hoe)))
742 (inputs
743 `(("ruby-rjb" ,ruby-rjb)))
744 (synopsis "Ruby wrapper for the Ant build tool")
745 (description "Antwrap is a Ruby module that wraps the Apache Ant build
746 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
747 script.")
748 (home-page "http://rubyforge.org/projects/antwrap/")
749 (license license:expat)))
750
751 (define-public ruby-atoulme-saikuro
752 (package
753 (name "ruby-atoulme-saikuro")
754 (version "1.2.1")
755 (source (origin
756 (method url-fetch)
757 (uri (rubygems-uri "atoulme-Saikuro" version))
758 (sha256
759 (base32
760 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
761 (build-system ruby-build-system)
762 ;; FIXME: There are no unit tests. The tests are demonstrations of the
763 ;; "saikuro" tool.
764 (arguments `(#:tests? #f))
765 (synopsis "Cyclomatic complexity analyzer")
766 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
767 given Ruby source code Saikuro will generate a report listing the cyclomatic
768 complexity of each method found. In addition, Saikuro counts the number of
769 lines per method and can generate a listing of the number of tokens on each
770 line of code.")
771 (home-page "http://www.github.com/atoulme/Saikuro")
772 ;; File headers contain the BSD-3 license and the README.rdoc says that
773 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
774 ;; of the Expat license.
775 (license license:bsd-3)))
776
777 (define-public ruby-asciidoctor
778 (package
779 (name "ruby-asciidoctor")
780 (version "1.5.7.1")
781 (source
782 (origin
783 (method url-fetch)
784 (uri (rubygems-uri "asciidoctor" version))
785 (sha256
786 (base32
787 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
788 (build-system ruby-build-system)
789 (arguments
790 `(#:test-target "test:all"
791 #:phases
792 (modify-phases %standard-phases
793 (add-before 'check 'remove-circular-tests
794 (lambda _
795 ;; Remove tests that require circular dependencies to load or pass.
796 (delete-file "test/invoker_test.rb")
797 (delete-file "test/converter_test.rb")
798 (delete-file "test/options_test.rb")
799 #t)))))
800 (native-inputs
801 `(("ruby-minitest" ,ruby-minitest)
802 ("ruby-nokogiri" ,ruby-nokogiri)
803 ("ruby-asciimath" ,ruby-asciimath)
804 ("ruby-coderay" ,ruby-coderay)))
805 (synopsis "Converter from AsciiDoc content to other formats")
806 (description
807 "Asciidoctor is a text processor and publishing toolchain for converting
808 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
809 (home-page "https://asciidoctor.org")
810 (license license:expat)))
811
812 (define-public ruby-ast
813 (package
814 (name "ruby-ast")
815 (version "2.4.0")
816 (source
817 (origin
818 (method url-fetch)
819 (uri (rubygems-uri "ast" version))
820 (sha256
821 (base32
822 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
823 (build-system ruby-build-system)
824 (arguments
825 '(#:phases
826 (modify-phases %standard-phases
827 (add-after 'unpack 'remove-coveralls-requirement
828 (lambda _
829 (substitute* "test/helper.rb"
830 (("require 'coveralls'") "")
831 (("Coveralls::SimpleCov::Formatter") ""))
832 #t))
833 (add-after 'extract-gemspec 'remove-unnecessary-requirements
834 (lambda _
835 (substitute* "ast.gemspec"
836 ((".*coveralls.*") "\n")
837 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
838 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
839 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
840 #t)))))
841 (native-inputs
842 `(("bundler" ,bundler)
843 ("ruby-simplecov" ,ruby-simplecov)
844 ("ruby-json-pure" ,ruby-json-pure)
845 ("ruby-mime-times" ,ruby-mime-types)
846 ("ruby-yard" ,ruby-yard)
847 ("ruby-kramdown" ,ruby-kramdown)
848 ("ruby-rest-client" ,ruby-rest-client)
849 ("ruby-bacon" ,ruby-bacon)
850 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
851 ("ruby-racc" ,ruby-racc)))
852 (synopsis "Library for working with Abstract Syntax Trees")
853 (description
854 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
855 It does this through immutable data structures.")
856 (home-page "https://whitequark.github.io/ast/")
857 (license license:expat)))
858
859 (define-public ruby-sporkmonger-rack-mount
860 ;; Testing the addressable gem requires a newer commit than that released, so
861 ;; use an up to date version.
862 (let ((revision "1")
863 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
864 (package
865 (name "ruby-sporkmonger-rack-mount")
866 (version (git-version "0.8.3" revision commit))
867 (source (origin
868 (method git-fetch)
869 (uri (git-reference
870 (url "https://github.com/sporkmonger/rack-mount.git")
871 (commit commit)))
872 (file-name (git-file-name name version))
873 (sha256
874 (base32
875 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
876 (build-system ruby-build-system)
877 (arguments
878 ;; Tests currently fail so disable them.
879 ;; https://github.com/sporkmonger/rack-mount/pull/1
880 `(#:tests? #f))
881 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
882 (synopsis "Stackable dynamic tree based Rack router")
883 (description
884 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
885 continue trying routes if the response returns pass. This allows multiple
886 routes to be nested or stacked on top of each other.")
887 (home-page "https://github.com/sporkmonger/rack-mount")
888 (license license:expat))))
889
890 (define-public ruby-ci-reporter
891 (package
892 (name "ruby-ci-reporter")
893 (version "2.0.0")
894 (source (origin
895 (method url-fetch)
896 (uri (rubygems-uri "ci_reporter" version))
897 (sha256
898 (base32
899 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
900 (build-system ruby-build-system)
901 (arguments
902 `(#:test-target "rspec"))
903 (propagated-inputs
904 `(("ruby-builder" ,ruby-builder)))
905 (native-inputs
906 `(("bundler" ,bundler)
907 ("ruby-rspec" ,ruby-rspec)))
908 (synopsis "Generate XML reports of runs test")
909 (description
910 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
911 you to generate XML reports of your test runs. The resulting files can be
912 read by a continuous integration system that understands Ant's JUnit report
913 format.")
914 (home-page "https://github.com/nicksieger/ci_reporter")
915 (license license:expat)))
916
917 (define-public ruby-contracts
918 (package
919 (name "ruby-contracts")
920 (version "0.16.0")
921 (source
922 (origin
923 (method url-fetch)
924 (uri (rubygems-uri "contracts" version))
925 (sha256
926 (base32
927 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
928 (build-system ruby-build-system)
929 (arguments
930 '(#:test-target "spec"
931 #:phases
932 (modify-phases %standard-phases
933 ;; Don't run or require rubocop, the code linting tool, as this is a
934 ;; bit unnecessary.
935 (add-after 'unpack 'dont-run-rubocop
936 (lambda _
937 (substitute* "Rakefile"
938 ((".*rubocop.*") "")
939 ((".*RuboCop.*") ""))
940 #t)))))
941 (native-inputs
942 `(("ruby-rspec" ,ruby-rspec)))
943 (synopsis "Method contracts for Ruby")
944 (description
945 "This library provides contracts for Ruby. A contract describes the
946 correct inputs and output for a method, and will raise an error if a incorrect
947 value is found.")
948 (home-page "https://github.com/egonSchiele/contracts.ruby")
949 (license license:bsd-2)))
950
951 (define-public ruby-crack
952 (package
953 (name "ruby-crack")
954 (version "0.4.3")
955 (source
956 (origin
957 (method url-fetch)
958 (uri (rubygems-uri "crack" version))
959 (sha256
960 (base32
961 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
962 (build-system ruby-build-system)
963 (arguments
964 `(#:phases
965 (modify-phases %standard-phases
966 (replace 'check
967 (lambda* (#:key tests? #:allow-other-keys)
968 (when tests?
969 (for-each (lambda (file)
970 (display file)(display "\n")
971 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
972 (find-files "test" ".*rb$")))
973 #t)))))
974 (propagated-inputs
975 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
976 (synopsis "Simple JSON and XML parsing for Ruby")
977 (description
978 "@code{crack} provides really simple JSON and XML parsing, extracted from
979 code in Merb and Rails.")
980 (home-page "https://github.com/jnunemaker/crack")
981 (license license:expat)))
982
983 (define-public ruby-crass
984 (package
985 (name "ruby-crass")
986 (version "1.0.4")
987 (source
988 (origin
989 (method url-fetch)
990 (uri (rubygems-uri "crass" version))
991 (sha256
992 (base32
993 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
994 (build-system ruby-build-system)
995 (synopsis "Pure Ruby CSS parser based on CSS Syntax Level 3")
996 (description
997 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
998 (home-page "https://github.com/rgrove/crass/")
999 (license license:expat)))
1000
1001 (define-public ruby-cliver
1002 (package
1003 (name "ruby-cliver")
1004 (version "0.3.2")
1005 (source
1006 (origin
1007 (method url-fetch)
1008 (uri (rubygems-uri "cliver" version))
1009 (sha256
1010 (base32
1011 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1012 (build-system ruby-build-system)
1013 (arguments
1014 '(#:phases
1015 (modify-phases %standard-phases
1016 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1017 ;; would be nice, but the tests look to be incompatible:
1018 ;;
1019 ;; NoMethodError: undefined method `last_comment'
1020 (replace 'check
1021 (lambda* (#:key tests? #:allow-other-keys)
1022 (when tests?
1023 (invoke "rspec"))
1024 #t)))))
1025 (native-inputs
1026 `(("bundler" ,bundler)
1027 ("ruby-rspec" ,ruby-rspec-2)))
1028 (synopsis "Assertions for command-line dependencies in Ruby")
1029 (description
1030 "@code{cliver} provides a way to detect missing command-line
1031 dependencies, including versions.")
1032 (home-page "https://github.com/yaauie/cliver")
1033 (license license:expat)))
1034
1035 (define-public ruby-czmq-ffi-gen
1036 (package
1037 (name "ruby-czmq-ffi-gen")
1038 (version "0.13.0")
1039 (source
1040 (origin
1041 (method url-fetch)
1042 (uri (rubygems-uri "czmq-ffi-gen" version))
1043 (sha256
1044 (base32
1045 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1046 (build-system ruby-build-system)
1047 (arguments
1048 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1049 #:phases
1050 (modify-phases %standard-phases
1051 (add-after 'unpack 'patch-lib_dirs
1052 (lambda* (#:key inputs #:allow-other-keys)
1053 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1054 (("lib\\_dirs = \\[.*\\]")
1055 (string-append "lib_dirs = ['"
1056 (assoc-ref inputs "czmq") "/lib"
1057 "']")))
1058 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1059 (("lib\\_dirs = \\[.*\\]")
1060 (string-append "lib_dirs = ['"
1061 (assoc-ref inputs "zeromq") "/lib"
1062 "']"))))))))
1063 (inputs
1064 `(("zeromq" ,zeromq)
1065 ("czmq" ,czmq)))
1066 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1067 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1068 (description
1069 "These Ruby bindings are not intended to be directly used, but rather
1070 used by higher level bindings like those provided by CZTop.")
1071 (home-page
1072 "https://github.com/paddor/czmq-ffi-gen")
1073 (license license:isc)))
1074
1075 (define-public ruby-cztop
1076 (package
1077 (name "ruby-cztop")
1078 (version "0.12.2")
1079 (source
1080 (origin
1081 (method url-fetch)
1082 (uri (rubygems-uri "cztop" version))
1083 (sha256
1084 (base32
1085 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1086 (build-system ruby-build-system)
1087 (arguments
1088 '(#:test-target "spec"
1089 #:phases
1090 (modify-phases %standard-phases
1091 (add-after 'unpack 'patch-lib_paths
1092 (lambda* (#:key inputs #:allow-other-keys)
1093 (substitute* "lib/cztop/poller/zmq.rb"
1094 (("lib\\_paths = \\[.*\\]")
1095 (string-append "lib_paths = ['"
1096 (assoc-ref inputs "zeromq") "/lib"
1097 "']"))))))))
1098 (native-inputs
1099 `(("bundler" ,bundler)
1100 ("ruby-rspec" ,ruby-rspec)))
1101 (inputs
1102 `(("zeromq" ,zeromq)))
1103 (propagated-inputs
1104 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1105 (synopsis "CZMQ Ruby bindings")
1106 (description
1107 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1108 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1109 support for security mechanisms.")
1110 (home-page "https://github.com/paddor/cztop")
1111 (license license:isc)))
1112
1113 (define-public ruby-saikuro-treemap
1114 (package
1115 (name "ruby-saikuro-treemap")
1116 (version "0.2.0")
1117 (source (origin
1118 (method url-fetch)
1119 (uri (rubygems-uri "saikuro_treemap" version))
1120 (sha256
1121 (base32
1122 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1123 (build-system ruby-build-system)
1124 ;; Some of the tests fail because the generated JSON has keys in a
1125 ;; different order. This is a problem with the test suite rather than any
1126 ;; of the involved libraries.
1127 (arguments `(#:tests? #f))
1128 (propagated-inputs
1129 `(("ruby-json-pure" ,ruby-json-pure)
1130 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1131 (synopsis "Generate complexity treemap based on saikuro analysis")
1132 (description
1133 "This gem generates a treemap showing the complexity of Ruby code on
1134 which it is run. It uses Saikuro under the covers to analyze Ruby code
1135 complexity.")
1136 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1137 (license license:expat)))
1138
1139 (define-public ruby-options
1140 (package
1141 (name "ruby-options")
1142 (version "2.3.2")
1143 (source
1144 (origin
1145 (method url-fetch)
1146 (uri (rubygems-uri "options" version))
1147 (sha256
1148 (base32
1149 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1150 (build-system ruby-build-system)
1151 (arguments
1152 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1153 #:phases
1154 (modify-phases %standard-phases
1155 (add-before 'check 'set-LIB
1156 (lambda _
1157 ;; This is used in the Rakefile, and setting it avoids an issue
1158 ;; with running the tests.
1159 (setenv "LIB" "options")
1160 #t)))))
1161 (synopsis "Ruby library to parse options from *args cleanly")
1162 (description
1163 "The @code{options} library helps with parsing keyword options in Ruby
1164 functions.")
1165 (home-page "https://github.com/ahoward/options")
1166 (license license:ruby)))
1167
1168 (define-public ruby-erubi
1169 (package
1170 (name "ruby-erubi")
1171 (version "1.8.0")
1172 (source
1173 (origin
1174 (method url-fetch)
1175 (uri (rubygems-uri "erubi" version))
1176 (sha256
1177 (base32
1178 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1179 (build-system ruby-build-system)
1180 (synopsis "ERB template engine for Ruby")
1181 (description
1182 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1183 Erubis")
1184 (home-page "https://github.com/jeremyevans/erubi")
1185 (license license:expat)))
1186
1187 (define-public ruby-erubis
1188 (package
1189 (name "ruby-erubis")
1190 (version "2.7.0")
1191 (source
1192 (origin
1193 (method url-fetch)
1194 (uri (rubygems-uri "erubis" version))
1195 (sha256
1196 (base32
1197 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1198 (build-system ruby-build-system)
1199 (arguments
1200 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1201 (synopsis "Implementation of embedded Ruby (eRuby)")
1202 (description
1203 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1204 features such as multi-language support, auto escaping, auto trimming spaces
1205 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1206 support.")
1207 (home-page "http://www.kuwata-lab.com/erubis/")
1208 (license license:expat)))
1209
1210 (define-public ruby-orderedhash
1211 (package
1212 (name "ruby-orderedhash")
1213 (version "0.0.6")
1214 (source (origin
1215 (method url-fetch)
1216 (uri (rubygems-uri "orderedhash" version))
1217 (sha256
1218 (base32
1219 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1220 (build-system ruby-build-system)
1221 (arguments
1222 '(#:tests? #f)) ; no test suite
1223 (synopsis "Ruby library providing an order-preserving hash")
1224 (description "Orderedhash is a Ruby library providing a hash
1225 implementation that preserves the order of items and features some array-like
1226 extensions.")
1227 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1228 (license license:public-domain)))
1229
1230 (define-public ruby-libxml
1231 (package
1232 (name "ruby-libxml")
1233 (version "3.0.0")
1234 (source
1235 (origin
1236 (method url-fetch)
1237 (uri (rubygems-uri "libxml-ruby" version))
1238 (sha256
1239 (base32
1240 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1241 (build-system ruby-build-system)
1242 (inputs
1243 `(("zlib" ,zlib)
1244 ("libxml2" ,libxml2)))
1245 (arguments
1246 '(#:tests? #f ; test suite hangs for unknown reason
1247 #:gem-flags
1248 (list "--"
1249 (string-append "--with-xml2-include="
1250 (assoc-ref %build-inputs "libxml2")
1251 "/include/libxml2" ))))
1252 (synopsis "Ruby bindings for GNOME Libxml2")
1253 (description "The Libxml-Ruby project provides Ruby language bindings for
1254 the GNOME Libxml2 XML toolkit.")
1255 (home-page "https://xml4r.github.com/libxml-ruby")
1256 (license license:expat)))
1257
1258 (define-public ruby-xml-simple
1259 (package
1260 (name "ruby-xml-simple")
1261 (version "1.1.5")
1262 (source (origin
1263 (method url-fetch)
1264 (uri (rubygems-uri "xml-simple" version))
1265 (sha256
1266 (base32
1267 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1268 (build-system ruby-build-system)
1269 (arguments
1270 '(#:tests? #f)) ; no test suite
1271 (synopsis "Simple Ruby library for XML processing")
1272 (description "This library provides a simple API for XML processing in
1273 Ruby.")
1274 (home-page "https://github.com/maik/xml-simple")
1275 (license license:ruby)))
1276
1277 (define-public ruby-thor
1278 (package
1279 (name "ruby-thor")
1280 (version "0.19.4")
1281 (source (origin
1282 (method url-fetch)
1283 (uri (rubygems-uri "thor" version))
1284 (sha256
1285 (base32
1286 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1287 (build-system ruby-build-system)
1288 (arguments
1289 '(#:tests? #f)) ; no test suite
1290 (native-inputs
1291 `(("bundler" ,bundler)))
1292 (synopsis "Ruby toolkit for building command-line interfaces")
1293 (description "Thor is a toolkit for building powerful command-line
1294 interfaces.")
1295 (home-page "http://whatisthor.com/")
1296 (license license:expat)))
1297
1298 (define-public ruby-lumberjack
1299 (package
1300 (name "ruby-lumberjack")
1301 (version "1.0.13")
1302 (source (origin
1303 (method url-fetch)
1304 (uri (rubygems-uri "lumberjack" version))
1305 (sha256
1306 (base32
1307 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1308 (build-system ruby-build-system)
1309 (native-inputs
1310 `(("ruby-rspec" ,ruby-rspec)
1311 ("ruby-timecop" ,ruby-timecop)))
1312 (synopsis "Logging utility library for Ruby")
1313 (description "Lumberjack is a simple logging utility that can be a drop in
1314 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1315 for automatically rolling log files even with multiple processes writing the
1316 same log file.")
1317 (home-page "https://github.com/bdurand/lumberjack")
1318 (license license:expat)))
1319
1320 (define-public ruby-nenv
1321 (package
1322 (name "ruby-nenv")
1323 (version "0.3.0")
1324 (source (origin
1325 (method url-fetch)
1326 (uri (rubygems-uri "nenv" version))
1327 (sha256
1328 (base32
1329 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1330 (build-system ruby-build-system)
1331 (arguments
1332 `(#:tests? #f)) ; no tests included
1333 (native-inputs
1334 `(("ruby-rspec" ,ruby-rspec)
1335 ("bundler" ,bundler)))
1336 (synopsis "Ruby interface for modifying the environment")
1337 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1338 and inspect the environment.")
1339 (home-page "https://github.com/e2/nenv")
1340 (license license:expat)))
1341
1342 (define-public ruby-permutation
1343 (package
1344 (name "ruby-permutation")
1345 (version "0.1.8")
1346 (source (origin
1347 (method url-fetch)
1348 (uri (rubygems-uri "permutation" version))
1349 (sha256
1350 (base32
1351 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1352 (build-system ruby-build-system)
1353 (arguments
1354 `(#:phases
1355 (modify-phases %standard-phases
1356 (add-after 'unpack 'fix-rakefile
1357 (lambda _
1358 (substitute* "Rakefile"
1359 (("require 'rake/gempackagetask'")
1360 "require 'rubygems/package_task'")
1361 (("include Config") ""))
1362 #t))
1363 (replace 'check
1364 (lambda _
1365 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1366 (synopsis "Library to perform operations with sequence permutations")
1367 (description "This package provides a Ruby library to perform different
1368 operations with permutations of sequences, such as strings and arrays.")
1369 (home-page "https://flori.github.io/permutation")
1370 (license license:gpl2))) ; GPL 2 only
1371
1372 (define-public ruby-shellany
1373 (package
1374 (name "ruby-shellany")
1375 (version "0.0.1")
1376 (source (origin
1377 (method url-fetch)
1378 (uri (rubygems-uri "shellany" version))
1379 (sha256
1380 (base32
1381 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1382 (build-system ruby-build-system)
1383 (arguments
1384 `(#:test-target "default"
1385 #:phases
1386 (modify-phases %standard-phases
1387 (add-after 'unpack 'fix-version-test
1388 (lambda _
1389 (substitute* "spec/shellany_spec.rb"
1390 (("^RSpec") "require \"shellany\"\nRSpec"))
1391 #t)))))
1392 (native-inputs
1393 `(("ruby-rspec" ,ruby-rspec)
1394 ("ruby-nenv" ,ruby-nenv)
1395 ("bundler" ,bundler)))
1396 (synopsis "Capture command output")
1397 (description "Shellany is a Ruby library providing functions to capture
1398 the output produced by running shell commands.")
1399 (home-page "https://rubygems.org/gems/shellany")
1400 (license license:expat)))
1401
1402 (define-public ruby-notiffany
1403 (package
1404 (name "ruby-notiffany")
1405 (version "0.1.1")
1406 (source (origin
1407 (method url-fetch)
1408 (uri (rubygems-uri "notiffany" version))
1409 (sha256
1410 (base32
1411 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1412 (build-system ruby-build-system)
1413 ;; Tests are not included in the gem.
1414 (arguments `(#:tests? #f))
1415 (propagated-inputs
1416 `(("ruby-shellany" ,ruby-shellany)
1417 ("ruby-nenv" ,ruby-nenv)))
1418 (native-inputs
1419 `(("bundler" ,bundler)))
1420 (synopsis "Wrapper libray for notification libraries")
1421 (description "Notiffany is a Ruby wrapper libray for notification
1422 libraries such as Libnotify.")
1423 (home-page "https://github.com/guard/notiffany")
1424 (license license:expat)))
1425
1426 (define-public ruby-formatador
1427 (package
1428 (name "ruby-formatador")
1429 (version "0.2.5")
1430 (source (origin
1431 (method url-fetch)
1432 (uri (rubygems-uri "formatador" version))
1433 (sha256
1434 (base32
1435 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1436 (build-system ruby-build-system)
1437 ;; Circular dependency: Tests require ruby-shindo, which requires
1438 ;; ruby-formatador at runtime.
1439 (arguments `(#:tests? #f))
1440 (synopsis "Ruby library to format text on stdout")
1441 (description "Formatador is a Ruby library to format text printed to the
1442 standard output stream.")
1443 (home-page "https://github.com/geemus/formatador")
1444 (license license:expat)))
1445
1446 (define-public ruby-fuubar
1447 (package
1448 (name "ruby-fuubar")
1449 (version "2.3.2")
1450 (source
1451 (origin
1452 ;; Fetch from the git repository, as the gem package doesn't include
1453 ;; the tests.
1454 (method git-fetch)
1455 (uri (git-reference
1456 (url "https://github.com/thekompanee/fuubar.git")
1457 (commit (string-append "releases/v" version))))
1458 (file-name (git-file-name name version))
1459 (sha256
1460 (base32
1461 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1462 (build-system ruby-build-system)
1463 (arguments
1464 '(;; TODO: Some tests fail, unsure why.
1465 ;; 21 examples, 7 failures
1466 #:tests? #f
1467 #:phases
1468 (modify-phases %standard-phases
1469 (add-before 'build 'delete-certificate
1470 (lambda _
1471 ;; Remove 's.cert_chain' as we do not build with a private key
1472 (substitute* "fuubar.gemspec"
1473 ((".*cert_chain.*") "")
1474 ((".*signing_key.*") ""))
1475 #t))
1476 (replace 'check
1477 (lambda* (#:key tests? #:allow-other-keys)
1478 (when tests?
1479 (invoke "rspec"))
1480 #t)))))
1481 (native-inputs
1482 `(("bundler" ,bundler)))
1483 (propagated-inputs
1484 `(("ruby-rspec-core" ,ruby-rspec-core)
1485 ("ruby-progressbar" ,ruby-progressbar)))
1486 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1487 (description
1488 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1489 string of letters and dots as feedback. It also stops on the first test
1490 failure.")
1491 (home-page "https://github.com/thekompanee/fuubar")
1492 (license license:expat)))
1493
1494 (define-public ruby-hashdiff
1495 (package
1496 (name "ruby-hashdiff")
1497 (version "0.3.8")
1498 (source
1499 (origin
1500 (method url-fetch)
1501 (uri (rubygems-uri "hashdiff" version))
1502 (sha256
1503 (base32
1504 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1505 (build-system ruby-build-system)
1506 (arguments
1507 '(#:phases
1508 (modify-phases %standard-phases
1509 ;; Run tests directly via rspec to avoid Rake issue:
1510 ;; NoMethodError: undefined method `last_comment'
1511 (replace 'check
1512 (lambda* (#:key tests? #:allow-other-keys)
1513 (when tests?
1514 (invoke "rspec"))
1515 #t)))))
1516 (native-inputs
1517 `(("bundler" ,bundler)
1518 ("ruby-rspec" ,ruby-rspec-2)))
1519 (synopsis "HashDiff computes the smallest difference between two hashes")
1520 (description
1521 "HashDiff is a Ruby library to compute the smallest difference between
1522 two hashes.")
1523 (home-page "https://github.com/liufengyun/hashdiff")
1524 (license license:expat)))
1525
1526 (define-public ruby-shindo
1527 (package
1528 (name "ruby-shindo")
1529 (version "0.3.8")
1530 (source (origin
1531 (method url-fetch)
1532 (uri (rubygems-uri "shindo" version))
1533 (sha256
1534 (base32
1535 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1536 (build-system ruby-build-system)
1537 (arguments
1538 `(#:test-target "shindo_tests"
1539 #:phases
1540 (modify-phases %standard-phases
1541 (add-after 'unpack 'fix-tests
1542 (lambda _
1543 (substitute* "tests/tests_helper.rb"
1544 (("-rubygems") ""))
1545 (substitute* "Rakefile"
1546 (("system \"shindo") "system \"./bin/shindo")
1547 ;; This test doesn't work, so we disable it.
1548 (("fail \"The build_error test should fail") "#")
1549 ((" -rubygems") ""))
1550 #t)))))
1551 (propagated-inputs
1552 `(("ruby-formatador" ,ruby-formatador)))
1553 (synopsis "Simple depth first Ruby testing")
1554 (description "Shindo is a simple depth first testing library for Ruby.")
1555 (home-page "https://github.com/geemus/shindo")
1556 (license license:expat)))
1557
1558 (define-public ruby-rubygems-tasks
1559 (package
1560 (name "ruby-rubygems-tasks")
1561 (version "0.2.4")
1562 (source (origin
1563 (method url-fetch)
1564 (uri (rubygems-uri "rubygems-tasks" version))
1565 (sha256
1566 (base32
1567 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1568 (build-system ruby-build-system)
1569 ;; Tests need Internet access.
1570 (arguments `(#:tests? #f))
1571 (native-inputs
1572 `(("ruby-rspec" ,ruby-rspec)
1573 ("ruby-yard" ,ruby-yard)))
1574 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1575 (description "Rubygems-task provides Rake tasks for managing and releasing
1576 Ruby Gems.")
1577 (home-page "https://github.com/postmodern/rubygems-tasks")
1578 (license license:expat)))
1579
1580 (define-public ruby-rubyzip
1581 (package
1582 (name "ruby-rubyzip")
1583 (version "1.2.1")
1584 (source
1585 (origin
1586 (method url-fetch)
1587 (uri (rubygems-uri "rubyzip" version))
1588 (sha256
1589 (base32
1590 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1591 (build-system ruby-build-system)
1592 (arguments
1593 '(#:phases
1594 (modify-phases %standard-phases
1595 (add-before 'check 'patch-tests
1596 (lambda* (#:key inputs #:allow-other-keys)
1597 (substitute* "test/gentestfiles.rb"
1598 (("/usr/bin/zip")
1599 (string-append
1600 (assoc-ref inputs "zip") "/bin/zip")))
1601 (substitute* "test/input_stream_test.rb"
1602 (("/usr/bin/env ruby") (which "ruby")))
1603 #t)))))
1604 (native-inputs
1605 `(("bundler" ,bundler)
1606 ("ruby-simplecov" ,ruby-simplecov)
1607 ("zip" ,zip)
1608 ("unzip" ,unzip)))
1609 (synopsis "Ruby module is for reading and writing zip files")
1610 (description
1611 "The rubyzip module provides ways to read from and create zip files.")
1612 (home-page "http://github.com/rubyzip/rubyzip")
1613 (license license:bsd-2)))
1614
1615 (define-public ruby-simplecov-html
1616 (package
1617 (name "ruby-simplecov-html")
1618 (version "0.10.2")
1619 (source (origin
1620 (method url-fetch)
1621 (uri (rubygems-uri "simplecov-html" version))
1622 (sha256
1623 (base32
1624 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
1625 (build-system ruby-build-system)
1626 (arguments `(#:tests? #f)) ; there are no tests
1627 (native-inputs
1628 `(("bundler" ,bundler)))
1629 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1630 (description "This package provides the default HTML formatter for
1631 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1632 (home-page "https://github.com/colszowka/simplecov-html")
1633 (license license:expat)))
1634
1635 (define-public ruby-simplecov
1636 (package
1637 (name "ruby-simplecov")
1638 (version "0.12.0")
1639 (source (origin
1640 (method url-fetch)
1641 (uri (rubygems-uri "simplecov" version))
1642 (sha256
1643 (base32
1644 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
1645 (build-system ruby-build-system)
1646 ;; Simplecov depends on rubocop for code style checking at build time.
1647 ;; Rubocop needs simplecov at build time.
1648 (arguments `(#:tests? #f))
1649 (propagated-inputs
1650 `(("ruby-json" ,ruby-json)
1651 ("ruby-docile" ,ruby-docile)
1652 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1653 (native-inputs
1654 `(("bundler" ,bundler)))
1655 (synopsis "Code coverage framework for Ruby")
1656 (description "SimpleCov is a code coverage framework for Ruby with a
1657 powerful configuration library and automatic merging of coverage across test
1658 suites.")
1659 (home-page "https://github.com/colszowka/simplecov")
1660 (license license:expat)))
1661
1662 (define-public ruby-useragent
1663 (package
1664 (name "ruby-useragent")
1665 (version "0.16.8")
1666 (source (origin
1667 (method url-fetch)
1668 (uri (rubygems-uri "useragent" version))
1669 (sha256
1670 (base32
1671 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1672 (build-system ruby-build-system)
1673 (arguments
1674 '(#:tests? #f)) ; no test suite
1675 (synopsis "HTTP user agent parser for Ruby")
1676 (description "UserAgent is a Ruby library that parses and compares HTTP
1677 User Agents.")
1678 (home-page "https://github.com/gshutler/useragent")
1679 (license license:expat)))
1680
1681 (define-public ruby-backports
1682 (package
1683 (name "ruby-backports")
1684 (version "3.11.4")
1685 (source
1686 (origin
1687 (method url-fetch)
1688 (uri (rubygems-uri "backports" version))
1689 (sha256
1690 (base32
1691 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
1692 (build-system ruby-build-system)
1693 (arguments
1694 '(;; TODO: This should be default, but there is one test failure
1695 #:test-target "all_spec"))
1696 (native-inputs
1697 `(("ruby-mspec" ,ruby-mspec)
1698 ("ruby-activesupport" ,ruby-activesupport)))
1699 (synopsis "Backports of the features in newer Ruby versions")
1700 (description
1701 "Backports enables more compatibility across Ruby versions by providing
1702 backports of some features.")
1703 (home-page "https://github.com/marcandre/backports")
1704 (license license:expat)))
1705
1706 (define-public ruby-bacon
1707 (package
1708 (name "ruby-bacon")
1709 (version "1.2.0")
1710 (source (origin
1711 (method url-fetch)
1712 (uri (rubygems-uri "bacon" version))
1713 (sha256
1714 (base32
1715 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1716 (build-system ruby-build-system)
1717 (synopsis "Small RSpec clone")
1718 (description "Bacon is a small RSpec clone providing all essential
1719 features.")
1720 (home-page "https://github.com/chneukirchen/bacon")
1721 (license license:expat)))
1722
1723 (define-public ruby-bacon-bits
1724 (package
1725 (name "ruby-bacon-bits")
1726 (version "0.1.0")
1727 (source
1728 (origin
1729 (method url-fetch)
1730 (uri (rubygems-uri "bacon-bits" version))
1731 (sha256
1732 (base32
1733 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
1734 (build-system ruby-build-system)
1735 (arguments
1736 ;; No tests
1737 '(#:tests? #f))
1738 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
1739 (synopsis "Extensions to Bacon, for disabling tests, before and after
1740 blocks and more")
1741 (description
1742 "This extends the bacon testing framework with useful extensions to
1743 disable tests, have before and after blocks that run once and more.")
1744 (home-page "https://github.com/cldwalker/bacon-bits")
1745 (license license:expat)))
1746
1747 (define-public ruby-bacon-colored-output
1748 (package
1749 (name "ruby-bacon-colored-output")
1750 (version "1.1.1")
1751 (source
1752 (origin
1753 (method url-fetch)
1754 (uri (rubygems-uri "bacon-colored_output" version))
1755 (sha256
1756 (base32
1757 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
1758 (build-system ruby-build-system)
1759 (arguments
1760 '(;; No included tests
1761 #:tests? #f))
1762 (propagated-inputs
1763 `(("ruby-bacon" ,ruby-bacon)))
1764 (synopsis "Colored output for Bacon test framework")
1765 (description
1766 "This package adds color through ANSI escape codes to Bacon test
1767 output.")
1768 (home-page "https://github.com/whitequark/bacon-colored_output")
1769 (license license:expat)))
1770
1771 (define-public ruby-connection-pool
1772 (package
1773 (name "ruby-connection-pool")
1774 (version "2.2.2")
1775 (source (origin
1776 (method url-fetch)
1777 (uri (rubygems-uri "connection_pool" version))
1778 (sha256
1779 (base32
1780 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
1781 (build-system ruby-build-system)
1782 (native-inputs
1783 `(("bundler" ,bundler)))
1784 (synopsis "Generic connection pool for Ruby")
1785 (description "Connection_pool provides a generic connection pooling
1786 interface for Ruby programs.")
1787 (home-page "https://github.com/mperham/connection_pool")
1788 (license license:expat)))
1789
1790 (define-public ruby-net-http-persistent
1791 (package
1792 (name "ruby-net-http-persistent")
1793 (version "3.0.0")
1794 (source (origin
1795 (method url-fetch)
1796 (uri (rubygems-uri "net-http-persistent" version))
1797 (sha256
1798 (base32
1799 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1800 (build-system ruby-build-system)
1801 (native-inputs
1802 `(("ruby-connection-pool" ,ruby-connection-pool)
1803 ("ruby-hoe" ,ruby-hoe)))
1804 (synopsis "Persistent HTTP connection manager")
1805 (description "Net::HTTP::Persistent manages persistent HTTP connections
1806 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1807 (home-page "https://github.com/drbrain/net-http-persistent")
1808 (license license:expat)))
1809
1810 (define-public ruby-power-assert
1811 (package
1812 (name "ruby-power-assert")
1813 (version "0.2.7")
1814 (source (origin
1815 (method url-fetch)
1816 (uri (rubygems-uri "power_assert" version))
1817 (sha256
1818 (base32
1819 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1820 (build-system ruby-build-system)
1821 (native-inputs
1822 `(("bundler" ,bundler)))
1823 (synopsis "Assert library with descriptive assertion messages")
1824 (description "Power-assert is an assertion library providing descriptive
1825 assertion messages for tests.")
1826 (home-page "https://github.com/k-tsj/power_assert")
1827 (license (list license:bsd-2 license:ruby))))
1828
1829 (define-public ruby-powerpack
1830 (package
1831 (name "ruby-powerpack")
1832 (version "0.1.2")
1833 (source
1834 (origin
1835 (method url-fetch)
1836 (uri (rubygems-uri "powerpack" version))
1837 (sha256
1838 (base32
1839 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
1840 (build-system ruby-build-system)
1841 (arguments
1842 '(#:test-target "spec"))
1843 (native-inputs
1844 `(("bundler" ,bundler)
1845 ("ruby-rspec" ,ruby-rspec)
1846 ("ruby-yard" ,ruby-yard)))
1847 (synopsis "Useful extensions to core Ruby classes")
1848 (description
1849 "This package provides a few useful extensions to core Ruby classes,
1850 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
1851 @code{String}.")
1852 (home-page "https://github.com/bbatsov/powerpack")
1853 (license license:expat)))
1854
1855 (define-public ruby-locale
1856 (package
1857 (name "ruby-locale")
1858 (version "2.1.2")
1859 (source (origin
1860 (method url-fetch)
1861 (uri (rubygems-uri "locale" version))
1862 (sha256
1863 (base32
1864 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1865 (build-system ruby-build-system)
1866 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1867 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1868 ;; dependency cycle we disable tests.
1869 (arguments `(#:tests? #f))
1870 (native-inputs
1871 `(("bundler" ,bundler)
1872 ("ruby-yard" ,ruby-yard)))
1873 (synopsis "Ruby library providing basic localization APIs")
1874 (description
1875 "Ruby-Locale is the pure ruby library which provides basic APIs for
1876 localization.")
1877 (home-page "https://github.com/ruby-gettext/locale")
1878 (license (list license:lgpl3+ license:ruby))))
1879
1880 (define-public ruby-text
1881 (package
1882 (name "ruby-text")
1883 (version "1.3.1")
1884 (source (origin
1885 (method url-fetch)
1886 (uri (rubygems-uri "text" version))
1887 (sha256
1888 (base32
1889 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1890 (build-system ruby-build-system)
1891 (synopsis "Collection of text algorithms for Ruby")
1892 (description
1893 "This package provides a collection of text algorithms: Levenshtein,
1894 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1895 (home-page "https://github.com/threedaymonk/text")
1896 (license license:expat)))
1897
1898 (define-public ruby-gettext
1899 (package
1900 (name "ruby-gettext")
1901 (version "3.1.7")
1902 (source (origin
1903 (method url-fetch)
1904 (uri (rubygems-uri "gettext" version))
1905 (sha256
1906 (base32
1907 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1908 (build-system ruby-build-system)
1909 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1910 ;; which needs ruby-gettext. To break the dependency cycle we disable
1911 ;; tests.
1912 (arguments `(#:tests? #f))
1913 (propagated-inputs
1914 `(("ruby-locale" ,ruby-locale)
1915 ("ruby-text" ,ruby-text)))
1916 (native-inputs
1917 `(("bundler" ,bundler)
1918 ("ruby-yard" ,ruby-yard)))
1919 (synopsis "GNU gettext-like program for Ruby")
1920 (description
1921 "Gettext is a GNU gettext-like program for Ruby. The catalog
1922 file (po-file) used is the same as that used by GNU gettext, allowing you to
1923 use GNU gettext tools for maintenance.")
1924 (home-page "https://ruby-gettext.github.com/")
1925 (license (list license:lgpl3+ license:ruby))))
1926
1927 (define-public ruby-packnga
1928 (package
1929 (name "ruby-packnga")
1930 (version "1.0.4")
1931 (source (origin
1932 (method url-fetch)
1933 (uri (rubygems-uri "packnga" version))
1934 (sha256
1935 (base32
1936 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
1937 (build-system ruby-build-system)
1938 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1939 ;; To break the dependency cycle we disable tests.
1940 (arguments `(#:tests? #f))
1941 (propagated-inputs
1942 `(("ruby-gettext" ,ruby-gettext)
1943 ("ruby-yard" ,ruby-yard)))
1944 (native-inputs
1945 `(("bundler" ,bundler)))
1946 (synopsis "Utility library to package internationalized libraries")
1947 (description
1948 "Packnga is a library to translate to many languages using YARD.")
1949 (home-page "http://ranguba.org/packnga/")
1950 (license license:lgpl2.0+)))
1951
1952 (define-public ruby-test-unit
1953 (package
1954 (name "ruby-test-unit")
1955 (version "3.2.5")
1956 (source (origin
1957 (method url-fetch)
1958 (uri (rubygems-uri "test-unit" version))
1959 (sha256
1960 (base32
1961 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
1962 (build-system ruby-build-system)
1963 (propagated-inputs
1964 `(("ruby-power-assert" ,ruby-power-assert)))
1965 (native-inputs
1966 `(("bundler" ,bundler)
1967 ("ruby-packnga" ,ruby-packnga)
1968 ("ruby-yard" ,ruby-yard)))
1969 (synopsis "Unit testing framework for Ruby")
1970 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1971 on xUnit principles. These were originally designed by Kent Beck, creator of
1972 extreme programming software development methodology, for Smalltalk's SUnit.
1973 It allows writing tests, checking results and automated testing in Ruby.")
1974 (home-page "https://test-unit.github.io/")
1975 (license (list license:psfl license:ruby))))
1976
1977 (define-public ruby-maruku
1978 (package
1979 (name "ruby-maruku")
1980 (version "0.7.3")
1981 (source
1982 (origin
1983 (method url-fetch)
1984 (uri (rubygems-uri "maruku" version))
1985 (sha256
1986 (base32
1987 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
1988 (build-system ruby-build-system)
1989 (arguments
1990 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
1991 #:tests? #f
1992 #:phases
1993 (modify-phases %standard-phases
1994 (replace 'check
1995 (lambda* (#:key tests? #:allow-other-keys)
1996 (when tests?
1997 (invoke "rspec"))
1998 #t)))))
1999 (native-inputs
2000 `(("ruby-rspec" ,ruby-rspec)
2001 ("ruby-simplecov" ,ruby-simplecov)
2002 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2003 (synopsis "Markdown interpreter in Ruby")
2004 (description
2005 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2006 HTML, and PDF through LaTeX.")
2007 (home-page "https://github.com/bhollis/maruku")
2008 (license license:expat)))
2009
2010 (define-public ruby-metaclass
2011 (package
2012 (name "ruby-metaclass")
2013 (version "0.0.4")
2014 (source (origin
2015 (method url-fetch)
2016 (uri (rubygems-uri "metaclass" version))
2017 (sha256
2018 (base32
2019 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2020 (build-system ruby-build-system)
2021 (arguments
2022 `(#:phases
2023 (modify-phases %standard-phases
2024 (add-after 'unpack 'add-test-unit-to-search-path
2025 (lambda* (#:key inputs #:allow-other-keys)
2026 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2027 (substitute* "Rakefile"
2028 (("t\\.libs << \"test\"" line)
2029 (string-append line "; t.libs << \""
2030 test-unit "/lib/ruby/vendor_ruby"
2031 "/gems/test-unit-"
2032 ,(package-version ruby-test-unit)
2033 "/lib\""))))
2034 #t)))))
2035 (native-inputs
2036 `(("bundler" ,bundler)
2037 ("ruby-test-unit" ,ruby-test-unit)))
2038 (synopsis "Ruby library adding metaclass method to all objects")
2039 (description
2040 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2041 objects.")
2042 (home-page "https://github.com/floehopper/metaclass")
2043 (license license:expat)))
2044
2045 (define-public ruby-mspec
2046 (package
2047 (name "ruby-mspec")
2048 (version "1.9.1")
2049 (source
2050 (origin
2051 (method url-fetch)
2052 (uri (rubygems-uri "mspec" version))
2053 (sha256
2054 (base32
2055 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2056 (build-system ruby-build-system)
2057 (arguments
2058 '(;; TODO: 3 test failures
2059 ;; ./spec/mocks/mock_spec.rb:82
2060 ;; ./spec/utils/name_map_spec.rb:151
2061 ;; ./spec/utils/name_map_spec.rb:155
2062 #:tests? #f
2063 #:phases
2064 (modify-phases %standard-phases
2065 (add-after 'extract-gemspec 'change-dependency-constraints
2066 (lambda _
2067 (substitute* "mspec.gemspec"
2068 (("rake.*") "rake>)\n")
2069 (("rspec.*") "rspec>)\n"))
2070 #t))
2071 (replace 'check
2072 (lambda* (#:key tests? #:allow-other-keys)
2073 (when tests?
2074 (invoke "rspec" "spec"))
2075 #t)))))
2076 (native-inputs
2077 `(("bundler" ,bundler)
2078 ("ruby-rake" ,ruby-rake)
2079 ("ruby-rspec" ,ruby-rspec)))
2080 (synopsis "MSpec is a specialized framework for RubySpec")
2081 (description
2082 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2083 for basic features. MSpec contains additional features that assist in writing
2084 specs for Ruby implementations in ruby/spec.")
2085 (home-page "http://rubyspec.org")
2086 (license license:expat)))
2087
2088 (define-public ruby-mysql2
2089 (package
2090 (name "ruby-mysql2")
2091 (version "0.5.2")
2092 (source
2093 (origin
2094 (method git-fetch)
2095 (uri (git-reference
2096 (url "https://github.com/brianmario/mysql2.git")
2097 (commit version)))
2098 (file-name (git-file-name name version))
2099 (sha256
2100 (base32
2101 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2102 (build-system ruby-build-system)
2103 (arguments
2104 '(;; TODO: Tests require a running MySQL/MariaDB service
2105 #:tests? #f
2106 #:phases
2107 (modify-phases %standard-phases
2108 (replace 'replace-git-ls-files
2109 (lambda _
2110 (substitute* "mysql2.gemspec"
2111 (("git ls-files .*`") "find . -type f |sort`"))
2112 #t))
2113 (add-before 'install 'set-MAKEFLAGS
2114 (lambda* (#:key outputs #:allow-other-keys)
2115 (setenv "MAKEFLAGS"
2116 (string-append
2117 "V=1 "
2118 "prefix=" (assoc-ref outputs "out")))
2119 #t))
2120 ;; Move the 'check phase to after 'install, as then you can test
2121 ;; using the installed mysql2 gem in the store.
2122 (delete 'check)
2123 (add-after 'install 'check
2124 (lambda* (#:key outputs tests? #:allow-other-keys)
2125 (setenv "GEM_PATH"
2126 (string-append
2127 (getenv "GEM_PATH")
2128 ":"
2129 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2130 (when tests?
2131 (invoke "rspec"))
2132 #t)))))
2133 (inputs
2134 `(("mariadb" ,mariadb)
2135 ("zlib" ,zlib)))
2136 (native-inputs
2137 `(("ruby-rspec" ,ruby-rspec)
2138 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2139 (synopsis "MySQL library for Ruby, binding to libmysql")
2140 (description
2141 "This package provides a simple, fast MySQL library for Ruby, binding to
2142 libmysql.")
2143 (home-page "https://github.com/brianmario/mysql2")
2144 (license license:expat)))
2145
2146 (define-public ruby-blankslate
2147 (package
2148 (name "ruby-blankslate")
2149 (version "3.1.3")
2150 (source (origin
2151 (method url-fetch)
2152 (uri (rubygems-uri "blankslate" version))
2153 (sha256
2154 (base32
2155 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2156 (build-system ruby-build-system)
2157 (arguments
2158 `(#:phases
2159 (modify-phases %standard-phases
2160 (replace 'check
2161 (lambda _ (invoke "rspec" "spec/"))))))
2162 (native-inputs
2163 `(("bundler" ,bundler)
2164 ("ruby-rspec" ,ruby-rspec)))
2165 (synopsis "Abstract base class with no predefined methods")
2166 (description
2167 "BlankSlate provides an abstract base class with no predefined
2168 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2169 as a base class when writing classes that depend upon
2170 @code{method_missing} (e.g. dynamic proxies).")
2171 (home-page "https://github.com/masover/blankslate")
2172 (license license:expat)))
2173
2174 (define-public ruby-bond
2175 (package
2176 (name "ruby-bond")
2177 (version "0.5.1")
2178 (source
2179 (origin
2180 (method url-fetch)
2181 (uri (rubygems-uri "bond" version))
2182 (sha256
2183 (base32
2184 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2185 (build-system ruby-build-system)
2186 (native-inputs
2187 `(("ruby-bacon" ,ruby-bacon)
2188 ("ruby-bacon-bits" ,ruby-bacon-bits)
2189 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2190 (synopsis "Bond can provide custom autocompletion for arguments, methods
2191 and more")
2192 (description
2193 "Bond can autocomplete argument(s) to methods, uniquely completing per
2194 module, per method and per argument. Bond provides a configuration system and
2195 a DSL for creating custom completions and completion rules. Bond can also
2196 load completions that ship with gems. Bond is able to offer more than irb's
2197 completion since it uses the full line of input when completing as opposed to
2198 irb's last-word approach.")
2199 (home-page "http://tagaholic.me/bond/")
2200 (license license:expat)))
2201
2202 (define-public ruby-idn-ruby
2203 (package
2204 (name "ruby-idn-ruby")
2205 (version "0.1.0")
2206 (source
2207 (origin
2208 (method url-fetch)
2209 (uri (rubygems-uri "idn-ruby" version))
2210 (sha256
2211 (base32
2212 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2213 (build-system ruby-build-system)
2214 (arguments
2215 '(#:phases
2216 (modify-phases %standard-phases
2217 (delete 'check)
2218 (add-after 'install 'check
2219 (lambda* (#:key tests? outputs #:allow-other-keys)
2220 (when tests?
2221 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2222 (name-and-version (basename gem-file ".gem")))
2223 (apply invoke
2224 "ruby" "--verbose"
2225 (string-append "-I"
2226 (assoc-ref outputs "out")
2227 "/lib/ruby/vendor_ruby/gems/"
2228 name-and-version
2229 "/lib")
2230 (find-files "./test" ".*\\.rb"))))
2231 #t)))))
2232 (inputs
2233 `(("libidn" ,libidn)))
2234 (synopsis "Ruby Bindings for the GNU LibIDN library")
2235 (description
2236 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2237 Stringprep, Punycode and IDNA specifications. These are used to encode and
2238 decode internationalized domain + names according to the IDNA2003
2239 specifications.
2240
2241 Included are the most important parts of the Stringprep, Punycode and IDNA
2242 APIs like performing Stringprep processings, encoding to and decoding from
2243 Punycode strings and converting entire domain names to and from the ACE
2244 encoded form.")
2245 (home-page "https://github.com/deepfryed/idn-ruby")
2246 (license license:asl2.0)))
2247
2248 (define-public ruby-instantiator
2249 (package
2250 (name "ruby-instantiator")
2251 (version "0.0.7")
2252 (source (origin
2253 (method url-fetch)
2254 (uri (rubygems-uri "instantiator" version))
2255 (sha256
2256 (base32
2257 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2258 (build-system ruby-build-system)
2259 (arguments
2260 `(#:phases
2261 (modify-phases %standard-phases
2262 (add-after 'unpack 'add-test-unit-to-search-path
2263 (lambda* (#:key inputs #:allow-other-keys)
2264 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2265 (substitute* "Rakefile"
2266 (("t\\.libs << \"test\"" line)
2267 (string-append line "; t.libs << \""
2268 test-unit "/lib/ruby/vendor_ruby"
2269 "/gems/test-unit-"
2270 ,(package-version ruby-test-unit)
2271 "/lib\""))))
2272 #t)))))
2273 (propagated-inputs
2274 `(("ruby-blankslate" ,ruby-blankslate)))
2275 (native-inputs
2276 `(("bundler" ,bundler)
2277 ("ruby-test-unit" ,ruby-test-unit)))
2278 (synopsis "Instantiate an arbitrary Ruby class")
2279 (description
2280 "Instantiator lets you instantiate an arbitrary Ruby class without
2281 knowing anything about the constructor.")
2282 (home-page "https://github.com/floehopper/instantiator")
2283 (license license:expat)))
2284
2285 (define-public ruby-introspection
2286 (package
2287 (name "ruby-introspection")
2288 (version "0.0.4")
2289 (source (origin
2290 (method url-fetch)
2291 (uri (rubygems-uri "introspection" version))
2292 (sha256
2293 (base32
2294 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2295 (build-system ruby-build-system)
2296 (arguments
2297 `(#:phases
2298 (modify-phases %standard-phases
2299 (add-after 'unpack 'add-test-unit-to-search-path
2300 (lambda* (#:key inputs #:allow-other-keys)
2301 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2302 (substitute* "Rakefile"
2303 (("t\\.libs << \"test\"" line)
2304 (string-append line "; t.libs << \""
2305 test-unit "/lib/ruby/vendor_ruby"
2306 "/gems/test-unit-"
2307 ,(package-version ruby-test-unit)
2308 "/lib\""))))
2309 #t)))))
2310 (propagated-inputs
2311 `(("ruby-instantiator" ,ruby-instantiator)
2312 ("ruby-metaclass" ,ruby-metaclass)))
2313 (native-inputs
2314 `(("bundler" ,bundler)
2315 ("ruby-blankslate" ,ruby-blankslate)
2316 ("ruby-test-unit" ,ruby-test-unit)))
2317 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2318 (description
2319 "Introspection provides tools to inspect the hierarchy of method
2320 definitions on a Ruby object.")
2321 (home-page "https://github.com/floehopper/introspection")
2322 (license license:expat)))
2323
2324 (define-public ruby-redcarpet
2325 (package
2326 (name "ruby-redcarpet")
2327 (version "3.4.0")
2328 (source (origin
2329 (method url-fetch)
2330 (uri (rubygems-uri "redcarpet" version))
2331 (sha256
2332 (base32
2333 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2334 (build-system ruby-build-system)
2335 (arguments
2336 `(#:phases
2337 (modify-phases %standard-phases
2338 ;; The gem archive does not include the conformance tests.
2339 (add-after 'unpack 'disable-conformance-tests
2340 (lambda _
2341 (substitute* "Rakefile"
2342 (("task :test => %w\\[test:unit test:conformance\\]")
2343 "task :test => %w[test:unit]"))
2344 #t)))))
2345 (native-inputs
2346 `(("bundler" ,bundler)
2347 ("ruby-test-unit" ,ruby-test-unit)
2348 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2349 (synopsis "Extensible Markdown to (X)HTML converter")
2350 (description
2351 "Redcarpet is an extensible Ruby library for Markdown processing and
2352 conversion to (X)HTML.")
2353 (home-page "https://github.com/vmg/redcarpet")
2354 (license license:expat)))
2355
2356 (define-public ruby-mocha
2357 (package
2358 (name "ruby-mocha")
2359 (version "1.1.0")
2360 (source (origin
2361 (method url-fetch)
2362 (uri (rubygems-uri "mocha" version))
2363 (sha256
2364 (base32
2365 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2366 (build-system ruby-build-system)
2367 (arguments
2368 `(#:phases
2369 (modify-phases %standard-phases
2370 (add-after 'unpack 'add-test-unit-to-search-path
2371 (lambda* (#:key inputs #:allow-other-keys)
2372 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2373 (substitute* "Rakefile"
2374 (("t\\.libs << 'test'" line)
2375 (string-append line "; t.libs << \""
2376 test-unit "/lib/ruby/vendor_ruby"
2377 "/gems/test-unit-"
2378 ,(package-version ruby-test-unit)
2379 "/lib\""))))
2380 #t))
2381 (add-before 'check 'use-latest-redcarpet
2382 (lambda _
2383 (substitute* "mocha.gemspec"
2384 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2385 "<redcarpet>.freeze, [\">= 3\"]"))
2386 #t))
2387 (add-before 'check 'hardcode-version
2388 (lambda _
2389 ;; Mocha is undefined at build time
2390 (substitute* "Rakefile"
2391 (("#\\{Mocha::VERSION\\}") ,version))
2392 #t))
2393 (add-before 'check 'remove-failing-test
2394 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2395 (lambda _
2396 (delete-file "test/acceptance/stubbing_nil_test.rb")
2397 #t)))))
2398 (propagated-inputs
2399 `(("ruby-metaclass" ,ruby-metaclass)))
2400 (native-inputs
2401 `(("bundler" ,bundler)
2402 ("ruby-yard" ,ruby-yard)
2403 ("ruby-introspection" ,ruby-introspection)
2404 ("ruby-test-unit" ,ruby-test-unit)
2405 ("ruby-redcarpet" ,ruby-redcarpet)))
2406 (synopsis "Mocking and stubbing library for Ruby")
2407 (description
2408 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
2409 allows mocking and stubbing of methods on real (non-mock) classes.")
2410 (home-page "http://gofreerange.com/mocha/docs")
2411 (license license:expat)))
2412
2413 (define-public ruby-mocha-on-bacon
2414 (package
2415 (name "ruby-mocha-on-bacon")
2416 (version "0.2.3")
2417 (source
2418 (origin
2419 (method url-fetch)
2420 (uri (rubygems-uri "mocha-on-bacon" version))
2421 (sha256
2422 (base32
2423 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
2424 (build-system ruby-build-system)
2425 (arguments
2426 ;; rubygems.org release missing tests
2427 '(#:tests? #f))
2428 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
2429 (synopsis "Mocha adapter for Bacon")
2430 (description
2431 "This package provides a Mocha adapter for Bacon, allowing you to use the
2432 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
2433 (home-page
2434 "https://github.com/alloy/mocha-on-bacon")
2435 (license license:expat)))
2436
2437 (define-public ruby-net-ssh
2438 (package
2439 (name "ruby-net-ssh")
2440 (version "4.2.0")
2441 (source (origin
2442 (method url-fetch)
2443 (uri (rubygems-uri "net-ssh" version))
2444 (sha256
2445 (base32
2446 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2447 (build-system ruby-build-system)
2448 (native-inputs
2449 `(("bundler" ,bundler)
2450 ("ruby-mocha" ,ruby-mocha)
2451 ("ruby-test-unit" ,ruby-test-unit)))
2452 (synopsis "Ruby implementation of the SSH2 client protocol")
2453 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
2454 client protocol. It allows you to write programs that invoke and interact
2455 with processes on remote servers, via SSH2.")
2456 (home-page "https://github.com/net-ssh/net-ssh")
2457 (license license:expat)))
2458
2459 (define-public ruby-net-scp
2460 (package
2461 (name "ruby-net-scp")
2462 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
2463 (version "1.2.2.rc2")
2464 (source
2465 (origin
2466 (method url-fetch)
2467 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
2468 version ".tar.gz"))
2469 (sha256
2470 (base32
2471 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
2472 (build-system ruby-build-system)
2473 (native-inputs
2474 `(("bundler" ,bundler)
2475 ("ruby-test-unit" ,ruby-test-unit)
2476 ("ruby-mocha" ,ruby-mocha)))
2477 (propagated-inputs
2478 `(("ruby-net-ssh" ,ruby-net-ssh)))
2479 (synopsis "Pure-Ruby SCP client library")
2480 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
2481 client protocol.")
2482 (home-page "https://github.com/net-ssh/net-scp")
2483 (license license:expat)))
2484
2485 (define-public ruby-minitest
2486 (package
2487 (name "ruby-minitest")
2488 (version "5.11.3")
2489 (source (origin
2490 (method url-fetch)
2491 (uri (rubygems-uri "minitest" version))
2492 (sha256
2493 (base32
2494 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
2495 (build-system ruby-build-system)
2496 (native-inputs
2497 `(("ruby-hoe" ,ruby-hoe)))
2498 (synopsis "Small test suite library for Ruby")
2499 (description "Minitest provides a complete suite of Ruby testing
2500 facilities supporting TDD, BDD, mocking, and benchmarking.")
2501 (home-page "https://github.com/seattlerb/minitest")
2502 (license license:expat)))
2503
2504 ;; This is the last release of Minitest 4, which is used by some packages.
2505 (define-public ruby-minitest-4
2506 (package (inherit ruby-minitest)
2507 (version "4.7.5")
2508 (source (origin
2509 (method url-fetch)
2510 (uri (rubygems-uri "minitest" version))
2511 (sha256
2512 (base32
2513 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
2514 (arguments
2515 `(#:phases
2516 (modify-phases %standard-phases
2517 (add-after 'unpack 'remove-unsupported-method
2518 (lambda _
2519 (substitute* "Rakefile"
2520 (("self\\.rubyforge_name = .*") ""))
2521 #t))
2522 (add-after 'build 'exclude-failing-tests
2523 (lambda _
2524 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
2525 ;; Fixnum.
2526 (delete-file "test/minitest/test_minitest_spec.rb")
2527 #t)))))))
2528
2529 (define-public ruby-minitest-sprint
2530 (package
2531 (name "ruby-minitest-sprint")
2532 (version "1.1.0")
2533 (source (origin
2534 (method url-fetch)
2535 (uri (rubygems-uri "minitest-sprint" version))
2536 (sha256
2537 (base32
2538 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
2539 (build-system ruby-build-system)
2540 (native-inputs
2541 `(("ruby-hoe" ,ruby-hoe)
2542 ("ruby-minitest" ,ruby-minitest)))
2543 (synopsis "Fast test suite runner for minitest")
2544 (description "Minitest-sprint is a test runner for minitest that makes it
2545 easier to re-run individual failing tests.")
2546 (home-page "https://github.com/seattlerb/minitest-sprint")
2547 (license license:expat)))
2548
2549 (define-public ruby-minitest-bacon
2550 (package
2551 (name "ruby-minitest-bacon")
2552 (version "1.0.3")
2553 (source (origin
2554 (method url-fetch)
2555 (uri (rubygems-uri "minitest-bacon" version))
2556 (sha256
2557 (base32
2558 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
2559 (build-system ruby-build-system)
2560 (native-inputs
2561 `(("ruby-hoe" ,ruby-hoe)))
2562 (inputs
2563 `(("ruby-minitest" ,ruby-minitest)))
2564 (synopsis "Bacon compatibility library for minitest")
2565 (description "Minitest-bacon extends minitest with bacon-like
2566 functionality, making it easier to migrate test suites from bacon to minitest.")
2567 (home-page "https://github.com/seattlerb/minitest-bacon")
2568 (license license:expat)))
2569
2570 (define-public ruby-minitest-focus
2571 (package
2572 (name "ruby-minitest-focus")
2573 (version "1.1.2")
2574 (source
2575 (origin
2576 (method url-fetch)
2577 (uri (rubygems-uri "minitest-focus" version))
2578 (sha256
2579 (base32
2580 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
2581 (build-system ruby-build-system)
2582 (propagated-inputs
2583 `(("ruby-minitest" ,ruby-minitest)))
2584 (native-inputs
2585 `(("ruby-hoe" ,ruby-hoe)))
2586 (synopsis "Allows a few specific tests to be focused on")
2587 (description
2588 "@code{minitest-focus} gives the ability focus on a few tests with ease
2589 without having to use command-line arguments. It introduces a @code{focus}
2590 class method for use in testing classes, specifying that the next defined test
2591 is to be run.")
2592 (home-page "https://github.com/seattlerb/minitest-focus")
2593 (license license:expat)))
2594
2595 (define-public ruby-minitest-pretty-diff
2596 ;; Use git reference because gem is out of date and does not contain testing
2597 ;; script. There are no releases on GitHub.
2598 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
2599 (package
2600 (name "ruby-minitest-pretty-diff")
2601 (version (string-append "0.1-1." (string-take commit 8)))
2602 (source (origin
2603 (method git-fetch)
2604 (uri (git-reference
2605 (url "https://github.com/adammck/minitest-pretty_diff.git")
2606 (commit commit)))
2607 (file-name (string-append name "-" version "-checkout"))
2608 (sha256
2609 (base32
2610 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
2611 (build-system ruby-build-system)
2612 (arguments
2613 `(#:phases
2614 (modify-phases %standard-phases
2615 (replace 'check
2616 (lambda _
2617 (invoke "script/test"))))))
2618 (native-inputs
2619 `(("bundler" ,bundler)
2620 ("ruby-turn" ,ruby-turn)))
2621 (synopsis "Pretty-print hashes and arrays in MiniTest")
2622 (description
2623 "@code{minitest-pretty_diff} monkey-patches
2624 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
2625 diffing them. This makes it easier to spot differences between nested
2626 structures when tests fail.")
2627 (home-page "https://github.com/adammck/minitest-pretty_diff")
2628 (license license:expat))))
2629
2630 (define-public ruby-minitest-moar
2631 (package
2632 (name "ruby-minitest-moar")
2633 (version "0.0.4")
2634 (source
2635 (origin
2636 (method url-fetch)
2637 (uri (rubygems-uri "minitest-moar" version))
2638 (sha256
2639 (base32
2640 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
2641 (build-system ruby-build-system)
2642 (arguments
2643 `(#:phases
2644 (modify-phases %standard-phases
2645 (add-before 'check 'clean-dependencies
2646 (lambda _
2647 ;; Remove all gems defined in the Gemfile because these are not
2648 ;; truly needed.
2649 (substitute* "Gemfile"
2650 (("gem .*") ""))
2651 ;; Remove byebug as not needed to run tests.
2652 (substitute* "test/test_helper.rb"
2653 (("require 'byebug'") ""))
2654 #t)))))
2655 (native-inputs
2656 `(("bundler" ,bundler)
2657 ("ruby-minitest" ,ruby-minitest)))
2658 (synopsis "Extra features and changes to MiniTest")
2659 (description "@code{MiniTest Moar} add some additional features and
2660 changes some default behaviours in MiniTest. For instance, Moar replaces the
2661 MiniTest @code{Object#stub} with a global @code{stub} method.")
2662 (home-page "https://github.com/dockyard/minitest-moar")
2663 (license license:expat)))
2664
2665 (define-public ruby-minitest-bonus-assertions
2666 (package
2667 (name "ruby-minitest-bonus-assertions")
2668 (version "3.0")
2669 (source
2670 (origin
2671 (method url-fetch)
2672 (uri (rubygems-uri "minitest-bonus-assertions" version))
2673 (sha256
2674 (base32
2675 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
2676 (build-system ruby-build-system)
2677 (arguments
2678 `(#:phases
2679 (modify-phases %standard-phases
2680 (add-before 'check 'clean-dependencies
2681 (lambda _
2682 ;; Remove unneeded require statement that would entail another
2683 ;; dependency.
2684 (substitute* "test/minitest_config.rb"
2685 (("require 'minitest/bisect'") ""))
2686 #t)))))
2687 (native-inputs
2688 `(("ruby-hoe" ,ruby-hoe)
2689 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
2690 ("ruby-minitest-focus" ,ruby-minitest-focus)
2691 ("ruby-minitest-moar" ,ruby-minitest-moar)))
2692 (synopsis "Bonus assertions for @code{Minitest}")
2693 (description
2694 "Minitest bonus assertions provides extra MiniTest assertions. For
2695 instance, it provides @code{assert_true}, @code{assert_false} and
2696 @code{assert_set_equal}.")
2697 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
2698 (license license:expat)))
2699
2700 (define-public ruby-minitest-reporters
2701 (package
2702 (name "ruby-minitest-reporters")
2703 (version "1.3.6")
2704 (source
2705 (origin
2706 (method url-fetch)
2707 (uri (rubygems-uri "minitest-reporters" version))
2708 (sha256
2709 (base32
2710 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
2711 (build-system ruby-build-system)
2712 (arguments
2713 '(#:phases
2714 (modify-phases %standard-phases
2715 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
2716 ;; including it as an input can lead to circular dependencies.
2717 (add-after 'unpack 'remove-rubocop-from-Rakefile
2718 (lambda _
2719 (substitute* "Rakefile"
2720 (("require 'rubocop/rake\\_task'") "")
2721 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
2722 #t))
2723 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
2724 (lambda _
2725 (substitute* "minitest-reporters.gemspec"
2726 ((".*%q<rubocop>.*") "\n"))
2727 #t)))))
2728 (propagated-inputs
2729 `(("ruby-ansi" ,ruby-ansi)
2730 ("ruby-builder" ,ruby-builder)
2731 ("ruby-minitest" ,ruby-minitest)
2732 ("ruby-progressbar" ,ruby-progressbar)))
2733 (native-inputs
2734 `(("bundler" ,bundler)
2735 ("ruby-maruku" ,ruby-maruku)))
2736 (synopsis "Enhanced reporting for Minitest tests")
2737 (description
2738 "@code{minitest/reporters} provides a custom Minitest runner to improve
2739 how the test state is reported. A number of different reporters are
2740 available, including a spec reporter, progress bar reporter, a HTML
2741 reporter.")
2742 (home-page "https://github.com/kern/minitest-reporters")
2743 (license license:expat)))
2744
2745 (define-public ruby-minitest-rg
2746 (package
2747 (name "ruby-minitest-rg")
2748 (version "5.2.0")
2749 (source
2750 (origin
2751 (method url-fetch)
2752 (uri (rubygems-uri "minitest-rg" version))
2753 (sha256
2754 (base32
2755 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
2756 (build-system ruby-build-system)
2757 (arguments
2758 ;; Some tests fail even outside Guix, so disable tests.
2759 ;; https://github.com/blowmage/minitest-rg/issues/12
2760 ;; https://github.com/blowmage/minitest-rg/pull/13
2761 `(#:tests? #f))
2762 (propagated-inputs
2763 `(("ruby-minitest" ,ruby-minitest)))
2764 (synopsis "Coloured output for Minitest")
2765 (description
2766 "@code{minitest-rg} changes the colour of the output from Minitest.")
2767 (home-page "http://blowmage.com/minitest-rg")
2768 (license license:expat)))
2769
2770 (define-public ruby-minitest-hooks
2771 (package
2772 (name "ruby-minitest-hooks")
2773 (version "1.4.2")
2774 (source
2775 (origin
2776 (method url-fetch)
2777 (uri (rubygems-uri "minitest-hooks" version))
2778 (sha256
2779 (base32
2780 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
2781 (build-system ruby-build-system)
2782 (arguments
2783 '(#:test-target "spec"))
2784 (native-inputs
2785 `(("ruby-sequel" ,ruby-sequel)
2786 ("ruby-sqlite3" ,ruby-sqlite3)))
2787 (synopsis "Hooks for the minitest framework")
2788 (description
2789 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
2790 @code{around_all} hooks for Minitest. This allows, for instance, running each
2791 suite of specs inside a database transaction, running each spec inside its own
2792 savepoint inside that transaction. This can significantly speed up testing
2793 for specs that share expensive database setup code.")
2794 (home-page "https://github.com/jeremyevans/minitest-hooks")
2795 (license license:expat)))
2796
2797 (define-public ruby-daemons
2798 (package
2799 (name "ruby-daemons")
2800 (version "1.2.5")
2801 (source (origin
2802 (method url-fetch)
2803 (uri (rubygems-uri "daemons" version))
2804 (sha256
2805 (base32
2806 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
2807 (build-system ruby-build-system)
2808 (arguments
2809 `(#:tests? #f)) ; no test suite
2810 (synopsis "Daemonize Ruby programs")
2811 (description "Daemons provides a way to wrap existing Ruby scripts to be
2812 run as a daemon and to be controlled by simple start/stop/restart commands.")
2813 (home-page "https://github.com/thuehlinger/daemons")
2814 (license license:expat)))
2815
2816 (define-public ruby-data_uri
2817 (package
2818 (name "ruby-data_uri")
2819 (version "0.1.0")
2820 (source
2821 (origin
2822 (method url-fetch)
2823 (uri (rubygems-uri "data_uri" version))
2824 (sha256
2825 (base32
2826 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
2827 (build-system ruby-build-system)
2828 (synopsis "URI class for parsing data URIs")
2829 (description
2830 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
2831 embedded inside a URI. The URI::Data class provides support for parsing these
2832 URIs using the normal URI.parse method.")
2833 (home-page "https://github.com/dball/data_uri")
2834 (license license:expat)))
2835
2836 (define-public ruby-git
2837 (package
2838 (name "ruby-git")
2839 (version "1.3.0")
2840 (source (origin
2841 (method url-fetch)
2842 (uri (rubygems-uri "git" version))
2843 (sha256
2844 (base32
2845 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
2846 (build-system ruby-build-system)
2847 (arguments
2848 `(#:tests? #f ; no tests
2849 #:phases (modify-phases %standard-phases
2850 (add-after 'install 'patch-git-binary
2851 (lambda* (#:key inputs outputs #:allow-other-keys)
2852 ;; Make the default git binary an absolute path to the
2853 ;; store.
2854 (let ((git (string-append (assoc-ref inputs "git")
2855 "/bin/git"))
2856 (config (string-append
2857 (assoc-ref outputs "out")
2858 "/lib/ruby/vendor_ruby/gems/git-"
2859 ,version "/lib/git/config.rb")))
2860 (substitute* (list config)
2861 (("'git'")
2862 (string-append "'" git "'")))
2863 #t))))))
2864 (inputs
2865 `(("git" ,git)))
2866 (synopsis "Ruby wrappers for Git")
2867 (description "Ruby/Git is a Ruby library that can be used to create, read
2868 and manipulate Git repositories by wrapping system calls to the git binary.")
2869 (home-page "https://github.com/schacon/ruby-git")
2870 (license license:expat)))
2871
2872 (define-public ruby-slop
2873 (package
2874 (name "ruby-slop")
2875 (version "4.5.0")
2876 (source (origin
2877 (method url-fetch)
2878 (uri (rubygems-uri "slop" version))
2879 (sha256
2880 (base32
2881 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
2882 (build-system ruby-build-system)
2883 (native-inputs
2884 `(("ruby-minitest" ,ruby-minitest)))
2885 (synopsis "Ruby command line option parser")
2886 (description "Slop provides a Ruby domain specific language for gathering
2887 options and parsing command line flags.")
2888 (home-page "https://github.com/leejarvis/slop")
2889 (license license:expat)))
2890
2891 (define-public ruby-slop-3
2892 (package (inherit ruby-slop)
2893 (version "3.6.0")
2894 (source (origin
2895 (method url-fetch)
2896 (uri (rubygems-uri "slop" version))
2897 (sha256
2898 (base32
2899 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
2900
2901 (define-public ruby-multipart-post
2902 (package
2903 (name "ruby-multipart-post")
2904 (version "2.0.0")
2905 (source (origin
2906 (method url-fetch)
2907 (uri (rubygems-uri "multipart-post" version))
2908 (sha256
2909 (base32
2910 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
2911 (build-system ruby-build-system)
2912 (native-inputs
2913 `(("bundler" ,bundler)))
2914 (synopsis "Multipart POST library for Ruby")
2915 (description "Multipart-Post Adds multipart POST capability to Ruby's
2916 net/http library.")
2917 (home-page "https://github.com/nicksieger/multipart-post")
2918 (license license:expat)))
2919
2920 (define-public ruby-multi-json
2921 (package
2922 (name "ruby-multi-json")
2923 (version "1.13.1")
2924 (source
2925 (origin
2926 (method url-fetch)
2927 ;; Tests are not distributed at rubygems.org so download from GitHub
2928 ;; instead.
2929 (uri (string-append "https://github.com/intridea/multi_json/archive/v"
2930 version ".tar.gz"))
2931 (file-name (string-append name "-" version ".tar.gz"))
2932 (sha256
2933 (base32
2934 "1s64xqvrnrxmb59v6b2kchnisawg5ai9ky1w60dy6z6ws9la1xv4"))))
2935 (build-system ruby-build-system)
2936 (arguments
2937 `(#:phases
2938 (modify-phases %standard-phases
2939 (add-after 'unpack 'remove-signing-key-reference
2940 (lambda _
2941 (substitute* "multi_json.gemspec"
2942 ((".*spec.signing_key.*") ""))
2943 #t)))))
2944 (native-inputs
2945 `(("bundler" ,bundler)
2946 ("ruby-rspec" ,ruby-rspec)
2947 ("ruby-yard" ,ruby-yard)
2948 ("ruby-json-pure" ,ruby-json-pure)
2949 ("ruby-oj" ,ruby-oj)
2950 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
2951 (synopsis "Common interface to multiple JSON libraries for Ruby")
2952 (description
2953 "This package provides a common interface to multiple JSON libraries,
2954 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
2955 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
2956 (home-page "https://github.com/intridea/multi_json")
2957 (license license:expat)))
2958
2959 (define-public ruby-multi-test
2960 (package
2961 (name "ruby-multi-test")
2962 (version "0.1.2")
2963 (source
2964 (origin
2965 (method url-fetch)
2966 (uri (rubygems-uri "multi_test" version))
2967 (sha256
2968 (base32
2969 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
2970 (build-system ruby-build-system)
2971 (arguments
2972 '(;; Tests require different sets of specific gem versions to be available,
2973 ;; and there is no gemfile that specifies the newest versions of
2974 ;; dependencies to be tested.
2975 #:tests? #f))
2976 (synopsis
2977 "Interface to testing libraries loaded into a running Ruby process")
2978 (description
2979 "@code{multi_test} provides a uniform interface onto whatever testing
2980 libraries that have been loaded into a running Ruby process to help control
2981 rogue test/unit/autorun requires.")
2982 (home-page "https://github.com/cucumber/multi_test")
2983 (license license:expat)))
2984
2985 (define-public ruby-arel
2986 (package
2987 (name "ruby-arel")
2988 (version "9.0.0")
2989 (source (origin
2990 (method url-fetch)
2991 (uri (rubygems-uri "arel" version))
2992 (sha256
2993 (base32
2994 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
2995 (build-system ruby-build-system)
2996 (arguments '(#:tests? #f)) ; no tests
2997 (home-page "https://github.com/rails/arel")
2998 (synopsis "SQL AST manager for Ruby")
2999 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3000 Ruby. It simplifies the generation of complex SQL queries and adapts to
3001 various relational database implementations.")
3002 (license license:expat)))
3003
3004 (define-public ruby-marcel
3005 (package
3006 (name "ruby-marcel")
3007 (version "0.3.3")
3008 (source
3009 (origin
3010 (method url-fetch)
3011 (uri (rubygems-uri "marcel" version))
3012 (sha256
3013 (base32
3014 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3015 (build-system ruby-build-system)
3016 (arguments
3017 '(;; No included tests
3018 #:tests? #f))
3019 (propagated-inputs
3020 `(("ruby-mimemagic" ,ruby-mimemagic)))
3021 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3022 (description
3023 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3024 Extensions} type detection using magic numbers, filenames, and extensions")
3025 (home-page "https://github.com/basecamp/marcel")
3026 (license license:expat)))
3027
3028 (define-public ruby-minitar
3029 ;; We package from the GitHub source to fix the security issue reported at
3030 ;; https://github.com/halostatue/minitar/issues/16.
3031 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3032 (package
3033 (name "ruby-minitar")
3034 (version (string-append "0.5.4-1." (string-take commit 8)))
3035 (source
3036 (origin
3037 (method git-fetch)
3038 (uri (git-reference
3039 (url "https://github.com/halostatue/minitar.git")
3040 (commit commit)))
3041 (file-name (string-append name "-" version "-checkout"))
3042 (sha256
3043 (base32
3044 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3045 (build-system ruby-build-system)
3046 (arguments
3047 '(#:tests? #f)) ; missing a gemspec
3048 (synopsis "Ruby library and utility for handling tar archives")
3049 (description
3050 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3051 that provides the ability to deal with POSIX tar archive files.")
3052 (home-page "http://www.github.com/atoulme/minitar")
3053 (license (list license:gpl2+ license:ruby)))))
3054
3055 (define-public ruby-mini-portile
3056 (package
3057 (name "ruby-mini-portile")
3058 (version "0.6.2")
3059 (source
3060 (origin
3061 (method url-fetch)
3062 (uri (rubygems-uri "mini_portile" version))
3063 (sha256
3064 (base32
3065 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3066 (build-system ruby-build-system)
3067 (arguments
3068 '(#:tests? #f)) ; tests require network access
3069 (synopsis "Ports system for Ruby developers")
3070 (description "Mini-portile is a port/recipe system for Ruby developers.
3071 It provides a standard way to compile against specific versions of libraries
3072 to reproduce user environments.")
3073 (home-page "https://github.com/flavorjones/mini_portile")
3074 (license license:expat)))
3075
3076 (define-public ruby-mini-portile-2
3077 (package (inherit ruby-mini-portile)
3078 (version "2.2.0")
3079 (source (origin
3080 (method url-fetch)
3081 (uri (rubygems-uri "mini_portile2" version))
3082 (sha256
3083 (base32
3084 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
3085
3086 (define-public ruby-nokogiri
3087 (package
3088 (name "ruby-nokogiri")
3089 (version "1.8.0")
3090 (source (origin
3091 (method url-fetch)
3092 (uri (rubygems-uri "nokogiri" version))
3093 (sha256
3094 (base32
3095 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
3096 (build-system ruby-build-system)
3097 (arguments
3098 ;; Tests fail because Nokogiri can only test with an installed extension,
3099 ;; and also because many test framework dependencies are missing.
3100 `(#:tests? #f
3101 #:gem-flags (list "--" "--use-system-libraries"
3102 (string-append "--with-xml2-include="
3103 (assoc-ref %build-inputs "libxml2")
3104 "/include/libxml2" ))
3105 #:phases
3106 (modify-phases %standard-phases
3107 (add-before 'build 'patch-extconf
3108 ;; 'pkg-config' is not included in the GEM_PATH during
3109 ;; installation, so we add it directly to the load path.
3110 (lambda* (#:key inputs #:allow-other-keys)
3111 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3112 (substitute* "ext/nokogiri/extconf.rb"
3113 (("gem 'pkg-config'.*")
3114 (string-append "$:.unshift '"
3115 pkg-config "/lib/ruby/vendor_ruby"
3116 "/gems/pkg-config-"
3117 ,(package-version ruby-pkg-config)
3118 "/lib'\n"))))
3119 #t)))))
3120 (native-inputs
3121 `(("ruby-hoe" ,ruby-hoe)))
3122 (inputs
3123 `(("zlib" ,zlib)
3124 ("libxml2" ,libxml2)
3125 ("libxslt" ,libxslt)))
3126 (propagated-inputs
3127 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3128 ("ruby-pkg-config" ,ruby-pkg-config)))
3129 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3130 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3131 both CSS3 selector and XPath 1.0 support.")
3132 (home-page "http://www.nokogiri.org/")
3133 (license license:expat)))
3134
3135 (define-public ruby-method-source
3136 (package
3137 (name "ruby-method-source")
3138 (version "0.9.0")
3139 (source
3140 (origin
3141 (method url-fetch)
3142 (uri (rubygems-uri "method_source" version))
3143 (sha256
3144 (base32
3145 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3146 (build-system ruby-build-system)
3147 (arguments
3148 `(#:test-target "spec"))
3149 (native-inputs
3150 `(("ruby-rspec" ,ruby-rspec)
3151 ("git" ,git)))
3152 (synopsis "Retrieve the source code for Ruby methods")
3153 (description "Method_source retrieves the source code for Ruby methods.
3154 Additionally, it can extract source code from Proc and Lambda objects or just
3155 extract comments.")
3156 (home-page "https://github.com/banister/method_source")
3157 (license license:expat)))
3158
3159 (define-public ruby-coderay
3160 (package
3161 (name "ruby-coderay")
3162 (version "1.1.2")
3163 (source
3164 (origin
3165 (method url-fetch)
3166 (uri (rubygems-uri "coderay" version))
3167 (sha256
3168 (base32
3169 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3170 (build-system ruby-build-system)
3171 (arguments
3172 '(#:tests? #f)) ; missing test files
3173 (synopsis "Ruby syntax highlighting library")
3174 (description "Coderay is a Ruby library that provides syntax highlighting
3175 for select languages.")
3176 (home-page "http://coderay.rubychan.de")
3177 (license license:expat)))
3178
3179 (define-public ruby-parser
3180 (package
3181 (name "ruby-parser")
3182 (version "2.6.0.0")
3183 (source
3184 (origin
3185 (method url-fetch)
3186 (uri (rubygems-uri "parser" version))
3187 (sha256
3188 (base32
3189 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3190 (build-system ruby-build-system)
3191 (native-inputs
3192 `(("bundler" ,bundler)
3193 ("ruby-cliver" ,ruby-cliver)
3194 ("ruby-simplecov" ,ruby-simplecov)
3195 ("ruby-racc" ,ruby-racc)))
3196 (inputs
3197 `(("ragel" ,ragel)))
3198 (propagated-inputs
3199 `(("ruby-ast" ,ruby-ast)))
3200 (synopsis "Ruby parser written in pure Ruby")
3201 (description
3202 "This package provides a Ruby parser written in pure Ruby.")
3203 (home-page "https://github.com/whitequark/parser")
3204 (license license:expat)))
3205
3206 (define-public ruby-prawn-manual-builder
3207 (package
3208 (name "ruby-prawn-manual-builder")
3209 (version "0.3.0")
3210 (source
3211 (origin
3212 (method url-fetch)
3213 (uri (rubygems-uri "prawn-manual_builder" version))
3214 (sha256
3215 (base32
3216 "0wbjnkqp55p5wmz85ldypcray223glckd209hmdxhnzk8s5pb3za"))))
3217 (build-system ruby-build-system)
3218 (arguments
3219 '(;; No included tests
3220 #:tests? #f
3221 #:phases
3222 (modify-phases %standard-phases
3223 (add-after 'extract-gemspec 'patch-gemspec
3224 (lambda _
3225 (substitute* ".gemspec"
3226 ;; Loosen the requirement for pdf-inspector
3227 (("~> 1\\.0\\.7") ">= 0")))))))
3228 (propagated-inputs
3229 `(("ruby-coderay" ,ruby-coderay)))
3230 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3231 (description
3232 "This package provides a tool for writing manuals for Prawn and Prawn
3233 accessories")
3234 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3235 (license (list
3236 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3237 license:gpl2
3238 license:gpl3))))
3239
3240 (define-public ruby-progress_bar
3241 (package
3242 (name "ruby-progress_bar")
3243 (version "1.1.0")
3244 (source
3245 (origin
3246 (method url-fetch)
3247 (uri (rubygems-uri "progress_bar" version))
3248 (sha256
3249 (base32
3250 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3251 (build-system ruby-build-system)
3252 (arguments
3253 '(#:test-target "spec"))
3254 (propagated-inputs
3255 `(("ruby-highline" ,ruby-highline)
3256 ("ruby-options" ,ruby-options)))
3257 (native-inputs
3258 `(("bundler" ,bundler)
3259 ("ruby-rspec" ,ruby-rspec)
3260 ("ruby-timecop" ,ruby-timecop)))
3261 (synopsis
3262 "Ruby library for displaying progress bars")
3263 (description
3264 "ProgressBar is a simple library for displaying progress bars. The
3265 maximum value is configurable, and additional information can be displayed
3266 like the percentage completion, estimated time remaining, elapsed time and
3267 rate.")
3268 (home-page "https://github.com/paul/progress_bar")
3269 (license license:wtfpl2)))
3270
3271 (define-public ruby-progressbar
3272 (package
3273 (name "ruby-progressbar")
3274 (version "1.10.0")
3275 (source
3276 (origin
3277 (method url-fetch)
3278 (uri (rubygems-uri "ruby-progressbar" version))
3279 (sha256
3280 (base32
3281 "1cv2ym3rl09svw8940ny67bav7b2db4ms39i4raaqzkf59jmhglk"))))
3282 (build-system ruby-build-system)
3283 (arguments
3284 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3285 #:tests? #f))
3286 (synopsis "Text progress bar library for Ruby")
3287 (description
3288 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3289 The output can be customized with a formatting system.")
3290 (home-page "https://github.com/jfelchner/ruby-progressbar")
3291 (license license:expat)))
3292
3293 (define-public ruby-pry
3294 (package
3295 (name "ruby-pry")
3296 (version "0.11.3")
3297 (source
3298 (origin
3299 (method url-fetch)
3300 (uri (rubygems-uri "pry" version))
3301 (sha256
3302 (base32
3303 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3304 (build-system ruby-build-system)
3305 (arguments
3306 '(#:tests? #f)) ; no tests
3307 (propagated-inputs
3308 `(("ruby-coderay" ,ruby-coderay)
3309 ("ruby-method-source" ,ruby-method-source)))
3310 (synopsis "Ruby REPL")
3311 (description "Pry is an IRB alternative and runtime developer console for
3312 Ruby. It features syntax highlighting, a plugin architecture, runtime
3313 invocation, and source and documentation browsing.")
3314 (home-page "https://pryrepl.org")
3315 (license license:expat)))
3316
3317 (define-public ruby-guard
3318 (package
3319 (name "ruby-guard")
3320 (version "2.13.0")
3321 (source (origin
3322 (method url-fetch)
3323 ;; The gem does not include a Rakefile, nor does it contain a
3324 ;; gemspec file, nor does it come with the tests. This is why
3325 ;; we fetch the tarball from Github.
3326 (uri (string-append "https://github.com/guard/guard/archive/v"
3327 version ".tar.gz"))
3328 (file-name (string-append name "-" version ".tar.gz"))
3329 (sha256
3330 (base32
3331 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
3332 (build-system ruby-build-system)
3333 (arguments
3334 `(#:tests? #f ; tests require cucumber
3335 #:phases
3336 (modify-phases %standard-phases
3337 (add-after 'unpack 'remove-git-ls-files
3338 (lambda* (#:key outputs #:allow-other-keys)
3339 (substitute* "guard.gemspec"
3340 (("git ls-files -z") "find . -type f -print0"))
3341 #t))
3342 (replace 'build
3343 (lambda _
3344 (invoke "gem" "build" "guard.gemspec"))))))
3345 (propagated-inputs
3346 `(("ruby-formatador" ,ruby-formatador)
3347 ("ruby-listen" ,ruby-listen)
3348 ("ruby-lumberjack" ,ruby-lumberjack)
3349 ("ruby-nenv" ,ruby-nenv)
3350 ("ruby-notiffany" ,ruby-notiffany)
3351 ("ruby-pry" ,ruby-pry)
3352 ("ruby-shellany" ,ruby-shellany)
3353 ("ruby-thor" ,ruby-thor)))
3354 (native-inputs
3355 `(("bundler" ,bundler)
3356 ("ruby-rspec" ,ruby-rspec)))
3357 (synopsis "Tool to handle events on file system modifications")
3358 (description
3359 "Guard is a command line tool to easily handle events on file system
3360 modifications. Guard automates various tasks by running custom rules whenever
3361 file or directories are modified.")
3362 (home-page "http://guardgem.org/")
3363 (license license:expat)))
3364
3365 (define-public ruby-thread-safe
3366 (package
3367 (name "ruby-thread-safe")
3368 (version "0.3.6")
3369 (source
3370 (origin
3371 (method url-fetch)
3372 (uri (rubygems-uri "thread_safe" version))
3373 (sha256
3374 (base32
3375 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
3376 (build-system ruby-build-system)
3377 (arguments
3378 '(#:tests? #f)) ; needs simplecov, among others
3379 (synopsis "Thread-safe utilities for Ruby")
3380 (description "The thread_safe library provides thread-safe collections and
3381 utilities for Ruby.")
3382 (home-page "https://github.com/ruby-concurrency/thread_safe")
3383 (license license:asl2.0)))
3384
3385 (define-public ruby-tzinfo
3386 (package
3387 (name "ruby-tzinfo")
3388 (version "1.2.4")
3389 (source
3390 (origin
3391 (method url-fetch)
3392 (uri (rubygems-uri "tzinfo" version))
3393 (sha256
3394 (base32
3395 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
3396 (build-system ruby-build-system)
3397 (propagated-inputs
3398 `(("ruby-thread-safe" ,ruby-thread-safe)))
3399 (synopsis "Time zone library for Ruby")
3400 (description "TZInfo is a Ruby library that provides daylight savings
3401 aware transformations between times in different time zones.")
3402 (home-page "https://tzinfo.github.io")
3403 (license license:expat)))
3404
3405 (define-public ruby-tzinfo-data
3406 (package
3407 (name "ruby-tzinfo-data")
3408 (version "1.2017.3")
3409 (source
3410 (origin
3411 (method url-fetch)
3412 ;; Download from GitHub because the rubygems version does not contain
3413 ;; Rakefile or tests.
3414 (uri (string-append
3415 "https://github.com/tzinfo/tzinfo-data/archive/v"
3416 version
3417 ".tar.gz"))
3418 (file-name (string-append name "-" version ".tar.gz"))
3419 (sha256
3420 (base32
3421 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
3422 ;; Remove the known test failure.
3423 ;; https://github.com/tzinfo/tzinfo-data/issues/10
3424 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
3425 (patches (search-patches
3426 "ruby-tzinfo-data-ignore-broken-test.patch"))))
3427 (build-system ruby-build-system)
3428 (propagated-inputs
3429 `(("ruby-tzinfo" ,ruby-tzinfo)))
3430 (synopsis "Data from the IANA Time Zone database")
3431 (description
3432 "This library provides @code{TZInfo::Data}, which contains data from the
3433 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
3434 (home-page "https://tzinfo.github.io")
3435 (license license:expat)))
3436
3437 (define-public ruby-rb-inotify
3438 (package
3439 (name "ruby-rb-inotify")
3440 (version "0.9.10")
3441 (source
3442 (origin
3443 (method url-fetch)
3444 (uri (rubygems-uri "rb-inotify" version))
3445 (sha256
3446 (base32
3447 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
3448 (build-system ruby-build-system)
3449 (arguments
3450 '(#:tests? #f ; there are no tests
3451 #:phases
3452 (modify-phases %standard-phases
3453 ;; Building the gemspec with rake is not working here since it is
3454 ;; generated with Jeweler. It is also unnecessary because the
3455 ;; existing gemspec does not use any development tools to generate a
3456 ;; list of files.
3457 (replace 'build
3458 (lambda _
3459 (invoke "gem" "build" "rb-inotify.gemspec"))))))
3460 (propagated-inputs
3461 `(("ruby-ffi" ,ruby-ffi)))
3462 (native-inputs
3463 `(("ruby-yard" ,ruby-yard)))
3464 (synopsis "Ruby wrapper for Linux's inotify")
3465 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
3466 kernel subsystem for monitoring changes to files and directories.")
3467 (home-page "https://github.com/nex3/rb-inotify")
3468 (license license:expat)))
3469
3470 (define-public ruby-pry-editline
3471 (package
3472 (name "ruby-pry-editline")
3473 (version "1.1.2")
3474 (source (origin
3475 (method url-fetch)
3476 (uri (rubygems-uri "pry-editline" version))
3477 (sha256
3478 (base32
3479 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
3480 (build-system ruby-build-system)
3481 (arguments `(#:tests? #f)) ; no tests included
3482 (native-inputs
3483 `(("bundler" ,bundler)))
3484 (synopsis "Open the current REPL line in an editor")
3485 (description
3486 "This gem provides a plugin for the Ruby REPL to enable opening the
3487 current line in an external editor.")
3488 (home-page "https://github.com/tpope/pry-editline")
3489 (license license:expat)))
3490
3491 (define-public ruby-sdoc
3492 (package
3493 (name "ruby-sdoc")
3494 (version "0.4.2")
3495 (source (origin
3496 (method url-fetch)
3497 (uri (rubygems-uri "sdoc" version))
3498 (sha256
3499 (base32
3500 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
3501 (build-system ruby-build-system)
3502 (arguments
3503 `(#:phases
3504 (modify-phases %standard-phases
3505 (add-before 'check 'set-rubylib-and-patch-gemfile
3506 (lambda _
3507 (setenv "RUBYLIB" "lib")
3508 (substitute* "sdoc.gemspec"
3509 (("s.add_runtime_dependency.*") "\n")
3510 (("s.add_dependency.*") "\n"))
3511 (substitute* "Gemfile"
3512 (("gem \"rake\".*")
3513 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
3514 #t)))))
3515 (propagated-inputs
3516 `(("ruby-json" ,ruby-json)))
3517 (native-inputs
3518 `(("bundler" ,bundler)
3519 ("ruby-minitest" ,ruby-minitest)
3520 ("ruby-hoe" ,ruby-hoe)))
3521 (synopsis "Generate searchable RDoc documentation")
3522 (description
3523 "SDoc is an RDoc documentation generator to build searchable HTML
3524 documentation for Ruby code.")
3525 (home-page "https://github.com/voloko/sdoc")
3526 (license license:expat)))
3527
3528 (define-public ruby-tins
3529 (package
3530 (name "ruby-tins")
3531 (version "1.15.0")
3532 (source (origin
3533 (method url-fetch)
3534 (uri (rubygems-uri "tins" version))
3535 (sha256
3536 (base32
3537 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
3538 (build-system ruby-build-system)
3539 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
3540 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
3541 ;; the gemspec.
3542 (arguments
3543 `(#:tests? #f ; there are no tests
3544 #:phases
3545 (modify-phases %standard-phases
3546 (replace 'build
3547 (lambda _
3548 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
3549 ;; causes an error.
3550 (substitute* "tins.gemspec"
3551 (("\"lib/spruz\", ") ""))
3552 (invoke "gem" "build" "tins.gemspec"))))))
3553 (synopsis "Assorted tools for Ruby")
3554 (description "Tins is a Ruby library providing assorted tools.")
3555 (home-page "https://github.com/flori/tins")
3556 (license license:expat)))
3557
3558 (define-public ruby-gem-hadar
3559 (package
3560 (name "ruby-gem-hadar")
3561 (version "1.9.1")
3562 (source (origin
3563 (method url-fetch)
3564 (uri (rubygems-uri "gem_hadar" version))
3565 (sha256
3566 (base32
3567 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
3568 (build-system ruby-build-system)
3569 ;; This gem needs itself at development time. We disable rebuilding of the
3570 ;; gemspec to avoid this loop.
3571 (arguments
3572 `(#:tests? #f ; there are no tests
3573 #:phases
3574 (modify-phases %standard-phases
3575 (replace 'build
3576 (lambda _
3577 (invoke "gem" "build" "gem_hadar.gemspec"))))))
3578 (propagated-inputs
3579 `(("git" ,git)
3580 ("ruby-tins" ,ruby-tins)
3581 ("ruby-yard" ,ruby-yard)))
3582 (synopsis "Library for the development of Ruby gems")
3583 (description
3584 "This library contains some useful functionality to support the
3585 development of Ruby gems.")
3586 (home-page "https://github.com/flori/gem_hadar")
3587 (license license:expat)))
3588
3589 (define-public ruby-minitest-tu-shim
3590 (package
3591 (name "ruby-minitest-tu-shim")
3592 (version "1.3.3")
3593 (source (origin
3594 (method url-fetch)
3595 (uri (rubygems-uri "minitest_tu_shim" version))
3596 (sha256
3597 (base32
3598 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
3599 (build-system ruby-build-system)
3600 (arguments
3601 `(#:phases
3602 (modify-phases %standard-phases
3603 (add-after 'unpack 'fix-test-include-path
3604 (lambda* (#:key inputs #:allow-other-keys)
3605 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
3606 (substitute* "Rakefile"
3607 (("Hoe\\.add_include_dirs .*")
3608 (string-append "Hoe.add_include_dirs \""
3609 minitest "/lib/ruby/vendor_ruby"
3610 "/gems/minitest-"
3611 ,(package-version ruby-minitest-4)
3612 "/lib" "\""))))
3613 #t))
3614 (add-before 'check 'fix-test-assumptions
3615 (lambda _
3616 ;; The test output includes the file name, so a couple of tests
3617 ;; fail. Changing the regular expressions slightly fixes this
3618 ;; problem.
3619 (substitute* "test/test_mini_test.rb"
3620 (("output.sub!\\(.*, 'FILE:LINE'\\)")
3621 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
3622 (("gsub\\(/.*, 'FILE:LINE'\\)")
3623 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
3624 #t)))))
3625 (propagated-inputs
3626 `(("ruby-minitest-4" ,ruby-minitest-4)))
3627 (native-inputs
3628 `(("ruby-hoe" ,ruby-hoe)))
3629 (synopsis "Adapter library between minitest and test/unit")
3630 (description
3631 "This library bridges the gap between the small and fast minitest and
3632 Ruby's large and slower test/unit.")
3633 (home-page "https://rubygems.org/gems/minitest_tu_shim")
3634 (license license:expat)))
3635
3636 (define-public ruby-term-ansicolor
3637 (package
3638 (name "ruby-term-ansicolor")
3639 (version "1.6.0")
3640 (source (origin
3641 (method url-fetch)
3642 (uri (rubygems-uri "term-ansicolor" version))
3643 (sha256
3644 (base32
3645 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
3646 (build-system ruby-build-system)
3647 ;; Rebuilding the gemspec seems to require git, even though this is not a
3648 ;; git repository, so we just build the gem from the existing gemspec.
3649 (arguments
3650 `(#:phases
3651 (modify-phases %standard-phases
3652 (add-after 'unpack 'fix-test
3653 (lambda -
3654 (substitute* "tests/hsl_triple_test.rb"
3655 (("0\\\\\\.0%")
3656 "0\\.?0?%"))))
3657 (replace 'build
3658 (lambda _
3659 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
3660 (propagated-inputs
3661 `(("ruby-tins" ,ruby-tins)))
3662 (native-inputs
3663 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3664 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
3665 (synopsis "Ruby library to control the attributes of terminal output")
3666 (description
3667 "This Ruby library uses ANSI escape sequences to control the attributes
3668 of terminal output.")
3669 (home-page "https://flori.github.io/term-ansicolor/")
3670 ;; There is no mention of the "or later" clause.
3671 (license license:gpl2)))
3672
3673 (define-public ruby-pstree
3674 (package
3675 (name "ruby-pstree")
3676 (version "0.1.0")
3677 (source (origin
3678 (method url-fetch)
3679 (uri (rubygems-uri "pstree" version))
3680 (sha256
3681 (base32
3682 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
3683 (build-system ruby-build-system)
3684 (native-inputs
3685 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3686 ("bundler" ,bundler)))
3687 (synopsis "Create a process tree data structure")
3688 (description
3689 "This library uses the output of the @code{ps} command to create a
3690 process tree data structure for the current host.")
3691 (home-page "https://github.com/flori/pstree")
3692 ;; There is no mention of the "or later" clause.
3693 (license license:gpl2)))
3694
3695 (define-public ruby-utils
3696 (package
3697 (name "ruby-utils")
3698 (version "0.9.0")
3699 (source (origin
3700 (method url-fetch)
3701 (uri (rubygems-uri "utils" version))
3702 (sha256
3703 (base32
3704 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
3705 (build-system ruby-build-system)
3706 (propagated-inputs
3707 `(("ruby-tins" ,ruby-tins)
3708 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
3709 ("ruby-pstree" ,ruby-pstree)
3710 ("ruby-pry-editline" ,ruby-pry-editline)))
3711 (native-inputs
3712 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3713 ("bundler" ,bundler)))
3714 (synopsis "Command line tools for working with Ruby")
3715 (description
3716 "This package provides assorted command line tools that may be useful
3717 when working with Ruby code.")
3718 (home-page "https://github.com/flori/utils")
3719 ;; There is no mention of the "or later" clause.
3720 (license license:gpl2)))
3721
3722 (define-public ruby-jaro-winkler
3723 (package
3724 (name "ruby-jaro-winkler")
3725 (version "1.5.2")
3726 (source
3727 (origin
3728 (method url-fetch)
3729 (uri (rubygems-uri "jaro_winkler" version))
3730 (sha256
3731 (base32
3732 "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"))))
3733 (build-system ruby-build-system)
3734 (arguments
3735 '(;; No included tests
3736 #:tests? #f))
3737 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
3738 (description
3739 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
3740 algorithm. It is written as a C extension and will fallback to a pure Ruby
3741 implementation on platforms where this is unsupported.")
3742 (home-page "https://github.com/tonytonyjan/jaro_winkler")
3743 (license license:expat)))
3744
3745 (define-public ruby-json
3746 (package
3747 (name "ruby-json")
3748 (version "2.1.0")
3749 (source
3750 (origin
3751 (method url-fetch)
3752 (uri (rubygems-uri "json" version))
3753 (sha256
3754 (base32
3755 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
3756 (build-system ruby-build-system)
3757 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
3758 (synopsis "JSON library for Ruby")
3759 (description "This Ruby library provides a JSON implementation written as
3760 a native C extension.")
3761 (home-page "http://json-jruby.rubyforge.org/")
3762 (license (list license:ruby license:gpl2)))) ; GPL2 only
3763
3764 (define-public ruby-json-pure
3765 (package
3766 (name "ruby-json-pure")
3767 (version "2.1.0")
3768 (source (origin
3769 (method url-fetch)
3770 (uri (rubygems-uri "json_pure" version))
3771 (sha256
3772 (base32
3773 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
3774 (build-system ruby-build-system)
3775 (arguments
3776 `(#:phases
3777 (modify-phases %standard-phases
3778 (add-after 'unpack 'fix-rakefile
3779 (lambda _
3780 (substitute* "Rakefile"
3781 ;; Since this is not a git repository, do not call 'git'.
3782 (("`git ls-files`") "`find . -type f |sort`")
3783 ;; Loosen dependency constraint.
3784 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
3785 #t))
3786 (add-after 'replace-git-ls-files 'regenerate-gemspec
3787 (lambda _
3788 ;; Regenerate gemspec so loosened dependency constraints are
3789 ;; propagated.
3790 (invoke "rake" "gemspec")))
3791 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
3792 (lambda _
3793 ;; This gemspec doesn't look to be generated by the above
3794 ;; command, so patch it separately.
3795 (substitute* "json-java.gemspec"
3796 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
3797 "%q<test-unit>.freeze, [\">= 2.0\"]"))
3798 #t)))))
3799 (native-inputs
3800 `(("bundler" ,bundler)
3801 ("ragel" ,ragel)
3802 ("ruby-simplecov" ,ruby-simplecov)
3803 ("ruby-test-unit" ,ruby-test-unit)))
3804 (synopsis "JSON implementation in pure Ruby")
3805 (description
3806 "This package provides a JSON implementation written in pure Ruby.")
3807 (home-page "https://flori.github.com/json")
3808 (license license:ruby)))
3809
3810 ;; Even though this package only provides bindings for a Mac OSX API it is
3811 ;; required by "ruby-listen" at runtime.
3812 (define-public ruby-rb-fsevent
3813 (package
3814 (name "ruby-rb-fsevent")
3815 (version "0.10.3")
3816 (source (origin
3817 (method url-fetch)
3818 (uri (rubygems-uri "rb-fsevent" version))
3819 (sha256
3820 (base32
3821 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
3822 (build-system ruby-build-system)
3823 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
3824 ;; "listen", which needs "rb-fsevent" at runtime.
3825 (arguments `(#:tests? #f))
3826 (synopsis "FSEvents API with signals catching")
3827 (description
3828 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
3829 (home-page "https://rubygems.org/gems/rb-fsevent")
3830 (license license:expat)))
3831
3832 (define-public ruby-listen
3833 (package
3834 (name "ruby-listen")
3835 (version "3.1.5")
3836 (source
3837 (origin
3838 (method url-fetch)
3839 (uri (rubygems-uri "listen" version))
3840 (sha256
3841 (base32
3842 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
3843 (build-system ruby-build-system)
3844 (arguments '(#:tests? #f)) ; no tests
3845 (propagated-inputs
3846 `(("ruby-rb-inotify" ,ruby-rb-inotify)
3847 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
3848 (synopsis "Listen to file modifications")
3849 (description "The Listen gem listens to file modifications and notifies
3850 you about the changes.")
3851 (home-page "https://github.com/guard/listen")
3852 (license license:expat)))
3853
3854 (define-public ruby-listen-3.0
3855 (package
3856 (inherit ruby-listen)
3857 (version "3.0.8")
3858 (source (origin
3859 (method url-fetch)
3860 (uri (rubygems-uri "listen" version))
3861 (sha256
3862 (base32
3863 "1l0y7hbyfiwpvk172r28hsdqsifq1ls39hsfmzi1vy4ll0smd14i"))))))
3864
3865 (define-public ruby-loofah
3866 (package
3867 (name "ruby-loofah")
3868 (version "2.2.3")
3869 (source
3870 (origin
3871 (method url-fetch)
3872 (uri (rubygems-uri "loofah" version))
3873 (sha256
3874 (base32
3875 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
3876 (build-system ruby-build-system)
3877 (arguments
3878 '(#:phases
3879 (modify-phases %standard-phases
3880 (add-after 'unpack 'remove-unnecessary-dependencies
3881 (lambda _
3882 ;; concourse is a development tool which is unused, so remove it
3883 ;; so it's not required.
3884 (substitute* "Gemfile"
3885 ((".*\"concourse\".*") "\n"))
3886 (substitute* "Rakefile"
3887 (("require 'concourse'") "")
3888 (("Concourse\\.new.*") "\n"))
3889 #t)))))
3890 (native-inputs
3891 `(("ruby-hoe" ,ruby-hoe)
3892 ("ruby-rr" ,ruby-rr)))
3893 (propagated-inputs
3894 `(("ruby-nokogiri" ,ruby-nokogiri)
3895 ("ruby-crass" ,ruby-crass)))
3896 (synopsis "Ruby library for manipulating and transforming HTML/XML")
3897 (description
3898 "Loofah is a general library for manipulating and transforming HTML/XML
3899 documents and fragments. It's built on top of Nokogiri and libxml2.")
3900 (home-page "https://github.com/flavorjones/loofah")
3901 (license license:expat)))
3902
3903 (define-public ruby-activesupport
3904 (package
3905 (name "ruby-activesupport")
3906 (version "5.2.2")
3907 (source
3908 (origin
3909 (method url-fetch)
3910 (uri (rubygems-uri "activesupport" version))
3911 (sha256
3912 (base32
3913 "1iya7vxqwxysr74s7b4z1x19gmnx5advimzip3cbmsd5bd43wfgz"))))
3914 (build-system ruby-build-system)
3915 (arguments
3916 `(#:phases
3917 (modify-phases %standard-phases
3918 (replace 'check
3919 (lambda _
3920 ;; There are no tests, instead attempt to load the library.
3921 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
3922 (propagated-inputs
3923 `(("ruby-concurrent" ,ruby-concurrent)
3924 ("ruby-i18n" ,ruby-i18n)
3925 ("ruby-minitest" ,ruby-minitest)
3926 ("ruby-tzinfo" ,ruby-tzinfo)
3927 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
3928 (synopsis "Ruby on Rails utility library")
3929 (description "ActiveSupport is a toolkit of support libraries and Ruby
3930 core extensions extracted from the Rails framework. It includes support for
3931 multibyte strings, internationalization, time zones, and testing.")
3932 (home-page "http://www.rubyonrails.org")
3933 (license license:expat)))
3934
3935 (define-public ruby-crass
3936 (package
3937 (name "ruby-crass")
3938 (version "1.0.4")
3939 (source (origin
3940 (method url-fetch)
3941 (uri (rubygems-uri "crass" version))
3942 (sha256
3943 (base32
3944 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
3945 (build-system ruby-build-system)
3946 (native-inputs
3947 `(("bundler" ,bundler)
3948 ("ruby-minitest" ,ruby-minitest)))
3949 (synopsis "Pure Ruby CSS parser")
3950 (description
3951 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
3952 (home-page "https://github.com/rgrove/crass/")
3953 (license license:expat)))
3954
3955 (define-public ruby-nokogumbo
3956 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
3957 (package
3958 (name "ruby-nokogumbo")
3959 (version (string-append "1.4.7-1." (string-take commit 8)))
3960 (source (origin
3961 ;; We use the git reference, because there's no Rakefile in the
3962 ;; published gem and the tarball on Github is outdated.
3963 (method git-fetch)
3964 (uri (git-reference
3965 (url "https://github.com/rubys/nokogumbo.git")
3966 (commit "d56f954d20a")))
3967 (file-name (string-append name "-" version "-checkout"))
3968 (sha256
3969 (base32
3970 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
3971 (build-system ruby-build-system)
3972 (arguments
3973 `(#:modules ((guix build ruby-build-system)
3974 (guix build utils)
3975 (ice-9 rdelim))
3976 #:phases
3977 (modify-phases %standard-phases
3978 (add-after 'unpack 'build-gemspec
3979 (lambda _
3980 (substitute* "Rakefile"
3981 ;; Build Makefile even without a copy of gumbo-parser sources
3982 (("'gumbo-parser/src',") "")
3983 ;; We don't bundle gumbo-parser sources
3984 (("'gumbo-parser/src/\\*',") "")
3985 (("'gumbo-parser/visualc/include/\\*',") "")
3986 ;; The definition of SOURCES will be cut in gemspec, and
3987 ;; "FileList" will be undefined.
3988 (("SOURCES \\+ FileList\\[")
3989 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
3990
3991 ;; Copy the Rakefile and cut out the gemspec.
3992 (copy-file "Rakefile" ".gemspec")
3993 (with-atomic-file-replacement ".gemspec"
3994 (lambda (in out)
3995 (let loop ((line (read-line in 'concat))
3996 (skipping? #t))
3997 (if (eof-object? line)
3998 #t
3999 (let ((skip-next? (if skipping?
4000 (not (string-prefix? "SPEC =" line))
4001 (string-prefix? "end" line))))
4002 (when (or (not skipping?)
4003 (and skipping? (not skip-next?)))
4004 (format #t "~a" line)
4005 (display line out))
4006 (loop (read-line in 'concat) skip-next?))))))
4007 #t)))))
4008 (inputs
4009 `(("gumbo-parser" ,gumbo-parser)))
4010 (propagated-inputs
4011 `(("ruby-nokogiri" ,ruby-nokogiri)))
4012 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4013 (description
4014 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4015 access the result as a Nokogiri parsed document.")
4016 (home-page "https://github.com/rubys/nokogumbo/")
4017 (license license:asl2.0))))
4018
4019 (define-public ruby-sanitize
4020 (package
4021 (name "ruby-sanitize")
4022 (version "4.6.3")
4023 (source (origin
4024 (method url-fetch)
4025 ;; The gem does not include the Rakefile, so we download the
4026 ;; release tarball from Github.
4027 (uri (string-append "https://github.com/rgrove/"
4028 "sanitize/archive/v" version ".tar.gz"))
4029 (file-name (string-append name "-" version ".tar.gz"))
4030 (sha256
4031 (base32
4032 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4033 (build-system ruby-build-system)
4034 (propagated-inputs
4035 `(("ruby-crass" ,ruby-crass)
4036 ("ruby-nokogiri" ,ruby-nokogiri)
4037 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4038 (native-inputs
4039 `(("bundler" ,bundler)
4040 ("ruby-minitest" ,ruby-minitest)
4041 ("ruby-redcarpet" ,ruby-redcarpet)
4042 ("ruby-yard" ,ruby-yard)))
4043 (synopsis "Whitelist-based HTML and CSS sanitizer")
4044 (description
4045 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4046 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4047 unacceptable HTML and/or CSS from a string.")
4048 (home-page "https://github.com/rgrove/sanitize/")
4049 (license license:expat)))
4050
4051 (define-public ruby-oj
4052 (package
4053 (name "ruby-oj")
4054 (version "3.6.7")
4055 (source
4056 (origin
4057 (method url-fetch)
4058 ;; Version on rubygems.org does not contain Rakefile, so download from
4059 ;; GitHub instead.
4060 (uri (string-append "https://github.com/ohler55/oj/archive/v"
4061 version ".tar.gz"))
4062 (file-name (string-append name "-" version ".tar.gz"))
4063 (sha256
4064 (base32
4065 "1x28ga72jxlnmsd8g8c0fw81vlh54r0qgagw2lxsd3x3la091g2h"))))
4066 (build-system ruby-build-system)
4067 (arguments
4068 '(#:test-target "test_all"
4069 #:phases
4070 (modify-phases %standard-phases
4071 (add-before 'check 'disable-bundler
4072 (lambda _
4073 (substitute* "Rakefile"
4074 (("Bundler\\.with_clean_env") "1.times")
4075 (("bundle exec ") "")))))))
4076 (native-inputs
4077 `(("bundler" ,bundler)
4078 ("ruby-rspec" ,ruby-rspec)
4079 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4080 (synopsis "JSON parser for Ruby optimized for speed")
4081 (description
4082 "Oj is a JSON parser and generator for Ruby, where the encoding and
4083 decoding of JSON is implemented as a C extension to Ruby.")
4084 (home-page "http://www.ohler.com/oj")
4085 (license (list license:expat ; Ruby code
4086 license:bsd-3)))) ; extension code
4087
4088 (define-public ruby-ox
4089 (package
4090 (name "ruby-ox")
4091 (version "2.6.0")
4092 (source
4093 (origin
4094 (method url-fetch)
4095 (uri (rubygems-uri "ox" version))
4096 (sha256
4097 (base32
4098 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4099 (build-system ruby-build-system)
4100 (arguments
4101 '(#:tests? #f)) ; no tests
4102 (synopsis "Optimized XML library for Ruby")
4103 (description
4104 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4105 written as a native C extension. It was designed to be an alternative to
4106 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4107 alternative to Marshal for Object serialization. ")
4108 (home-page "http://www.ohler.com/ox")
4109 (license license:expat)))
4110
4111 (define-public ruby-redcloth
4112 (package
4113 (name "ruby-redcloth")
4114 (version "4.3.2")
4115 (source (origin
4116 (method url-fetch)
4117 (uri (rubygems-uri "RedCloth" version))
4118 (sha256
4119 (base32
4120 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4121 (build-system ruby-build-system)
4122 (arguments
4123 `(#:tests? #f ; no tests
4124 #:phases
4125 (modify-phases %standard-phases
4126 ;; Redcloth has complicated rake tasks to build various versions for
4127 ;; multiple targets using RVM. We don't want this so we just use the
4128 ;; existing gemspec.
4129 (replace 'build
4130 (lambda _
4131 (invoke "gem" "build" "redcloth.gemspec"))))))
4132 (native-inputs
4133 `(("bundler" ,bundler)
4134 ("ruby-diff-lcs" ,ruby-diff-lcs)
4135 ("ruby-rspec-2" ,ruby-rspec-2)))
4136 (synopsis "Textile markup language parser for Ruby")
4137 (description
4138 "RedCloth is a Ruby parser for the Textile markup language.")
4139 (home-page "http://redcloth.org")
4140 (license license:expat)))
4141
4142 (define-public ruby-pg
4143 (package
4144 (name "ruby-pg")
4145 (version "1.1.3")
4146 (source
4147 (origin
4148 (method url-fetch)
4149 (uri (rubygems-uri "pg" version))
4150 (sha256
4151 (base32
4152 "1pnjw3rspdfjssxyf42jnbsdlgri8ylysimp0s28wxb93k6ff2qb"))))
4153 (build-system ruby-build-system)
4154 (arguments
4155 '(#:test-target "spec"))
4156 (native-inputs
4157 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4158 ("ruby-hoe" ,ruby-hoe)
4159 ("ruby-rspec" ,ruby-rspec)))
4160 (inputs
4161 `(("postgresql" ,postgresql-9.6)))
4162 (synopsis "Ruby interface to PostgreSQL")
4163 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4164 with PostgreSQL 9.0 and later.")
4165 (home-page "https://bitbucket.org/ged/ruby-pg")
4166 (license license:ruby)))
4167
4168 (define-public ruby-byebug
4169 (package
4170 (name "ruby-byebug")
4171 (version "9.0.6")
4172 (source
4173 (origin
4174 (method url-fetch)
4175 (uri (rubygems-uri "byebug" version))
4176 (sha256
4177 (base32
4178 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4179 (build-system ruby-build-system)
4180 (arguments
4181 '(#:tests? #f)) ; no tests
4182 (synopsis "Debugger for Ruby 2")
4183 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4184 TracePoint C API for execution control and the Debug Inspector C API for call
4185 stack navigation. The core component provides support that front-ends can
4186 build on. It provides breakpoint handling and bindings for stack frames among
4187 other things and it comes with a command line interface.")
4188 (home-page "https://github.com/deivid-rodriguez/byebug")
4189 (license license:bsd-2)))
4190
4191 (define-public ruby-netrc
4192 (package
4193 (name "ruby-netrc")
4194 (version "0.11.0")
4195 (source (origin
4196 (method url-fetch)
4197 (uri (rubygems-uri "netrc" version))
4198 (sha256
4199 (base32
4200 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4201 (build-system ruby-build-system)
4202 (arguments
4203 `(#:phases
4204 (modify-phases %standard-phases
4205 (replace 'check
4206 ;; There is no Rakefile and minitest can only run one file at once,
4207 ;; so we have to iterate over all test files.
4208 (lambda _
4209 (map (lambda (file)
4210 (invoke "ruby" "-Itest" file))
4211 (find-files "./test" "test_.*\\.rb")))))))
4212 (native-inputs
4213 `(("ruby-minitest" ,ruby-minitest)))
4214 (synopsis "Library to read and update netrc files")
4215 (description
4216 "This library can read and update netrc files, preserving formatting
4217 including comments and whitespace.")
4218 (home-page "https://github.com/geemus/netrc")
4219 (license license:expat)))
4220
4221 (define-public ruby-unf-ext
4222 (package
4223 (name "ruby-unf-ext")
4224 (version "0.0.7.1")
4225 (source (origin
4226 (method url-fetch)
4227 (uri (rubygems-uri "unf_ext" version))
4228 (sha256
4229 (base32
4230 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
4231 (build-system ruby-build-system)
4232 (arguments
4233 `(#:phases
4234 (modify-phases %standard-phases
4235 (add-after 'build 'build-ext
4236 (lambda _ (invoke "rake" "compile:unf_ext"))))))
4237 (native-inputs
4238 `(("bundler" ,bundler)
4239 ("ruby-rake-compiler" ,ruby-rake-compiler)
4240 ("ruby-test-unit" ,ruby-test-unit)))
4241 (synopsis "Unicode normalization form support library")
4242 (description
4243 "This package provides unicode normalization form support for Ruby.")
4244 (home-page "https://github.com/knu/ruby-unf_ext")
4245 (license license:expat)))
4246
4247 (define-public ruby-tdiff
4248 ;; Use a newer than released snapshot so that rspec-2 is not required.
4249 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
4250 (package
4251 (name "ruby-tdiff")
4252 (version (string-append "0.3.3-1." (string-take commit 8)))
4253 (source (origin
4254 (method git-fetch)
4255 (uri (git-reference
4256 (url "https://github.com/postmodern/tdiff.git")
4257 (commit commit)))
4258 (file-name (string-append name "-" version "-checkout"))
4259 (sha256
4260 (base32
4261 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
4262 (build-system ruby-build-system)
4263 (native-inputs
4264 `(("ruby-rspec" ,ruby-rspec)
4265 ("ruby-yard" ,ruby-yard)
4266 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4267 (synopsis "Calculate the differences between two tree-like structures")
4268 (description
4269 "This library provides functions to calculate the differences between two
4270 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
4271 (home-page "https://github.com/postmodern/tdiff")
4272 (license license:expat))))
4273
4274 (define-public ruby-nokogiri-diff
4275 ;; Use a newer than released snapshot so that rspec-2 is not required.
4276 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
4277 (package
4278 (name "ruby-nokogiri-diff")
4279 (version (string-append "0.2.0-1." (string-take commit 8)))
4280 (source (origin
4281 (method git-fetch)
4282 (uri (git-reference
4283 (url "https://github.com/postmodern/nokogiri-diff.git")
4284 (commit commit)))
4285 (file-name (string-append name "-" version "-checkout"))
4286 (sha256
4287 (base32
4288 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
4289 (build-system ruby-build-system)
4290 (propagated-inputs
4291 `(("ruby-tdiff" ,ruby-tdiff)
4292 ("ruby-nokogiri" ,ruby-nokogiri)))
4293 (native-inputs
4294 `(("ruby-rspec" ,ruby-rspec)
4295 ("ruby-yard" ,ruby-yard)
4296 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4297 (synopsis "Calculate the differences between two XML/HTML documents")
4298 (description
4299 "@code{Nokogiri::Diff} adds the ability to calculate the
4300 differences (added or removed nodes) between two XML/HTML documents.")
4301 (home-page "https://github.com/postmodern/nokogiri-diff")
4302 (license license:expat))))
4303
4304 (define-public ruby-racc
4305 (package
4306 (name "ruby-racc")
4307 (version "1.4.14")
4308 (source
4309 (origin
4310 (method url-fetch)
4311 (uri (rubygems-uri "racc" version))
4312 (sha256
4313 (base32
4314 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
4315 (build-system ruby-build-system)
4316 (native-inputs
4317 `(("ruby-hoe" ,ruby-hoe)
4318 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4319 (synopsis "LALR(1) parser generator for Ruby")
4320 (description
4321 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
4322 generates Ruby program.")
4323 (home-page "http://i.loveruby.net/en/projects/racc/")
4324 (license (list
4325 ;; Generally licensed under the LGPL2.1, and some files also
4326 ;; available under the same license as Ruby.
4327 license:lgpl2.1
4328 license:ruby))))
4329
4330 (define-public ruby-rack
4331 (package
4332 (name "ruby-rack")
4333 (version "2.0.6")
4334 (source
4335 (origin
4336 (method url-fetch)
4337 ;; Download from GitHub so that the patch can be applied.
4338 (uri (string-append
4339 "https://github.com/rack/rack/archive/"
4340 version
4341 ".tar.gz"))
4342 (file-name (string-append name "-" version ".tar.gz"))
4343 (sha256
4344 (base32
4345 "0pb3g5ymvbf07xaxcn51dpqv3djlxavckp3qkxsjdxiqznb0d9p1"))
4346 ;; Ignore test which fails inside the build environment but works
4347 ;; outside.
4348 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
4349 (build-system ruby-build-system)
4350 (arguments
4351 '(#:phases
4352 (modify-phases %standard-phases
4353 (add-before 'check 'fix-tests
4354 (lambda _
4355 ;; A few of the tests use the length of a file on disk for
4356 ;; Content-Length and Content-Range headers. However, this file
4357 ;; has a shebang in it which an earlier phase patches, growing
4358 ;; the file size from 193 to 239 bytes when the store prefix is
4359 ;; "/gnu/store".
4360 (let ((size-diff (- (string-length (which "ruby"))
4361 (string-length "/usr/bin/env ruby"))))
4362 (substitute* '("test/spec_file.rb")
4363 (("193")
4364 (number->string (+ 193 size-diff)))
4365 (("bytes(.)22-33" all delimiter)
4366 (string-append "bytes"
4367 delimiter
4368 (number->string (+ 22 size-diff))
4369 "-"
4370 (number->string (+ 33 size-diff))))))
4371 #t)))))
4372 (native-inputs
4373 `(("ruby-minitest" ,ruby-minitest)
4374 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
4375 ("which" ,which)))
4376 (propagated-inputs
4377 `(("ruby-concurrent" ,ruby-concurrent)))
4378 (synopsis "Unified web application interface for Ruby")
4379 (description "Rack provides a minimal, modular and adaptable interface for
4380 developing web applications in Ruby. By wrapping HTTP requests and responses,
4381 it unifies the API for web servers, web frameworks, and software in between
4382 into a single method call.")
4383 (home-page "https://rack.github.io/")
4384 (license license:expat)))
4385
4386 (define-public ruby-rack-test
4387 (package
4388 (name "ruby-rack-test")
4389 (version "0.8.3")
4390 (source
4391 (origin
4392 (method url-fetch)
4393 (uri (rubygems-uri "rack-test" version))
4394 (sha256
4395 (base32
4396 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
4397 (build-system ruby-build-system)
4398 (arguments
4399 ;; Disable tests because of circular dependencies: requires sinatra,
4400 ;; which requires rack-protection, which requires rack-test. Instead
4401 ;; simply require the library.
4402 `(#:phases
4403 (modify-phases %standard-phases
4404 (replace 'check
4405 (lambda _
4406 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
4407 (propagated-inputs
4408 `(("ruby-rack" ,ruby-rack)))
4409 (synopsis "Testing API for Rack applications")
4410 (description
4411 "Rack::Test is a small, simple testing API for Rack applications. It can
4412 be used on its own or as a reusable starting point for Web frameworks and
4413 testing libraries to build on.")
4414 (home-page "https://github.com/rack-test/rack-test")
4415 (license license:expat)))
4416
4417 (define-public ruby-rack-protection
4418 (package
4419 (name "ruby-rack-protection")
4420 (version "2.0.3")
4421 (source
4422 (origin
4423 (method url-fetch)
4424 (uri (rubygems-uri "rack-protection" version))
4425 (sha256
4426 (base32
4427 "1z5598qipilmnf45428jnxi63ykrgvnyywa5ckpr52zv2vpd8jdp"))))
4428 (build-system ruby-build-system)
4429 (arguments
4430 '(;; Tests missing from the gem.
4431 #:tests? #f))
4432 (propagated-inputs
4433 `(("ruby-rack" ,ruby-rack)))
4434 (native-inputs
4435 `(("bundler" ,bundler)
4436 ("ruby-rspec" ,ruby-rspec-2)
4437 ("ruby-rack-test" ,ruby-rack-test)))
4438 (synopsis "Rack middleware that protects against typical web attacks")
4439 (description "Rack middleware that can be used to protect against typical
4440 web attacks. It can protect all Rack apps, including Rails. For instance, it
4441 protects against cross site request forgery, cross site scripting,
4442 clickjacking, directory traversal, session hijacking and IP spoofing.")
4443 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
4444 (license license:expat)))
4445
4446 (define-public ruby-rainbow
4447 (package
4448 (name "ruby-rainbow")
4449 (version "3.0.0")
4450 (source
4451 (origin
4452 (method url-fetch)
4453 (uri (rubygems-uri "rainbow" version))
4454 (sha256
4455 (base32
4456 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
4457 (build-system ruby-build-system)
4458 (arguments
4459 '(#:phases
4460 (modify-phases %standard-phases
4461 ;; Run rspec directly, to avoid requiring Rubocop which is used from
4462 ;; the Rakefile.
4463 (replace 'check
4464 (lambda* (#:key tests? #:allow-other-keys)
4465 (when tests?
4466 (invoke "rspec"))
4467 #t)))))
4468 (native-inputs
4469 `(("bundler" ,bundler)
4470 ("ruby-rspec" ,ruby-rspec)))
4471 (synopsis "Colorize printed text on ANSI terminals")
4472 (description
4473 "@code{rainbow} provides a string presenter object to colorize strings by
4474 wrapping them in ANSI escape codes.")
4475 (home-page "https://github.com/sickill/rainbow")
4476 (license license:expat)))
4477
4478 (define-public ruby-rr
4479 (package
4480 (name "ruby-rr")
4481 (version "1.2.1")
4482 (source
4483 (origin
4484 (method url-fetch)
4485 (uri (rubygems-uri "rr" version))
4486 (sha256
4487 (base32
4488 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
4489 (build-system ruby-build-system)
4490 (arguments
4491 '(#:tests? #f)) ; test files not included
4492 (native-inputs
4493 `(("bundler" ,bundler)
4494 ("ruby-rspec" ,ruby-rspec)))
4495 (synopsis "Ruby test double framework")
4496 (description
4497 "RR is a test double framework that features a rich selection of double
4498 techniques and a terse syntax.")
4499 (home-page "https://rr.github.io/rr/")
4500 (license license:expat)))
4501
4502 (define-public ruby-rest-client
4503 (package
4504 (name "ruby-rest-client")
4505 (version "2.0.2")
4506 (source
4507 (origin
4508 (method url-fetch)
4509 (uri (rubygems-uri "rest-client" version))
4510 (sha256
4511 (base32
4512 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
4513 (build-system ruby-build-system)
4514 (arguments
4515 '(#:phases
4516 (modify-phases %standard-phases
4517 (add-before 'check 'remove-unnecessary-development-dependencies
4518 (lambda _
4519 (substitute* "rest-client.gemspec"
4520 ;; Remove rubocop as it's unused. Rubocop also indirectly
4521 ;; depends on this package through ruby-parser and ruby-ast so
4522 ;; this avoids a dependency loop.
4523 ((".*rubocop.*") "\n")
4524 ;; Remove pry as it's unused, it's a debugging tool
4525 ((".*pry.*") "\n")
4526 ;; Remove an unnecessarily strict rdoc dependency
4527 ((".*rdoc.*") "\n"))
4528 #t))
4529 (add-before 'check 'delete-network-dependent-tests
4530 (lambda _
4531 (delete-file "spec/integration/request_spec.rb")
4532 (delete-file "spec/integration/httpbin_spec.rb")
4533 #t)))))
4534 (propagated-inputs
4535 `(("ruby-http-cookie" ,ruby-http-cookie)
4536 ("ruby-mime-types" ,ruby-mime-types)
4537 ("ruby-netrc" ,ruby-netrc)))
4538 (native-inputs
4539 `(("bundler" ,bundler)
4540 ("ruby-webmock", ruby-webmock-2)
4541 ("ruby-rspec", ruby-rspec)))
4542 (synopsis "Simple HTTP and REST client for Ruby")
4543 (description
4544 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
4545 inspired by the Sinatra microframework style of specifying actions:
4546 @code{get}, @code{put}, @code{post}, @code{delete}.")
4547 (home-page "https://github.com/rest-client/rest-client")
4548 (license license:expat)))
4549
4550 (define-public ruby-rubocop
4551 (package
4552 (name "ruby-rubocop")
4553 (version "0.64.0")
4554 (source
4555 (origin
4556 (method url-fetch)
4557 (uri (rubygems-uri "rubocop" version))
4558 (sha256
4559 (base32
4560 "07shi6kncwhkvlh9ci9rgccrjsq4448hbic3yrakh2w65ppynvbj"))))
4561 (build-system ruby-build-system)
4562 (arguments
4563 '(;; No included tests
4564 #:tests? #f))
4565 (propagated-inputs
4566 `(("ruby-parser" ,ruby-parser)
4567 ("ruby-powerpack" ,ruby-powerpack)
4568 ("ruby-rainbow" ,ruby-rainbow)
4569 ("ruby-progressbar" ,ruby-progressbar)
4570 ("ruby-parallel" ,ruby-parallel)
4571 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
4572 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
4573 (synopsis "Ruby code style checking tool")
4574 (description
4575 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
4576 the community-driven Ruby Style Guide.")
4577 (home-page "https://github.com/rubocop-hq/rubocop")
4578 (license license:expat)))
4579
4580 (define-public ruby-contest
4581 (package
4582 (name "ruby-contest")
4583 (version "0.1.3")
4584 (source
4585 (origin
4586 (method url-fetch)
4587 (uri (rubygems-uri "contest" version))
4588 (sha256
4589 (base32
4590 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
4591 (build-system ruby-build-system)
4592 (synopsis "Write declarative tests using nested contexts")
4593 (description
4594 "Contest allows writing declarative @code{Test::Unit} tests using nested
4595 contexts without performance penalties.")
4596 (home-page "https://github.com/citrusbyte/contest")
4597 (license license:expat)))
4598
4599 (define-public ruby-creole
4600 (package
4601 (name "ruby-creole")
4602 (version "0.5.0")
4603 (source
4604 (origin
4605 (method url-fetch)
4606 (uri (rubygems-uri "creole" version))
4607 (sha256
4608 (base32
4609 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
4610 (build-system ruby-build-system)
4611 (native-inputs
4612 `(("ruby-bacon" ,ruby-bacon)))
4613 (synopsis "Creole markup language converter")
4614 (description
4615 "Creole is a lightweight markup language and this library for converting
4616 creole to @code{HTML}.")
4617 (home-page "https://github.com/minad/creole")
4618 (license license:ruby)))
4619
4620 (define-public ruby-docile
4621 (package
4622 (name "ruby-docile")
4623 (version "1.1.5")
4624 (source
4625 (origin
4626 (method url-fetch)
4627 (uri (rubygems-uri "docile" version))
4628 (sha256
4629 (base32
4630 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
4631 (build-system ruby-build-system)
4632 (arguments
4633 '(#:tests? #f)) ; needs github-markup, among others
4634 (synopsis "Ruby EDSL helper library")
4635 (description "Docile is a Ruby library that provides an interface for
4636 creating embedded domain specific languages (EDSLs) that manipulate existing
4637 Ruby classes.")
4638 (home-page "https://ms-ati.github.io/docile/")
4639 (license license:expat)))
4640
4641 (define-public ruby-gherkin
4642 (package
4643 (name "ruby-gherkin")
4644 (version "5.1.0")
4645 (source
4646 (origin
4647 (method url-fetch)
4648 (uri (rubygems-uri "gherkin" version))
4649 (sha256
4650 (base32
4651 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
4652 (build-system ruby-build-system)
4653 (native-inputs
4654 `(("bundler" ,bundler)))
4655 (arguments
4656 '(#:tests? #f)) ; needs simplecov, among others
4657 (synopsis "Gherkin parser for Ruby")
4658 (description "Gherkin is a parser and compiler for the Gherkin language.
4659 It is intended be used by all Cucumber implementations to parse
4660 @file{.feature} files.")
4661 (home-page "https://github.com/cucumber-attic/gherkin")
4662 (license license:expat)))
4663
4664 (define-public ruby-aruba
4665 (package
4666 (name "ruby-aruba")
4667 (version "0.14.8")
4668 (source
4669 (origin
4670 (method url-fetch)
4671 (uri (rubygems-uri "aruba" version))
4672 (sha256
4673 (base32
4674 "0zdd81l1lp0x78sxa6kkfqclpj5il3xl70nz05wqv2sfzzhqydxh"))))
4675 (build-system ruby-build-system)
4676 (arguments
4677 '(#:test-target "spec"
4678 #:phases
4679 (modify-phases %standard-phases
4680 (add-after 'unpack 'patch
4681 (lambda _
4682 (substitute* "spec/aruba/api_spec.rb"
4683 ;; This resolves some errors in the specs
4684 ;;
4685 ;; undefined method `parse' for Time:Class
4686 (("require 'spec_helper'")
4687 "require 'spec_helper'\nrequire 'time'"))
4688 ;; Avoid shebang issues in this spec file
4689 (substitute* "spec/aruba/matchers/command_spec.rb"
4690 (("/usr/bin/env bash")
4691 (which "bash")))
4692 #t))
4693 (add-before 'check 'remove-unnecessary-dependencies
4694 (lambda _
4695 (substitute* "Gemfile"
4696 ((".*byebug.*") "\n")
4697 ((".*pry.*") "\n")
4698 ((".*yaml.*") "\n")
4699 ((".*bcat.*") "\n")
4700 ((".*kramdown.*") "\n")
4701 ((".*rubocop.*") "\n")
4702 ((".*cucumber-pro.*") "\n")
4703 ((".*cucumber.*") "\n")
4704 ((".*license_finder.*") "\n")
4705 ((".*rake.*") "gem 'rake'\n")
4706 ((".*simplecov.*") "\n")
4707 ((".*relish.*") "\n"))
4708 (substitute* "spec/spec_helper.rb"
4709 ((".*simplecov.*") "")
4710 (("^SimpleCov.*") ""))
4711 (substitute* "aruba.gemspec"
4712 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
4713 "spec.add_runtime_dependency 'cucumber'"))
4714 #t))
4715 (add-before 'check 'set-home
4716 (lambda _ (setenv "HOME" "/tmp") #t)))))
4717 (native-inputs
4718 `(("bundler" ,bundler)
4719 ("ruby-rspec" ,ruby-rspec)
4720 ("ruby-fuubar" ,ruby-fuubar)))
4721 (propagated-inputs
4722 `(("ruby-childprocess" ,ruby-childprocess)
4723 ("ruby-contracts" ,ruby-contracts)
4724 ("ruby-cucumber" ,ruby-cucumber)
4725 ("ruby-ffi" ,ruby-ffi)
4726 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
4727 ("ruby-thor" ,ruby-thor)
4728 ("ruby-yard" ,ruby-yard)))
4729 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
4730 (description
4731 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
4732 command-line applications. It supports applications written in any
4733 language.")
4734 (home-page "https://github.com/cucumber/aruba")
4735 (license license:expat)))
4736
4737 ;; A version of ruby-aruba without tests run so that circular dependencies can
4738 ;; be avoided.
4739 (define ruby-aruba-without-tests
4740 (package
4741 (inherit ruby-aruba)
4742 (arguments '(#:tests? #f))
4743 (propagated-inputs
4744 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
4745 ,@(alist-delete "ruby-cucumber"
4746 (package-propagated-inputs ruby-aruba))))
4747 (native-inputs '())))
4748
4749 (define-public ruby-cucumber
4750 (package
4751 (name "ruby-cucumber")
4752 (version "3.1.2")
4753 (source
4754 (origin
4755 (method git-fetch)
4756 (uri (git-reference
4757 (url "https://github.com/cucumber/cucumber-ruby.git")
4758 (commit (string-append "v" version))))
4759 (file-name (git-file-name name version))
4760 (sha256
4761 (base32
4762 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
4763 (build-system ruby-build-system)
4764 (arguments
4765 '(#:test-target "spec"
4766 #:phases
4767 (modify-phases %standard-phases
4768 ;; Don't run or require rubocop, the code linting tool, as this is a
4769 ;; bit unnecessary.
4770 (add-after 'unpack 'dont-run-rubocop
4771 (lambda _
4772 (substitute* "Rakefile"
4773 ((".*rubocop/rake\\_task.*") "")
4774 ((".*RuboCop.*") ""))
4775 #t)))))
4776 (propagated-inputs
4777 `(("ruby-builder" ,ruby-builder)
4778 ("ruby-cucumber-core" ,ruby-cucumber-core)
4779 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
4780 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
4781 ("ruby-diff-lcs" ,ruby-diff-lcs)
4782 ("ruby-gherkin" ,ruby-gherkin)
4783 ("ruby-multi-json" ,ruby-multi-json)
4784 ("ruby-multi-test" ,ruby-multi-test)))
4785 (native-inputs
4786 `(("bundler" ,bundler)
4787 ;; Use a untested version of aruba, to avoid a circular dependency, as
4788 ;; ruby-aruba depends on ruby-cucumber.
4789 ("ruby-aruba", ruby-aruba-without-tests)
4790 ("ruby-rspec" ,ruby-rspec)
4791 ("ruby-pry" ,ruby-pry)
4792 ("ruby-nokogiri" ,ruby-nokogiri)))
4793 (synopsis "Describe automated tests in plain language")
4794 (description
4795 "Cucumber is a tool for running automated tests written in plain
4796 language. It's designed to support a Behaviour Driven Development (BDD)
4797 software development workflow.")
4798 (home-page "https://cucumber.io/")
4799 (license license:expat)))
4800
4801 (define ruby-cucumber-without-tests
4802 (package (inherit ruby-cucumber)
4803 (arguments
4804 '(#:tests? #f))
4805 (native-inputs
4806 '())))
4807
4808 (define-public ruby-cucumber-core
4809 (package
4810 (name "ruby-cucumber-core")
4811 ;; Stick to major version 3, until version 4 of Cucumber is released.
4812 (version "3.2.1")
4813 (source
4814 (origin
4815 (method url-fetch)
4816 (uri (rubygems-uri "cucumber-core" version))
4817 (sha256
4818 (base32
4819 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
4820 (build-system ruby-build-system)
4821 (propagated-inputs
4822 `(("ruby-backports" ,ruby-backports)
4823 ("ruby-gherkin" ,ruby-gherkin)
4824 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
4825 (native-inputs
4826 `(("bundler" ,bundler)))
4827 (arguments
4828 '(#:tests? #f)) ; needs simplecov, among others
4829 (synopsis "Core library for the Cucumber BDD app")
4830 (description "Cucumber is a tool for running automated tests
4831 written in plain language. Because they're written in plain language,
4832 they can be read by anyone on your team. Because they can be read by
4833 anyone, you can use them to help improve communication, collaboration
4834 and trust on your team.")
4835 (home-page "https://cucumber.io/")
4836 (license license:expat)))
4837
4838 (define-public ruby-cucumber-expressions
4839 (package
4840 (name "ruby-cucumber-expressions")
4841 (version "6.0.1")
4842 (source
4843 (origin
4844 (method url-fetch)
4845 (uri (rubygems-uri "cucumber-expressions" version))
4846 (sha256
4847 (base32
4848 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
4849 (build-system ruby-build-system)
4850 (arguments
4851 '(#:test-target "spec"))
4852 (native-inputs
4853 `(("bundler" ,bundler)
4854 ("ruby-rspec" ,ruby-rspec)
4855 ("ruby-simplecov" ,ruby-simplecov)))
4856 (synopsis "Simpler alternative to Regular Expressions")
4857 (description "Cucumber Expressions offer similar functionality to Regular
4858 Expressions, with a syntax that is easier to read and write. Cucumber
4859 Expressions are extensible with parameter types.")
4860 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
4861 (license license:expat)))
4862
4863 (define-public ruby-cucumber-wire
4864 (package
4865 (name "ruby-cucumber-wire")
4866 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
4867 ;; 3, and Cucumber 4 hasn't been released yet.
4868 (version "0.0.1")
4869 (source
4870 (origin
4871 (method url-fetch)
4872 (uri (rubygems-uri "cucumber-wire" version))
4873 (sha256
4874 (base32
4875 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
4876 (build-system ruby-build-system)
4877 (arguments
4878 '(;; TODO: Currently, the tests can't be run as cucumber is required,
4879 ;; which would lead to a circular dependency.
4880 #:tests? #f
4881 #:test-target "default"
4882 #:phases
4883 (modify-phases %standard-phases
4884 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
4885 (lambda _
4886 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
4887 #t)))))
4888 (native-inputs
4889 `(("bundler" ,bundler)
4890 ("ruby-rspec" ,ruby-rspec)))
4891 (synopsis "Cucumber wire protocol plugin")
4892 (description
4893 "Cucumber's wire protocol allows step definitions to be implemented and
4894 invoked on any platform.")
4895 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
4896 (license license:expat)))
4897
4898 (define-public ruby-cucumber-tag-expressions
4899 (package
4900 (name "ruby-cucumber-tag-expressions")
4901 (version "1.1.1")
4902 (source
4903 (origin
4904 (method url-fetch)
4905 (uri (rubygems-uri "cucumber-tag_expressions" version))
4906 (sha256
4907 (base32
4908 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
4909 (build-system ruby-build-system)
4910 (arguments
4911 '(#:phases
4912 (modify-phases %standard-phases
4913 (replace 'check
4914 (lambda _
4915 (invoke "rspec")
4916 #t)))))
4917 (native-inputs
4918 `(("ruby-rspec" ,ruby-rspec)))
4919 (synopsis "Cucumber tag expressions for Ruby")
4920 (description
4921 "Cucumber tag expression parser for Ruby. A tag expression is an infix
4922 boolean expression used by Cucumber.")
4923 (home-page "https://github.com/cucumber/tag-expressions-ruby")
4924 (license license:expat)))
4925
4926 (define-public ruby-bio-logger
4927 (package
4928 (name "ruby-bio-logger")
4929 (version "1.0.1")
4930 (source
4931 (origin
4932 (method url-fetch)
4933 (uri (rubygems-uri "bio-logger" version))
4934 (sha256
4935 (base32
4936 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
4937 (build-system ruby-build-system)
4938 (arguments
4939 `(#:tests? #f)) ; rake errors, missing shoulda
4940 (propagated-inputs
4941 `(("ruby-log4r" ,ruby-log4r)))
4942 (synopsis "Log4r wrapper for Ruby")
4943 (description "Bio-logger is a wrapper around Log4r adding extra logging
4944 features such as filtering and fine grained logging.")
4945 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
4946 (license license:expat)))
4947
4948 (define-public ruby-yajl-ruby
4949 (package
4950 (name "ruby-yajl-ruby")
4951 (version "1.4.1")
4952 (source
4953 (origin
4954 (method url-fetch)
4955 (uri (rubygems-uri "yajl-ruby" version))
4956 (sha256
4957 (base32
4958 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
4959 (build-system ruby-build-system)
4960 (arguments
4961 '(#:test-target "spec"
4962 #:phases
4963 (modify-phases %standard-phases
4964 (add-before 'check 'patch-test-to-update-load-path
4965 (lambda _
4966 (substitute* "spec/parsing/large_number_spec.rb"
4967 (("require \"yajl\"")
4968 "$LOAD_PATH << 'lib'; require 'yajl'"))
4969 #t)))))
4970 (native-inputs
4971 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4972 ("ruby-rspec" ,ruby-rspec)))
4973 (synopsis "Streaming JSON parsing and encoding library for Ruby")
4974 (description
4975 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
4976 is compatible with the JSON gem, so yajl-ruby can act as a drop in
4977 replacement.
4978
4979 A modified copy of yajl is used, and included in the package.")
4980 (home-page "https://github.com/brianmario/yajl-ruby")
4981 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
4982 license:bsd-3)))) ; Included, modified copy of yajl
4983
4984 (define-public ruby-yard
4985 (package
4986 (name "ruby-yard")
4987 (version "0.9.16")
4988 (source
4989 (origin
4990 (method url-fetch)
4991 ;; Tests do not pass if we build from the distributed gem.
4992 (uri (string-append "https://github.com/lsegal/yard/archive/v"
4993 version ".tar.gz"))
4994 (file-name (string-append name "-" version ".tar.gz"))
4995 (sha256
4996 (base32
4997 "0sqpbayy9sb406jh0zqg6qha1xds863qz9531dh6vp58hc00clfq"))))
4998 (build-system ruby-build-system)
4999 (arguments
5000 `(#:phases
5001 (modify-phases %standard-phases
5002 (replace 'check
5003 (lambda _
5004 ;; $HOME needs to be set to somewhere writeable for tests to run
5005 (setenv "HOME" "/tmp")
5006 ;; Run tests without using 'rake' to avoid dependencies.
5007 (invoke "rspec"))))))
5008 (native-inputs
5009 `(("ruby-rspec" ,ruby-rspec)
5010 ("ruby-rack" ,ruby-rack)))
5011 (synopsis "Documentation generation tool for Ruby")
5012 (description
5013 "YARD is a documentation generation tool for the Ruby programming
5014 language. It enables the user to generate consistent, usable documentation
5015 that can be exported to a number of formats very easily, and also supports
5016 extending for custom Ruby constructs such as custom class level definitions.")
5017 (home-page "https://yardoc.org")
5018 (license license:expat)))
5019
5020 (define-public ruby-clap
5021 (package
5022 (name "ruby-clap")
5023 (version "1.0.0")
5024 (source (origin
5025 (method url-fetch)
5026 (uri (rubygems-uri "clap" version))
5027 (sha256
5028 (base32
5029 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5030 (build-system ruby-build-system)
5031 ;; Clap needs cutest for running tests, but cutest needs clap.
5032 (arguments `(#:tests? #f))
5033 (synopsis "Command line argument parsing for simple applications")
5034 (description
5035 "Clap provides command line argument parsing features. It covers the
5036 simple case of executing code based on the flags or parameters passed.")
5037 (home-page "https://github.com/djanowski/cutest")
5038 (license license:expat)))
5039
5040 (define-public ruby-cutest
5041 (package
5042 (name "ruby-cutest")
5043 (version "1.2.2")
5044 (source (origin
5045 (method url-fetch)
5046 (uri (rubygems-uri "cutest" version))
5047 (sha256
5048 (base32
5049 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5050 (build-system ruby-build-system)
5051 (propagated-inputs
5052 `(("ruby-clap" ,ruby-clap)))
5053 (synopsis "Run tests in separate processes")
5054 (description
5055 "Cutest runs tests in separate processes to avoid shared state.")
5056 (home-page "https://github.com/djanowski/cutest")
5057 (license license:expat)))
5058
5059 (define-public ruby-pygmentize
5060 (package
5061 (name "ruby-pygmentize")
5062 (version "0.0.3")
5063 (source (origin
5064 (method url-fetch)
5065 (uri (rubygems-uri "pygmentize" version))
5066 (sha256
5067 (base32
5068 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5069 (build-system ruby-build-system)
5070 (arguments
5071 `(#:phases
5072 (modify-phases %standard-phases
5073 (add-after 'unpack 'fix-pygmentize-path
5074 (lambda _
5075 (substitute* "lib/pygmentize.rb"
5076 (("\"/usr/bin/env python.*")
5077 (string-append "\"" (which "pygmentize") "\"\n")))
5078 #t))
5079 (add-after 'build 'do-not-use-vendor-directory
5080 (lambda _
5081 ;; Remove bundled pygments sources
5082 ;; FIXME: ruby-build-system does not support snippets.
5083 (delete-file-recursively "vendor")
5084 (substitute* "pygmentize.gemspec"
5085 (("\"vendor/\\*\\*/\\*\",") ""))
5086 #t)))))
5087 (inputs
5088 `(("pygments" ,python-pygments)))
5089 (native-inputs
5090 `(("ruby-cutest" ,ruby-cutest)
5091 ("ruby-nokogiri" ,ruby-nokogiri)))
5092 (synopsis "Thin Ruby wrapper around pygmentize")
5093 (description
5094 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5095 application.")
5096 (home-page "https://github.com/djanowski/pygmentize")
5097 (license license:expat)))
5098
5099 (define-public ruby-eventmachine
5100 (package
5101 (name "ruby-eventmachine")
5102 (version "1.2.7")
5103 (source
5104 (origin
5105 (method url-fetch)
5106 (uri (rubygems-uri "eventmachine" version))
5107 (sha256
5108 (base32
5109 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5110 (build-system ruby-build-system)
5111 (arguments
5112 '(#:tests? #f)) ; test suite tries to connect to google.com
5113 (native-inputs
5114 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5115 (synopsis "Single-threaded network event framework for Ruby")
5116 (description
5117 "EventMachine implements a single-threaded engine for arbitrary network
5118 communications. EventMachine wraps all interactions with sockets, allowing
5119 programs to concentrate on the implementation of network protocols. It can be
5120 used to create both network servers and clients.")
5121 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5122 (home-page "https://github.com/eventmachine/eventmachine")
5123 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5124
5125 (define-public ruby-ruby-engine
5126 (package
5127 (name "ruby-ruby-engine")
5128 (version "1.0.1")
5129 (source
5130 (origin
5131 (method url-fetch)
5132 (uri (rubygems-uri "ruby_engine" version))
5133 (sha256
5134 (base32
5135 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5136 (build-system ruby-build-system)
5137 (arguments
5138 `(#:phases
5139 (modify-phases %standard-phases
5140 (add-before 'check 'clean-up
5141 (lambda _
5142 (delete-file "Gemfile.lock")
5143 (substitute* "ruby_engine.gemspec"
5144 ;; Remove unnecessary imports that would entail further
5145 ;; dependencies.
5146 ((".*<rdoc.*") "")
5147 ((".*<rubygems-tasks.*") "")
5148 ;; Remove extraneous .gem file
5149 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5150 ;; Soften rake dependency
5151 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5152 "%q<rake>.freeze, [\">= 10.0\"]")
5153 ;; Soften the rspec dependency
5154 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5155 "%q<rspec>.freeze, [\">= 2.4\"]"))
5156 (substitute* "Rakefile"
5157 (("require 'rubygems/tasks'") "")
5158 (("Gem::Tasks.new") ""))
5159 ;; Remove extraneous .gem file that otherwise gets installed.
5160 (delete-file "pkg/ruby_engine-1.0.0.gem")
5161 #t)))))
5162 (native-inputs
5163 `(("bundler" ,bundler)
5164 ("ruby-rake" ,ruby-rake)
5165 ("ruby-rspec" ,ruby-rspec)))
5166 (synopsis "Simplifies checking for Ruby implementation")
5167 (description
5168 "@code{ruby_engine} provides an RubyEngine class that can be used to
5169 check which implementation of Ruby is in use. It can provide the interpreter
5170 name and provides query methods such as @{RubyEngine.mri?}.")
5171 (home-page "https://github.com/janlelis/ruby_engine")
5172 (license license:expat)))
5173
5174 (define-public ruby-turn
5175 (package
5176 (name "ruby-turn")
5177 (version "0.9.7")
5178 (source
5179 (origin
5180 (method url-fetch)
5181 (uri (rubygems-uri "turn" version))
5182 (sha256
5183 (base32
5184 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
5185 (build-system ruby-build-system)
5186 (arguments
5187 `(#:phases
5188 (modify-phases %standard-phases
5189 ;; Tests fail because turn changes its environment so can no longer
5190 ;; find test/unit. Instead simply test if the executable runs
5191 ;; without issue.
5192 (replace 'check
5193 (lambda _
5194 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
5195 (propagated-inputs
5196 `(("ruby-ansi" ,ruby-ansi)
5197 ("ruby-minitest" ,ruby-minitest-4)))
5198 (synopsis "Alternate set of alternative runners for MiniTest")
5199 (description
5200 "TURN provides a set of alternative runners for MiniTest which are both
5201 colorful and informative. TURN displays each test on a separate line with
5202 failures being displayed immediately instead of at the end of the tests. Note
5203 that TURN is no longer being maintained.")
5204 (home-page "http://rubygems.org/gems/turn")
5205 (license license:expat)))
5206
5207 (define-public ruby-mimemagic
5208 (package
5209 (name "ruby-mimemagic")
5210 (version "0.3.2")
5211 (source
5212 (origin
5213 (method url-fetch)
5214 (uri (rubygems-uri "mimemagic" version))
5215 (sha256
5216 (base32
5217 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
5218 (build-system ruby-build-system)
5219 (arguments
5220 '(#:phases
5221 (modify-phases %standard-phases
5222 ;; This phase breaks the tests, as it patches some of the test data.
5223 (delete 'patch-source-shebangs))))
5224 (native-inputs
5225 `(("ruby-bacon" ,ruby-bacon)))
5226 (synopsis "Ruby library for MIME detection by extension or content")
5227 (description
5228 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
5229 extension or content, using the freedesktop.org.xml shared-mime-info
5230 database.")
5231 (home-page "https://github.com/minad/mimemagic")
5232 (license license:expat)))
5233
5234 (define-public ruby-mime-types-data
5235 (package
5236 (name "ruby-mime-types-data")
5237 (version "3.2016.0521")
5238 (source
5239 (origin
5240 (method url-fetch)
5241 (uri (rubygems-uri "mime-types-data" version))
5242 (sha256
5243 (base32
5244 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
5245 (build-system ruby-build-system)
5246 (native-inputs
5247 `(("ruby-hoe" ,ruby-hoe)))
5248 (synopsis "Registry for information about MIME media type definitions")
5249 (description
5250 "@code{mime-types-data} provides a registry for information about
5251 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
5252 be used with the Ruby mime-types library or other software to determine
5253 defined filename extensions for MIME types, or to use filename extensions to
5254 look up the likely MIME type definitions.")
5255 (home-page "https://github.com/mime-types/mime-types-data/")
5256 (license license:expat)))
5257
5258 (define-public ruby-mime-types
5259 (package
5260 (name "ruby-mime-types")
5261 (version "3.1")
5262 (source
5263 (origin
5264 (method url-fetch)
5265 (uri (rubygems-uri "mime-types" version))
5266 (sha256
5267 (base32
5268 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
5269 (build-system ruby-build-system)
5270 (propagated-inputs
5271 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
5272 (native-inputs
5273 `(("ruby-hoe" ,ruby-hoe)
5274 ("ruby-fivemat" ,ruby-fivemat)
5275 ("ruby-minitest-focus" ,ruby-minitest-focus)
5276 ("ruby-minitest-rg" ,ruby-minitest-rg)
5277 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
5278 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
5279 (synopsis "Library and registry for MIME content type definitions")
5280 (description "The mime-types library provides a library and registry for
5281 information about Multipurpose Internet Mail Extensions (MIME) content type
5282 definitions. It can be used to determine defined filename extensions for MIME
5283 types, or to use filename extensions to look up the likely MIME type
5284 definitions.")
5285 (home-page "https://github.com/mime-types/ruby-mime-types")
5286 (license license:expat)))
5287
5288 (define-public ruby-fivemat
5289 (package
5290 (name "ruby-fivemat")
5291 (version "1.3.6")
5292 (source
5293 (origin
5294 (method url-fetch)
5295 (uri (rubygems-uri "fivemat" version))
5296 (sha256
5297 (base32
5298 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
5299 (build-system ruby-build-system)
5300 (arguments
5301 `(#:tests? #f)) ; no tests
5302 (synopsis "Each test file given its own line of dots")
5303 (description
5304 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
5305 its own line of dots during testing. It aims to provide test output that is
5306 neither too verbose nor too minimal.")
5307 (home-page "https://github.com/tpope/fivemat")
5308 (license license:expat)))
5309
5310 (define-public ruby-sqlite3
5311 (package
5312 (name "ruby-sqlite3")
5313 (version "1.3.13")
5314 (source
5315 (origin
5316 (method url-fetch)
5317 (uri (rubygems-uri "sqlite3" version))
5318 (sha256
5319 (base32
5320 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
5321 (build-system ruby-build-system)
5322 (arguments
5323 `(#:phases
5324 (modify-phases %standard-phases
5325 (add-before 'check 'adjust-failing-test
5326 (lambda _
5327 ;; XXX: This test fails with SQLite versions >= 3.21.
5328 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
5329 (substitute* "test/test_integration_resultset.rb"
5330 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
5331 #t))
5332 (add-before 'check 'add-gemtest-file
5333 ;; This file exists in the repository but is not distributed.
5334 (lambda _ (invoke "touch" ".gemtest"))))))
5335 (inputs
5336 `(("sqlite" ,sqlite)))
5337 (native-inputs
5338 `(("ruby-hoe" ,ruby-hoe)
5339 ("ruby-rake-compiler" ,ruby-rake-compiler)
5340 ("ruby-mini-portile" ,ruby-mini-portile)))
5341 (synopsis "Interface with SQLite3 databases")
5342 (description
5343 "This module allows Ruby programs to interface with the SQLite3 database
5344 engine.")
5345 (home-page
5346 "https://github.com/sparklemotion/sqlite3-ruby")
5347 (license license:bsd-3)))
5348
5349 (define-public ruby-shoulda-context
5350 (package
5351 (name "ruby-shoulda-context")
5352 (version "1.2.2")
5353 (source
5354 (origin
5355 (method url-fetch)
5356 (uri (rubygems-uri "shoulda-context" version))
5357 (sha256
5358 (base32
5359 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
5360 (build-system ruby-build-system)
5361 (arguments
5362 `(#:phases
5363 (modify-phases %standard-phases
5364 (replace 'check
5365 (lambda _
5366 ;; Do not run tests to avoid circular dependence with rails.
5367 ;; Instead just import the library to test.
5368 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
5369 (synopsis "Test::Unit context framework extracted from Shoulda")
5370 (description
5371 "@code{shoulda-context} is the context framework extracted from Shoulda.
5372 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
5373 context, setup, and should blocks combine to produce natural test method
5374 names.")
5375 (home-page "https://github.com/thoughtbot/shoulda-context")
5376 (license license:expat)))
5377
5378 (define-public ruby-shoulda-matchers
5379 (package
5380 (name "ruby-shoulda-matchers")
5381 (version "3.1.2")
5382 (source
5383 (origin
5384 (method url-fetch)
5385 (uri (rubygems-uri "shoulda-matchers" version))
5386 (sha256
5387 (base32
5388 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
5389 (build-system ruby-build-system)
5390 (arguments
5391 `(#:phases
5392 (modify-phases %standard-phases
5393 (replace 'check
5394 (lambda _
5395 ;; Do not run tests to avoid circular dependence with rails. Instead
5396 ;; just import the library to test.
5397 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
5398 (propagated-inputs
5399 `(("ruby-activesupport" ,ruby-activesupport)))
5400 (synopsis "Collection of testing matchers extracted from Shoulda")
5401 (description
5402 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
5403 test common Rails functionality. These tests would otherwise be much longer,
5404 more complex, and error-prone.")
5405 (home-page "https://github.com/thoughtbot/shoulda-matchers")
5406 (license license:expat)))
5407
5408 (define-public ruby-shoulda-matchers-2
5409 (package
5410 (inherit ruby-shoulda-matchers)
5411 (version "2.8.0")
5412 (source (origin
5413 (method url-fetch)
5414 (uri (rubygems-uri "shoulda-matchers" version))
5415 (sha256
5416 (base32
5417 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
5418
5419 (define-public ruby-shoulda
5420 (package
5421 (name "ruby-shoulda")
5422 (version "3.5.0")
5423 (source
5424 (origin
5425 (method url-fetch)
5426 (uri (rubygems-uri "shoulda" version))
5427 (sha256
5428 (base32
5429 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
5430 (build-system ruby-build-system)
5431 (arguments
5432 `(#:phases
5433 (modify-phases %standard-phases
5434 (replace 'check
5435 ;; Don't run tests to avoid circular dependence with rails. Instead
5436 ;; just import the library to test.
5437 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
5438 (propagated-inputs
5439 `(("ruby-shoulda-context" ,ruby-shoulda-context)
5440 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
5441 (synopsis "Context framework and matchers for testing")
5442 (description
5443 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
5444 @code{shoulda-matchers} providing tools for writing tests.")
5445 (home-page "https://github.com/thoughtbot/shoulda")
5446 (license license:expat)))
5447
5448 (define-public ruby-unf
5449 (package
5450 (name "ruby-unf")
5451 (version "0.1.4")
5452 (source
5453 (origin
5454 (method url-fetch)
5455 (uri (rubygems-uri "unf" version))
5456 (sha256
5457 (base32
5458 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
5459 (build-system ruby-build-system)
5460 (arguments
5461 `(#:phases
5462 (modify-phases %standard-phases
5463 (add-before 'check 'add-dependency-to-bundler
5464 (lambda _
5465 ;; test-unit is required but not provided by the bundler
5466 ;; environment. This is fixed in the upstream repository but fix
5467 ;; has not been released.
5468 (substitute* "Gemfile"
5469 (("^gemspec") "gem 'test-unit'\ngemspec"))
5470 #t)))))
5471 (propagated-inputs
5472 `(("ruby-unf-ext" ,ruby-unf-ext)))
5473 (native-inputs
5474 `(("ruby-shoulda" ,ruby-shoulda)
5475 ("bundler" ,bundler)
5476 ("ruby-test-unit" ,ruby-test-unit)))
5477 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
5478 (description
5479 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
5480 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
5481 @code{java.text.Normalizer} on JRuby.")
5482 (home-page "https://github.com/knu/ruby-unf")
5483 (license license:bsd-2)))
5484
5485 (define-public ruby-webmock-2
5486 (package
5487 (name "ruby-webmock")
5488 (version "2.3.2")
5489 (source
5490 (origin
5491 (method url-fetch)
5492 (uri (rubygems-uri "webmock" version))
5493 (sha256
5494 (base32
5495 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
5496 (build-system ruby-build-system)
5497 (native-inputs
5498 `(("bundler" ,bundler)
5499 ("ruby-rspec" ,ruby-rspec)))
5500 (propagated-inputs
5501 `(("ruby-addressable" ,ruby-addressable)
5502 ("ruby-crack" ,ruby-crack)
5503 ("ruby-hashdiff" ,ruby-hashdiff)))
5504 (synopsis "Allows stubbing and setting expectations on HTTP requests")
5505 (description
5506 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
5507 requests. This is useful when testing software.")
5508 (home-page "https://github.com/bblimke/webmock")
5509 (license license:expat)))
5510
5511 (define-public ruby-unicode-display-width
5512 (package
5513 (name "ruby-unicode-display-width")
5514 (version "1.4.1")
5515 (source
5516 (origin
5517 (method url-fetch)
5518 (uri (rubygems-uri "unicode-display_width" version))
5519 (sha256
5520 (base32
5521 "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"))))
5522 (build-system ruby-build-system)
5523 (arguments
5524 '(;; Test data not included.
5525 #:tests? #f))
5526 (synopsis "Determine the monospace display width of Ruby strings")
5527 (description
5528 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
5529 display width of strings in Ruby.")
5530 (home-page "https://github.com/janlelis/unicode-display_width")
5531 (license license:expat)))
5532
5533 ;; There is another gem called 'ruby-version' so we use an underscore in this
5534 ;; name
5535 (define-public ruby_version
5536 (package
5537 (name "ruby_version")
5538 (version "1.0.1")
5539 (source
5540 (origin
5541 (method url-fetch)
5542 (uri (rubygems-uri "ruby_version" version))
5543 (sha256
5544 (base32
5545 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
5546 (build-system ruby-build-system)
5547 (arguments
5548 '(#:phases
5549 (modify-phases %standard-phases
5550 (add-before 'check 'fix-dependencies
5551 (lambda _
5552 ;; Remove the Gemfile.lock, as we want to use Guix packages at
5553 ;; whatever versions.
5554 (delete-file "Gemfile.lock")
5555 ;; Remove the incldued gem file as it's unnecessary.
5556 (delete-file "pkg/ruby_version-1.0.0.gem")
5557 (substitute* "ruby_version.gemspec"
5558 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
5559 ((".*rdoc.*") "\n")
5560 ((".*rubygems-tasks.*") "\n")
5561 ;; Accept any version of rake and rspec
5562 (("%q<rake.*") "%q<rake>)\n")
5563 (("%q<rspec.*") "%q<rspec>)\n"))
5564 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
5565 ;; unnecessary.
5566 (substitute* "Rakefile"
5567 (("^require 'rubygems/tasks'") "")
5568 (("Gem::Tasks.new") ""))
5569 #t)))))
5570 (native-inputs
5571 `(("bundler" ,bundler)
5572 ("ruby-rspec" ,ruby-rspec)))
5573 (synopsis "Ruby library to help check the Ruby version")
5574 (description
5575 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
5576 checking for the right Ruby version in software.")
5577 (home-page "https://github.com/janlelis/ruby_version")
5578 (license license:expat)))
5579
5580 (define-public ruby-websocket-driver
5581 (package
5582 (name "ruby-websocket-driver")
5583 (version "0.7.0")
5584 (source
5585 (origin
5586 (method url-fetch)
5587 (uri (rubygems-uri "websocket-driver" version))
5588 (sha256
5589 (base32
5590 "1551k3fs3kkb3ghqfj3n5lps0ikb9pyrdnzmvgfdxy8574n4g1dn"))))
5591 (build-system ruby-build-system)
5592 (arguments
5593 '(;; No included tests
5594 #:tests? #f))
5595 (propagated-inputs
5596 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
5597 (synopsis "WebSocket protocol handler with pluggable I/O")
5598 (description
5599 "@code{websocket-driver} provides a complete implementation of the
5600 WebSocket protocols that can be hooked up to any TCP library")
5601 (home-page "https://github.com/faye/websocket-driver-ruby")
5602 (license license:expat)))
5603
5604 (define-public ruby-websocket-extensions
5605 (package
5606 (name "ruby-websocket-extensions")
5607 (version "0.1.3")
5608 (source
5609 (origin
5610 (method url-fetch)
5611 (uri (rubygems-uri "websocket-extensions" version))
5612 (sha256
5613 (base32
5614 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
5615 (build-system ruby-build-system)
5616 (arguments
5617 '(;; No included tests
5618 #:tests? #f))
5619 (synopsis "Generic extension manager for WebSocket connections")
5620 (description
5621 "@code{websocket-extensions} provides a container for registering
5622 extension plugins.")
5623 (home-page "https://github.com/faye/websocket-extensions-ruby")
5624 (license license:expat)))
5625
5626 (define-public ruby-domain-name
5627 (package
5628 (name "ruby-domain-name")
5629 (version "0.5.20180417")
5630 (source
5631 (origin
5632 (method url-fetch)
5633 (uri (rubygems-uri "domain_name" version))
5634 (sha256
5635 (base32
5636 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
5637 (build-system ruby-build-system)
5638 (arguments
5639 `(#:phases
5640 (modify-phases %standard-phases
5641 (add-before 'check 'fix-versions
5642 (lambda _
5643 ;; Fix NameError that appears to already be fixed upstream.
5644 (substitute* "Rakefile"
5645 (("DomainName::VERSION")
5646 "Bundler::GemHelper.gemspec.version"))
5647 ;; Loosen unnecessarily strict test-unit version specification.
5648 (substitute* "domain_name.gemspec"
5649 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
5650 #t)))))
5651 (propagated-inputs
5652 `(("ruby-unf" ,ruby-unf)))
5653 (native-inputs
5654 `(("ruby-shoulda" ,ruby-shoulda)
5655 ("bundler" ,bundler)
5656 ("ruby-test-unit" ,ruby-test-unit)))
5657 (synopsis "Domain name manipulation library")
5658 (description
5659 "@code{domain_name} is a Domain name manipulation library. It parses a
5660 domain name ready for extracting the registered domain and TLD (Top Level
5661 Domain). It can also be used for cookie domain validation based on the Public
5662 Suffix List.")
5663 (home-page "https://github.com/knu/ruby-domain_name")
5664 (license license:bsd-2)))
5665
5666 (define-public ruby-http-cookie
5667 (package
5668 (name "ruby-http-cookie")
5669 (version "1.0.3")
5670 (source
5671 (origin
5672 (method url-fetch)
5673 (uri (rubygems-uri "http-cookie" version))
5674 (sha256
5675 (base32
5676 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
5677 (build-system ruby-build-system)
5678 (arguments
5679 `(#:phases
5680 (modify-phases %standard-phases
5681 (add-before 'check 'add-dependency-to-bundler
5682 (lambda _
5683 ;; Fix NameError
5684 (substitute* "Rakefile"
5685 (("HTTP::Cookie::VERSION")
5686 "Bundler::GemHelper.gemspec.version"))
5687 #t)))))
5688 (propagated-inputs
5689 `(("ruby-domain-name" ,ruby-domain-name)))
5690 (native-inputs
5691 `(("rubysimplecov" ,ruby-simplecov)
5692 ("bundler" ,bundler)
5693 ("ruby-sqlite3" ,ruby-sqlite3)
5694 ("ruby-test-unit" ,ruby-test-unit)))
5695 (synopsis "Handle HTTP Cookies based on RFC 6265")
5696 (description
5697 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
5698 RFC 6265. It has been designed with security, standards compliance and
5699 compatibility in mind, to behave just the same as today's major web browsers.
5700 It has built-in support for the legacy @code{cookies.txt} and
5701 @code{cookies.sqlite} formats of Mozilla Firefox.")
5702 (home-page "https://github.com/sparklemotion/http-cookie")
5703 (license license:expat)))
5704
5705 (define-public ruby-httpclient
5706 (package
5707 (name "ruby-httpclient")
5708 (version "2.8.3")
5709 (source
5710 (origin
5711 (method url-fetch)
5712 (uri (rubygems-uri "httpclient" version))
5713 (sha256
5714 (base32
5715 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
5716 (build-system ruby-build-system)
5717 (arguments
5718 '(;; TODO: Some tests currently fail
5719 ;; ------
5720 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
5721 ;; 2 omissions, 0 notifications
5722 ;; 91.866% passed
5723 ;; ------
5724 ;; 6.49 tests/s, 22.41 assertions/s
5725 #:tests? #f
5726 #:phases
5727 (modify-phases %standard-phases
5728 (replace 'check
5729 (lambda* (#:key tests? #:allow-other-keys)
5730 (if tests?
5731 (invoke "ruby"
5732 "-Ilib"
5733 "test/runner.rb")
5734 #t))))))
5735 (native-inputs
5736 `(("ruby-rack" ,ruby-rack)))
5737 (synopsis
5738 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
5739 (description
5740 "The @code{httpclient} ruby library provides functionality related to
5741 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
5742 Cookie, multithreading and authentication (digest, NTLM) support.
5743
5744 Also provided is a @command{httpclient} command, which can perform HTTP
5745 requests either using arguments or with an interactive prompt.")
5746 (home-page "https://github.com/nahi/httpclient")
5747 (license license:ruby)))
5748
5749 (define-public ruby-ansi
5750 (package
5751 (name "ruby-ansi")
5752 (version "1.5.0")
5753 (source
5754 (origin
5755 (method url-fetch)
5756 ;; Fetch from GitHub as the gem does not contain testing code.
5757 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
5758 version ".tar.gz"))
5759 (file-name (string-append name "-" version ".tar.gz"))
5760 (sha256
5761 (base32
5762 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
5763 (build-system ruby-build-system)
5764 (arguments
5765 `(#:phases
5766 (modify-phases %standard-phases
5767 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
5768 ;; cycle ansi, qed, ansi. Instead simply test that the library can
5769 ;; be require'd.
5770 (replace 'check
5771 (lambda _
5772 (invoke "ruby" "-Ilib" "-r" "ansi")))
5773 (add-before 'validate-runpath 'replace-broken-symlink
5774 (lambda* (#:key outputs #:allow-other-keys)
5775 (let* ((out (assoc-ref outputs "out"))
5776 (file (string-append
5777 out "/lib/ruby/vendor_ruby/gems/ansi-"
5778 ,version "/lib/ansi.yml")))
5779 ;; XXX: This symlink is broken since ruby 2.4.
5780 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
5781 (delete-file file)
5782 (symlink "../.index" file)
5783 #t))))))
5784 (synopsis "ANSI escape code related libraries")
5785 (description
5786 "This package is a collection of ANSI escape code related libraries
5787 enabling ANSI colorization and stylization of console output. Included in the
5788 library are the @code{Code} module, which defines ANSI codes as constants and
5789 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
5790 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
5791 @code{Terminal} module which provides information about the current output
5792 device.")
5793 (home-page "https://rubyworks.github.io/ansi")
5794 (license license:bsd-2)))
5795
5796 (define-public ruby-systemu
5797 (package
5798 (name "ruby-systemu")
5799 (version "2.6.5")
5800 (source
5801 (origin
5802 (method url-fetch)
5803 (uri (rubygems-uri "systemu" version))
5804 (sha256
5805 (base32
5806 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
5807 (build-system ruby-build-system)
5808 (arguments
5809 `(#:phases
5810 (modify-phases %standard-phases
5811 (add-before 'check 'set-version
5812 (lambda _
5813 (setenv "VERSION" ,version)
5814 #t)))))
5815 (synopsis "Capture of stdout/stderr and handling of child processes")
5816 (description
5817 "Systemu can be used on any platform to return status, stdout, and stderr
5818 of any command. Unlike other methods like @code{open3} and @code{popen4}
5819 there is no danger of full pipes or threading issues hanging your process or
5820 subprocess.")
5821 (home-page "https://github.com/ahoward/systemu")
5822 (license license:ruby)))
5823
5824 (define-public ruby-bio-commandeer
5825 (package
5826 (name "ruby-bio-commandeer")
5827 (version "0.4.0")
5828 (source
5829 (origin
5830 (method url-fetch)
5831 (uri (rubygems-uri "bio-commandeer" version))
5832 (sha256
5833 (base32
5834 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
5835 (build-system ruby-build-system)
5836 (arguments
5837 `(#:phases
5838 (modify-phases %standard-phases
5839 (replace 'check
5840 ;; Run test without calling 'rake' so that jeweler is
5841 ;; not required as an input.
5842 (lambda _
5843 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
5844 (propagated-inputs
5845 `(("ruby-bio-logger" ,ruby-bio-logger)
5846 ("ruby-systemu" ,ruby-systemu)))
5847 (native-inputs
5848 `(("bundler" ,bundler)
5849 ("ruby-rspec" ,ruby-rspec)))
5850 (synopsis "Simplified running of shell commands from within Ruby")
5851 (description
5852 "Bio-commandeer provides an opinionated method of running shell commands
5853 from within Ruby. The advantage of bio-commandeer over other methods of
5854 running external commands is that when something goes wrong, messages printed
5855 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
5856 detail to ease debugging.")
5857 (home-page "https://github.com/wwood/bioruby-commandeer")
5858 (license license:expat)))
5859
5860 (define-public ruby-rubytest
5861 (package
5862 (name "ruby-rubytest")
5863 (version "0.8.1")
5864 (source
5865 (origin
5866 (method url-fetch)
5867 (uri (rubygems-uri "rubytest" version))
5868 (sha256
5869 (base32
5870 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
5871 (build-system ruby-build-system)
5872 (arguments
5873 ;; Disable regular testing to break the cycle rubytest, qed, brass,
5874 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
5875 ;; simply test that the library can be require'd.
5876 `(#:phases
5877 (modify-phases %standard-phases
5878 (replace 'check
5879 (lambda _
5880 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
5881 (propagated-inputs
5882 `(("ruby-ansi" ,ruby-ansi)))
5883 (synopsis "Universal test harness for Ruby")
5884 (description
5885 "Rubytest is a testing meta-framework for Ruby. It can handle any
5886 compliant test framework and can run tests from multiple frameworks in a
5887 single pass.")
5888 (home-page "https://rubyworks.github.io/rubytest")
5889 (license license:bsd-2)))
5890
5891 (define-public ruby-brass
5892 (package
5893 (name "ruby-brass")
5894 (version "1.2.1")
5895 (source
5896 (origin
5897 (method url-fetch)
5898 (uri (rubygems-uri "brass" version))
5899 (sha256
5900 (base32
5901 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
5902 (build-system ruby-build-system)
5903 (arguments
5904 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
5905 ;; Instead simply test that the library can be require'd.
5906 `(#:phases
5907 (modify-phases %standard-phases
5908 (replace 'check
5909 (lambda _
5910 (invoke "ruby" "-Ilib" "-r" "brass"))))))
5911 (synopsis "Basic foundational assertions framework")
5912 (description
5913 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
5914 foundational assertions framework for other assertion and test frameworks to
5915 make use of.")
5916 (home-page "https://rubyworks.github.io/brass")
5917 (license license:bsd-2)))
5918
5919 (define-public ruby-qed
5920 (package
5921 (name "ruby-qed")
5922 (version "2.9.2")
5923 (source
5924 (origin
5925 (method url-fetch)
5926 (uri (rubygems-uri "qed" version))
5927 (sha256
5928 (base32
5929 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
5930 (build-system ruby-build-system)
5931 (arguments
5932 ;; Disable testing to break the cycle qed, ansi, qed, among others.
5933 ;; Instead simply test that the executable runs using --copyright.
5934 `(#:phases
5935 (modify-phases %standard-phases
5936 (replace 'check
5937 (lambda _
5938 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
5939 (propagated-inputs
5940 `(("ruby-ansi" ,ruby-ansi)
5941 ("ruby-brass" ,ruby-brass)))
5942 (synopsis "Test framework utilizing literate programming techniques")
5943 (description
5944 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
5945 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
5946 Development} (BDD) utilizing Literate Programming techniques. QED sits
5947 somewhere between lower-level testing tools like @code{Test::Unit} and
5948 requirement specifications systems like Cucumber.")
5949 (home-page "https://rubyworks.github.io/qed")
5950 (license license:bsd-2)))
5951
5952 (define-public ruby-ae
5953 (package
5954 (name "ruby-ae")
5955 (version "1.8.2")
5956 (source
5957 (origin
5958 (method url-fetch)
5959 ;; Fetch from github so tests are included.
5960 (uri (string-append
5961 "https://github.com/rubyworks/ae/archive/"
5962 version ".tar.gz"))
5963 (file-name (string-append name "-" version ".tar.gz"))
5964 (sha256
5965 (base32
5966 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
5967 (build-system ruby-build-system)
5968 (arguments
5969 `(#:phases
5970 (modify-phases %standard-phases
5971 (replace 'check
5972 (lambda _ (invoke "qed")))
5973 (add-before 'validate-runpath 'replace-broken-symlink
5974 (lambda* (#:key outputs #:allow-other-keys)
5975 (let* ((out (assoc-ref outputs "out"))
5976 (file (string-append
5977 out "/lib/ruby/vendor_ruby/gems/ae-"
5978 ,version "/lib/ae.yml")))
5979 ;; XXX: This symlink is broken since ruby 2.4.
5980 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
5981 (delete-file file)
5982 (symlink "../.index" file)
5983 #t))))))
5984 (propagated-inputs
5985 `(("ruby-ansi" ,ruby-ansi)))
5986 (native-inputs
5987 `(("ruby-qed" ,ruby-qed)))
5988 (synopsis "Assertions library")
5989 (description
5990 "Assertive Expressive (AE) is an assertions library specifically designed
5991 for reuse by other test frameworks.")
5992 (home-page "https://rubyworks.github.io/ae")
5993 (license license:bsd-2)))
5994
5995 (define-public ruby-lemon
5996 (package
5997 (name "ruby-lemon")
5998 (version "0.9.1")
5999 (source
6000 (origin
6001 (method url-fetch)
6002 (uri (rubygems-uri "lemon" version))
6003 (sha256
6004 (base32
6005 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6006 (build-system ruby-build-system)
6007 (arguments
6008 `(#:phases
6009 (modify-phases %standard-phases
6010 (replace 'check (lambda _ (invoke "qed"))))))
6011 (propagated-inputs
6012 `(("ruby-ae" ,ruby-ae)
6013 ("ruby-ansi" ,ruby-ansi)
6014 ("ruby-rubytest" ,ruby-rubytest)))
6015 (native-inputs
6016 `(("ruby-qed" ,ruby-qed)))
6017 (synopsis "Test framework correlating code structure and test unit")
6018 (description
6019 "Lemon is a unit testing framework that enforces highly formal
6020 case-to-class and unit-to-method test construction. This enforcement can help
6021 focus concern on individual units of behavior.")
6022 (home-page "https://rubyworks.github.io/lemon")
6023 (license license:bsd-2)))
6024
6025 (define-public ruby-rubytest-cli
6026 (package
6027 (name "ruby-rubytest-cli")
6028 (version "0.2.0")
6029 (source
6030 (origin
6031 (method url-fetch)
6032 (uri (rubygems-uri "rubytest-cli" version))
6033 (sha256
6034 (base32
6035 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6036 (build-system ruby-build-system)
6037 (arguments
6038 `(#:tests? #f)) ; no tests
6039 (propagated-inputs
6040 `(("ruby-ansi" ,ruby-ansi)
6041 ("ruby-rubytest" ,ruby-rubytest)))
6042 (synopsis "Command-line interface for rubytest")
6043 (description
6044 "Rubytest CLI is a command-line interface for running tests for
6045 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6046 (home-page "https://rubyworks.github.io/rubytest-cli")
6047 (license license:bsd-2)))
6048
6049 (define-public ruby-hashery
6050 (package
6051 (name "ruby-hashery")
6052 (version "2.1.2")
6053 (source
6054 (origin
6055 (method url-fetch)
6056 (uri (rubygems-uri "hashery" version))
6057 (sha256
6058 (base32
6059 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6060 (build-system ruby-build-system)
6061 (arguments
6062 `(#:phases
6063 (modify-phases %standard-phases
6064 (replace 'check
6065 (lambda _
6066 (invoke "qed")
6067 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6068 (native-inputs
6069 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6070 ("ruby-qed" ,ruby-qed)
6071 ("ruby-lemon" ,ruby-lemon)))
6072 (synopsis "Hash-like classes with extra features")
6073 (description
6074 "The Hashery is a tight collection of @code{Hash}-like classes.
6075 Included are the auto-sorting @code{Dictionary} class, the efficient
6076 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6077 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6078 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6079 standard @code{Hash} making it possible to subclass and augment to fit any
6080 specific use case.")
6081 (home-page "https://rubyworks.github.io/hashery")
6082 (license license:bsd-2)))
6083
6084 (define-public ruby-rc4
6085 (package
6086 (name "ruby-rc4")
6087 (version "0.1.5")
6088 (source
6089 (origin
6090 (method url-fetch)
6091 (uri (rubygems-uri "ruby-rc4" version))
6092 (sha256
6093 (base32
6094 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
6095 (build-system ruby-build-system)
6096 (arguments
6097 `(#:phases
6098 (modify-phases %standard-phases
6099 (replace 'check
6100 (lambda _
6101 (invoke "rspec" "spec/rc4_spec.rb"))))))
6102 (native-inputs
6103 `(("ruby-rspec" ,ruby-rspec-2)))
6104 (synopsis "Implementation of the RC4 algorithm")
6105 (description
6106 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
6107 (home-page "https://github.com/caiges/Ruby-RC4")
6108 (license license:expat)))
6109
6110 (define-public ruby-afm
6111 (package
6112 (name "ruby-afm")
6113 (version "0.2.2")
6114 (source
6115 (origin
6116 (method url-fetch)
6117 (uri (rubygems-uri "afm" version))
6118 (sha256
6119 (base32
6120 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
6121 (build-system ruby-build-system)
6122 (native-inputs
6123 `(("bundler" ,bundler)))
6124 (synopsis "Read Adobe Font Metrics (afm) files")
6125 (description
6126 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
6127 files and use the data therein.")
6128 (home-page "https://github.com/halfbyte/afm")
6129 (license license:expat)))
6130
6131 (define-public ruby-ascii85
6132 (package
6133 (name "ruby-ascii85")
6134 (version "1.0.3")
6135 (source
6136 (origin
6137 (method url-fetch)
6138 (uri (rubygems-uri "Ascii85" version))
6139 (sha256
6140 (base32
6141 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
6142 (build-system ruby-build-system)
6143 (native-inputs
6144 `(("bundler" ,bundler)))
6145 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
6146 (description
6147 "This library provides methods to encode and decode Ascii85
6148 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
6149 @dfn{Portable Document Format} (PDF) file formats.")
6150 (home-page "https://github.com/datawraith/ascii85gem")
6151 (license license:expat)))
6152
6153 (define-public ruby-ttfunk
6154 (package
6155 (name "ruby-ttfunk")
6156 (version "1.5.1")
6157 (source
6158 (origin
6159 (method url-fetch)
6160 ;; fetch from github as the gem does not contain testing code
6161 (uri (string-append
6162 "https://github.com/prawnpdf/ttfunk/archive/"
6163 version ".tar.gz"))
6164 (file-name (string-append name "-" version ".tar.gz"))
6165 (sha256
6166 (base32
6167 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
6168 (build-system ruby-build-system)
6169 (arguments
6170 `(#:test-target "spec"
6171 #:phases
6172 (modify-phases %standard-phases
6173 (add-before 'build 'remove-ssh
6174 (lambda _
6175 ;; remove dependency on an ssh key pair that doesn't exist
6176 (substitute* "ttfunk.gemspec"
6177 (("spec.signing_key.*") ""))
6178 #t))
6179 (add-before 'check 'remove-rubocop
6180 (lambda _
6181 ;; remove rubocop as a dependency as not needed for testing
6182 (substitute* "ttfunk.gemspec"
6183 (("spec.add_development_dependency\\('rubocop'.*") ""))
6184 (substitute* "Rakefile"
6185 (("require 'rubocop/rake_task'") "")
6186 (("RuboCop::RakeTask.new") ""))
6187 #t)))))
6188 (native-inputs
6189 `(("ruby-rspec" ,ruby-rspec)
6190 ("ruby-yard" ,ruby-yard)
6191 ("bundler" ,bundler)))
6192 (synopsis "Font metrics parser for the Prawn PDF generator")
6193 (description
6194 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
6195 part of the Prawn PDF generator.")
6196 (home-page "https://github.com/prawnpdf/ttfunk")
6197 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
6198 ;; for details."
6199 (license (list license:gpl2 license:gpl3 license:ruby))))
6200
6201 (define-public ruby-puma
6202 (package
6203 (name "ruby-puma")
6204 (version "3.9.1")
6205 (source
6206 (origin
6207 (method url-fetch)
6208 ;; Fetch from GitHub because distributed gem does not contain tests.
6209 (uri (string-append "https://github.com/puma/puma/archive/v"
6210 version ".tar.gz"))
6211 (file-name (string-append name "-" version ".tar.gz"))
6212 (sha256
6213 (base32
6214 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
6215 (build-system ruby-build-system)
6216 (arguments
6217 `(#:tests? #f ; Tests require an out-dated version of minitest.
6218 #:phases
6219 (modify-phases %standard-phases
6220 (add-before 'build 'fix-gemspec
6221 (lambda _
6222 (substitute* "puma.gemspec"
6223 (("git ls-files") "find * |sort"))
6224 #t)))))
6225 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
6226 (description
6227 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
6228 for Ruby/Rack applications. Puma is intended for use in both development and
6229 production environments. In order to get the best throughput, it is highly
6230 recommended that you use a Ruby implementation with real threads like Rubinius
6231 or JRuby.")
6232 (home-page "http://puma.io")
6233 (license license:expat)))
6234
6235 (define-public ruby-hoe-git
6236 (package
6237 (name "ruby-hoe-git")
6238 (version "1.6.0")
6239 (source
6240 (origin
6241 (method url-fetch)
6242 (uri (rubygems-uri "hoe-git" version))
6243 (sha256
6244 (base32
6245 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
6246 (build-system ruby-build-system)
6247 (propagated-inputs
6248 `(("ruby-hoe" ,ruby-hoe)
6249 ("git" ,git)))
6250 (synopsis "Hoe plugins for tighter Git integration")
6251 (description
6252 "This package provides a set of Hoe plugins for tighter Git integration.
6253 It provides tasks to automate release tagging and pushing and changelog
6254 generation.")
6255 (home-page "https://github.com/jbarnette/hoe-git")
6256 (license license:expat)))
6257
6258 (define-public ruby-sequel
6259 (package
6260 (name "ruby-sequel")
6261 (version "4.49.0")
6262 (source
6263 (origin
6264 (method url-fetch)
6265 (uri (rubygems-uri "sequel" version))
6266 (sha256
6267 (base32
6268 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
6269 (build-system ruby-build-system)
6270 (arguments
6271 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
6272 (synopsis "Database toolkit for Ruby")
6273 (description "Sequel provides thread safety, connection pooling and a
6274 concise DSL for constructing SQL queries and table schemas. It includes a
6275 comprehensive ORM layer for mapping records to Ruby objects and handling
6276 associated records.")
6277 (home-page "http://sequel.jeremyevans.net")
6278 (license license:expat)))
6279
6280 (define-public ruby-timecop
6281 (package
6282 (name "ruby-timecop")
6283 (version "0.9.1")
6284 (source
6285 (origin
6286 (method url-fetch)
6287 (uri (rubygems-uri "timecop" version))
6288 (sha256
6289 (base32
6290 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
6291 (build-system ruby-build-system)
6292 (arguments
6293 `(#:phases
6294 (modify-phases %standard-phases
6295 (add-before 'check 'set-check-rubylib
6296 (lambda _
6297 ;; Set RUBYLIB so timecop tests finds its own lib.
6298 (setenv "RUBYLIB" "lib")
6299 #t)))))
6300 (native-inputs
6301 `(("bundler" ,bundler)
6302 ("ruby-minitest-rg" ,ruby-minitest-rg)
6303 ("ruby-mocha" ,ruby-mocha)
6304 ("ruby-activesupport" ,ruby-activesupport)))
6305 (synopsis "Test mocks for time-dependent functions")
6306 (description
6307 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
6308 making it easier to test time-dependent code. It provides a unified method to
6309 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
6310 call.")
6311 (home-page "https://github.com/travisjeffery/timecop")
6312 (license license:expat)))
6313
6314 (define-public ruby-concurrent
6315 (package
6316 (name "ruby-concurrent")
6317 (version "1.0.5")
6318 (source
6319 (origin
6320 (method url-fetch)
6321 ;; Download from GitHub because the rubygems version does not contain
6322 ;; Rakefile.
6323 (uri (string-append
6324 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
6325 version
6326 ".tar.gz"))
6327 (file-name (string-append name "-" version ".tar.gz"))
6328 (sha256
6329 (base32
6330 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
6331 ;; Exclude failing test reported at
6332 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
6333 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
6334 "ruby-concurrent-test-arm.patch"))))
6335 (build-system ruby-build-system)
6336 (arguments
6337 `(#:test-target "spec"
6338 #:phases
6339 (modify-phases %standard-phases
6340 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
6341 (lambda _
6342 ;; Delete extra gemspec files so 'first-gemspec' chooses the
6343 ;; correct one.
6344 (delete-file "concurrent-ruby-edge.gemspec")
6345 (delete-file "concurrent-ruby-ext.gemspec")
6346 #t))
6347 (add-before 'build 'replace-git-ls-files2
6348 (lambda _
6349 (substitute* "support/file_map.rb"
6350 (("git ls-files") "find * |sort"))
6351 #t))
6352 (add-before 'check 'rake-compile
6353 ;; Fix the test error described at
6354 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
6355 (lambda _ (invoke "rake" "compile")))
6356 (add-before 'check 'remove-timecop-dependency
6357 ;; Remove timecop-dependent tests as having timecop as a depedency
6358 ;; causes circular depedencies.
6359 (lambda _
6360 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
6361 (delete-file "spec/concurrent/scheduled_task_spec.rb")
6362 #t)))))
6363 (native-inputs
6364 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6365 ("ruby-rspec" ,ruby-rspec)))
6366 (synopsis "Concurrency tools for Ruby")
6367 (description
6368 "This library provides modern concurrency tools including agents,
6369 futures, promises, thread pools, actors, supervisors, and more. It is
6370 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
6371 patterns.")
6372 (home-page "http://www.concurrent-ruby.com")
6373 (license license:expat)))
6374
6375 (define-public ruby-pkg-config
6376 (package
6377 (name "ruby-pkg-config")
6378 (version "1.2.5")
6379 (source
6380 (origin
6381 (method url-fetch)
6382 (uri (rubygems-uri "pkg-config" version))
6383 (sha256
6384 (base32
6385 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
6386 (build-system ruby-build-system)
6387 (arguments
6388 ;; Tests require extra files not included in the gem.
6389 `(#:tests? #f))
6390 (synopsis "Detect libraries for compiling Ruby native extensions")
6391 (description
6392 "@code{pkg-config} can be used in your extconf.rb to properly detect need
6393 libraries for compiling Ruby native extensions.")
6394 (home-page "https://github.com/ruby-gnome2/pkg-config")
6395 (license license:lgpl2.0+)))
6396
6397 (define-public ruby-net-http-digest-auth
6398 (package
6399 (name "ruby-net-http-digest-auth")
6400 (version "1.4.1")
6401 (source
6402 (origin
6403 (method url-fetch)
6404 (uri (rubygems-uri "net-http-digest_auth" version))
6405 (sha256
6406 (base32
6407 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
6408 (build-system ruby-build-system)
6409 (native-inputs
6410 `(("ruby-hoe" ,ruby-hoe)))
6411 (synopsis "RFC 2617 HTTP digest authentication library")
6412 (description
6413 "This library implements HTTP's digest authentication scheme based on
6414 RFC 2617. This enables the use of the digest authentication scheme instead
6415 of the more insecure basic authentication scheme.")
6416 (home-page "https://github.com/drbrain/net-http-digest_auth")
6417 (license license:expat)))
6418
6419 (define-public ruby-mail
6420 (package
6421 (name "ruby-mail")
6422 (version "2.6.6")
6423 (source
6424 (origin
6425 (method url-fetch)
6426 (uri (rubygems-uri "mail" version))
6427 (sha256
6428 (base32
6429 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
6430 (build-system ruby-build-system)
6431 (propagated-inputs
6432 `(("ruby-mime-types" ,ruby-mime-types)))
6433 (arguments
6434 ;; Tests require extra gems not included in the Gemfile.
6435 ;; XXX: Try enabling this for the next version with mini_mime.
6436 `(#:tests? #f))
6437 (synopsis "Mail library for Ruby")
6438 (description
6439 "Mail is an internet library for Ruby that is designed to handle email
6440 generation, parsing and sending. The purpose of this library is to provide
6441 a single point of access to handle all email functions, including sending
6442 and receiving emails. All network type actions are done through proxy
6443 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
6444
6445 Mail has been designed with a very simple object oriented system that
6446 really opens up the email messages you are parsing, if you know what you
6447 are doing, you can fiddle with every last bit of your email directly.")
6448 (home-page "https://github.com/mikel/mail")
6449 (license license:expat)))
6450
6451 (define-public ruby-mathn
6452 (package
6453 (name "ruby-mathn")
6454 (version "0.1.0")
6455 (source
6456 (origin
6457 (method url-fetch)
6458 (uri (rubygems-uri "mathn" version))
6459 (sha256
6460 (base32
6461 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
6462 (build-system ruby-build-system)
6463 (native-inputs
6464 `(("bundler" ,bundler)
6465 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6466 (synopsis "Extends math operations for increased precision")
6467 (description
6468 "This gem makes mathematical operations more precise in Ruby and
6469 integrates other mathematical standard libraries. Prior to Ruby 2.5,
6470 @code{mathn} was part of the Ruby standard library.")
6471 (home-page "https://github.com/ruby/mathn")
6472 (license license:bsd-2)))
6473
6474 (define-public ruby-code-statistics
6475 (package
6476 (name "ruby-code-statistics")
6477 (version "0.2.13")
6478 (source
6479 (origin
6480 (method url-fetch)
6481 (uri (rubygems-uri "code_statistics" version))
6482 (sha256
6483 (base32
6484 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
6485 (build-system ruby-build-system)
6486 (arguments
6487 `(#:tests? #f)) ; Not all test code is included in gem.
6488 (synopsis "Port of the rails 'rake stats' method")
6489 (description
6490 "This gem is a port of the rails 'rake stats' method so it can be made
6491 more robust and work for non rails projects.")
6492 (home-page "http://github.com/danmayer/code_statistics")
6493 (license license:expat)))
6494
6495 (define-public ruby-rubypants
6496 (package
6497 (name "ruby-rubypants")
6498 (version "0.6.0")
6499 (source (origin
6500 (method url-fetch)
6501 (uri (rubygems-uri "rubypants" version))
6502 (sha256
6503 (base32
6504 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
6505 (build-system ruby-build-system)
6506 (arguments
6507 '(#:tests? #f)) ; need Codecov
6508 (synopsis "Port of the smart-quotes library SmartyPants")
6509 (description
6510 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
6511 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
6512 and BBEdit that easily translates plain ASCII punctuation characters into
6513 smart typographic punctuation HTML entities.")
6514 (home-page "https://github.com/jmcnevin/rubypants")
6515 (license license:bsd-2)))
6516
6517 (define-public ruby-org-ruby
6518 (package
6519 (name "ruby-org-ruby")
6520 (version "0.9.12")
6521 (source (origin
6522 (method url-fetch)
6523 (uri (rubygems-uri "org-ruby" version))
6524 (sha256
6525 (base32
6526 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
6527 (build-system ruby-build-system)
6528 (arguments
6529 '(#:tests? #f)) ; no rakefile
6530 (propagated-inputs
6531 `(("ruby-rubypants" ,ruby-rubypants)))
6532 (synopsis "Org-mode parser written in Ruby")
6533 (description
6534 "Org-ruby is an org-mode parser written in Ruby. The most significant
6535 thing this library does today is convert org-mode files to HTML or Textile or
6536 Markdown.")
6537 (home-page "https://github.com/wallyqs/org-ruby")
6538 (license license:expat)))
6539
6540 (define-public ruby-rake
6541 (package
6542 (name "ruby-rake")
6543 (version "12.3.1")
6544 (source
6545 (origin
6546 (method url-fetch)
6547 (uri (rubygems-uri "rake" version))
6548 (sha256
6549 (base32
6550 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
6551 (build-system ruby-build-system)
6552 (native-inputs
6553 `(("bundler" ,bundler)))
6554 (synopsis "Rake is a Make-like program implemented in Ruby")
6555 (description
6556 "Rake is a Make-like program where tasks and dependencies are specified
6557 in standard Ruby syntax.")
6558 (home-page "https://github.com/ruby/rake")
6559 (license license:expat)))
6560
6561 (define-public ruby-childprocess-0.6
6562 (package
6563 (name "ruby-childprocess")
6564 (version "0.6.3")
6565 (source
6566 (origin
6567 (method url-fetch)
6568 (uri (rubygems-uri "childprocess" version))
6569 (sha256
6570 (base32
6571 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
6572 (build-system ruby-build-system)
6573 (arguments
6574 `(#:tests? #f))
6575 (native-inputs
6576 `(("bundler" ,bundler)
6577 ("ruby-rspec" ,ruby-rspec)))
6578 (propagated-inputs
6579 `(("ruby-ffi" ,ruby-ffi)))
6580 (synopsis "Control external programs running in the background, in Ruby")
6581 (description "@code{childprocess} provides a gem to control external
6582 programs running in the background, in Ruby.")
6583 (home-page "http://github.com/enkessler/childprocess")
6584 (license license:expat)))
6585
6586 (define-public ruby-childprocess
6587 (package
6588 (inherit ruby-childprocess-0.6)
6589 (name "ruby-childprocess")
6590 (version "0.9.0")
6591 (source
6592 (origin
6593 (method url-fetch)
6594 (uri (rubygems-uri "childprocess" version))
6595 (sha256
6596 (base32
6597 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
6598
6599 (define-public ruby-public-suffix
6600 (package
6601 (name "ruby-public-suffix")
6602 (version "3.0.3")
6603 (source (origin
6604 (method url-fetch)
6605 (uri (rubygems-uri "public_suffix" version))
6606 (sha256
6607 (base32
6608 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
6609 (build-system ruby-build-system)
6610 (arguments
6611 '(#:phases
6612 (modify-phases %standard-phases
6613 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
6614 ;; including it as an input can lead to circular dependencies.
6615 (add-after 'unpack 'remove-rubocop-from-Rakefile
6616 (lambda _
6617 (substitute* "Rakefile"
6618 (("require \"rubocop/rake\\_task\"") "")
6619 (("RuboCop::RakeTask\\.new") ""))
6620 #t)))))
6621 (native-inputs
6622 `(("bundler" ,bundler)
6623 ("ruby-yard" ,ruby-yard)
6624 ("ruby-mocha" ,ruby-mocha)
6625 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
6626 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
6627 (synopsis "Domain name parser")
6628 (description "The gem @code{public_suffix} is a domain name parser,
6629 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
6630 is one under which Internet users can (or historically could) directly
6631 register names. Some examples of public suffixes are @code{.com},
6632 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
6633 all known public suffixes.")
6634 (license license:expat)))
6635
6636 (define-public ruby-addressable
6637 (package
6638 (name "ruby-addressable")
6639 (version "2.6.0")
6640 (source (origin
6641 (method url-fetch)
6642 (uri (rubygems-uri "addressable" version))
6643 (sha256
6644 (base32
6645 "0bcm2hchn897xjhqj9zzsxf3n9xhddymj4lsclz508f4vw3av46l"))))
6646 (build-system ruby-build-system)
6647 (arguments
6648 '(#:test-target "spec"
6649 #:phases
6650 (modify-phases %standard-phases
6651 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
6652 (lambda _
6653 (substitute* "Gemfile"
6654 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
6655 ((".*launchy.*") "")
6656 ((".*rake.*") "gem 'rake'\n")
6657 ((".*redcarpet.*") ""))
6658 #t))
6659 (add-before 'check 'delete-network-dependent-test
6660 (lambda _
6661 (delete-file "spec/addressable/net_http_compat_spec.rb")
6662 #t)))))
6663 (native-inputs
6664 `(("ruby-rspec" ,ruby-rspec)
6665 ("bundler" ,bundler)
6666 ("ruby-idn-ruby" ,ruby-idn-ruby)
6667 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
6668 ("ruby-rspec-its", ruby-rspec-its)
6669 ("ruby-yard" ,ruby-yard)
6670 ("ruby-simplecov" ,ruby-simplecov)))
6671 (propagated-inputs
6672 `(("ruby-public-suffix" ,ruby-public-suffix)))
6673 (home-page "https://github.com/sporkmonger/addressable")
6674 (synopsis "Alternative URI implementation")
6675 (description "Addressable is a replacement for the URI implementation that
6676 is part of Ruby's standard library. It more closely conforms to RFC 3986,
6677 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
6678 (license license:asl2.0)))
6679
6680 (define-public ruby-colorator
6681 (package
6682 (name "ruby-colorator")
6683 (version "1.1.0")
6684 (source (origin
6685 (method url-fetch)
6686 (uri (rubygems-uri "colorator" version))
6687 (sha256
6688 (base32
6689 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
6690 (build-system ruby-build-system)
6691 (arguments
6692 ;; No test target
6693 `(#:tests? #f))
6694 (home-page "http://octopress.org/colorator/")
6695 (synopsis "Terminal color library")
6696 (description "Colorator is a Ruby gem that helps you colorize your text
6697 for the terminal.")
6698 (license license:expat)))
6699
6700 (define-public ruby-command-line-reporter
6701 (package
6702 (name "ruby-command-line-reporter")
6703 (version "4.0.0")
6704 (source (origin
6705 (method url-fetch)
6706 (uri (rubygems-uri "command_line_reporter" version))
6707 (sha256
6708 (base32
6709 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
6710 (build-system ruby-build-system)
6711 (arguments
6712 ;; No Rakefile
6713 `(#:tests? #f
6714 #:phases
6715 (modify-phases %standard-phases
6716 (add-before 'build 'fix-dependencies
6717 (lambda _
6718 (substitute* ".gemspec"
6719 ;; colored is unmaintained
6720 (("colored") "colorator")
6721 ;; colorator version
6722 (("= 1.2") "= 1.1"))
6723 #t)))))
6724 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
6725 (home-page "https://github.com/wbailey/command_line_reporter")
6726 (synopsis "Report production while executing Ruby scripts")
6727 (description "This gem provides a DSL that makes it easy to write reports
6728 of various types in ruby. It eliminates the need to litter your source with
6729 puts statements, instead providing a more readable, expressive interface to
6730 your application.")
6731 (license license:asl2.0)))
6732
6733 (define-public ruby-command-line-reporter-3
6734 (package
6735 (inherit ruby-command-line-reporter)
6736 (version "3.3.6")
6737 (source (origin
6738 (method url-fetch)
6739 (uri (rubygems-uri "command_line_reporter" version))
6740 (sha256
6741 (base32
6742 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
6743
6744 (define-public ruby-rdoc
6745 (package
6746 (name "ruby-rdoc")
6747 (version "6.0.4")
6748 (source
6749 (origin
6750 (method url-fetch)
6751 (uri (rubygems-uri "rdoc" version))
6752 (sha256
6753 (base32
6754 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
6755 (build-system ruby-build-system)
6756 (native-inputs
6757 `(("bundler" ,bundler)))
6758 (home-page "https://ruby.github.io/rdoc/")
6759 (synopsis "HTML and command-line documentation utility")
6760 (description "RDoc produces HTML and command-line documentation for Ruby
6761 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
6762 documentation from the command-line.")
6763 (license license:gpl2+)))
6764
6765 (define-public ruby-sass-listen
6766 (package
6767 (name "ruby-sass-listen")
6768 (version "4.0.0")
6769 (source (origin
6770 (method url-fetch)
6771 (uri (rubygems-uri "sass-listen" version))
6772 (sha256
6773 (base32
6774 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
6775 (build-system ruby-build-system)
6776 (arguments
6777 ;; No test target
6778 `(#:tests? #f))
6779 (propagated-inputs
6780 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6781 ("ruby-rb-inotify" ,ruby-rb-inotify)))
6782 (home-page "https://github.com/sass/listen")
6783 (synopsis "File modification notification library")
6784 (description "The Listen gem listens to file modifications and notifies you
6785 about the changes.")
6786 (license license:expat)))
6787
6788 (define-public ruby-terminfo
6789 (package
6790 (name "ruby-terminfo")
6791 (version "0.1.1")
6792 (source
6793 (origin
6794 (method url-fetch)
6795 (uri (rubygems-uri "ruby-terminfo" version))
6796 (sha256
6797 (base32
6798 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
6799 (build-system ruby-build-system)
6800 (arguments
6801 `(#:test-target "test"
6802 ;; Rakefile requires old packages and would need modification to
6803 ;; work with current software.
6804 #:tests? #f))
6805 (inputs
6806 `(("ncurses" ,ncurses)))
6807 (native-inputs
6808 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
6809 ("ruby-rdoc" ,ruby-rdoc)))
6810 (home-page "http://www.a-k-r.org/ruby-terminfo/")
6811 (synopsis "Terminfo binding for Ruby")
6812 (description "Ruby-terminfo provides terminfo binding for Ruby.")
6813 (license license:bsd-3)))
6814
6815 (define-public ruby-diffy
6816 (package
6817 (name "ruby-diffy")
6818 (version "3.2.1")
6819 (source
6820 (origin
6821 (method url-fetch)
6822 (uri (rubygems-uri "diffy" version))
6823 (sha256
6824 (base32
6825 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
6826 (build-system ruby-build-system)
6827 (arguments
6828 ;; No tests
6829 `(#:tests? #f))
6830 (native-inputs
6831 `(("ruby-rspec" ,ruby-rspec)))
6832 (home-page "https://github.com/samg/diffy")
6833 (synopsis "Convenient diffing in ruby")
6834 (description "Diffy provides a convenient way to generate a diff from two
6835 strings or files.")
6836 (license license:expat)))
6837
6838 (define-public ruby-sass-spec
6839 (package
6840 (name "ruby-sass-spec")
6841 (version "3.5.4")
6842 (source (origin
6843 (method url-fetch)
6844 (uri (string-append "https://github.com/sass/sass-spec/archive/v"
6845 version ".tar.gz"))
6846 (file-name (string-append name "-" version ".tar.gz"))
6847 (sha256
6848 (base32
6849 "0nx8lp7c9qa58w489crgqa3c489xsyarn1a8h4np9mwwfqm1h3rr"))))
6850 (build-system ruby-build-system)
6851 (propagated-inputs
6852 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
6853 ("ruby-diffy" ,ruby-diffy)
6854 ("ruby-terminfo" ,ruby-terminfo)))
6855 (arguments
6856 `(;; This package contains tests for a sass implementation, and the to
6857 ;; avoid any circular dependencies, the tests are not run here
6858 #:tests? #f
6859 #:phases
6860 (modify-phases %standard-phases
6861 (add-after 'unpack 'patch-test
6862 (lambda _
6863 (delete-file "spec/values/colors/alpha_hex-3.5/error")
6864 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
6865 (("string") "color")))))))
6866 (home-page "https://github.com/sass/sass-spec")
6867 (synopsis "Test suite for Sass")
6868 (description "Sass Spec is a test suite for Sass. Test cases are all in
6869 the @file{spec} directory.")
6870 (license license:expat)))
6871
6872 (define-public ruby-sass
6873 (package
6874 (name "ruby-sass")
6875 (version "3.6.0")
6876 (source (origin
6877 (method url-fetch)
6878 (uri (rubygems-uri "sass" version))
6879 (sha256
6880 (base32
6881 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
6882 (build-system ruby-build-system)
6883 (propagated-inputs
6884 `(("ruby-sass-listen" ,ruby-sass-listen)))
6885 (native-inputs
6886 `(("ruby-sass-spec" ,ruby-sass-spec)
6887 ("ruby-mathn" ,ruby-mathn)))
6888 (home-page "http://sass-lang.com/")
6889 (synopsis "CSS extension language")
6890 (description "Sass is a CSS extension language. It extends CSS with
6891 features that don't exist yet like variables, nesting, mixins and inheritance.")
6892 (license license:expat)))
6893
6894 (define-public ruby-jekyll-sass-converter
6895 (package
6896 (name "ruby-jekyll-sass-converter")
6897 (version "1.5.2")
6898 (source (origin
6899 (method url-fetch)
6900 (uri (rubygems-uri "jekyll-sass-converter" version))
6901 (sha256
6902 (base32
6903 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
6904 (build-system ruby-build-system)
6905 (propagated-inputs
6906 `(("ruby-sass" ,ruby-sass)))
6907 (arguments
6908 ;; No rakefile
6909 `(#:tests? #f))
6910 (home-page "https://github.com/jekyll/jekyll-sass-converter")
6911 (synopsis "Sass converter for Jekyll")
6912 (description "This gem provide built-in support for the Sass converter
6913 in Jekyll.")
6914 (license license:expat)))
6915
6916 (define-public ruby-jekyll-watch
6917 (package
6918 (name "ruby-jekyll-watch")
6919 (version "2.0.0")
6920 (source (origin
6921 (method url-fetch)
6922 (uri (rubygems-uri "jekyll-watch" version))
6923 (sha256
6924 (base32
6925 "0m7scvj3ki8bmyx5v8pzibpg6my10nycnc28lip98dskf8iakprp"))))
6926 (build-system ruby-build-system)
6927 (propagated-inputs
6928 `(("ruby-listen-3.0" ,ruby-listen-3.0)))
6929 (arguments
6930 ;; No rakefile
6931 `(#:tests? #f))
6932 (home-page "https://github.com/jekyll/jekyll-watch")
6933 (synopsis "Jekyll auto-rebuild support")
6934 (description "This gems add the @code{--watch} switch to the jekyll CLI
6935 interface. It allows Jekyll to rebuild your site when a file changes.")
6936 (license license:expat)))
6937
6938 (define-public ruby-parallel
6939 (package
6940 (name "ruby-parallel")
6941 (version "1.13.0")
6942 (source
6943 (origin
6944 (method git-fetch)
6945 (uri (git-reference
6946 (url "https://github.com/grosser/parallel.git")
6947 (commit (string-append "v" version))))
6948 (file-name (git-file-name name version))
6949 (sha256
6950 (base32
6951 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
6952 (build-system ruby-build-system)
6953 (arguments
6954 `(;; TODO 3 test failures
6955 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
6956 ;; open unnecessary pipes
6957 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
6958 ;; SQLite in processes
6959 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
6960 ;; SQLite in threads
6961 #:tests? #f
6962 #:test-target "rspec-rerun:spec"
6963 #:phases
6964 (modify-phases %standard-phases
6965 (add-after 'unpack 'patch-Gemfile
6966 (lambda _
6967 (substitute* "Gemfile"
6968 (("gem 'rspec-legacy_formatters'") "")
6969 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
6970 (add-before 'check 'delete-Gemfile.lock
6971 (lambda _
6972 ;; Bundler isn't being used for fetching dependendencies, so
6973 ;; delete the Gemfile.lock
6974 (delete-file "Gemfile.lock")
6975 #t))
6976 (add-before 'build 'patch-gemspec
6977 (lambda _
6978 (substitute* "parallel.gemspec"
6979 (("git ls-files") "find"))
6980 #t)))))
6981 (native-inputs
6982 `(("ruby-rspec" ,ruby-rspec)
6983 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
6984 ("bundler" ,bundler)
6985 ("ruby-activerecord" ,ruby-activerecord)
6986 ("ruby-progressbar" ,ruby-progressbar)
6987 ("ruby-bump" ,ruby-bump)
6988 ("procps" ,procps)
6989 ("lsof" ,lsof)
6990 ("ruby-mysql2" ,ruby-mysql2)
6991 ("ruby-sqlite3" ,ruby-sqlite3)
6992 ("ruby-i18n" ,ruby-i18n)))
6993 (home-page "https://github.com/grosser/parallel")
6994 (synopsis "Parallel processing in Ruby")
6995 (description "Parallel allows you to run any code in parallel Processes
6996 (to use all CPUs) or Threads(to speedup blocking operations). It is best
6997 suited for map-reduce or e.g. parallel downloads/uploads.")
6998 (license license:expat)))
6999
7000 (define-public ruby-cane
7001 (package
7002 (name "ruby-cane")
7003 (version "3.0.0")
7004 (source (origin
7005 (method url-fetch)
7006 (uri (rubygems-uri "cane" version))
7007 (sha256
7008 (base32
7009 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7010 (build-system ruby-build-system)
7011 (arguments `(#:tests? #f)); No rakefile
7012 (home-page "https://github.com/square/cane")
7013 (propagated-inputs
7014 `(("ruby-parallel" ,ruby-parallel)))
7015 (synopsis "Code quality threshold checking")
7016 (description "Cane fails your build if code quality thresholds are not met.")
7017 (license license:asl2.0)))
7018
7019 (define-public ruby-morecane
7020 (package
7021 (name "ruby-morecane")
7022 (version "0.2.0")
7023 (source (origin
7024 (method url-fetch)
7025 (uri (rubygems-uri "morecane" version))
7026 (sha256
7027 (base32
7028 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
7029 (build-system ruby-build-system)
7030 (home-page "https://github.com/yob/morecane")
7031 (arguments `(#:tests? #f)); No rakefile
7032 (propagated-inputs
7033 `(("ruby-parallel" ,ruby-parallel)))
7034 (synopsis "Extra checks for cane")
7035 (description "The cane gem provides a great framework for running quality
7036 checks over your ruby project as part of continuous integration build. It
7037 comes with a few checks out of the box, but also provides an API for loading
7038 custom checks. This gem provides a set of additional checks.")
7039 (license license:expat)))
7040
7041 (define-public ruby-pdf-reader
7042 (package
7043 (name "ruby-pdf-reader")
7044 (version "2.1.0")
7045 (source (origin
7046 (method url-fetch)
7047 (uri (rubygems-uri "pdf-reader" version))
7048 (sha256
7049 (base32
7050 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
7051 (build-system ruby-build-system)
7052 (arguments `(#:test-target "spec"))
7053 (native-inputs
7054 `(("bundler" ,bundler)
7055 ("ruby-rspec" ,ruby-rspec)
7056 ("ruby-cane" ,ruby-cane)
7057 ("ruby-morecane" ,ruby-morecane)))
7058 (propagated-inputs
7059 `(("ruby-afm" ,ruby-afm)
7060 ("ruby-ascii85" ,ruby-ascii85)
7061 ("ruby-hashery" ,ruby-hashery)
7062 ("ruby-rc4" ,ruby-rc4)
7063 ("ruby-ttfunk" ,ruby-ttfunk)))
7064 (home-page "https://github.com/yob/pdf-reader")
7065 (synopsis "PDF parser in Ruby")
7066 (description "The PDF::Reader library implements a PDF parser conforming as
7067 much as possible to the PDF specification from Adobe. It provides programmatic
7068 access to the contents of a PDF file with a high degree of flexibility.")
7069 (license license:gpl3+)))
7070
7071 (define-public ruby-pdf-inspector
7072 (package
7073 (name "ruby-pdf-inspector")
7074 (version "1.3.0")
7075 (source (origin
7076 (method url-fetch)
7077 (uri (rubygems-uri "pdf-inspector" version))
7078 (sha256
7079 (base32
7080 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
7081 (build-system ruby-build-system)
7082 (propagated-inputs
7083 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
7084 (arguments `(#:tests? #f)); No rakefile
7085 (home-page "https://github.com/prawnpdf/pdf-inspector")
7086 (synopsis "Analysis classes for inspecting PDF output")
7087 (description "This library provides a number of PDF::Reader based tools for
7088 use in testing PDF output. Presently, the primary purpose of this tool is to
7089 support the tests found in Prawn, a pure Ruby PDF generation library.")
7090 (license license:gpl3+)))
7091
7092 (define-public ruby-pdf-core
7093 (package
7094 (name "ruby-pdf-core")
7095 (version "0.8.1")
7096 (source (origin
7097 (method url-fetch)
7098 (uri (rubygems-uri "pdf-core" version))
7099 (sha256
7100 (base32
7101 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
7102 (build-system ruby-build-system)
7103 (arguments
7104 ; No test target
7105 `(#:tests? #f))
7106 (home-page "https://github.com/prawnpdf/pdf-core")
7107 (synopsis "Low level PDF features for Prawn")
7108 (description "This is an experimental gem that extracts low-level PDF
7109 functionality from Prawn.")
7110 (license license:gpl3+)))
7111
7112 (define-public ruby-prawn
7113 (package
7114 (name "ruby-prawn")
7115 (version "2.2.2")
7116 (source (origin
7117 (method url-fetch)
7118 (uri (rubygems-uri "prawn" version))
7119 (sha256
7120 (base32
7121 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
7122 (build-system ruby-build-system)
7123 (arguments
7124 ; No tests
7125 `(#:tests? #f
7126 #:phases
7127 (modify-phases %standard-phases
7128 (add-before 'build 'fix-dependencies
7129 (lambda _
7130 (substitute* "prawn.gemspec"
7131 (("~> 0.7.0") "~> 0.7"))
7132 #t)))))
7133 (propagated-inputs
7134 `(("ruby-pdf-core" ,ruby-pdf-core)
7135 ("ruby-ttfunk" ,ruby-ttfunk)))
7136 (native-inputs
7137 `(("bundler" ,bundler)
7138 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
7139 ("ruby-rspec" ,ruby-rspec)
7140 ("ruby-simplecov" ,ruby-simplecov)
7141 ("ruby-yard" ,ruby-yard)))
7142 (home-page "http://prawnpdf.org/api-docs/2.0/")
7143 (synopsis "PDF generation for Ruby")
7144 (description "Prawn is a pure Ruby PDF generation library.")
7145 (license license:gpl3+)))
7146
7147 (define-public ruby-prawn-table
7148 (package
7149 (name "ruby-prawn-table")
7150 (version "0.2.2")
7151 (source (origin
7152 (method url-fetch)
7153 (uri (rubygems-uri "prawn-table" version))
7154 (sha256
7155 (base32
7156 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
7157 (build-system ruby-build-system)
7158 (propagated-inputs
7159 `(("ruby-prawn" ,ruby-prawn)
7160 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
7161 (native-inputs
7162 `(("bundler" ,bundler)
7163 ("ruby-yard" ,ruby-yard)
7164 ("ruby-mocha" ,ruby-mocha)
7165 ("ruby-coderay" ,ruby-coderay)
7166 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
7167 ("ruby-simplecov" ,ruby-simplecov)
7168 ("ruby-rspec-2" ,ruby-rspec-2)))
7169 (arguments
7170 '(;; TODO: 1 test fails
7171 ;; Failure/Error: pdf.page_count.should == 1
7172 ;; expected: 1
7173 ;; got: 2 (using ==)
7174 ;; # ./spec/table_spec.rb:1308
7175 ;;
7176 ;; 225 examples, 1 failure
7177 #:tests? #f
7178 #:phases
7179 (modify-phases %standard-phases
7180 (add-before 'check 'patch-gemspec
7181 (lambda _
7182 (substitute* "prawn-table.gemspec"
7183 ;; Loosen the requirement for pdf-inspector
7184 (("~> 1\\.1\\.0") ">= 0")
7185 ;; Loosen the requirement for pdf-reader
7186 (("~> 1\\.2") ">= 0"))))
7187 (replace 'check
7188 (lambda* (#:key tests? #:allow-other-keys)
7189 (when tests?
7190 (invoke "rspec"))
7191 #t)))))
7192 (home-page "https://github.com/prawnpdf/prawn-table")
7193 (synopsis "Tables support for Prawn")
7194 (description "This gem provides tables support for Prawn.")
7195 (license license:gpl3+)))
7196
7197 (define-public ruby-kramdown
7198 (package
7199 (name "ruby-kramdown")
7200 (version "1.17.0")
7201 (source (origin
7202 (method url-fetch)
7203 (uri (rubygems-uri "kramdown" version))
7204 (sha256
7205 (base32
7206 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
7207 (build-system ruby-build-system)
7208 (arguments `(#:tests? #f)); FIXME: some test failures
7209 (native-inputs
7210 `(("ruby-prawn" ,ruby-prawn)
7211 ("ruby-prawn-table" ,ruby-prawn-table)))
7212 (home-page "https://kramdown.gettalong.org/")
7213 (synopsis "Markdown parsing and converting library")
7214 (description "Kramdown is a library for parsing and converting a superset
7215 of Markdown. It is completely written in Ruby, supports standard Markdown
7216 (with some minor modifications) and various extensions that have been made
7217 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
7218 (license license:expat)))
7219
7220 (define-public ruby-http-parser.rb
7221 (package
7222 (name "ruby-http-parser.rb")
7223 (version "0.6.0")
7224 (source
7225 (origin
7226 (method url-fetch)
7227 (uri (rubygems-uri "http_parser.rb" version))
7228 (sha256
7229 (base32
7230 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
7231 (build-system ruby-build-system)
7232 (arguments
7233 ;; No tests
7234 `(#:tests? #f))
7235 (native-inputs
7236 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7237 ("ruby-rspec" ,ruby-rspec)))
7238 (home-page "https://github.com/tmm1/http_parser.rb")
7239 (synopsis "HTTP parser un Ruby")
7240 (description "This gem is a simple callback-based HTTP request/response
7241 parser for writing http servers, clients and proxies.")
7242 (license license:expat)))
7243
7244 (define-public ruby-em-websocket
7245 (package
7246 (name "ruby-em-websocket")
7247 (version "0.5.1")
7248 (source
7249 (origin
7250 (method url-fetch)
7251 (uri (rubygems-uri "em-websocket" version))
7252 (sha256
7253 (base32
7254 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
7255 (build-system ruby-build-system)
7256 (arguments
7257 ;; No tests
7258 `(#:tests? #f))
7259 (propagated-inputs
7260 `(("ruby-eventmachine" ,ruby-eventmachine)
7261 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
7262 (native-inputs
7263 `(("bundler" ,bundler)
7264 ("ruby-rspec" ,ruby-rspec)))
7265 (home-page "https://github.com/igrigorik/em-websocket")
7266 (synopsis "EventMachine based WebSocket server")
7267 (description "Em-websocket is an EventMachine based WebSocket server
7268 implementation.")
7269 (license license:expat)))
7270
7271 (define-public ruby-rouge
7272 (package
7273 (name "ruby-rouge")
7274 (version "3.2.1")
7275 (source (origin
7276 (method url-fetch)
7277 (uri (rubygems-uri "rouge" version))
7278 (sha256
7279 (base32
7280 "0h79gn2wmn1wix2d27lgiaimccyj8gvizrllyym500pir408x62f"))))
7281 (build-system ruby-build-system)
7282 (arguments `(#:tests? #f)); No rakefile
7283 (home-page "http://rouge.jneen.net/")
7284 (synopsis "Code highlighter")
7285 (description "Rouge is a code highlighter written in Ruby. It supports more
7286 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
7287 is compatible with stylesheets designed for pygments.")
7288 (license (list
7289 ;; rouge is licensed under expat
7290 license:expat
7291 ;; pygments is licensed under bsd-2
7292 license:bsd-2))))
7293
7294 (define-public ruby-rouge-2
7295 (package
7296 (inherit ruby-rouge)
7297 (version "2.2.1")
7298 (source (origin
7299 (method url-fetch)
7300 (uri (rubygems-uri "rouge" version))
7301 (sha256
7302 (base32
7303 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
7304
7305 (define-public ruby-hashie
7306 (package
7307 (name "ruby-hashie")
7308 (version "3.6.0")
7309 (source (origin
7310 (method url-fetch)
7311 (uri (rubygems-uri "hashie" version))
7312 (sha256
7313 (base32
7314 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
7315 (build-system ruby-build-system)
7316 (native-inputs
7317 `(("bundler" ,bundler)))
7318 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
7319 (home-page "https://github.com/intridea/hashie")
7320 (synopsis "Extensions to Ruby Hashes")
7321 (description "Hashie is a collection of classes and mixins that make Ruby
7322 hashes more powerful.")
7323 (license license:expat)))
7324
7325 (define-public ruby-heredoc-unindent
7326 (package
7327 (name "ruby-heredoc-unindent")
7328 (version "1.2.0")
7329 (source (origin
7330 (method url-fetch)
7331 (uri (rubygems-uri "heredoc_unindent" version))
7332 (sha256
7333 (base32
7334 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
7335 (build-system ruby-build-system)
7336 (native-inputs
7337 `(("ruby-hoe" ,ruby-hoe)))
7338 (home-page "https://github.com/adrianomitre/heredoc_unindent")
7339 (synopsis "Heredoc indentation cleaner")
7340 (description "This gem removes common margin from indented strings, such
7341 as the ones produced by indented heredocs. In other words, it strips out
7342 leading whitespace chars at the beginning of each line, but only as much as
7343 the line with the smallest margin.
7344
7345 It is acknowledged that many strings defined by heredocs are just code and
7346 fact is that most parsers are insensitive to indentation. If, however, the
7347 strings are to be used otherwise, be it for printing or testing, the extra
7348 indentation will probably be an issue and hence this gem.")
7349 (license license:expat)))
7350
7351 (define-public ruby-safe-yaml
7352 (package
7353 (name "ruby-safe-yaml")
7354 (version "1.0.4")
7355 (source
7356 (origin
7357 ;; TODO Fetch from the git repository so a patch can be applied
7358 (method git-fetch)
7359 (uri (git-reference
7360 (url "https://github.com/dtao/safe_yaml.git")
7361 (commit version)))
7362 (file-name (git-file-name name version))
7363 (sha256
7364 (base32
7365 "1wnln8xdy8g6kwdj4amm8773xwffqxpf2sxslk6jjh2wxsy1lrig"))
7366 (patches
7367 (search-patches "ruby-safe-yaml-add-require-time.patch"))))
7368 (build-system ruby-build-system)
7369 (native-inputs
7370 `(("ruby-rspec" ,ruby-rspec)
7371 ("ruby-hashie" ,ruby-hashie)
7372 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
7373 (arguments
7374 '(#:test-target "spec"
7375 #:phases
7376 (modify-phases %standard-phases
7377 (add-before 'check 'set-TZ
7378 (lambda _
7379 ;; This test is dependent on the timezone
7380 ;; spec/transform/to_date_spec.rb:35
7381 ;; # SafeYAML::Transform::ToDate converts times to the local
7382 ;; timezone
7383 (setenv "TZ" "UTC-11")
7384 #t)))))
7385 (home-page "https://github.com/dtao/safe_yaml")
7386 (synopsis "YAML parser")
7387 (description "The SafeYAML gem provides an alternative implementation of
7388 YAML.load suitable for accepting user input in Ruby applications.")
7389 (license license:expat)))
7390
7391 (define-public ruby-mercenary
7392 (package
7393 (name "ruby-mercenary")
7394 (version "0.3.6")
7395 (source (origin
7396 (method url-fetch)
7397 (uri (rubygems-uri "mercenary" version))
7398 (sha256
7399 (base32
7400 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
7401 (build-system ruby-build-system)
7402 (arguments `(#:test-target "spec"))
7403 (native-inputs
7404 `(("bundler" ,bundler)))
7405 (home-page "https://github.com/jekyll/mercenary")
7406 (synopsis "Command-line apps library in Ruby")
7407 (description "Mercenary is a lightweight and flexible library for writing
7408 command-line apps in Ruby.")
7409 (license license:expat)))
7410
7411 (define-public ruby-liquid
7412 (package
7413 (name "ruby-liquid")
7414 (version "4.0.0")
7415 (source (origin
7416 (method url-fetch)
7417 (uri (rubygems-uri "liquid" version))
7418 (sha256
7419 (base32
7420 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
7421 (build-system ruby-build-system)
7422 (arguments `(#:tests? #f)); No rakefile
7423 (home-page "https://shopify.github.io/liquid/")
7424 (synopsis "Template language")
7425 (description "Liquid is a template language written in Ruby. It is used
7426 to load dynamic content on storefronts.")
7427 (license license:expat)))
7428
7429 (define-public ruby-forwardable-extended
7430 (package
7431 (name "ruby-forwardable-extended")
7432 (version "2.6.0")
7433 (source (origin
7434 (method url-fetch)
7435 (uri (rubygems-uri "forwardable-extended" version))
7436 (sha256
7437 (base32
7438 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
7439 (build-system ruby-build-system)
7440 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
7441 (home-page "https://github.com/envygeeks/forwardable-extended")
7442 (synopsis "Delegation to hashes and instance variables in Forwardable")
7443 (description "Forwardable Extended provides more @code{Forwardable}
7444 methods for your source as @code{Forwardable::Extended}.")
7445 (license license:expat)))
7446
7447 (define-public ruby-pathutil
7448 (package
7449 (name "ruby-pathutil")
7450 (version "0.16.1")
7451 (source (origin
7452 (method url-fetch)
7453 (uri (rubygems-uri "pathutil" version))
7454 (sha256
7455 (base32
7456 "0wc18ms1rzi44lpjychyw2a96jcmgxqdvy2949r4vvb5f4p0lgvz"))))
7457 (build-system ruby-build-system)
7458 (propagated-inputs
7459 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
7460 (native-inputs
7461 `(("bundler" ,bundler)
7462 ("ruby-rspec" ,ruby-rspec)))
7463 ;; Fails with: cannot load such file --
7464 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
7465 (arguments `(#:tests? #f))
7466 (home-page "https://github.com/envygeeks/pathutil")
7467 (synopsis "Extended implementation of Pathname")
7468 (description "Pathutil tries to be a faster pure Ruby implementation of
7469 Pathname.")
7470 (license license:expat)))
7471
7472 (define-public jekyll
7473 (package
7474 (name "jekyll")
7475 (version "3.8.3")
7476 (source (origin
7477 (method url-fetch)
7478 (uri (rubygems-uri "jekyll" version))
7479 (sha256
7480 (base32
7481 "1iw90wihk9dscgmppf5v6lysg3kjmnx50mjyl4gghkdb4spw97xk"))))
7482 (build-system ruby-build-system)
7483 (arguments
7484 ;; No rakefile, but a test subdirectory
7485 `(#:tests? #f
7486 #:phases
7487 (modify-phases %standard-phases
7488 (add-before 'build 'fix-i18n
7489 (lambda _
7490 (substitute* ".gemspec"
7491 (("~> 0.7") ">= 0.7"))
7492 #t)))))
7493 (propagated-inputs
7494 `(("ruby-addressable" ,ruby-addressable)
7495 ("ruby-colorator" ,ruby-colorator)
7496 ("ruby-em-websocket" ,ruby-em-websocket)
7497 ("ruby-i18n" ,ruby-i18n)
7498 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
7499 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
7500 ("ruby-kramdown" ,ruby-kramdown)
7501 ("ruby-liquid" ,ruby-liquid)
7502 ("ruby-mercenary" ,ruby-mercenary)
7503 ("ruby-pathutil" ,ruby-pathutil)
7504 ("ruby-rouge" ,ruby-rouge-2)
7505 ("ruby-safe-yaml" ,ruby-safe-yaml)))
7506 (home-page "https://jekyllrb.com/")
7507 (synopsis "Static site generator")
7508 (description "Jekyll is a simple, blog aware, static site generator.")
7509 (license license:expat)))
7510
7511 (define-public ruby-jekyll-paginate-v2
7512 (package
7513 (name "ruby-jekyll-paginate-v2")
7514 (version "2.0.0")
7515 (source (origin
7516 (method url-fetch)
7517 (uri (rubygems-uri "jekyll-paginate-v2" version))
7518 (sha256
7519 (base32
7520 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
7521 (build-system ruby-build-system)
7522 (propagated-inputs
7523 `(("jekyll" ,jekyll)))
7524 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
7525 (synopsis "Pagination Generator for Jekyll 3")
7526 (description "The Pagination Generator forms the core of the pagination
7527 logic in Jekyll. It calculates and generates the pagination pages.")
7528 (license license:expat)))
7529
7530 (define-public ruby-faraday
7531 (package
7532 (name "ruby-faraday")
7533 (version "0.15.4")
7534 (source
7535 (origin
7536 (method url-fetch)
7537 (uri (rubygems-uri "faraday" version))
7538 (sha256
7539 (base32
7540 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
7541 (build-system ruby-build-system)
7542 (arguments
7543 '(#:tests? #f))
7544 (propagated-inputs
7545 `(("ruby-multipart-post" ,ruby-multipart-post)))
7546 (synopsis "Ruby HTTP/REST API client library")
7547 (description
7548 "Faraday is a HTTP/REST API client library which provides a common
7549 interface over different adapters.")
7550 (home-page "https://github.com/lostisland/faraday")
7551 (license license:expat)))
7552
7553 (define-public ruby-nio4r
7554 (package
7555 (name "ruby-nio4r")
7556 (version "2.3.1")
7557 (source
7558 (origin
7559 (method url-fetch)
7560 (uri (rubygems-uri "nio4r" version))
7561 (sha256
7562 (base32
7563 "1a41ca1kpdmrypjp9xbgvckpy8g26zxphkja9vk7j5wl4n8yvlyr"))))
7564 (build-system ruby-build-system)
7565 (arguments
7566 '(#:phases
7567 (modify-phases %standard-phases
7568 (add-after 'unpack 'remove-unnecessary-dependencies
7569 (lambda _
7570 (substitute* "spec/spec_helper.rb"
7571 ;; Coveralls is for uploading test coverage information to an
7572 ;; online service, and thus unnecessary for building the Guix
7573 ;; package
7574 (("require \"coveralls\"") "")
7575 (("Coveralls\\.wear!") "")
7576 ;; Remove rspec/retry as we are not retrying the tests
7577 (("require \"rspec/retry\"") "")
7578 (("config\\.display_try_failure_messages = true") "")
7579 (("config\\.verbose_retry = true") ""))
7580 #t))
7581 (add-before 'check 'compile
7582 (lambda _
7583 (invoke "rake" "compile")
7584 #t))
7585 (replace 'check
7586 (lambda* (#:key tests? #:allow-other-keys)
7587 (when tests?
7588 (invoke "rspec"))
7589 #t)))))
7590 (native-inputs
7591 `(("bundler" ,bundler)
7592 ("ruby-rake-compiler" ,ruby-rake-compiler)
7593 ("ruby-rspec" ,ruby-rspec)
7594 ("ruby-rubocop" ,ruby-rubocop)))
7595 (synopsis "New I/O for Ruby")
7596 (description
7597 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
7598 for scalable network clients and servers.")
7599 (home-page "https://github.com/socketry/nio4r")
7600 (license license:expat)))
7601
7602 (define-public ruby-globalid
7603 (package
7604 (name "ruby-globalid")
7605 (version "0.4.2")
7606 (source
7607 (origin
7608 (method url-fetch)
7609 (uri (rubygems-uri "globalid" version))
7610 (sha256
7611 (base32
7612 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
7613 (build-system ruby-build-system)
7614 (arguments
7615 '(;; No included tests
7616 #:tests? #f))
7617 (propagated-inputs
7618 `(("ruby-activesupport" ,ruby-activesupport)))
7619 (synopsis "Generate URIs idenfitying model instances in Ruby")
7620 (description
7621 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
7622 uniquely identify it.")
7623 (home-page "https://rubyonrails.org/")
7624 (license license:expat)))
7625
7626 (define-public ruby-sprockets
7627 (package
7628 (name "ruby-sprockets")
7629 (version "3.7.2")
7630 (source
7631 (origin
7632 (method url-fetch)
7633 (uri (rubygems-uri "sprockets" version))
7634 (sha256
7635 (base32
7636 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
7637 (build-system ruby-build-system)
7638 (arguments
7639 '(;; No included tests
7640 #:tests? #f))
7641 (propagated-inputs
7642 `(("ruby-concurrent" ,ruby-concurrent)
7643 ("ruby-rack" ,ruby-rack)))
7644 (synopsis "Sprockets is a Rack-based asset packaging system")
7645 (description
7646 "Sprockets is a Rack-based asset packaging system that concatenates and
7647 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
7648 (home-page "https://github.com/rails/sprockets")
7649 (license license:expat)))