gnu: ruby-rack-protection: Update to 2.0.8.1.
[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 Nikita <nikita@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
23 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
25 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
26 ;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de>
27 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
28 ;;; Copyright © 2021 EuAndreh <eu@euandre.org>
29 ;;;
30 ;;; This file is part of GNU Guix.
31 ;;;
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
36 ;;;
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
41 ;;;
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44
45 (define-module (gnu packages ruby)
46 #:use-module ((guix licenses) #:prefix license:)
47 #:use-module (gnu packages)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages c)
51 #:use-module (gnu packages check)
52 #:use-module (gnu packages compression)
53 #:use-module (gnu packages crypto)
54 #:use-module (gnu packages curl)
55 #:use-module (gnu packages databases)
56 #:use-module (gnu packages dbm)
57 #:use-module (gnu packages rails)
58 #:use-module (gnu packages readline)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages haskell-xyz)
61 #:use-module (gnu packages java)
62 #:use-module (gnu packages libffi)
63 #:use-module (gnu packages libidn)
64 #:use-module (gnu packages linux)
65 #:use-module (gnu packages lsof)
66 #:use-module (gnu packages maths)
67 #:use-module (gnu packages ncurses)
68 #:use-module (gnu packages networking)
69 #:use-module (gnu packages node)
70 #:use-module (gnu packages protobuf)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages python-xyz)
73 #:use-module (gnu packages ragel)
74 #:use-module (gnu packages rsync)
75 #:use-module (gnu packages sqlite)
76 #:use-module (gnu packages tls)
77 #:use-module (gnu packages version-control)
78 #:use-module (guix packages)
79 #:use-module (guix download)
80 #:use-module (guix git-download)
81 #:use-module (guix utils)
82 #:use-module (guix build-system gnu)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages web)
85 #:use-module (guix build-system ruby)
86 #:use-module ((srfi srfi-1) #:select (alist-delete)))
87
88 (define %prawn-project-licenses
89 ;; This set of licenses applies to most (all?) components of the Prawn
90 ;; project (it is triple licensed).
91 (list license:ruby
92 license:gpl2+
93 license:gpl3+))
94
95 (define-public ruby
96 (package
97 (name "ruby")
98 (version "2.6.5")
99 (source
100 (origin
101 (method url-fetch)
102 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
103 (version-major+minor version)
104 "/ruby-" version ".tar.xz"))
105 (sha256
106 (base32
107 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
108 (modules '((guix build utils)))
109 (snippet `(begin
110 ;; Remove bundled libffi
111 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
112 #t))))
113 (build-system gnu-build-system)
114 (arguments
115 `(#:test-target "test"
116 #:configure-flags '("--enable-shared") ; dynamic linking
117 #:phases
118 (modify-phases %standard-phases
119 (add-before 'configure 'replace-bin-sh-and-remove-libffi
120 (lambda _
121 (substitute* '("Makefile.in"
122 "ext/pty/pty.c"
123 "io.c"
124 "lib/mkmf.rb"
125 "process.c"
126 "test/rubygems/test_gem_ext_configure_builder.rb"
127 "test/rdoc/test_rdoc_parser.rb"
128 "test/ruby/test_rubyoptions.rb"
129 "test/ruby/test_process.rb"
130 "test/ruby/test_system.rb"
131 "tool/rbinstall.rb")
132 (("/bin/sh") (which "sh")))
133 #t)))))
134 (inputs
135 `(("readline" ,readline)
136 ("openssl" ,openssl)
137 ("libffi" ,libffi)
138 ("gdbm" ,gdbm)))
139 (propagated-inputs
140 `(("zlib" ,zlib)))
141 (native-search-paths
142 (list (search-path-specification
143 (variable "GEM_PATH")
144 (files (list (string-append "lib/ruby/vendor_ruby"))))))
145 (synopsis "Programming language interpreter")
146 (description "Ruby is a dynamic object-oriented programming language with
147 a focus on simplicity and productivity.")
148 (home-page "https://www.ruby-lang.org")
149 (license license:ruby)))
150
151 (define-public ruby-2.7
152 (package
153 (inherit ruby)
154 (version "2.7.2")
155 (source
156 (origin
157 (method url-fetch)
158 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
159 (version-major+minor version)
160 "/ruby-" version ".tar.gz"))
161 (sha256
162 (base32
163 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
164 (modules '((guix build utils)))
165 (snippet `(begin
166 ;; Remove bundled libffi
167 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
168 #t))))
169 (arguments
170 `(#:test-target "test"
171 #:configure-flags '("--enable-shared") ; dynamic linking
172 #:phases
173 (modify-phases %standard-phases
174 (add-before 'configure 'replace-bin-sh-and-remove-libffi
175 (lambda _
176 (substitute* '("configure.ac"
177 "template/Makefile.in"
178 "lib/rubygems/installer.rb"
179 "ext/pty/pty.c"
180 "io.c"
181 "lib/mkmf.rb"
182 "process.c"
183 "test/rubygems/test_gem_ext_configure_builder.rb"
184 "test/rdoc/test_rdoc_parser.rb"
185 "test/ruby/test_rubyoptions.rb"
186 "test/ruby/test_process.rb"
187 "test/ruby/test_system.rb"
188 "tool/rbinstall.rb")
189 (("/bin/sh") (which "sh")))
190 #t)))))
191 (native-inputs
192 `(("autoconf" ,autoconf)))))
193
194 (define-public ruby-3.0
195 (package
196 (inherit ruby-2.7)
197 (version "3.0.0")
198 (source
199 (origin
200 (method url-fetch)
201 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
202 (version-major+minor version)
203 "/ruby-" version ".tar.xz"))
204 (sha256
205 (base32
206 "1cbcixwnr0y8q0lg67wjgplp06kjd6p6hjjh680csv3v0bpsxgv8"))))))
207
208 (define-public ruby-2.5
209 (package
210 (inherit ruby)
211 (version "2.5.8")
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
216 (version-major+minor version)
217 "/ruby-" version ".tar.xz"))
218 (sha256
219 (base32
220 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
221 (modules '((guix build utils)))
222 (snippet `(begin
223 ;; Remove bundled libffi
224 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
225 #t))))))
226
227 (define-public ruby-2.4
228 (package
229 (inherit ruby)
230 (version "2.4.10")
231 (source
232 (origin
233 (method url-fetch)
234 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
235 (version-major+minor version)
236 "/ruby-" version ".tar.xz"))
237 (sha256
238 (base32
239 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
240 (modules '((guix build utils)))
241 (snippet `(begin
242 ;; Remove bundled libffi
243 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
244 #t))))))
245
246 (define-public mruby
247 (package
248 (name "mruby")
249 (version "2.1.2")
250 (source
251 (origin
252 (method git-fetch)
253 (uri (git-reference
254 (url "https://github.com/mruby/mruby")
255 (commit version)))
256 (file-name (git-file-name name version))
257 (sha256
258 (base32
259 "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3"))))
260 (build-system gnu-build-system)
261 (arguments
262 `(#:test-target "test"
263 #:phases
264 (modify-phases %standard-phases
265 (delete 'configure)
266 (add-after 'unpack 'enable-verbose-tests
267 (lambda _
268 (substitute* "Makefile"
269 (("ruby ./minirake" m)
270 (string-append m " --verbose")))
271 #t))
272 (add-after 'unpack 'disable-broken-tests
273 (lambda _
274 (substitute* "mrbgems/mruby-io/test/io.rb"
275 (("assert\\('IO.popen.+$" m)
276 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
277 (("assert\\('IO#isatty.+$" m)
278 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
279 ;; This one is really weird. The *expected* output is all wrong.
280 (("assert\\('`cmd`.*" m)
281 (string-append m "skip \"Disable for Guix\"\n"))
282 (("echo foo")
283 (string-append (which "echo") " foo")))
284 #t))
285 ;; There is no install target
286 (replace 'install
287 (lambda* (#:key outputs #:allow-other-keys)
288 (let* ((out (assoc-ref outputs "out"))
289 (bin (string-append out "/bin"))
290 (lib (string-append out "/lib")))
291 (mkdir-p bin)
292 (copy-recursively "build/host/bin" bin)
293 (mkdir-p lib)
294 (copy-recursively "build/host/lib" lib))
295 #t)))))
296 (native-inputs
297 `(("ruby" ,ruby)
298 ("bison" ,bison)))
299 (home-page "https://github.com/mruby/mruby")
300 (synopsis "Lightweight Ruby")
301 (description "mruby is the lightweight implementation of the Ruby
302 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
303 embedded within your application.")
304 (license license:expat)))
305
306 (define-public ruby-commander
307 (package
308 (name "ruby-commander")
309 (version "4.4.7")
310 (source
311 (origin
312 (method url-fetch)
313 (uri (rubygems-uri "commander" version))
314 (sha256
315 (base32
316 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
317 (build-system ruby-build-system)
318 (arguments
319 `(#:test-target "spec"
320 #:phases
321 (modify-phases %standard-phases
322 ;; Don't run or require rubocop, the code linting tool, as this is a
323 ;; bit unnecessary.
324 (add-after 'unpack 'dont-run-rubocop
325 (lambda _
326 (substitute* "Rakefile"
327 ((".*rubocop.*") "")
328 ((".*RuboCop.*") ""))
329 #t)))))
330 (propagated-inputs
331 `(("ruby-highline" ,ruby-highline)))
332 (native-inputs
333 `(("bundler" ,bundler)
334 ("ruby-rspec-core" ,ruby-rspec-core)
335 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
336 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
337 ("ruby-simplecov" ,ruby-simplecov)))
338 (home-page "https://github.com/commander-rb/commander")
339 (synopsis "Library for building Ruby command-line executables")
340 (description
341 "Commander aims to be a complete solution for Ruby command-line
342 executables. Commander bridges the gap between other terminal related
343 libraries (OptionParser, HighLine), while providing many new features, and an
344 elegant API.")
345 (license license:expat)))
346
347 (define-public ruby-highline
348 (package
349 (name "ruby-highline")
350 (version "2.0.1")
351 (source
352 (origin
353 (method url-fetch)
354 (uri (rubygems-uri "highline" version))
355 (sha256
356 (base32
357 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
358 (build-system ruby-build-system)
359 (arguments
360 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
361 (native-inputs
362 `(("bundler" ,bundler)
363 ("ruby-code-statistics" ,ruby-code-statistics)))
364 (synopsis
365 "HighLine helps you build command-line interfaces")
366 (description
367 "HighLine provides a high-level IO library that provides validation,
368 type conversion, and more for command-line interfaces. HighLine also includes
369 a menu system for providing multiple options to the user.")
370 (home-page "https://github.com/JEG2/highline")
371 (license (list license:gpl2 license:ruby))))
372
373 (define-public ruby-hoe
374 (package
375 (name "ruby-hoe")
376 (version "3.21.0")
377 (source (origin
378 (method url-fetch)
379 (uri (rubygems-uri "hoe" version))
380 (sha256
381 (base32
382 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
383 (build-system ruby-build-system)
384 (arguments
385 '(#:phases
386 (modify-phases %standard-phases
387 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
388 ;; variable is set, so unset it for the duration of the tests.
389 ;;
390 ;; TestHoe#test_possibly_better
391 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
392 ;; Expected: 2019-11-12 00:00:00 UTC
393 ;; Actual: 1970-01-01 00:00:00 UTC
394 (add-before 'check 'unset-SOURCE-DATE-EPOCH
395 (lambda _
396 (unsetenv "SOURCE_DATE_EPOCH")
397 #t))
398 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
399 (lambda _
400 (setenv "SOURCE_DATE_EPOCH" "1")
401 #t)))))
402 (synopsis "Ruby project management helper")
403 (description
404 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
405 maintain, and release projects and includes a dynamic plug-in system allowing
406 for easy extensibility. Hoe ships with plug-ins for all the usual project
407 tasks including rdoc generation, testing, packaging, deployment, and
408 announcement.")
409 (home-page "https://www.zenspider.com/projects/hoe.html")
410 (license license:expat)))
411
412 (define-public ruby-rake-compiler
413 (package
414 (name "ruby-rake-compiler")
415 (version "1.1.0")
416 (source (origin
417 (method url-fetch)
418 (uri (rubygems-uri "rake-compiler" version))
419 (sha256
420 (base32
421 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
422 (build-system ruby-build-system)
423 (arguments
424 '(#:tests? #f)) ; needs cucumber
425 (synopsis "Building and packaging helper for Ruby native extensions")
426 (description "Rake-compiler provides a framework for building and
427 packaging native C and Java extensions in Ruby.")
428 (home-page "https://github.com/rake-compiler/rake-compiler")
429 (license license:expat)))
430
431 (define-public ruby-rsync
432 (package
433 (name "ruby-rsync")
434 (version "1.0.9")
435 (source
436 (origin
437 (method url-fetch)
438 (uri (rubygems-uri "rsync" version))
439 (sha256
440 (base32
441 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
442 (build-system ruby-build-system)
443 (arguments
444 '(#:test-target "spec"
445 #:phases
446 (modify-phases %standard-phases
447 (add-after 'unpack 'remove-coveralls-requirement
448 (lambda _
449 (substitute* "spec/spec_helper.rb"
450 (("require 'coveralls'") "")
451 (("Coveralls.wear!") ""))
452 #t)))))
453 (native-inputs
454 `(("bundler" ,bundler)
455 ("rsync" ,rsync)
456 ("ruby-rspec-core" ,ruby-rspec-core)
457 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
458 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
459 (home-page "https://github.com/jbussdieker/ruby-rsync")
460 (synopsis "Ruby wrapper around rsync")
461 (description
462 "Ruby Rsync is a Ruby library that can synchronize files between remote
463 hosts by wrapping the @file{rsync} binary.")
464 (license license:expat)))
465
466 (define-public ruby-i18n
467 (package
468 (name "ruby-i18n")
469 (version "1.7.0")
470 (source (origin
471 (method url-fetch)
472 (uri (rubygems-uri "i18n" version))
473 (sha256
474 (base32
475 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
476 (build-system ruby-build-system)
477 (arguments
478 '(#:tests? #f)) ; no tests
479 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
480 (synopsis "Internationalization library for Ruby")
481 (description "Ruby i18n is an internationalization and localization
482 solution for Ruby programs. It features translation and localization,
483 interpolation of values to translations, pluralization, customizable
484 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
485 translation data, custom key/scope separator, custom exception handlers, and
486 an extensible architecture with a swappable backend.")
487 (home-page "https://github.com/ruby-i18n/i18n")
488 (license license:expat)))
489
490 (define-public ruby-iruby
491 (package
492 (name "ruby-iruby")
493 (version "0.3")
494 (source
495 (origin
496 (method url-fetch)
497 (uri (rubygems-uri "iruby" version))
498 (sha256
499 (base32
500 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
501 (build-system ruby-build-system)
502 (arguments
503 ;; TODO: Tests currently fail.
504 ;;
505 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
506 ;;
507 ;; 1) Failure:
508 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
509 ;; In [ expected
510 ;;
511 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
512 '(#:tests? #f
513 #:phases
514 (modify-phases %standard-phases
515 (add-after 'unpack 'patch-ipython
516 (lambda* (#:key inputs #:allow-other-keys)
517 (substitute* "lib/iruby/command.rb"
518 (("version = `")
519 (string-append
520 "version = `"
521 (assoc-ref inputs "python-ipython")
522 "/bin/"))
523 (("Kernel\\.exec\\('")
524 (string-append
525 "Kernel.exec('"
526 (assoc-ref inputs "python-ipython")
527 "/bin/")))
528 #t)))))
529 (inputs
530 `(("python-ipython" ,python-ipython)))
531 (propagated-inputs
532 `(("ruby-bond" ,ruby-bond)
533 ("ruby-data_uri" ,ruby-data_uri)
534 ("ruby-mimemagic" ,ruby-mimemagic)
535 ("ruby-multi-json" ,ruby-multi-json)
536 ("ruby-cztop" ,ruby-cztop)
537 ;; Optional inputs
538 ("ruby-pry" ,ruby-pry)))
539 (synopsis "Ruby kernel for Jupyter/IPython")
540 (description
541 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
542 notebook).")
543 (home-page "https://github.com/SciRuby/iruby")
544 (license license:expat)))
545
546 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
547 ;; dependencies use RSpec for their test suites! To avoid these circular
548 ;; dependencies, we disable tests for all of the RSpec-related packages.
549 (define-public ruby-rspec-support
550 (package
551 (name "ruby-rspec-support")
552 (version "3.8.0")
553 (source (origin
554 (method url-fetch)
555 (uri (rubygems-uri "rspec-support" version))
556 (sha256
557 (base32
558 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
559 (build-system ruby-build-system)
560 (arguments
561 '(#:tests? #f)) ; avoid dependency cycles
562 (synopsis "RSpec support library")
563 (description "Support utilities for RSpec gems.")
564 (home-page "https://github.com/rspec/rspec-support")
565 (license license:expat)))
566
567 (define-public ruby-rspec-core
568 (package
569 (name "ruby-rspec-core")
570 (version "3.8.0")
571 (source (origin
572 (method url-fetch)
573 (uri (rubygems-uri "rspec-core" version))
574 (sha256
575 (base32
576 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
577 (build-system ruby-build-system)
578 (arguments
579 '(#:tests? #f)) ; avoid dependency cycles
580 (propagated-inputs
581 `(("ruby-rspec-support" ,ruby-rspec-support)))
582 (synopsis "RSpec core library")
583 (description "Rspec-core provides the RSpec test runner and example
584 groups.")
585 (home-page "https://github.com/rspec/rspec-core")
586 (license license:expat)))
587
588 (define-public ruby-rspec-core-2
589 (package (inherit ruby-rspec-core)
590 (version "2.14.8")
591 (source (origin
592 (method url-fetch)
593 (uri (rubygems-uri "rspec-core" version))
594 (sha256
595 (base32
596 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
597 (propagated-inputs `())))
598
599 (define-public ruby-diff-lcs
600 (package
601 (name "ruby-diff-lcs")
602 (version "1.3")
603 (source (origin
604 (method url-fetch)
605 (uri (rubygems-uri "diff-lcs" version))
606 (sha256
607 (base32
608 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
609 (build-system ruby-build-system)
610 (arguments
611 '(#:tests? #f)) ; avoid dependency cycles
612 (synopsis "Compute the difference between two Enumerable sequences")
613 (description "Diff::LCS computes the difference between two Enumerable
614 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
615 It includes utilities to create a simple HTML diff output format and a
616 standard diff-like tool.")
617 (home-page "https://github.com/halostatue/diff-lcs")
618 (license license:expat)))
619
620 (define-public ruby-rspec-expectations
621 (package
622 (name "ruby-rspec-expectations")
623 (version "3.8.2")
624 (source (origin
625 (method url-fetch)
626 (uri (rubygems-uri "rspec-expectations" version))
627 (sha256
628 (base32
629 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
630 (build-system ruby-build-system)
631 (arguments
632 '(#:tests? #f)) ; avoid dependency cycles
633 (propagated-inputs
634 `(("ruby-rspec-support" ,ruby-rspec-support)
635 ("ruby-diff-lcs" ,ruby-diff-lcs)))
636 (synopsis "RSpec expectations library")
637 (description "Rspec-expectations provides a simple API to express expected
638 outcomes of a code example.")
639 (home-page "https://github.com/rspec/rspec-expectations")
640 (license license:expat)))
641
642 (define-public ruby-rspec-expectations-2
643 (package (inherit ruby-rspec-expectations)
644 (version "2.14.5")
645 (source (origin
646 (method url-fetch)
647 (uri (rubygems-uri "rspec-expectations" version))
648 (sha256
649 (base32
650 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
651 (propagated-inputs
652 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
653
654 (define-public ruby-sorcerer
655 (package
656 (name "ruby-sorcerer")
657 (version "2.0.1")
658 (source
659 (origin
660 (method url-fetch)
661 (uri (rubygems-uri "sorcerer" version))
662 (sha256
663 (base32
664 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
665 (build-system ruby-build-system)
666 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
667 (description "Sorcerer generates Ruby code from a Ripper-like abstract
668 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
669 snippets of Ruby code, expressible in a single line. Longer examples may be
670 re-sourced, but they will be rendered in a single-line format.")
671 (home-page "https://github.com/rspec-given/sorcerer")
672 (license license:expat)))
673
674 (define-public ruby-given-core
675 (package
676 (name "ruby-given-core")
677 (version "3.8.0")
678 (source
679 (origin
680 (method url-fetch)
681 (uri (rubygems-uri "given_core" version))
682 (sha256
683 (base32
684 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
685 (build-system ruby-build-system)
686 (arguments '(#:tests? #f)) ;no test suite for the core package
687 (propagated-inputs
688 `(("ruby-sorcerer" ,ruby-sorcerer)))
689 (synopsis "Core abstractions used by rspec-given and minitest-given")
690 (description "Given_core is the basic functionality behind rspec-given and
691 minitest-given, extensions that allow the use of Given/When/Then terminology
692 when defining specifications.")
693 (home-page "https://github.com/rspec-given/rspec-given")
694 (license license:expat)))
695
696 (define-public ruby-rspec-given
697 (package
698 (name "ruby-rspec-given")
699 (version "3.8.0")
700 (source
701 (origin
702 (method url-fetch)
703 (uri (rubygems-uri "rspec-given" version))
704 (sha256
705 (base32
706 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
707 (build-system ruby-build-system)
708 (arguments
709 `(#:test-target "rs"
710 #:phases
711 (modify-phases %standard-phases
712 (add-after 'unpack 'fix-rakefile
713 (lambda _
714 (substitute* '("Rakefile" "rakelib/gemspec.rake")
715 (("require '\\./lib/given/.*") "")
716 (("Given::VERSION") (format #f "~s" ,version))
717 ;; Fix the error: "cannot load such file -- example_helper"
718 (("sh \"rspec")
719 "sh \"rspec -Ilib:examples"))
720 #t))
721 (add-after 'extract-gemspec 'delete-failing-tests
722 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
723 (lambda _
724 (substitute* ".gemspec"
725 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
726 "")
727 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
728 ""))
729 (delete-file "spec/lib/given/natural_assertion_spec.rb")
730 (delete-file "examples/integration/failing_messages_spec.rb")
731 #t)))))
732 (native-inputs
733 `(("ruby-rspec" ,ruby-rspec)
734 ("ruby-minitest" ,ruby-minitest)))
735 (propagated-inputs
736 `(("ruby-given-core" ,ruby-given-core)
737 ("ruby-rspec" ,ruby-rspec)))
738 (synopsis "Given/When/Then for RSpec and Minitest")
739 (description "Given is an RSpec extension that allows the use of
740 Given/When/Then terminology when defining specifications, in a way similar to
741 the Cucumber Gherkin language.")
742 (home-page "https://github.com/rspec-given/rspec-given")
743 (license license:expat)))
744
745 (define-public ruby-rspec-its
746 (package
747 (name "ruby-rspec-its")
748 (version "1.3.0")
749 (source
750 (origin
751 (method git-fetch)
752 (uri (git-reference
753 (url "https://github.com/rspec/rspec-its")
754 (commit (string-append "v" version))))
755 (file-name (git-file-name name version))
756 (sha256
757 (base32
758 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
759 (build-system ruby-build-system)
760 (arguments
761 `(#:test-target "spec"
762 #:phases
763 (modify-phases %standard-phases
764 (add-after 'unpack 'dont-install-gems-from-gemfile
765 (lambda _
766 (substitute* "Gemfile"
767 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
768 ""))
769 #t))
770 (add-before 'build 'loosen-ffi-requirement
771 (lambda _
772 ;; Accept any version of ruby-ffi.
773 (substitute* "Gemfile"
774 ((" gem 'ffi', '~> 1\\.9\\.25'")
775 " gem 'ffi'"))
776 #t))
777 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
778 (lambda _
779 (substitute* "rspec-its.gemspec"
780 (("rake.*") "rake'\n")
781 (("spec.add_development_dependency 'cucumber'.*")
782 "spec.add_development_dependency 'cucumber'\n")
783 (("bundler.*") "bundler'\n")
784 (("\"aruba.*") "'aruba'\n"))
785 #t)))))
786 (propagated-inputs
787 `(("ruby-rspec-core" ,ruby-rspec-core)
788 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
789 (native-inputs
790 `(("bundler" ,bundler)
791 ("ruby-cucumber" ,ruby-cucumber)
792 ("ruby-ffi" ,ruby-ffi)
793 ("ruby-aruba" ,ruby-aruba)))
794 (synopsis "RSpec extension that provides the @code{its} method")
795 (description
796 "RSpec::Its provides the its method as a short-hand to specify the expected
797 value of an attribute. For example, one can use @code{its(:size)\\{should
798 eq(1)\\}}.")
799 (home-page "https://github.com/rspec/rspec-its")
800 (license license:expat)))
801
802 ;;; This variant is used to break a cycle with ruby-protobuf.
803 (define-public ruby-rspec-its-minimal
804 (hidden-package
805 (package
806 (inherit ruby-rspec-its)
807 (arguments
808 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
809 ((#:tests? _ #f) #f)))
810 (native-inputs '()))))
811
812 (define-public ruby-rspec-mocks
813 (package
814 (name "ruby-rspec-mocks")
815 (version "3.8.0")
816 (source (origin
817 (method url-fetch)
818 (uri (rubygems-uri "rspec-mocks" version))
819 (sha256
820 (base32
821 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
822 (build-system ruby-build-system)
823 (arguments
824 '(#:tests? #f)) ; avoid dependency cycles
825 (propagated-inputs
826 `(("ruby-rspec-support" ,ruby-rspec-support)
827 ("ruby-diff-lcs" ,ruby-diff-lcs)))
828 (synopsis "RSpec stubbing and mocking library")
829 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
830 support for stubbing and mocking.")
831 (home-page "https://github.com/rspec/rspec-mocks")
832 (license license:expat)))
833
834 (define-public ruby-rspec-mocks-2
835 (package (inherit ruby-rspec-mocks)
836 (version "2.14.6")
837 (source (origin
838 (method url-fetch)
839 (uri (rubygems-uri "rspec-mocks" version))
840 (sha256
841 (base32
842 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
843 (propagated-inputs
844 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
845
846 (define-public ruby-rspec-rerun
847 (package
848 (name "ruby-rspec-rerun")
849 (version "1.1.0")
850 (source
851 (origin
852 (method url-fetch)
853 (uri (rubygems-uri "rspec-rerun" version))
854 (sha256
855 (base32
856 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
857 (build-system ruby-build-system)
858 (arguments
859 '(;; No included tests
860 #:tests? #f))
861 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
862 (synopsis "Track failed RSpec tests to re-run them")
863 (description
864 "This package provides an automated way to track, and then re-run failed
865 RSpec tests.")
866 (home-page "https://github.com/dblock/rspec-rerun")
867 (license license:expat)))
868
869 (define-public ruby-rspec-wait
870 (package
871 (name "ruby-rspec-wait")
872 (version "0.0.9")
873 (source
874 (origin
875 (method url-fetch)
876 (uri (rubygems-uri "rspec-wait" version))
877 (sha256
878 (base32
879 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
880 (build-system ruby-build-system)
881 (arguments
882 '(#:phases
883 (modify-phases %standard-phases
884 (replace 'check
885 (lambda _
886 (invoke "rake" "spec"))))))
887 (native-inputs
888 `(("bundler" ,bundler)))
889 (propagated-inputs
890 `(("ruby-rspec" ,ruby-rspec)))
891 (home-page "https://github.com/laserlemon/rspec-wait")
892 (synopsis "Wait for conditions in RSpec")
893 (description
894 "RSpec::Wait strives to make it easier to test asynchronous or slow
895 interactions.")
896 (license license:expat)))
897
898 (define-public ruby-rspec
899 (package
900 (name "ruby-rspec")
901 (version "3.8.0")
902 (source (origin
903 (method url-fetch)
904 (uri (rubygems-uri "rspec" version))
905 (sha256
906 (base32
907 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
908 (build-system ruby-build-system)
909 (arguments
910 '(#:tests? #f)) ; avoid dependency cycles
911 (propagated-inputs
912 `(("ruby-rspec-core" ,ruby-rspec-core)
913 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
914 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
915 (synopsis "Behavior-driven development framework for Ruby")
916 (description "RSpec is a behavior-driven development (BDD) framework for
917 Ruby. This meta-package includes the RSpec test runner, along with the
918 expectations and mocks frameworks.")
919 (home-page "https://rspec.info/")
920 (license license:expat)))
921
922 (define-public ruby-rspec-2
923 (package (inherit ruby-rspec)
924 (version "2.14.1")
925 (source (origin
926 (method url-fetch)
927 (uri (rubygems-uri "rspec" version))
928 (sha256
929 (base32
930 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
931 (propagated-inputs
932 `(("ruby-rspec-core" ,ruby-rspec-core-2)
933 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
934 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
935
936 ;; Bundler is yet another source of circular dependencies, so we must disable
937 ;; its test suite as well.
938 (define-public bundler
939 (package
940 (name "bundler")
941 (version "2.1.4")
942 (source (origin
943 (method url-fetch)
944 (uri (rubygems-uri "bundler" version))
945 (sha256
946 (base32
947 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
948 (build-system ruby-build-system)
949 (arguments
950 '(#:tests? #f)) ; avoid dependency cycles
951 (synopsis "Ruby gem bundler")
952 (description "Bundler automatically downloads and installs a list of gems
953 specified in a \"Gemfile\", as well as their dependencies.")
954 (home-page "https://bundler.io/")
955 (license license:expat)))
956
957 (define-public ruby-builder
958 (package
959 (name "ruby-builder")
960 (version "3.2.3")
961 (source (origin
962 (method url-fetch)
963 (uri (rubygems-uri "builder" version))
964 (sha256
965 (base32
966 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
967 (build-system ruby-build-system)
968 (arguments
969 `(#:phases
970 (modify-phases %standard-phases
971 (add-after 'unpack 'do-not-use-rvm
972 (lambda _
973 (substitute* "rakelib/tags.rake"
974 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
975 #t)))))
976 (synopsis "Ruby library to create structured data")
977 (description "Builder provides a number of builder objects that make it
978 easy to create structured data. Currently the following builder objects are
979 supported: XML Markup and XML Events.")
980 (home-page "https://github.com/jimweirich/builder")
981 (license license:expat)))
982
983 (define-public ruby-bump
984 (package
985 (name "ruby-bump")
986 (version "0.7.0")
987 (source
988 (origin
989 (method url-fetch)
990 (uri (rubygems-uri "bump" version))
991 (sha256
992 (base32
993 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
994 (build-system ruby-build-system)
995 (arguments
996 '(;; No included tests
997 #:tests? #f))
998 (synopsis "Tool for working with Rubygems")
999 (description
1000 "Bump provides commands to manage Rubygem versioning, updating to the
1001 next patch version for example.")
1002 (home-page "https://github.com/gregorym/bump")
1003 (license license:expat)))
1004
1005 (define-public ruby-rjb
1006 (package
1007 (name "ruby-rjb")
1008 (version "1.5.5")
1009 (source (origin
1010 (method url-fetch)
1011 (uri (rubygems-uri "rjb" version))
1012 (sha256
1013 (base32
1014 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
1015 (build-system ruby-build-system)
1016 (arguments
1017 `(#:tests? #f ; no rakefile
1018 #:phases
1019 (modify-phases %standard-phases
1020 (add-before 'build 'set-java-home
1021 (lambda* (#:key inputs #:allow-other-keys)
1022 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1023 #t)))))
1024 (native-inputs
1025 `(("jdk" ,icedtea "jdk")))
1026 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1027 (description "RJB is a bridge program that connects Ruby and Java via the
1028 Java Native Interface.")
1029 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1030 (license license:lgpl2.1+)))
1031
1032 (define-public ruby-log4r
1033 (package
1034 (name "ruby-log4r")
1035 (version "1.1.10")
1036 (source
1037 (origin
1038 (method url-fetch)
1039 (uri (rubygems-uri "log4r" version))
1040 (sha256
1041 (base32
1042 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1043 (build-system ruby-build-system)
1044 (arguments
1045 '(#:tests? #f)) ; no Rakefile in gem
1046 (synopsis "Flexible logging library for Ruby")
1047 (description "Comprehensive and flexible logging library written
1048 in Ruby for use in Ruby programs. It features a hierarchical logging
1049 system of any number of levels, custom level names, logger
1050 inheritance, multiple output destinations per log event, execution
1051 tracing, custom formatting, thread safteyness, XML and YAML
1052 configuration, and more.")
1053 (home-page "http://log4r.rubyforge.org/")
1054 (license license:bsd-3)))
1055
1056 (define-public ruby-atoulme-antwrap
1057 (package
1058 (name "ruby-atoulme-antwrap")
1059 (version "0.7.5")
1060 (source (origin
1061 (method url-fetch)
1062 (uri (rubygems-uri "atoulme-Antwrap" version))
1063 (sha256
1064 (base32
1065 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1066 (build-system ruby-build-system)
1067 ;; Test data required for most of the tests are not included.
1068 (arguments `(#:tests? #f))
1069 (native-inputs
1070 `(("ruby-hoe" ,ruby-hoe)))
1071 (inputs
1072 `(("ruby-rjb" ,ruby-rjb)))
1073 (synopsis "Ruby wrapper for the Ant build tool")
1074 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1075 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1076 script.")
1077 (home-page "http://rubyforge.org/projects/antwrap/")
1078 (license license:expat)))
1079
1080 (define-public ruby-atoulme-saikuro
1081 (package
1082 (name "ruby-atoulme-saikuro")
1083 (version "1.2.1")
1084 (source (origin
1085 (method url-fetch)
1086 (uri (rubygems-uri "atoulme-Saikuro" version))
1087 (sha256
1088 (base32
1089 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1090 (build-system ruby-build-system)
1091 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1092 ;; "saikuro" tool.
1093 (arguments `(#:tests? #f))
1094 (synopsis "Cyclomatic complexity analyzer")
1095 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1096 given Ruby source code Saikuro will generate a report listing the cyclomatic
1097 complexity of each method found. In addition, Saikuro counts the number of
1098 lines per method and can generate a listing of the number of tokens on each
1099 line of code.")
1100 (home-page "http://www.github.com/atoulme/Saikuro")
1101 ;; File headers contain the BSD-3 license and the README.rdoc says that
1102 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1103 ;; of the Expat license.
1104 (license license:bsd-3)))
1105
1106 (define-public ruby-awesome-print
1107 (package
1108 (name "ruby-awesome-print")
1109 (version "1.8.0")
1110 (source
1111 (origin
1112 (method url-fetch)
1113 (uri (rubygems-uri "awesome_print" version))
1114 (sha256
1115 (base32
1116 "14arh1ixfsd6j5md0agyzvksm5svfkvchb90fp32nn7y3avcmc2h"))))
1117 (build-system ruby-build-system)
1118 (arguments
1119 `(#:phases
1120 (modify-phases %standard-phases
1121 (replace 'check
1122 (lambda _
1123 ;; Remove failing test.
1124 (for-each delete-file
1125 '("spec/ext/nokogiri_spec.rb"
1126 "spec/colors_spec.rb"
1127 "spec/formats_spec.rb"
1128 "spec/methods_spec.rb"
1129 "spec/misc_spec.rb"
1130 "spec/objects_spec.rb"))
1131 (invoke "rspec" "-c" "spec"))))))
1132 (native-inputs
1133 `(("ruby-nokogiri" ,ruby-nokogiri)
1134 ("ruby-rspec" ,ruby-rspec)
1135 ("ruby-simplecov" ,ruby-simplecov)))
1136 (synopsis "Pretty print Ruby objects to visualize their structure")
1137 (description
1138 "Ruby dubugging companion: pretty print Ruby objects to visualize their
1139 structure. Supports custom object formatting via plugins.")
1140 (home-page "https://github.com/awesome-print/awesome_print")
1141 (license license:expat)))
1142
1143 (define-public ruby-pandoc-ruby
1144 (package
1145 (name "ruby-pandoc-ruby")
1146 (version "2.1.4")
1147 (source
1148 (origin
1149 (method git-fetch) ;the gem lacks many test files
1150 (uri (git-reference
1151 (url "https://github.com/xwmx/pandoc-ruby")
1152 (commit version)))
1153 (file-name (git-file-name name version))
1154 (sha256
1155 (base32
1156 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1157 (build-system ruby-build-system)
1158 (arguments
1159 `(#:phases
1160 (modify-phases %standard-phases
1161 (add-after 'unpack 'disable-failing-tests
1162 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1163 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1164 (lambda _
1165 (substitute* "test/test_conversions.rb"
1166 (("next if from == to.*" all)
1167 (string-append
1168 all
1169 " next if ['plain', 'beamer'].include? to\n")))
1170 #t))
1171 (add-after 'unpack 'patch-pandoc-path
1172 (lambda* (#:key inputs #:allow-other-keys)
1173 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1174 "/bin/pandoc")))
1175 (substitute* "lib/pandoc-ruby.rb"
1176 (("@@pandoc_path = 'pandoc'")
1177 (format #f "@@pandoc_path = '~a'" pandoc)))
1178 (substitute* "test/test_pandoc_ruby.rb"
1179 (("('|\")pandoc" _ quote)
1180 (string-append quote pandoc))
1181 (("\\^pandoc")
1182 ".*pandoc"))
1183 #t)))
1184 (add-after 'extract-gemspec 'remove-Gemfile.lock
1185 (lambda _
1186 (delete-file "Gemfile.lock")
1187 (substitute* "pandoc-ruby.gemspec"
1188 (("Gemfile\\.lock") ""))
1189 #t)))))
1190 (native-inputs
1191 `(("ruby-mocha" ,ruby-mocha)))
1192 (inputs
1193 `(("pandoc" ,pandoc)))
1194 (synopsis "Ruby wrapper for Pandoc")
1195 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1196 command line tools for converting one markup format to another. Pandoc can
1197 convert documents from a variety of formats including markdown,
1198 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1199 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1200 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1201 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1202 more.")
1203 (home-page "https://github.com/xwmx/pandoc-ruby")
1204 (license license:expat)))
1205
1206 (define-public ruby-patron
1207 (package
1208 (name "ruby-patron")
1209 (version "0.13.3")
1210 (source
1211 (origin
1212 (method url-fetch)
1213 (uri (rubygems-uri "patron" version))
1214 (sha256
1215 (base32
1216 "0523gddx88zql2mq6655k60gy2ac8vybpzkcf90lmd9nx7wl3fi9"))))
1217 (build-system ruby-build-system)
1218 (inputs
1219 `(("curl" ,curl)))
1220 (arguments
1221 `(#:tests? #f)) ; no included tests
1222 (synopsis "Ruby HTTP client library based on @code{libcurl}")
1223 (description
1224 "Patron is a Ruby HTTP client library based on @code{libcurl}. It does
1225 not try to expose the full power (read complexity) of @code{libcurl} but
1226 instead tries to provide a sane API while taking advantage of @code{libcurl}
1227 under the hood.")
1228 (home-page "https://github.com/toland/patron")
1229 (license license:expat)))
1230
1231 (define-public ruby-slim
1232 (package
1233 (name "ruby-slim")
1234 (version "4.1.0")
1235 (source
1236 (origin
1237 (method url-fetch)
1238 (uri (rubygems-uri "slim" version))
1239 (sha256
1240 (base32
1241 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1242 (build-system ruby-build-system)
1243 (arguments
1244 `(#:phases
1245 (modify-phases %standard-phases
1246 ;; See: https://github.com/slim-template/slim/issues/857 and
1247 ;; https://github.com/slim-template/slim/issues/858.
1248 (add-after 'unpack 'skip-broken-tests
1249 (lambda _
1250 (substitute* "test/core/test_embedded_engines.rb"
1251 (("def test_render_with_markdown")
1252 "def skipped_test_render_with_markdown"))
1253 (substitute* "test/translator/test_translator.rb"
1254 (("raise (\"Missing test for.*)" _ tail)
1255 (string-append "print " tail)))
1256 #t))
1257 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1258 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1259 (add-after 'unpack 'prevent-bundler-interference
1260 (lambda _
1261 (substitute* "Rakefile"
1262 (("require 'bundler/setup'") "nil")
1263 (("Bundler::GemHelper\\.install_tasks") "nil"))
1264 #t)))))
1265 (native-inputs
1266 `(("ruby-rack-test" ,ruby-rack-test)
1267 ("ruby-sinatra" ,ruby-sinatra)))
1268 (propagated-inputs
1269 `(("ruby-temple" ,ruby-temple)
1270 ("ruby-tilt" ,ruby-tilt)))
1271 (synopsis "Minimalist template language for Ruby")
1272 (description "Slim is a template language for Ruby that aims to reduce the
1273 syntax to the minimum while remaining clear.")
1274 (home-page "http://slim-lang.com/")
1275 (license license:expat)))
1276
1277 (define-public ruby-asciidoctor
1278 (package
1279 (name "ruby-asciidoctor")
1280 (version "2.0.10")
1281 (source
1282 (origin
1283 (method git-fetch) ;the gem release lacks a Rakefile
1284 (uri (git-reference
1285 (url "https://github.com/asciidoctor/asciidoctor")
1286 (commit (string-append "v" version))))
1287 (file-name (git-file-name name version))
1288 (sha256
1289 (base32
1290 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1291 (build-system ruby-build-system)
1292 (arguments
1293 `(#:test-target "test:all"
1294 #:phases
1295 (modify-phases %standard-phases
1296 (replace 'replace-git-ls-files
1297 (lambda _
1298 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1299 ;; git ls-files output is merged in ruby-build-system.
1300 (substitute* "asciidoctor.gemspec"
1301 (("`git ls-files -z`")
1302 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1303 #t))
1304 (add-after 'extract-gemspec 'strip-version-requirements
1305 (lambda _
1306 (delete-file "Gemfile")
1307 (substitute* "asciidoctor.gemspec"
1308 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1309 (string-append stripped "\n")))
1310 #t)))))
1311 (native-inputs
1312 `(("ruby-erubis" ,ruby-erubis)
1313 ("ruby-minitest" ,ruby-minitest)
1314 ("ruby-nokogiri" ,ruby-nokogiri)
1315 ("ruby-asciimath" ,ruby-asciimath)
1316 ("ruby-coderay" ,ruby-coderay)
1317 ("ruby-cucumber" ,ruby-cucumber)
1318 ("ruby-haml" ,ruby-haml)
1319 ("ruby-rouge" ,ruby-rouge)
1320 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1321 ("ruby-simplecov" ,ruby-simplecov)
1322 ("ruby-slim" ,ruby-slim)
1323 ("ruby-tilt" ,ruby-tilt)))
1324 (synopsis "Converter from AsciiDoc content to other formats")
1325 (description "Asciidoctor is a text processor and publishing toolchain for
1326 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1327 formats.")
1328 (home-page "https://asciidoctor.org")
1329 (license license:expat)))
1330
1331 (define-public ruby-prawn-icon
1332 (package
1333 (name "ruby-prawn-icon")
1334 (version "2.5.0")
1335 (source
1336 (origin
1337 (method url-fetch)
1338 (uri (rubygems-uri "prawn-icon" version))
1339 (sha256
1340 (base32
1341 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1342 (build-system ruby-build-system)
1343 (arguments
1344 `(#:test-target "spec"
1345 #:phases (modify-phases %standard-phases
1346 (add-after 'unpack 'remove-unnecessary-dependencies
1347 (lambda _
1348 (substitute* '("Rakefile" "spec/spec_helper.rb")
1349 ((".*[Bb]undler.*") "")
1350 (("^require 'rubocop.*") "")
1351 (("^RuboCop.*") ""))
1352 #t)))))
1353 (native-inputs
1354 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1355 ("ruby-pdf-reader" ,ruby-pdf-reader)
1356 ("ruby-rspec" ,ruby-rspec)
1357 ("ruby-simplecov" ,ruby-simplecov)))
1358 (propagated-inputs
1359 `(("ruby-prawn" ,ruby-prawn)))
1360 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1361 (description "@code{Prawn::Icon} provides various icon fonts including
1362 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1363 toolkit.")
1364 (home-page "https://github.com/jessedoyle/prawn-icon/")
1365 (license %prawn-project-licenses)))
1366
1367 (define-public ruby-css-parser
1368 (package
1369 (name "ruby-css-parser")
1370 (version "1.7.1")
1371 (source
1372 (origin
1373 (method url-fetch)
1374 (uri (rubygems-uri "css_parser" version))
1375 (sha256
1376 (base32
1377 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1378 (build-system ruby-build-system)
1379 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1380 (propagated-inputs
1381 `(("ruby-addressable" ,ruby-addressable)))
1382 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1383 (description "This package allows loading, parsing and cascading Cascading
1384 Style Sheets (CSS) rule sets in Ruby.")
1385 (home-page "https://github.com/premailer/css_parser")
1386 (license license:expat)))
1387
1388 (define-public ruby-prawn-svg
1389 (package
1390 (name "ruby-prawn-svg")
1391 (version "0.30.0")
1392 (source
1393 (origin
1394 (method url-fetch)
1395 (uri (rubygems-uri "prawn-svg" version))
1396 (sha256
1397 (base32
1398 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1399 (build-system ruby-build-system)
1400 (arguments
1401 `(#:phases (modify-phases %standard-phases
1402 (add-after 'unpack 'do-not-use-bundler
1403 (lambda _
1404 (substitute* "spec/spec_helper.rb"
1405 ((".*[Bb]undler.*") ""))
1406 #t))
1407 (replace 'check
1408 (lambda* (#:key tests? #:allow-other-keys)
1409 (when tests?
1410 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1411 #t)))))
1412 (native-inputs
1413 `(("ruby-rspec" ,ruby-rspec)))
1414 (propagated-inputs
1415 `(("ruby-css-parser" ,ruby-css-parser)
1416 ("ruby-prawn" ,ruby-prawn)))
1417 (synopsis "SVG renderer for the Prawn PDF library")
1418 (description "This library allows rendering Scalable Vector Graphics (SVG)
1419 graphics directly into a Portable Document Format (PDF) document using the
1420 Prawn module.")
1421 (home-page "https://github.com/mogest/prawn-svg")
1422 (license license:expat)))
1423
1424 (define-public ruby-prawn-templates
1425 (package
1426 (name "ruby-prawn-templates")
1427 (version "0.1.2")
1428 (source
1429 (origin
1430 (method git-fetch)
1431 (uri (git-reference
1432 (url "https://github.com/prawnpdf/prawn-templates")
1433 (commit version)))
1434 (file-name (git-file-name name version))
1435 (sha256
1436 (base32
1437 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1438 (build-system ruby-build-system)
1439 (arguments
1440 `(#:phases (modify-phases %standard-phases
1441 (add-after 'unpack 'do-not-use-bundler
1442 (lambda _
1443 (substitute* "spec/spec_helper.rb"
1444 ((".*[Bb]undler.*") ""))
1445 #t))
1446 (replace 'check
1447 (lambda* (#:key tests? #:allow-other-keys)
1448 (when tests?
1449 (invoke "rspec"))
1450 #t)))))
1451 (native-inputs
1452 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1453 ("ruby-rspec" ,ruby-rspec)))
1454 (propagated-inputs
1455 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1456 ("ruby-prawn" ,ruby-prawn)))
1457 (synopsis "Prawn extension to include or combine PDF documents")
1458 (description "This @strong{unmaintained} package provides a Prawn
1459 extension that allows including other Portable Document Format (PDF) documents
1460 as background or combining several PDF documents into one. This functionality
1461 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1462 of its many longstanding issues.")
1463 (home-page "https://github.com/prawnpdf/prawn-templates")
1464 (license %prawn-project-licenses)))
1465
1466 (define-public ruby-polyglot
1467 (package
1468 (name "ruby-polyglot")
1469 (version "0.3.5")
1470 (source
1471 (origin
1472 (method url-fetch)
1473 (uri (rubygems-uri "polyglot" version))
1474 (sha256
1475 (base32
1476 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1477 (build-system ruby-build-system)
1478 (arguments `(#:tests? #f)) ;no test suite
1479 (synopsis "Augment @code{require} to load non-Ruby file types")
1480 (description "The Polyglot library allows a Ruby module to register a
1481 loader for the file type associated with a filename extension, and it augments
1482 @code{require} to find and load matching files.")
1483 (home-page "https://github.com/cjheath/polyglot")
1484 (license license:expat)))
1485
1486 (define-public ruby-treetop
1487 (package
1488 (name "ruby-treetop")
1489 (version "1.6.10")
1490 (source
1491 (origin
1492 (method git-fetch) ;no test suite in distributed gem
1493 (uri (git-reference
1494 (url "https://github.com/cjheath/treetop")
1495 (commit (string-append "v" version))))
1496 (file-name (git-file-name name version))
1497 (sha256
1498 (base32
1499 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1500 (build-system ruby-build-system)
1501 (arguments
1502 `(#:test-target "spec"
1503 #:phases
1504 (modify-phases %standard-phases
1505 (replace 'replace-git-ls-files
1506 (lambda _
1507 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1508 ;; git ls-files output is merged in ruby-build-system.
1509 (substitute* "treetop.gemspec"
1510 (("`git ls-files -z`")
1511 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1512 #t)))))
1513 (native-inputs
1514 `(("ruby-activesupport" ,ruby-activesupport)
1515 ("ruby-rr" ,ruby-rr)
1516 ("ruby-rspec" ,ruby-rspec)))
1517 (propagated-inputs
1518 `(("ruby-polyglot" ,ruby-polyglot)))
1519 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1520 (description "This package provides a Ruby-based Parsing Expression
1521 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1522 (home-page "https://github.com/cjheath/treetop")
1523 (license license:expat)))
1524
1525 (define-public ruby-typhoeus
1526 (package
1527 (name "ruby-typhoeus")
1528 (version "1.4.0")
1529 (source
1530 (origin
1531 (method url-fetch)
1532 (uri (rubygems-uri "typhoeus" version))
1533 (sha256
1534 (base32
1535 "1m22yrkmbj81rzhlny81j427qdvz57yk5wbcf3km0nf3bl6qiygz"))))
1536 (build-system ruby-build-system)
1537 (arguments
1538 `(#:tests? #f)) ; no included tests
1539 (propagated-inputs
1540 `(("ruby-ethon" ,ruby-ethon)))
1541 (synopsis "@code{libcurl} wrapper in Ruby")
1542 (description
1543 "Like a modern code version of the mythical beast with 100 serpent heads,
1544 Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling
1545 logic.")
1546 (home-page "https://github.com/typhoeus/typhoeus")
1547 (license license:expat)))
1548
1549 (define-public ruby-rubocop-rspec
1550 (package
1551 (name "ruby-rubocop-rspec")
1552 (version "2.2.0")
1553 (source
1554 (origin
1555 (method git-fetch)
1556 (uri (git-reference
1557 (url "https://github.com/rubocop-hq/rubocop-rspec")
1558 (commit (string-append "v" version))))
1559 (file-name (git-file-name name version))
1560 (sha256
1561 (base32
1562 "0gdpjpympb6qc77bang759z7z6lckf14ghkx8v6614agxg8l3g5y"))))
1563 (build-system ruby-build-system)
1564 (arguments
1565 '(#:test-target "internal_investigation"
1566 #:phases
1567 (modify-phases %standard-phases
1568 (add-before 'check 'set-HOME
1569 (lambda _
1570 (setenv "HOME" "/tmp")
1571 #t)))))
1572 (propagated-inputs
1573 `(("ruby-rubocop" ,ruby-rubocop)
1574 ("ruby-rubocop-ast" ,ruby-rubocop-ast)))
1575 (native-inputs
1576 `(("ruby-rack" ,ruby-rack)
1577 ("ruby-rspec" ,ruby-rspec)
1578 ("ruby-rubocop-performance" ,ruby-rubocop-performance)
1579 ("ruby-simplecov" ,ruby-simplecov)
1580 ("ruby-yard" ,ruby-yard)))
1581 (synopsis "Code style checking for RSpec files")
1582 (description "This package provides a plugin for the RuboCop code style
1583 enforcing & linting tool.")
1584 (home-page "https://github.com/rubocop-hq/rubocop-rspec")
1585 (license license:expat)))
1586
1587 (define-public ruby-rubocop-rspec-minimal
1588 (hidden-package
1589 (package
1590 (inherit ruby-rubocop-rspec)
1591 (arguments
1592 (substitute-keyword-arguments (package-arguments ruby-rubocop-rspec)
1593 ((#:tests? _ #f) #f)))
1594 (propagated-inputs '())
1595 (native-inputs '()))))
1596
1597 (define-public ruby-rubocop-performance
1598 (package
1599 (name "ruby-rubocop-performance")
1600 (version "1.9.2")
1601 (source
1602 (origin
1603 (method git-fetch)
1604 (uri (git-reference
1605 (url "https://github.com/rubocop-hq/rubocop-performance")
1606 (commit (string-append "v" version))))
1607 (file-name (git-file-name name version))
1608 (sha256
1609 (base32
1610 "04lmkmz6c0ccs5miikrww7lakp7y6xz00g7b47ay7rn7sx5j6qyf"))))
1611 (build-system ruby-build-system)
1612 (arguments
1613 `(#:tests? #f ; tests require a git checkout of rubocop's source code.
1614 #:phases
1615 (modify-phases %standard-phases
1616 (replace 'replace-git-ls-files
1617 (lambda _
1618 (substitute* "rubocop-performance.gemspec"
1619 (("`git ls-files -z config lib LICENSE.txt README.md`")
1620 "`find config lib LICENSE.txt README.md -type f -print0 |sort -z`"))
1621 #t))
1622 (add-before 'check 'set-HOME
1623 (lambda _
1624 (setenv "HOME" "/tmp")
1625 #t)))))
1626 (propagated-inputs
1627 `(("ruby-rubocop" ,ruby-rubocop)
1628 ("ruby-rubocop-ast" ,ruby-rubocop-ast)))
1629 (native-inputs
1630 `(("ruby-bump" ,ruby-bump)
1631 ("ruby-yard" ,ruby-yard)))
1632 (synopsis "Performance optimizations checkers for Ruby code")
1633 (description "This package provides a collection of RuboCop cops to check
1634 for performance optimizations in Ruby code.")
1635 (home-page "https://docs.rubocop.org/rubocop-performance/")
1636 (license license:expat)))
1637
1638 (define-public ruby-rubocop-performance-minimal
1639 (hidden-package
1640 (package
1641 (inherit ruby-rubocop-performance)
1642 (arguments
1643 (substitute-keyword-arguments (package-arguments ruby-rubocop-performance)
1644 ((#:tests? _ #f) #f)))
1645 (propagated-inputs '())
1646 (native-inputs '()))))
1647
1648 (define-public ruby-gimme
1649 (let ((revision "1")
1650 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1651 (package
1652 (name "ruby-gimme")
1653 (version (git-version "0.5.0" revision commit))
1654 (source
1655 (origin
1656 (method git-fetch)
1657 (uri (git-reference
1658 (url "https://github.com/searls/gimme")
1659 (commit commit)))
1660 (file-name (git-file-name name version))
1661 (sha256
1662 (base32
1663 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1664 (build-system ruby-build-system)
1665 (native-inputs
1666 `(("ruby-coveralls" ,ruby-coveralls)
1667 ("ruby-cucumber" ,ruby-cucumber)
1668 ("ruby-pry" ,ruby-pry)
1669 ("ruby-simplecov" ,ruby-simplecov)
1670 ("ruby-rspec-given" ,ruby-rspec-given)))
1671 (arguments
1672 `(;; The cucumber task fails with error: "index 3 out of matches
1673 ;; (IndexError)", apparently due to our newer Cucumber version.
1674 ;; TODO: Try the "default" task with a future release.
1675 #:test-target "spec"
1676 #:phases
1677 (modify-phases %standard-phases
1678 (add-after 'extract-gemspec 'prepare-for-tests
1679 (lambda _
1680 ;; Delete failing tests (possibly due to our newer rspec
1681 ;; version).
1682 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1683 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1684 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1685 ;; Fix duplicate version requirements and de-register files.
1686 (delete-file "Gemfile")
1687 (delete-file "Gemfile.lock")
1688 (substitute* "gimme.gemspec"
1689 ((".*\"Gemfile\".*") "")
1690 ((".*\"Gemfile\\.lock\",.*") "")
1691 ((".*(rspec|cucumber).*\">= 0\".*") "")
1692 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1693 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1694 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1695 ;; All of these gems relate to development, and are
1696 ;; unnecessary when running the tests.
1697 ((".*(add|gem).*guard-.*") "")
1698 ((".*(add|gem).*jeweler.*") "")
1699 ((".*(add|gem).*pry.*") "")
1700 ((".*(add|gem).*growl.*") "")
1701 ((".*(add|gem).*rb-fsevent.*") ""))
1702 #t)))))
1703 (synopsis "Lightweight test double library for Ruby")
1704 (description "Gimme is a very lightweight test double library for Ruby,
1705 based on Mockito (a mocking framework for Java). It is an opinionated (but
1706 not noisy) means to facilitate test-driving by enabling the authors to specify
1707 only what they care about.")
1708 (home-page "https://github.com/searls/gimme")
1709 (license license:expat))))
1710
1711 (define-public ruby-standard
1712 (package
1713 (name "ruby-standard")
1714 (version "0.4.7")
1715 (source
1716 (origin
1717 (method git-fetch) ;no test suite in distributed gem
1718 (uri (git-reference
1719 (url "https://github.com/testdouble/standard")
1720 (commit (string-append "v" version))))
1721 (file-name (git-file-name name version))
1722 (sha256
1723 (base32
1724 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1725 (build-system ruby-build-system)
1726 (arguments
1727 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1728 `(#:tests? #f
1729 #:phases
1730 (modify-phases %standard-phases
1731 (add-after 'unpack 'relax-version-requiremens
1732 (lambda _
1733 (delete-file "Gemfile")
1734 (delete-file "Gemfile.lock")
1735 #t))
1736 (replace 'replace-git-ls-files
1737 (lambda _
1738 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1739 ;; git ls-files output is merged in ruby-build-system.
1740 (substitute* "standard.gemspec"
1741 (("`git ls-files -z`")
1742 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1743 |sort -z|cut -zc3-`"))
1744 #t)))))
1745 (native-inputs
1746 `(("ruby-gimme" ,ruby-gimme)
1747 ("ruby-pry" ,ruby-pry)
1748 ("ruby-simplecov" ,ruby-simplecov)))
1749 (propagated-inputs
1750 `(("ruby-rubocop" ,ruby-rubocop)
1751 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1752 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1753 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1754 to save time in the following ways:
1755 @itemize
1756 @item No configuration.
1757 @item Automatically format code.
1758 @item Catch style issues and programmer errors early.
1759 @end itemize")
1760 (home-page "https://github.com/testdouble/standard")
1761 (license license:expat)))
1762
1763 (define-public ruby-chunky-png
1764 (package
1765 (name "ruby-chunky-png")
1766 (version "1.3.14")
1767 (source
1768 (origin
1769 (method git-fetch)
1770 (uri (git-reference
1771 (url "https://github.com/wvanbergen/chunky_png")
1772 (commit (string-append "v" version))))
1773 (file-name (git-file-name name version))
1774 (sha256
1775 (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h"))))
1776 (build-system ruby-build-system)
1777 (arguments
1778 `(#:test-target "spec"
1779 #:phases
1780 (modify-phases %standard-phases
1781 (add-after 'unpack 'disable-bundler
1782 (lambda _
1783 (substitute* (find-files "." "\\.rb$")
1784 (("require.*bundler/setup.*") ""))
1785 #t))
1786 (replace 'replace-git-ls-files
1787 (lambda _
1788 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1789 ;; git ls-files output is merged in ruby-build-system.
1790 (substitute* "chunky_png.gemspec"
1791 (("`git ls-files`")
1792 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1793 #t)))))
1794 (native-inputs
1795 `(("bundler" ,bundler)
1796 ("ruby-rspec" ,ruby-rspec)
1797 ("ruby-standard" ,ruby-standard)
1798 ("ruby-yard" ,ruby-yard)))
1799 (synopsis "Ruby library to handle PNG images")
1800 (description "ChunkyPNG is a pure Ruby library that can read and write
1801 Portable Network Graphics (PNG) images without depending on an external image
1802 library. It tries to be memory efficient and reasonably fast. It has
1803 features such as:
1804 @itemize
1805 @item
1806 Decoding support for any image that the PNG standard allows. This includes all
1807 standard color modes, all bit depths, all transparency, and interlacing and
1808 filtering options.
1809 @item
1810 Encoding support for images of all color modes (true color, grayscale, and
1811 indexed) and transparency for all these color modes. The best color mode is
1812 chosen automatically, based on the amount of used colors.
1813 @item Read/write access to the image's pixels.
1814 @item Read/write access to all image metadata that is stored in chunks.
1815 @item
1816 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1817 pixel, depending on the hardware).
1818 @item
1819 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1820 integer math and a highly optimized saving routine.
1821 @item Interoperability with RMagick.
1822 @end itemize
1823
1824 ChunkyPNG is vulnerable to decompression bombs and can run out of memory when
1825 loading a specifically crafted PNG file. This is hard to fix in pure Ruby.
1826 Deal with untrusted images in a separate process, e.g., by using @code{fork}
1827 or a background processing library.")
1828 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1829 (license license:expat)))
1830
1831 (define-public ruby-text-hyphen
1832 (package
1833 (name "ruby-text-hyphen")
1834 (version "1.4.1")
1835 (source
1836 (origin
1837 (method url-fetch)
1838 (uri (rubygems-uri "text-hyphen" version))
1839 (sha256
1840 (base32
1841 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1842 (build-system ruby-build-system)
1843 (native-inputs
1844 `(("ruby-hoe" ,ruby-hoe)))
1845 (synopsis "Ruby library to hyphenate words in various languages")
1846 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1847 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1848 properly hyphenate various words according to the rules of the language the
1849 word is written in. The algorithm is based on that of the TeX typesetting
1850 system by Donald E. Knuth.")
1851 (home-page "https://github.com/halostatue/text-hyphen")
1852 ;; The whole is licensed under the Expat license, but parts use various
1853 ;; versions of the LaTeX Project Public License.
1854 (license license:expat)))
1855
1856 (define-public ruby-open-uri-cached
1857 (package
1858 (name "ruby-open-uri-cached")
1859 (version "0.0.5")
1860 (source
1861 (origin
1862 (method url-fetch)
1863 (uri (rubygems-uri "open-uri-cached" version))
1864 (sha256
1865 (base32
1866 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1867 (build-system ruby-build-system)
1868 (arguments
1869 `(#:tests? #f)) ;no test suite
1870 (synopsis "OpenURI with transparent disk caching")
1871 (description "OpenURI with transparent disk caching, which is
1872 useful to avoid making excessive queries, for example when scraping
1873 web pages.")
1874 (home-page "https://github.com/tigris/open-uri-cached")
1875 (license license:expat)))
1876
1877 (define-public ruby-asciidoctor-pdf
1878 ;; Use the latest commit, as the last tag doesn't build with the
1879 ;; latest Ruby dependencies in Guix.
1880 (let ((revision "1")
1881 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1882 (package
1883 (name "ruby-asciidoctor-pdf")
1884 (version (git-version "1.5.3" revision commit))
1885 (source
1886 (origin
1887 (method git-fetch) ;no test suite in the distributed gem
1888 (uri (git-reference
1889 (url "https://github.com/asciidoctor/asciidoctor-pdf")
1890 (commit commit)))
1891 (file-name (git-file-name name version))
1892 (sha256
1893 (base32
1894 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1895 (build-system ruby-build-system)
1896 (arguments
1897 `(#:test-target "spec"
1898 #:phases
1899 (modify-phases %standard-phases
1900 (add-after 'unpack 'remove-failing-tests
1901 ;; Two tests module fail for unknown reasons, *only* when
1902 ;; ran in the build container (see:
1903 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1904 (lambda _
1905 (delete-file "spec/audio_spec.rb")
1906 (delete-file "spec/video_spec.rb")
1907 #t))
1908 (add-after 'extract-gemspec 'strip-version-requirements
1909 (lambda _
1910 (substitute* "asciidoctor-pdf.gemspec"
1911 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1912 (string-append stripped "\n")))
1913 #t))
1914 (replace 'replace-git-ls-files
1915 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1916 ;; git ls-files output is merged in ruby-build-system.
1917 (lambda _
1918 (substitute* "asciidoctor-pdf.gemspec"
1919 (("`git ls-files -z`")
1920 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1921 |sort -z|cut -zc3-`"))
1922 #t))
1923 ;; The tests rely on the Gem being installed, so move the check phase
1924 ;; after the install phase.
1925 (delete 'check)
1926 (add-after 'install 'check
1927 (lambda* (#:key outputs tests? #:allow-other-keys)
1928 (let ((new-gem (string-append (assoc-ref outputs "out")
1929 "/lib/ruby/vendor_ruby")))
1930 (setenv "GEM_PATH"
1931 (string-append (getenv "GEM_PATH") ":" new-gem))
1932 (when tests?
1933 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1934 #t))))))
1935 (native-inputs
1936 `(("ruby-chunky-png" ,ruby-chunky-png)
1937 ("ruby-coderay" ,ruby-coderay)
1938 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1939 ("ruby-rouge" ,ruby-rouge)
1940 ("ruby-rspec" ,ruby-rspec)))
1941 (propagated-inputs
1942 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1943 ("ruby-concurrent-ruby" ,ruby-concurrent)
1944 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1945 ("ruby-prawn" ,ruby-prawn)
1946 ("ruby-prawn-icon" ,ruby-prawn-icon)
1947 ("ruby-prawn-svg" ,ruby-prawn-svg)
1948 ("ruby-prawn-table" ,ruby-prawn-table)
1949 ("ruby-prawn-templates" ,ruby-prawn-templates)
1950 ("ruby-safe-yaml" ,ruby-safe-yaml)
1951 ("ruby-text-hyphen" ,ruby-text-hyphen)
1952 ("ruby-thread-safe" ,ruby-thread-safe)
1953 ("ruby-treetop" ,ruby-treetop)
1954 ("ruby-ttfunk" ,ruby-ttfunk)))
1955 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1956 (description "Asciidoctor PDF is an extension for Asciidoctor that
1957 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1958 PDF library. It has features such as:
1959 @itemize
1960 @item Direct AsciiDoc to PDF conversion
1961 @item Configuration-driven theme (style and layout)
1962 @item Scalable Vector Graphics (SVG) support
1963 @item PDF document outline (i.e., bookmarks)
1964 @item Table of contents page(s)
1965 @item Document metadata (title, authors, subject, keywords, etc.)
1966 @item Internal cross reference links
1967 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1968 @item Page numbering
1969 @item Customizable running content (header and footer)
1970 @item
1971 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1972 @item Orphaned section titles avoided
1973 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1974 @item Table border settings honored
1975 @item Font-based icons
1976 @item Custom TrueType (TTF) fonts
1977 @item Double-sided printing mode (margins alternate on recto and verso pages)
1978 @end itemize")
1979 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1980 (license license:expat))))
1981
1982 (define-public ruby-ast
1983 (package
1984 (name "ruby-ast")
1985 (version "2.4.1")
1986 (source
1987 (origin
1988 (method git-fetch) ;no test included in gem from v2.4.1
1989 (uri (git-reference
1990 (url "https://github.com/whitequark/ast")
1991 (commit (string-append "v" version))))
1992 (file-name (git-file-name name version))
1993 (sha256
1994 (base32
1995 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1996 (build-system ruby-build-system)
1997 (arguments
1998 '(#:phases
1999 (modify-phases %standard-phases
2000 (add-after 'unpack 'remove-coveralls-requirement
2001 (lambda _
2002 (substitute* "test/helper.rb"
2003 (("require 'coveralls'") "")
2004 (("Coveralls::SimpleCov::Formatter") ""))
2005 #t))
2006 (add-after 'extract-gemspec 'remove-unnecessary-requirements
2007 (lambda _
2008 (substitute* "ast.gemspec"
2009 ((".*coveralls.*") "\n")
2010 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
2011 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
2012 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
2013 #t)))))
2014 (native-inputs
2015 `(("bundler" ,bundler)
2016 ("ruby-simplecov" ,ruby-simplecov)
2017 ("ruby-json-pure" ,ruby-json-pure)
2018 ("ruby-mime-times" ,ruby-mime-types)
2019 ("ruby-yard" ,ruby-yard)
2020 ("ruby-kramdown" ,ruby-kramdown)
2021 ("ruby-rest-client" ,ruby-rest-client)
2022 ("ruby-bacon" ,ruby-bacon)
2023 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
2024 ("ruby-racc" ,ruby-racc)))
2025 (synopsis "Library for working with Abstract Syntax Trees")
2026 (description
2027 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
2028 It does this through immutable data structures.")
2029 (home-page "https://whitequark.github.io/ast/")
2030 (license license:expat)))
2031
2032 (define-public ruby-sporkmonger-rack-mount
2033 ;; Testing the addressable gem requires a newer commit than that released, so
2034 ;; use an up to date version.
2035 (let ((revision "1")
2036 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
2037 (package
2038 (name "ruby-sporkmonger-rack-mount")
2039 (version (git-version "0.8.3" revision commit))
2040 (source (origin
2041 (method git-fetch)
2042 (uri (git-reference
2043 (url "https://github.com/sporkmonger/rack-mount")
2044 (commit commit)))
2045 (file-name (git-file-name name version))
2046 (sha256
2047 (base32
2048 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
2049 (build-system ruby-build-system)
2050 (arguments
2051 ;; Tests currently fail so disable them.
2052 ;; https://github.com/sporkmonger/rack-mount/pull/1
2053 `(#:tests? #f))
2054 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
2055 (synopsis "Stackable dynamic tree based Rack router")
2056 (description
2057 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
2058 continue trying routes if the response returns pass. This allows multiple
2059 routes to be nested or stacked on top of each other.")
2060 (home-page "https://github.com/sporkmonger/rack-mount")
2061 (license license:expat))))
2062
2063 (define-public ruby-ci-reporter
2064 (package
2065 (name "ruby-ci-reporter")
2066 (version "2.0.0")
2067 (source (origin
2068 (method url-fetch)
2069 (uri (rubygems-uri "ci_reporter" version))
2070 (sha256
2071 (base32
2072 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
2073 (build-system ruby-build-system)
2074 (arguments
2075 `(#:test-target "rspec"))
2076 (propagated-inputs
2077 `(("ruby-builder" ,ruby-builder)))
2078 (native-inputs
2079 `(("bundler" ,bundler)
2080 ("ruby-rspec" ,ruby-rspec)))
2081 (synopsis "Generate XML reports of runs test")
2082 (description
2083 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
2084 you to generate XML reports of your test runs. The resulting files can be
2085 read by a continuous integration system that understands Ant's JUnit report
2086 format.")
2087 (home-page "https://github.com/nicksieger/ci_reporter")
2088 (license license:expat)))
2089
2090 (define-public ruby-contracts
2091 (package
2092 (name "ruby-contracts")
2093 (version "0.16.0")
2094 (source
2095 (origin
2096 (method url-fetch)
2097 (uri (rubygems-uri "contracts" version))
2098 (sha256
2099 (base32
2100 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
2101 (build-system ruby-build-system)
2102 (arguments
2103 '(#:test-target "spec"
2104 #:phases
2105 (modify-phases %standard-phases
2106 ;; Don't run or require rubocop, the code linting tool, as this is a
2107 ;; bit unnecessary.
2108 (add-after 'unpack 'dont-run-rubocop
2109 (lambda _
2110 (substitute* "Rakefile"
2111 ((".*rubocop.*") "")
2112 ((".*RuboCop.*") ""))
2113 #t)))))
2114 (native-inputs
2115 `(("ruby-rspec" ,ruby-rspec)))
2116 (synopsis "Method contracts for Ruby")
2117 (description
2118 "This library provides contracts for Ruby. A contract describes the
2119 correct inputs and output for a method, and will raise an error if a incorrect
2120 value is found.")
2121 (home-page "https://github.com/egonSchiele/contracts.ruby")
2122 (license license:bsd-2)))
2123
2124 (define-public ruby-crack
2125 (package
2126 (name "ruby-crack")
2127 (version "0.4.5")
2128 (source
2129 (origin
2130 (method url-fetch)
2131 (uri (rubygems-uri "crack" version))
2132 (sha256
2133 (base32
2134 "1cr1kfpw3vkhysvkk3wg7c54m75kd68mbm9rs5azdjdq57xid13r"))))
2135 (build-system ruby-build-system)
2136 (arguments
2137 `(#:phases
2138 (modify-phases %standard-phases
2139 (replace 'check
2140 (lambda* (#:key tests? #:allow-other-keys)
2141 (when tests?
2142 (for-each (lambda (file)
2143 (display file)(display "\n")
2144 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
2145 (find-files "test" ".*rb$")))
2146 #t)))))
2147 (propagated-inputs
2148 `(("ruby-rexml" ,ruby-rexml)))
2149 (synopsis "Simple JSON and XML parsing for Ruby")
2150 (description
2151 "@code{crack} provides really simple JSON and XML parsing, extracted from
2152 code in Merb and Rails.")
2153 (home-page "https://github.com/jnunemaker/crack")
2154 (license license:expat)))
2155
2156 (define-public ruby-cliver
2157 (package
2158 (name "ruby-cliver")
2159 (version "0.3.2")
2160 (source
2161 (origin
2162 (method url-fetch)
2163 (uri (rubygems-uri "cliver" version))
2164 (sha256
2165 (base32
2166 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
2167 (build-system ruby-build-system)
2168 (arguments
2169 '(#:phases
2170 (modify-phases %standard-phases
2171 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
2172 ;; would be nice, but the tests look to be incompatible:
2173 ;;
2174 ;; NoMethodError: undefined method `last_comment'
2175 (replace 'check
2176 (lambda* (#:key tests? #:allow-other-keys)
2177 (when tests?
2178 (invoke "rspec"))
2179 #t)))))
2180 (native-inputs
2181 `(("bundler" ,bundler)
2182 ("ruby-rspec" ,ruby-rspec-2)))
2183 (synopsis "Assertions for command-line dependencies in Ruby")
2184 (description
2185 "@code{cliver} provides a way to detect missing command-line
2186 dependencies, including versions.")
2187 (home-page "https://github.com/yaauie/cliver")
2188 (license license:expat)))
2189
2190 (define-public ruby-czmq-ffi-gen
2191 (package
2192 (name "ruby-czmq-ffi-gen")
2193 (version "0.13.0")
2194 (source
2195 (origin
2196 (method url-fetch)
2197 (uri (rubygems-uri "czmq-ffi-gen" version))
2198 (sha256
2199 (base32
2200 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2201 (build-system ruby-build-system)
2202 (arguments
2203 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2204 #:phases
2205 (modify-phases %standard-phases
2206 (add-after 'unpack 'patch-lib_dirs
2207 (lambda* (#:key inputs #:allow-other-keys)
2208 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2209 (("lib\\_dirs = \\[.*\\]")
2210 (string-append "lib_dirs = ['"
2211 (assoc-ref inputs "czmq") "/lib"
2212 "']")))
2213 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2214 (("lib\\_dirs = \\[.*\\]")
2215 (string-append "lib_dirs = ['"
2216 (assoc-ref inputs "zeromq") "/lib"
2217 "']"))))))))
2218 (inputs
2219 `(("zeromq" ,zeromq)
2220 ("czmq" ,czmq)))
2221 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2222 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2223 (description
2224 "These Ruby bindings are not intended to be directly used, but rather
2225 used by higher level bindings like those provided by CZTop.")
2226 (home-page
2227 "https://github.com/paddor/czmq-ffi-gen")
2228 (license license:isc)))
2229
2230 (define-public ruby-cztop
2231 (package
2232 (name "ruby-cztop")
2233 (version "0.12.2")
2234 (source
2235 (origin
2236 (method url-fetch)
2237 (uri (rubygems-uri "cztop" version))
2238 (sha256
2239 (base32
2240 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2241 (build-system ruby-build-system)
2242 (arguments
2243 '(#:test-target "spec"
2244 #:phases
2245 (modify-phases %standard-phases
2246 (add-after 'unpack 'patch-lib_paths
2247 (lambda* (#:key inputs #:allow-other-keys)
2248 (substitute* "lib/cztop/poller/zmq.rb"
2249 (("lib\\_paths = \\[.*\\]")
2250 (string-append "lib_paths = ['"
2251 (assoc-ref inputs "zeromq") "/lib"
2252 "']"))))))))
2253 (native-inputs
2254 `(("bundler" ,bundler)
2255 ("ruby-rspec" ,ruby-rspec)))
2256 (inputs
2257 `(("zeromq" ,zeromq)))
2258 (propagated-inputs
2259 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2260 (synopsis "CZMQ Ruby bindings")
2261 (description
2262 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2263 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2264 support for security mechanisms.")
2265 (home-page "https://github.com/paddor/cztop")
2266 (license license:isc)))
2267
2268 (define-public ruby-saikuro-treemap
2269 (package
2270 (name "ruby-saikuro-treemap")
2271 (version "0.2.0")
2272 (source (origin
2273 (method url-fetch)
2274 (uri (rubygems-uri "saikuro_treemap" version))
2275 (sha256
2276 (base32
2277 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2278 (build-system ruby-build-system)
2279 ;; Some of the tests fail because the generated JSON has keys in a
2280 ;; different order. This is a problem with the test suite rather than any
2281 ;; of the involved libraries.
2282 (arguments `(#:tests? #f))
2283 (propagated-inputs
2284 `(("ruby-json-pure" ,ruby-json-pure)
2285 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2286 (synopsis "Generate complexity treemap based on saikuro analysis")
2287 (description
2288 "This gem generates a treemap showing the complexity of Ruby code on
2289 which it is run. It uses Saikuro under the covers to analyze Ruby code
2290 complexity.")
2291 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2292 (license license:expat)))
2293
2294 (define-public ruby-oauth2
2295 (package
2296 (name "ruby-oauth2")
2297 (version "1.4.2")
2298 (source
2299 (origin
2300 (method url-fetch)
2301 (uri (rubygems-uri "oauth2" version))
2302 (sha256
2303 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2304 (build-system ruby-build-system)
2305 (arguments
2306 '(#:tests? #f)) ; no included tests
2307 (propagated-inputs
2308 `(("ruby-faraday" ,ruby-faraday)
2309 ("ruby-jwt" ,ruby-jwt)
2310 ("ruby-multi-json" ,ruby-multi-json)
2311 ("ruby-multi-xml" ,ruby-multi-xml)
2312 ("ruby-rack" ,ruby-rack)))
2313 (synopsis "Ruby wrapper for the OAuth 2.0")
2314 (description
2315 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2316 with a similar style to the original OAuth spec.")
2317 (home-page "https://github.com/oauth-xx/oauth2")
2318 (license license:expat)))
2319
2320 (define-public ruby-omniauth
2321 (package
2322 (name "ruby-omniauth")
2323 (version "1.9.1")
2324 (source
2325 (origin
2326 (method url-fetch)
2327 (uri (rubygems-uri "omniauth" version))
2328 (sha256
2329 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2330 (build-system ruby-build-system)
2331 (arguments
2332 '(#:tests? #f)) ; No included tests
2333 (propagated-inputs
2334 `(("ruby-hashie" ,ruby-hashie)
2335 ("ruby-rack" ,ruby-rack)))
2336 (synopsis "Generalized Rack framework for multiple-provider authentication")
2337 (description
2338 "This package provides a generalized Rack framework for multiple-provider
2339 authentication.")
2340 (home-page "https://github.com/omniauth/omniauth")
2341 (license license:expat)))
2342
2343 (define-public ruby-omniauth-oauth2
2344 (package
2345 (name "ruby-omniauth-oauth2")
2346 (version "1.6.0")
2347 (source
2348 (origin
2349 (method url-fetch)
2350 (uri (rubygems-uri "omniauth-oauth2" version))
2351 (sha256
2352 (base32
2353 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2354 (build-system ruby-build-system)
2355 (arguments
2356 '(#:phases
2357 (modify-phases %standard-phases
2358 (add-after 'unpack 'remove-unnecessary-dependencies
2359 (lambda _
2360 ;; The coveralls gem submits coverage information to an online
2361 ;; service, and is unnecessary when running the tests
2362 (substitute* "Gemfile"
2363 ((".*coveralls\"") ""))
2364 (substitute* "spec/helper.rb"
2365 (("require \"coveralls\"") "")
2366 (("Coveralls::SimpleCov::Formatter") ""))
2367 #t)))))
2368 (propagated-inputs
2369 `(("ruby-oauth2" ,ruby-oauth2)
2370 ("ruby-omniauth" ,ruby-omniauth)))
2371 (native-inputs
2372 `(("bundler" ,bundler)
2373 ("ruby-rspec" ,ruby-rspec)
2374 ("ruby-simplecov" ,ruby-simplecov)
2375 ("ruby-rack-test" ,ruby-rack-test)
2376 ("ruby-webmock" ,ruby-webmock)))
2377 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2378 (description
2379 "This library provides a generic OAuth2 strategy for OmniAuth. It
2380 doesn't provide a way to gather user information, so should be used as a
2381 building block for authentication strategies.")
2382 (home-page "https://github.com/omniauth/omniauth-oauth2")
2383 (license license:expat)))
2384
2385 (define-public ruby-open4
2386 (package
2387 (name "ruby-open4")
2388 (version "1.3.4")
2389 (source
2390 (origin
2391 (method url-fetch)
2392 (uri (rubygems-uri "open4" version))
2393 (sha256
2394 (base32
2395 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2396 (build-system ruby-build-system)
2397 (arguments
2398 '(#:phases
2399 (modify-phases %standard-phases
2400 (add-after 'unpack 'patch
2401 (lambda _
2402 (substitute* "rakefile"
2403 ;; Update the Rakefile so it works
2404 (("-rubygems") "-rrubygems")
2405 (("Config") "RbConfig"))
2406 #t))
2407 (add-before 'check 'set-LIB
2408 (lambda _
2409 ;; This is used in the rakefile when running the tests
2410 (setenv "LIB" "open4")
2411 #t)))))
2412 (synopsis "Open child processes from Ruby and manage them easily")
2413 (description
2414 "@code{Open4} is a Ruby library to run child processes and manage their
2415 input and output.")
2416 (home-page "https://github.com/ahoward/open4")
2417 (license license:ruby)))
2418
2419 (define-public ruby-options
2420 (package
2421 (name "ruby-options")
2422 (version "2.3.2")
2423 (source
2424 (origin
2425 (method url-fetch)
2426 (uri (rubygems-uri "options" version))
2427 (sha256
2428 (base32
2429 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2430 (build-system ruby-build-system)
2431 (arguments
2432 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2433 #:phases
2434 (modify-phases %standard-phases
2435 (add-before 'check 'set-LIB
2436 (lambda _
2437 ;; This is used in the Rakefile, and setting it avoids an issue
2438 ;; with running the tests.
2439 (setenv "LIB" "options")
2440 #t)))))
2441 (synopsis "Ruby library to parse options from *args cleanly")
2442 (description
2443 "The @code{options} library helps with parsing keyword options in Ruby
2444 functions.")
2445 (home-page "https://github.com/ahoward/options")
2446 (license license:ruby)))
2447
2448 (define-public ruby-erubi
2449 (package
2450 (name "ruby-erubi")
2451 (version "1.8.0")
2452 (source
2453 (origin
2454 (method url-fetch)
2455 (uri (rubygems-uri "erubi" version))
2456 (sha256
2457 (base32
2458 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2459 (build-system ruby-build-system)
2460 (synopsis "ERB template engine for Ruby")
2461 (description
2462 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2463 Erubis")
2464 (home-page "https://github.com/jeremyevans/erubi")
2465 (license license:expat)))
2466
2467 (define-public ruby-erubis
2468 (package
2469 (name "ruby-erubis")
2470 (version "2.7.0")
2471 (source
2472 (origin
2473 (method url-fetch)
2474 (uri (rubygems-uri "erubis" version))
2475 (sha256
2476 (base32
2477 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2478 (build-system ruby-build-system)
2479 (arguments
2480 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2481 (synopsis "Implementation of embedded Ruby (eRuby)")
2482 (description
2483 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2484 features such as multi-language support, auto escaping, auto trimming spaces
2485 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2486 support.")
2487 (home-page "http://www.kuwata-lab.com/erubis/")
2488 (license license:expat)))
2489
2490 (define-public ruby-ethon
2491 (package
2492 (name "ruby-ethon")
2493 (version "0.12.0")
2494 (source
2495 (origin
2496 (method url-fetch)
2497 (uri (rubygems-uri "ethon" version))
2498 (sha256
2499 (base32
2500 "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9"))))
2501 (build-system ruby-build-system)
2502 (arguments
2503 `(#:tests? #f)) ; no included tests
2504 (inputs
2505 `(("curl" ,curl)))
2506 (propagated-inputs
2507 `(("ruby-ffi" ,ruby-ffi)))
2508 (synopsis "Very lightweight @code{libcurl} wrapper")
2509 (description
2510 "Ethon is a very basic @code{libcurl} wrapper using ffi.")
2511 (home-page "https://github.com/typhoeus/ethon")
2512 (license license:expat)))
2513
2514 (define-public ruby-execjs
2515 (package
2516 (name "ruby-execjs")
2517 (version "2.7.0")
2518 (source
2519 (origin
2520 ;; fetch from github as the gem does not contain testing code
2521 (method git-fetch)
2522 (uri (git-reference
2523 (url "https://github.com/rails/execjs")
2524 (commit (string-append "v" version))))
2525 (file-name (git-file-name name version))
2526 (sha256
2527 (base32
2528 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2529 (build-system ruby-build-system)
2530 (native-inputs
2531 `(("bundler" ,bundler)
2532 ;; The test suite tests all the available backends. Currenly, this just
2533 ;; means the node backend.
2534 ;;
2535 ;; PASSED: test:node
2536 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2537 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2538 ("node" ,node)))
2539 (synopsis "Run JavaScript code from Ruby")
2540 (description
2541 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2542 runtime to evaluate your JavaScript program, then returns the result to you as
2543 a Ruby object.")
2544 (home-page "https://github.com/rails/execjs")
2545 (license license:expat)))
2546
2547 (define-public ruby-fakefs
2548 (package
2549 (name "ruby-fakefs")
2550 (version "1.2.2")
2551 (home-page "https://github.com/fakefs/fakefs")
2552 (source (origin
2553 ;; The Rubygems release does not contain tests.
2554 (method git-fetch)
2555 (uri (git-reference
2556 (url home-page)
2557 (commit (string-append "v" version))))
2558 (file-name (git-file-name name version))
2559 (sha256
2560 (base32
2561 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2562 (build-system ruby-build-system)
2563 (arguments
2564 '(#:phases (modify-phases %standard-phases
2565 (replace 'replace-git-ls-files
2566 (lambda _
2567 (substitute* "fakefs.gemspec"
2568 (("`git ls-files lib README.md LICENSE`")
2569 "`find lib README.md LICENSE -type f | sort`"))
2570 #t))
2571 (add-before 'check 'remove-version-constraints
2572 (lambda _
2573 ;; Drop hard version requirements for test dependencies.
2574 (substitute* "fakefs.gemspec"
2575 (("(.*add_development_dependency .*), .*" _ dep)
2576 (string-append dep "\n")))
2577 #t)))))
2578 (native-inputs
2579 `(("ruby-bump" ,ruby-bump)
2580 ("ruby-maxitest" ,ruby-maxitest)
2581 ("ruby-rubocop" ,ruby-rubocop)
2582 ("ruby-rspec" ,ruby-rspec)))
2583 (synopsis "Fake file system for Ruby")
2584 (description
2585 "This package provides a fake file system for use in test suites. It
2586 avoids the need for manually creating temporary directories, or dealing
2587 with platform intricacies in @code{File} and @code{FileUtils}.")
2588 (license license:expat)))
2589
2590 (define-public ruby-orderedhash
2591 (package
2592 (name "ruby-orderedhash")
2593 (version "0.0.6")
2594 (source (origin
2595 (method url-fetch)
2596 (uri (rubygems-uri "orderedhash" version))
2597 (sha256
2598 (base32
2599 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2600 (build-system ruby-build-system)
2601 (arguments
2602 '(#:tests? #f)) ; no test suite
2603 (synopsis "Ruby library providing an order-preserving hash")
2604 (description "Orderedhash is a Ruby library providing a hash
2605 implementation that preserves the order of items and features some array-like
2606 extensions.")
2607 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2608 (license license:public-domain)))
2609
2610 (define-public ruby-libxml
2611 (package
2612 (name "ruby-libxml")
2613 (version "3.0.0")
2614 (source
2615 (origin
2616 (method url-fetch)
2617 (uri (rubygems-uri "libxml-ruby" version))
2618 (sha256
2619 (base32
2620 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2621 (build-system ruby-build-system)
2622 (inputs
2623 `(("zlib" ,zlib)
2624 ("libxml2" ,libxml2)))
2625 (arguments
2626 '(#:tests? #f ; test suite hangs for unknown reason
2627 #:gem-flags
2628 (list "--no-document" ; TODO: Re-enable when documentation
2629 ; generation works
2630 "--"
2631 (string-append "--with-xml2-include="
2632 (assoc-ref %build-inputs "libxml2")
2633 "/include/libxml2" ))))
2634 (synopsis "Ruby bindings for GNOME Libxml2")
2635 (description "The Libxml-Ruby project provides Ruby language bindings for
2636 the GNOME Libxml2 XML toolkit.")
2637 (home-page "https://xml4r.github.com/libxml-ruby")
2638 (license license:expat)))
2639
2640 (define-public ruby-lino
2641 (package
2642 (name "ruby-lino")
2643 (version "1.1.0")
2644 (source
2645 (origin
2646 (method url-fetch)
2647 (uri (rubygems-uri "lino" version))
2648 (sha256
2649 (base32
2650 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2651 (build-system ruby-build-system)
2652 (arguments
2653 '(#:tests? #f)) ; No included tests
2654 (propagated-inputs
2655 `(("ruby-hamster" ,ruby-hamster)
2656 ("ruby-open4" ,ruby-open4)))
2657 (synopsis "Build and execute commands in Ruby")
2658 (description
2659 "@code{Lino} provides an interface to run external commands. It provides
2660 an interface to add options as well as managing the standard input, output and
2661 error streams.")
2662 (home-page "https://github.com/tobyclemson/lino")
2663 (license license:expat)))
2664
2665 (define-public ruby-xml-simple
2666 (package
2667 (name "ruby-xml-simple")
2668 (version "1.1.5")
2669 (source (origin
2670 (method url-fetch)
2671 (uri (rubygems-uri "xml-simple" version))
2672 (sha256
2673 (base32
2674 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2675 (build-system ruby-build-system)
2676 (arguments
2677 '(#:tests? #f)) ; no test suite
2678 (synopsis "Simple Ruby library for XML processing")
2679 (description "This library provides a simple API for XML processing in
2680 Ruby.")
2681 (home-page "https://github.com/maik/xml-simple")
2682 (license license:ruby)))
2683
2684 (define-public ruby-thor
2685 (package
2686 (name "ruby-thor")
2687 (version "1.0.1")
2688 (source (origin
2689 ;; Pull from git because the gem has no tests.
2690 (method git-fetch)
2691 (uri (git-reference
2692 (url "https://github.com/erikhuda/thor")
2693 (commit (string-append "v" version))))
2694 (file-name (git-file-name name version))
2695 (sha256
2696 (base32
2697 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2698 (build-system ruby-build-system)
2699 (arguments
2700 '(#:phases (modify-phases %standard-phases
2701 (add-after 'unpack 'fix-readline-tests
2702 (lambda _
2703 ;; Ensure Readline is initialized before running the
2704 ;; test to avoid a type clash with the mock ::Readline.
2705 ;; See <https://github.com/erikhuda/thor/pull/717>.
2706 (substitute* "spec/line_editor/readline_spec.rb"
2707 (("unless defined\\? ::Readline" all)
2708 (string-append "Thor::LineEditor::Readline.available?\n"
2709 all)))
2710 #t))
2711 (add-after 'unpack 'remove-coveralls-dependency
2712 (lambda _
2713 ;; Do not hook the test suite into the online
2714 ;; coveralls service.
2715 (substitute* "Gemfile"
2716 ((".*coveralls.*") ""))
2717 (substitute* "spec/helper.rb"
2718 (("require \"coveralls\"") "")
2719 (("Coveralls::SimpleCov::Formatter") "")
2720 ;; Also drop the WebMock dependency which is only
2721 ;; present to allow a coveralls.io connection, and
2722 ;; would otherwise introduce a circular dependency.
2723 (("require \"webmock/rspec\"") "")
2724 (("WebMock\\.disable_net_connect.*") ""))
2725 #t))
2726 (add-after 'unpack 'disable-network-tests
2727 (lambda _
2728 ;; These tests attempt to look up example.com.
2729 (substitute* "spec/actions/file_manipulation_spec.rb"
2730 (("it \"accepts (https?) remote sources" _ proto)
2731 (string-append "xit \"accepts " proto " remote sources")))
2732 #t))
2733 (add-after 'unpack 'disable-quality-tests
2734 (lambda _
2735 ;; These tests attempt to check the git repository for
2736 ;; tabs vs spaces, double vs single quotes, etc, and
2737 ;; depend on the git checkout.
2738 (delete-file "spec/quality_spec.rb")
2739 #t))
2740 (add-before 'check 'make-files-writable
2741 (lambda _
2742 ;; The tests needs rw access to the test suite.
2743 (for-each make-file-writable (find-files "spec"))
2744 #t))
2745 (replace 'check
2746 (lambda _
2747 (invoke "rspec" "spec"))))))
2748 (native-inputs
2749 `(("ruby-rspec" ,ruby-rspec)
2750 ("ruby-simplecov" ,ruby-simplecov)))
2751 (synopsis "Ruby toolkit for building command-line interfaces")
2752 (description "Thor is a toolkit for building powerful command-line
2753 interfaces.")
2754 (home-page "http://whatisthor.com/")
2755 (license license:expat)))
2756
2757 (define-public ruby-lumberjack
2758 (package
2759 (name "ruby-lumberjack")
2760 (version "1.0.13")
2761 (source (origin
2762 (method url-fetch)
2763 (uri (rubygems-uri "lumberjack" version))
2764 (sha256
2765 (base32
2766 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2767 (build-system ruby-build-system)
2768 (native-inputs
2769 `(("ruby-rspec" ,ruby-rspec)
2770 ("ruby-timecop" ,ruby-timecop)))
2771 (synopsis "Logging utility library for Ruby")
2772 (description "Lumberjack is a simple logging utility that can be a drop in
2773 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2774 for automatically rolling log files even with multiple processes writing the
2775 same log file.")
2776 (home-page "https://github.com/bdurand/lumberjack")
2777 (license license:expat)))
2778
2779 (define-public ruby-rbnacl
2780 (package
2781 (name "ruby-rbnacl")
2782 (version "6.0.1")
2783 (source
2784 (origin
2785 (method url-fetch)
2786 (uri (rubygems-uri "rbnacl" version))
2787 (sha256
2788 (base32
2789 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2790 (build-system ruby-build-system)
2791 (arguments
2792 `(#:phases
2793 (modify-phases %standard-phases
2794 (add-after 'unpack 'remove-unnecessary-dependencies
2795 (lambda _
2796 ;; Coveralls relates to a network service, and Rubocop to code
2797 ;; linting and both are unnecessary to run the tests
2798 (substitute* "Gemfile"
2799 ((".*rubocop.*") "\n")
2800 ((".*guard-rspec.*") "\n")
2801 ((".*coveralls.*") "\n"))
2802 (substitute* "spec/spec_helper.rb"
2803 (("require \"coveralls\"") "")
2804 (("Coveralls.wear!") ""))
2805 #t))
2806 (add-after 'unpack 'use-libsodium-from-store
2807 (lambda* (#:key inputs #:allow-other-keys)
2808 (substitute* '("lib/rbnacl/init.rb"
2809 "lib/rbnacl/sodium.rb")
2810 (("ffi_lib \\[.+\\]")
2811 (string-append "ffi_lib [\""
2812 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2813 "\"]")))
2814 #t))
2815 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2816 (replace 'check
2817 (lambda* (#:key tests? #:allow-other-keys)
2818 (when tests?
2819 (invoke "rspec"))
2820 #t)))))
2821 (propagated-inputs
2822 `(("ruby-ffi" ,ruby-ffi)))
2823 (inputs
2824 `(("libsodium" ,libsodium)))
2825 (native-inputs
2826 `(("bundler" ,bundler)
2827 ("ruby-rspec" ,ruby-rspec)))
2828 (synopsis "Ruby FFI binding to libsodium")
2829 (description
2830 "This package provides Ruby FFI bindings to the Networking and
2831 Cryptography (NaCl) library, also known as libsodium. This provides a
2832 high-level toolkit for building cryptographic systems and protocols.")
2833 (home-page "https://github.com/crypto-rb/rbnacl")
2834 (license license:expat)))
2835
2836 (define-public ruby-nenv
2837 (package
2838 (name "ruby-nenv")
2839 (version "0.3.0")
2840 (source (origin
2841 (method url-fetch)
2842 (uri (rubygems-uri "nenv" version))
2843 (sha256
2844 (base32
2845 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2846 (build-system ruby-build-system)
2847 (arguments
2848 `(#:tests? #f)) ; no tests included
2849 (native-inputs
2850 `(("ruby-rspec" ,ruby-rspec)
2851 ("bundler" ,bundler)))
2852 (synopsis "Ruby interface for modifying the environment")
2853 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2854 and inspect the environment.")
2855 (home-page "https://github.com/e2/nenv")
2856 (license license:expat)))
2857
2858 (define-public ruby-ptools
2859 (package
2860 (name "ruby-ptools")
2861 (version "1.3.5")
2862 (source (origin
2863 (method url-fetch)
2864 (uri (rubygems-uri "ptools" version))
2865 (sha256
2866 (base32
2867 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2868 (build-system ruby-build-system)
2869 (arguments
2870 '(#:phases (modify-phases %standard-phases
2871 (add-after 'unpack 'patch-/bin/ls
2872 (lambda _
2873 (substitute* "test/test_binary.rb"
2874 (("/bin/ls")
2875 (which "ls")))
2876 #t))
2877 (add-before 'install 'create-gem
2878 (lambda _
2879 ;; Do not attempt to sign the gem.
2880 (substitute* "Rakefile"
2881 (("spec\\.signing_key = .*")
2882 ""))
2883 (invoke "rake" "gem:create"))))))
2884 (synopsis "Extra methods for Ruby's @code{File} class")
2885 (description
2886 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2887 class with many additional methods modelled after common POSIX tools, such as
2888 @code{File.which} for finding executables, @code{File.tail} to print the last
2889 lines of a file, @code{File.wc} to count words, and so on.")
2890 (home-page "https://github.com/djberg96/ptools")
2891 (license license:artistic2.0)))
2892
2893 (define-public ruby-permutation
2894 (package
2895 (name "ruby-permutation")
2896 (version "0.1.8")
2897 (source (origin
2898 (method url-fetch)
2899 (uri (rubygems-uri "permutation" version))
2900 (sha256
2901 (base32
2902 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2903 (build-system ruby-build-system)
2904 (arguments
2905 `(#:phases
2906 (modify-phases %standard-phases
2907 (add-after 'unpack 'fix-rakefile
2908 (lambda _
2909 (substitute* "Rakefile"
2910 (("require 'rake/gempackagetask'")
2911 "require 'rubygems/package_task'")
2912 (("include Config") ""))
2913 #t))
2914 (replace 'check
2915 (lambda _
2916 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2917 (synopsis "Library to perform operations with sequence permutations")
2918 (description "This package provides a Ruby library to perform different
2919 operations with permutations of sequences, such as strings and arrays.")
2920 (home-page "https://flori.github.io/permutation")
2921 (license license:gpl2))) ; GPL 2 only
2922
2923 (define-public ruby-shellany
2924 (package
2925 (name "ruby-shellany")
2926 (version "0.0.1")
2927 (source (origin
2928 (method url-fetch)
2929 (uri (rubygems-uri "shellany" version))
2930 (sha256
2931 (base32
2932 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2933 (build-system ruby-build-system)
2934 (arguments
2935 `(#:test-target "default"
2936 #:phases
2937 (modify-phases %standard-phases
2938 (add-after 'unpack 'fix-version-test
2939 (lambda _
2940 (substitute* "spec/shellany_spec.rb"
2941 (("^RSpec") "require \"shellany\"\nRSpec"))
2942 #t)))))
2943 (native-inputs
2944 `(("ruby-rspec" ,ruby-rspec)
2945 ("ruby-nenv" ,ruby-nenv)
2946 ("bundler" ,bundler)))
2947 (synopsis "Capture command output")
2948 (description "Shellany is a Ruby library providing functions to capture
2949 the output produced by running shell commands.")
2950 (home-page "https://rubygems.org/gems/shellany")
2951 (license license:expat)))
2952
2953 (define-public ruby-notiffany
2954 (package
2955 (name "ruby-notiffany")
2956 (version "0.1.3")
2957 (source (origin
2958 (method url-fetch)
2959 (uri (rubygems-uri "notiffany" version))
2960 (sha256
2961 (base32
2962 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2963 (build-system ruby-build-system)
2964 ;; Tests are not included in the gem.
2965 (arguments `(#:tests? #f))
2966 (propagated-inputs
2967 `(("ruby-shellany" ,ruby-shellany)
2968 ("ruby-nenv" ,ruby-nenv)))
2969 (native-inputs
2970 `(("bundler" ,bundler)))
2971 (synopsis "Wrapper library for notification libraries")
2972 (description "Notiffany is a Ruby wrapper library for notification
2973 libraries such as Libnotify.")
2974 (home-page "https://github.com/guard/notiffany")
2975 (license license:expat)))
2976
2977 (define-public ruby-forking-test-runner
2978 (package
2979 (name "ruby-forking-test-runner")
2980 (version "1.6.0")
2981 (home-page "https://github.com/grosser/forking_test_runner")
2982 (source (origin
2983 (method git-fetch)
2984 (uri (git-reference (url home-page)
2985 (commit (string-append "v" version))))
2986 (file-name (git-file-name name version))
2987 (sha256
2988 (base32
2989 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2990 (build-system ruby-build-system)
2991 (arguments
2992 '(#:test-target "spec"
2993 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2994 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2995 #:tests? #f
2996 #:phases (modify-phases %standard-phases
2997 (replace 'replace-git-ls-files
2998 (lambda _
2999 (substitute* "forking_test_runner.gemspec"
3000 (("`git ls-files lib/ bin/ MIT-LICENSE`")
3001 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
3002 #t))
3003 (add-before 'check 'remove-version-constraints
3004 (lambda _
3005 ;; Ignore hard coded version constraints for the tests.
3006 (delete-file "Gemfile.lock")
3007 #t))
3008 (add-before 'check 'set-HOME
3009 (lambda _
3010 ;; Many tests invoke Bundler, and fails when Bundler
3011 ;; warns that /homeless-shelter does not exist.
3012 (setenv "HOME" "/tmp")
3013 #t)))))
3014 (native-inputs
3015 `(("ruby-activerecord" ,ruby-activerecord)
3016 ("ruby-bump" ,ruby-bump)
3017 ("ruby-rspec" ,ruby-rspec)
3018 ("ruby-sqlite3" ,ruby-sqlite3)
3019 ("ruby-wwtd" ,ruby-wwtd)))
3020 (propagated-inputs
3021 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
3022 (synopsis "Run every test in a fork")
3023 (description
3024 "This package is a wrapper around @code{parallel_tests} that runs every
3025 test in a fork to avoid pollution and get clean output per test.")
3026 (license license:expat)))
3027
3028 (define-public ruby-formatador
3029 (package
3030 (name "ruby-formatador")
3031 (version "0.2.5")
3032 (source (origin
3033 (method url-fetch)
3034 (uri (rubygems-uri "formatador" version))
3035 (sha256
3036 (base32
3037 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
3038 (build-system ruby-build-system)
3039 ;; Circular dependency: Tests require ruby-shindo, which requires
3040 ;; ruby-formatador at runtime.
3041 (arguments `(#:tests? #f))
3042 (synopsis "Ruby library to format text on stdout")
3043 (description "Formatador is a Ruby library to format text printed to the
3044 standard output stream.")
3045 (home-page "https://github.com/geemus/formatador")
3046 (license license:expat)))
3047
3048 (define-public ruby-fuubar
3049 (package
3050 (name "ruby-fuubar")
3051 (version "2.3.2")
3052 (source
3053 (origin
3054 ;; Fetch from the git repository, as the gem package doesn't include
3055 ;; the tests.
3056 (method git-fetch)
3057 (uri (git-reference
3058 (url "https://github.com/thekompanee/fuubar")
3059 (commit (string-append "releases/v" version))))
3060 (file-name (git-file-name name version))
3061 (sha256
3062 (base32
3063 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
3064 (build-system ruby-build-system)
3065 (arguments
3066 '(;; TODO: Some tests fail, unsure why.
3067 ;; 21 examples, 7 failures
3068 #:tests? #f
3069 #:phases
3070 (modify-phases %standard-phases
3071 (add-before 'build 'delete-certificate
3072 (lambda _
3073 ;; Remove 's.cert_chain' as we do not build with a private key
3074 (substitute* "fuubar.gemspec"
3075 ((".*cert_chain.*") "")
3076 ((".*signing_key.*") ""))
3077 #t))
3078 (replace 'check
3079 (lambda* (#:key tests? #:allow-other-keys)
3080 (when tests?
3081 (invoke "rspec"))
3082 #t)))))
3083 (native-inputs
3084 `(("bundler" ,bundler)))
3085 (propagated-inputs
3086 `(("ruby-rspec-core" ,ruby-rspec-core)
3087 ("ruby-progressbar" ,ruby-progressbar)))
3088 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
3089 (description
3090 "Fuubar is an RSpec formatter that uses a progress bar instead of a
3091 string of letters and dots as feedback. It also stops on the first test
3092 failure.")
3093 (home-page "https://github.com/thekompanee/fuubar")
3094 (license license:expat)))
3095
3096 (define-public ruby-haml
3097 (package
3098 (name "ruby-haml")
3099 (version "5.0.4")
3100 (source
3101 (origin
3102 (method url-fetch)
3103 (uri (rubygems-uri "haml" version))
3104 (sha256
3105 (base32
3106 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
3107 (build-system ruby-build-system)
3108 (arguments
3109 '(#:tests? #f)) ; No included tests
3110 (propagated-inputs
3111 `(("ruby-tilt" ,ruby-tilt)
3112 ("ruby-temple" ,ruby-temple)))
3113 (synopsis "Haml is a Ruby library to generate HTML documents")
3114 (description
3115 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
3116 HTML or XML that is designed to express the structure of documents using
3117 indentation rather than closing tags. It was originally envisioned as a
3118 plugin for Ruby on Rails, but it can function as a stand-alone templating
3119 engine.")
3120 (home-page "http://haml.info/")
3121 (license license:expat)))
3122
3123 (define-public ruby-hamster
3124 (package
3125 (name "ruby-hamster")
3126 (version "3.0.0")
3127 (source
3128 (origin
3129 (method url-fetch)
3130 (uri (rubygems-uri "hamster" version))
3131 (sha256
3132 (base32
3133 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
3134 (build-system ruby-build-system)
3135 (arguments
3136 '(#:phases
3137 (modify-phases %standard-phases
3138 (add-after 'unpack 'remove-unnecessary-dependencies
3139 (lambda _
3140 ;; pry is a debugging tool, and is unnecessary when running the
3141 ;; tests
3142 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
3143 (("require 'pry'") ""))
3144 (substitute* "spec/spec_helper.rb"
3145 (("require \"pry\"") "")
3146 ;; CodeClimate is an online service, and is unnecessary for
3147 ;; running the tests
3148 (("require \"codeclimate-test-reporter\"") "")
3149 (("CodeClimate.*\n") ""))
3150 #t))
3151 ;; No Rakefile is included, so run rspec directly.
3152 (replace 'check
3153 (lambda* (#:key tests? #:allow-other-keys)
3154 (when tests?
3155 (invoke "rspec"))
3156 #t)))))
3157 (propagated-inputs
3158 `(("ruby-concurrent" ,ruby-concurrent)))
3159 (native-inputs
3160 `(("ruby-rspec" ,ruby-rspec)))
3161 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
3162 (description
3163 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
3164 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
3165 immutable queue or stack).")
3166 (home-page "https://github.com/hamstergem/hamster")
3167 (license license:expat)))
3168
3169 (define-public ruby-hashdiff
3170 (package
3171 (name "ruby-hashdiff")
3172 (version "1.0.1")
3173 (source
3174 (origin
3175 (method url-fetch)
3176 (uri (rubygems-uri "hashdiff" version))
3177 (sha256
3178 (base32
3179 "1nynpl0xbj0nphqx1qlmyggq58ms1phf5i03hk64wcc0a17x1m1c"))))
3180 (build-system ruby-build-system)
3181 (arguments
3182 '(#:phases
3183 (modify-phases %standard-phases
3184 ;; Run tests directly via rspec to avoid depending on rubocop.
3185 (replace 'check
3186 (lambda* (#:key tests? #:allow-other-keys)
3187 (when tests?
3188 (invoke "rspec"))
3189 #t)))))
3190 (native-inputs
3191 `(("bundler" ,bundler)
3192 ("ruby-rspec" ,ruby-rspec-2)))
3193 (synopsis "HashDiff computes the smallest difference between two hashes")
3194 (description
3195 "HashDiff is a Ruby library to compute the smallest difference between
3196 two hashes.")
3197 (home-page "https://github.com/liufengyun/hashdiff")
3198 (license license:expat)))
3199
3200 (define-public ruby-hydra
3201 ;; No releases yet.
3202 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
3203 (revision "0"))
3204 (package
3205 (name "ruby-hydra")
3206 (version (git-version "0.0" revision commit))
3207 (home-page "https://github.com/hyphenation/hydra")
3208 (source (origin
3209 (method git-fetch)
3210 (uri (git-reference (url home-page) (commit commit)))
3211 (file-name (git-file-name name version))
3212 (sha256
3213 (base32
3214 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3215 (build-system ruby-build-system)
3216 (arguments
3217 '(#:phases (modify-phases %standard-phases
3218 (add-after 'unpack 'make-files-writable
3219 (lambda _
3220 (for-each make-file-writable (find-files "."))
3221 #t))
3222 (replace 'check
3223 (lambda _
3224 (invoke "rspec"))))))
3225 (native-inputs
3226 `(("ruby-rspec" ,ruby-rspec)))
3227 (propagated-inputs
3228 `(("ruby-byebug" ,ruby-byebug)))
3229 (synopsis "Ruby hyphenation patterns")
3230 (description
3231 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3232 (license license:expat))))
3233
3234 (define-public ruby-shindo
3235 (package
3236 (name "ruby-shindo")
3237 (version "0.3.8")
3238 (source (origin
3239 (method url-fetch)
3240 (uri (rubygems-uri "shindo" version))
3241 (sha256
3242 (base32
3243 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3244 (build-system ruby-build-system)
3245 (arguments
3246 `(#:test-target "shindo_tests"
3247 #:phases
3248 (modify-phases %standard-phases
3249 (add-after 'unpack 'fix-tests
3250 (lambda _
3251 (substitute* "tests/tests_helper.rb"
3252 (("-rubygems") ""))
3253 (substitute* "Rakefile"
3254 (("system \"shindo") "system \"./bin/shindo")
3255 ;; This test doesn't work, so we disable it.
3256 (("fail \"The build_error test should fail") "#")
3257 ((" -rubygems") ""))
3258 #t)))))
3259 (propagated-inputs
3260 `(("ruby-formatador" ,ruby-formatador)))
3261 (synopsis "Simple depth first Ruby testing")
3262 (description "Shindo is a simple depth first testing library for Ruby.")
3263 (home-page "https://github.com/geemus/shindo")
3264 (license license:expat)))
3265
3266 (define-public ruby-rubygems-tasks
3267 (package
3268 (name "ruby-rubygems-tasks")
3269 (version "0.2.5")
3270 (source (origin
3271 (method url-fetch)
3272 (uri (rubygems-uri "rubygems-tasks" version))
3273 (sha256
3274 (base32
3275 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3276 (build-system ruby-build-system)
3277 ;; Tests need Internet access.
3278 (arguments `(#:tests? #f))
3279 (native-inputs
3280 `(("ruby-rspec" ,ruby-rspec)
3281 ("ruby-yard" ,ruby-yard)))
3282 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3283 (description "Rubygems-task provides Rake tasks for managing and releasing
3284 Ruby Gems.")
3285 (home-page "https://github.com/postmodern/rubygems-tasks")
3286 (license license:expat)))
3287
3288 (define-public ruby-rubyzip
3289 (package
3290 (name "ruby-rubyzip")
3291 (version "1.2.1")
3292 (source
3293 (origin
3294 (method url-fetch)
3295 (uri (rubygems-uri "rubyzip" version))
3296 (sha256
3297 (base32
3298 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3299 (build-system ruby-build-system)
3300 (arguments
3301 '(#:phases
3302 (modify-phases %standard-phases
3303 (add-before 'check 'patch-tests
3304 (lambda* (#:key inputs #:allow-other-keys)
3305 (substitute* "test/gentestfiles.rb"
3306 (("/usr/bin/zip")
3307 (string-append
3308 (assoc-ref inputs "zip") "/bin/zip")))
3309 (substitute* "test/input_stream_test.rb"
3310 (("/usr/bin/env ruby") (which "ruby")))
3311 #t)))))
3312 (native-inputs
3313 `(("bundler" ,bundler)
3314 ("ruby-simplecov" ,ruby-simplecov)
3315 ("zip" ,zip)
3316 ("unzip" ,unzip)))
3317 (synopsis "Ruby module is for reading and writing zip files")
3318 (description
3319 "The rubyzip module provides ways to read from and create zip files.")
3320 (home-page "https://github.com/rubyzip/rubyzip")
3321 (license license:bsd-2)))
3322
3323 (define-public ruby-simplecov-html
3324 (package
3325 (name "ruby-simplecov-html")
3326 (version "0.10.2")
3327 (source (origin
3328 (method url-fetch)
3329 (uri (rubygems-uri "simplecov-html" version))
3330 (sha256
3331 (base32
3332 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3333 (build-system ruby-build-system)
3334 (arguments `(#:tests? #f)) ; there are no tests
3335 (native-inputs
3336 `(("bundler" ,bundler)))
3337 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3338 (description "This package provides the default HTML formatter for
3339 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3340 (home-page "https://github.com/colszowka/simplecov-html")
3341 (license license:expat)))
3342
3343 (define-public ruby-simplecov
3344 (package
3345 (name "ruby-simplecov")
3346 (version "0.17.1")
3347 (source (origin
3348 (method url-fetch)
3349 (uri (rubygems-uri "simplecov" version))
3350 (sha256
3351 (base32
3352 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3353 (build-system ruby-build-system)
3354 ;; Simplecov depends on rubocop for code style checking at build time.
3355 ;; Rubocop needs simplecov at build time.
3356 (arguments `(#:tests? #f))
3357 (propagated-inputs
3358 `(("ruby-json" ,ruby-json)
3359 ("ruby-docile" ,ruby-docile)
3360 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3361 (native-inputs
3362 `(("bundler" ,bundler)))
3363 (synopsis "Code coverage framework for Ruby")
3364 (description "SimpleCov is a code coverage framework for Ruby with a
3365 powerful configuration library and automatic merging of coverage across test
3366 suites.")
3367 (home-page "https://github.com/colszowka/simplecov")
3368 (license license:expat)))
3369
3370 (define-public ruby-useragent
3371 (package
3372 (name "ruby-useragent")
3373 (version "0.16.10")
3374 (source (origin
3375 (method url-fetch)
3376 (uri (rubygems-uri "useragent" version))
3377 (sha256
3378 (base32
3379 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3380 (build-system ruby-build-system)
3381 (arguments
3382 '(#:tests? #f)) ; no test suite
3383 (synopsis "HTTP user agent parser for Ruby")
3384 (description "UserAgent is a Ruby library that parses and compares HTTP
3385 User Agents.")
3386 (home-page "https://github.com/gshutler/useragent")
3387 (license license:expat)))
3388
3389 (define-public ruby-backports
3390 (package
3391 (name "ruby-backports")
3392 (version "3.11.4")
3393 (source
3394 (origin
3395 (method url-fetch)
3396 (uri (rubygems-uri "backports" version))
3397 (sha256
3398 (base32
3399 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3400 (build-system ruby-build-system)
3401 (arguments
3402 '(;; TODO: This should be default, but there is one test failure
3403 #:test-target "all_spec"))
3404 (native-inputs
3405 `(("ruby-mspec" ,ruby-mspec)
3406 ("ruby-activesupport" ,ruby-activesupport)))
3407 (synopsis "Backports of the features in newer Ruby versions")
3408 (description
3409 "Backports enables more compatibility across Ruby versions by providing
3410 backports of some features.")
3411 (home-page "https://github.com/marcandre/backports")
3412 (license license:expat)))
3413
3414 (define-public ruby-bacon
3415 (package
3416 (name "ruby-bacon")
3417 (version "1.2.0")
3418 (source (origin
3419 (method url-fetch)
3420 (uri (rubygems-uri "bacon" version))
3421 (sha256
3422 (base32
3423 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3424 (build-system ruby-build-system)
3425 (synopsis "Small RSpec clone")
3426 (description "Bacon is a small RSpec clone providing all essential
3427 features.")
3428 (home-page "https://github.com/chneukirchen/bacon")
3429 (license license:expat)))
3430
3431 (define-public ruby-bacon-bits
3432 (package
3433 (name "ruby-bacon-bits")
3434 (version "0.1.0")
3435 (source
3436 (origin
3437 (method url-fetch)
3438 (uri (rubygems-uri "bacon-bits" version))
3439 (sha256
3440 (base32
3441 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3442 (build-system ruby-build-system)
3443 (arguments
3444 ;; No tests
3445 '(#:tests? #f))
3446 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3447 (synopsis "Extensions to Bacon, for disabling tests, before and after
3448 blocks and more")
3449 (description
3450 "This extends the bacon testing framework with useful extensions to
3451 disable tests, have before and after blocks that run once and more.")
3452 (home-page "https://github.com/cldwalker/bacon-bits")
3453 (license license:expat)))
3454
3455 (define-public ruby-bacon-colored-output
3456 (package
3457 (name "ruby-bacon-colored-output")
3458 (version "1.1.1")
3459 (source
3460 (origin
3461 (method url-fetch)
3462 (uri (rubygems-uri "bacon-colored_output" version))
3463 (sha256
3464 (base32
3465 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3466 (build-system ruby-build-system)
3467 (arguments
3468 '(;; No included tests
3469 #:tests? #f))
3470 (propagated-inputs
3471 `(("ruby-bacon" ,ruby-bacon)))
3472 (synopsis "Colored output for Bacon test framework")
3473 (description
3474 "This package adds color through ANSI escape codes to Bacon test
3475 output.")
3476 (home-page "https://github.com/whitequark/bacon-colored_output")
3477 (license license:expat)))
3478
3479 (define-public ruby-connection-pool
3480 (package
3481 (name "ruby-connection-pool")
3482 (version "2.2.2")
3483 (source (origin
3484 (method url-fetch)
3485 (uri (rubygems-uri "connection_pool" version))
3486 (sha256
3487 (base32
3488 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3489 (build-system ruby-build-system)
3490 (native-inputs
3491 `(("bundler" ,bundler)))
3492 (synopsis "Generic connection pool for Ruby")
3493 (description "Connection_pool provides a generic connection pooling
3494 interface for Ruby programs.")
3495 (home-page "https://github.com/mperham/connection_pool")
3496 (license license:expat)))
3497
3498 (define-public ruby-fast-gettext
3499 (package
3500 (name "ruby-fast-gettext")
3501 (version "2.0.3")
3502 (home-page "https://github.com/grosser/fast_gettext")
3503 (source (origin
3504 (method git-fetch)
3505 (uri (git-reference (url home-page)
3506 (commit (string-append "v" version))))
3507 (file-name (git-file-name name version))
3508 (sha256
3509 (base32
3510 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3511 (build-system ruby-build-system)
3512 (arguments
3513 '(#:test-target "spec"
3514 #:phases (modify-phases %standard-phases
3515 (add-before 'check 'remove-version-constraints
3516 (lambda _
3517 (delete-file "Gemfile.lock")
3518 #t))
3519 (add-before 'check 'remove-activerecord-test
3520 (lambda _
3521 ;; FIXME: This test fails because ActiveRecord depends on
3522 ;; a different version of ruby-sqlite than the currently
3523 ;; available one.
3524 (delete-file
3525 "spec/fast_gettext/translation_repository/db_spec.rb")
3526 #t))
3527 (add-before 'check 'disable-i18n-test
3528 (lambda _
3529 ;; XXX: This test checks i18n intricasies with Rails 3 and
3530 ;; automatically disables itself for Rails 4.0, but does
3531 ;; not know about newer versions as it has not been updated
3532 ;; since 2014. Disable for later versions of Rails too.
3533 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3534 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3535 "ActiveRecord::VERSION::MINOR == 0"))
3536 "ActiveRecord::VERSION::MAJOR >= 4"))
3537 #t)))))
3538 (native-inputs
3539 `(;; For tests.
3540 ("ruby-activerecord" ,ruby-activerecord)
3541 ("ruby-activesupport" ,ruby-activesupport)
3542 ("ruby-bump" ,ruby-bump)
3543 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3544 ("ruby-i18n" ,ruby-i18n)
3545 ("ruby-rubocop" ,ruby-rubocop)
3546 ("ruby-rspec" ,ruby-rspec)
3547 ("ruby-single-cov" ,ruby-single-cov)
3548 ("ruby-sqlite3" ,ruby-sqlite3)
3549 ("ruby-wwtd" ,ruby-wwtd)))
3550 (synopsis "Fast implementation of @code{GetText}")
3551 (description
3552 "This package provides an alternative implementation of the Ruby
3553 @code{GetText} library that is approximately 12x faster yet thread safe.")
3554 ;; Some parts are covered by the Ruby license, see file headers.
3555 (license (list license:expat license:ruby))))
3556
3557 (define-public ruby-net-http-persistent
3558 (package
3559 (name "ruby-net-http-persistent")
3560 (version "3.0.0")
3561 (source (origin
3562 (method url-fetch)
3563 (uri (rubygems-uri "net-http-persistent" version))
3564 (sha256
3565 (base32
3566 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3567 (build-system ruby-build-system)
3568 (native-inputs
3569 `(("ruby-connection-pool" ,ruby-connection-pool)
3570 ("ruby-hoe" ,ruby-hoe)))
3571 (synopsis "Persistent HTTP connection manager")
3572 (description "Net::HTTP::Persistent manages persistent HTTP connections
3573 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3574 (home-page "https://github.com/drbrain/net-http-persistent")
3575 (license license:expat)))
3576
3577 (define-public ruby-power-assert
3578 (package
3579 (name "ruby-power-assert")
3580 (version "1.1.5")
3581 (source (origin
3582 (method url-fetch)
3583 (uri (rubygems-uri "power_assert" version))
3584 (sha256
3585 (base32
3586 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3587 (build-system ruby-build-system)
3588 (arguments
3589 '(#:tests? #f)) ; No included tests
3590 (native-inputs
3591 `(("bundler" ,bundler)))
3592 (synopsis "Assert library with descriptive assertion messages")
3593 (description "Power-assert is an assertion library providing descriptive
3594 assertion messages for tests.")
3595 (home-page "https://github.com/k-tsj/power_assert")
3596 (license (list license:bsd-2 license:ruby))))
3597
3598 (define-public ruby-powerpack
3599 (package
3600 (name "ruby-powerpack")
3601 (version "0.1.2")
3602 (source
3603 (origin
3604 (method url-fetch)
3605 (uri (rubygems-uri "powerpack" version))
3606 (sha256
3607 (base32
3608 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3609 (build-system ruby-build-system)
3610 (arguments
3611 '(#:test-target "spec"))
3612 (native-inputs
3613 `(("bundler" ,bundler)
3614 ("ruby-rspec" ,ruby-rspec)
3615 ("ruby-yard" ,ruby-yard)))
3616 (synopsis "Useful extensions to core Ruby classes")
3617 (description
3618 "This package provides a few useful extensions to core Ruby classes,
3619 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3620 @code{String}.")
3621 (home-page "https://github.com/bbatsov/powerpack")
3622 (license license:expat)))
3623
3624 (define-public ruby-locale
3625 (package
3626 (name "ruby-locale")
3627 (version "2.1.2")
3628 (source (origin
3629 (method url-fetch)
3630 (uri (rubygems-uri "locale" version))
3631 (sha256
3632 (base32
3633 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3634 (build-system ruby-build-system)
3635 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3636 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3637 ;; dependency cycle we disable tests.
3638 (arguments `(#:tests? #f))
3639 (native-inputs
3640 `(("bundler" ,bundler)
3641 ("ruby-yard" ,ruby-yard)))
3642 (synopsis "Ruby library providing basic localization APIs")
3643 (description
3644 "Ruby-Locale is the pure ruby library which provides basic APIs for
3645 localization.")
3646 (home-page "https://github.com/ruby-gettext/locale")
3647 (license (list license:lgpl3+ license:ruby))))
3648
3649 (define-public ruby-temple
3650 (package
3651 (name "ruby-temple")
3652 (version "0.8.2")
3653 (source
3654 (origin
3655 (method url-fetch)
3656 (uri (rubygems-uri "temple" version))
3657 (sha256
3658 (base32
3659 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3660 (build-system ruby-build-system)
3661 (native-inputs
3662 `(("ruby-tilt" ,ruby-tilt)
3663 ("ruby-bacon" ,ruby-bacon)
3664 ("ruby-erubis" ,ruby-erubis)))
3665 (synopsis "Template compilation framework in Ruby")
3666 (description
3667 "Temple is an abstraction and framework for compiling templates to pure
3668 Ruby.")
3669 (home-page "https://github.com/judofyr/temple")
3670 (license license:expat)))
3671
3672 (define-public ruby-text
3673 (package
3674 (name "ruby-text")
3675 (version "1.3.1")
3676 (source (origin
3677 (method url-fetch)
3678 (uri (rubygems-uri "text" version))
3679 (sha256
3680 (base32
3681 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3682 (build-system ruby-build-system)
3683 (synopsis "Collection of text algorithms for Ruby")
3684 (description
3685 "This package provides a collection of text algorithms: Levenshtein,
3686 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3687 (home-page "https://github.com/threedaymonk/text")
3688 (license license:expat)))
3689
3690 (define-public ruby-gettext
3691 (package
3692 (name "ruby-gettext")
3693 (version "3.1.7")
3694 (source (origin
3695 (method url-fetch)
3696 (uri (rubygems-uri "gettext" version))
3697 (sha256
3698 (base32
3699 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3700 (build-system ruby-build-system)
3701 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3702 ;; which needs ruby-gettext. To break the dependency cycle we disable
3703 ;; tests.
3704 (arguments `(#:tests? #f))
3705 (propagated-inputs
3706 `(("ruby-locale" ,ruby-locale)
3707 ("ruby-text" ,ruby-text)))
3708 (native-inputs
3709 `(("bundler" ,bundler)
3710 ("ruby-yard" ,ruby-yard)))
3711 (synopsis "GNU gettext-like program for Ruby")
3712 (description
3713 "Gettext is a GNU gettext-like program for Ruby. The catalog
3714 file (po-file) used is the same as that used by GNU gettext, allowing you to
3715 use GNU gettext tools for maintenance.")
3716 (home-page "https://ruby-gettext.github.com/")
3717 (license (list license:lgpl3+ license:ruby))))
3718
3719 (define-public ruby-packnga
3720 (package
3721 (name "ruby-packnga")
3722 (version "1.0.4")
3723 (source (origin
3724 (method url-fetch)
3725 (uri (rubygems-uri "packnga" version))
3726 (sha256
3727 (base32
3728 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3729 (build-system ruby-build-system)
3730 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3731 ;; To break the dependency cycle we disable tests.
3732 (arguments `(#:tests? #f))
3733 (propagated-inputs
3734 `(("ruby-gettext" ,ruby-gettext)
3735 ("ruby-yard" ,ruby-yard)))
3736 (native-inputs
3737 `(("bundler" ,bundler)))
3738 (synopsis "Utility library to package internationalized libraries")
3739 (description
3740 "Packnga is a library to translate to many languages using YARD.")
3741 (home-page "http://ranguba.org/packnga/")
3742 (license license:lgpl2.0+)))
3743
3744 (define-public ruby-test-construct
3745 (package
3746 (name "ruby-test-construct")
3747 (version "2.0.1")
3748 (source
3749 (origin
3750 (method url-fetch)
3751 (uri (rubygems-uri "test_construct" version))
3752 (sha256
3753 (base32
3754 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3755 (build-system ruby-build-system)
3756 (native-inputs
3757 `(("bundler" ,bundler)
3758 ("ruby-mocha" ,ruby-mocha)
3759 ("ruby-rspec" ,ruby-rspec)))
3760 (synopsis "Creates temporary files and directories for testing")
3761 (description
3762 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3763 temporary files and directories during tests.")
3764 (home-page "https://github.com/bhb/test_construct")
3765 (license license:expat)))
3766
3767 (define-public ruby-test-unit
3768 (package
3769 (name "ruby-test-unit")
3770 (version "3.2.5")
3771 (source (origin
3772 (method url-fetch)
3773 (uri (rubygems-uri "test-unit" version))
3774 (sha256
3775 (base32
3776 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3777 (build-system ruby-build-system)
3778 (propagated-inputs
3779 `(("ruby-power-assert" ,ruby-power-assert)))
3780 (native-inputs
3781 `(("bundler" ,bundler)
3782 ("ruby-packnga" ,ruby-packnga)
3783 ("ruby-yard" ,ruby-yard)))
3784 (synopsis "Unit testing framework for Ruby")
3785 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3786 on xUnit principles. These were originally designed by Kent Beck, creator of
3787 extreme programming software development methodology, for Smalltalk's SUnit.
3788 It allows writing tests, checking results and automated testing in Ruby.")
3789 (home-page "https://test-unit.github.io/")
3790 (license (list license:psfl license:ruby))))
3791
3792 (define-public ruby-markaby
3793 (package
3794 (name "ruby-markaby")
3795 (version "0.9.0")
3796 (source
3797 (origin
3798 (method url-fetch)
3799 (uri (rubygems-uri "markaby" version))
3800 (sha256
3801 (base32
3802 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3803 (build-system ruby-build-system)
3804 (arguments
3805 '(#:phases
3806 (modify-phases %standard-phases
3807 ;; Run rspec manually without using the Rakefile, as the versions of
3808 ;; Rake and RSpec 2 are incompatible:
3809 ;;
3810 ;; NoMethodError: undefined method `last_comment'
3811 (replace 'check
3812 (lambda* (#:key tests? #:allow-other-keys)
3813 (when tests?
3814 (invoke "rspec"))
3815 #t)))))
3816 (propagated-inputs
3817 `(("ruby-builder" ,ruby-builder)))
3818 (native-inputs
3819 `(("bundler" ,bundler)
3820 ("ruby-rspec" ,ruby-rspec-2)))
3821 (synopsis "Write HTML pages in pure Ruby")
3822 (description
3823 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3824 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3825 mixture of HTML and additional ERB syntax.")
3826 (home-page "https://markaby.github.io/")
3827 (license license:expat)))
3828
3829 (define-public ruby-maruku
3830 (package
3831 (name "ruby-maruku")
3832 (version "0.7.3")
3833 (source
3834 (origin
3835 (method url-fetch)
3836 (uri (rubygems-uri "maruku" version))
3837 (sha256
3838 (base32
3839 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3840 (build-system ruby-build-system)
3841 (arguments
3842 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3843 #:tests? #f
3844 #:phases
3845 (modify-phases %standard-phases
3846 (replace 'check
3847 (lambda* (#:key tests? #:allow-other-keys)
3848 (when tests?
3849 (invoke "rspec"))
3850 #t)))))
3851 (native-inputs
3852 `(("ruby-rspec" ,ruby-rspec)
3853 ("ruby-simplecov" ,ruby-simplecov)
3854 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3855 (synopsis "Markdown interpreter in Ruby")
3856 (description
3857 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3858 HTML, and PDF through LaTeX.")
3859 (home-page "https://github.com/bhollis/maruku")
3860 (license license:expat)))
3861
3862 (define-public ruby-metaclass
3863 (package
3864 (name "ruby-metaclass")
3865 (version "0.0.4")
3866 (source (origin
3867 (method url-fetch)
3868 (uri (rubygems-uri "metaclass" version))
3869 (sha256
3870 (base32
3871 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3872 (build-system ruby-build-system)
3873 (arguments
3874 `(#:phases
3875 (modify-phases %standard-phases
3876 (add-after 'unpack 'add-test-unit-to-search-path
3877 (lambda* (#:key inputs #:allow-other-keys)
3878 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3879 (substitute* "Rakefile"
3880 (("t\\.libs << \"test\"" line)
3881 (string-append line "; t.libs << \""
3882 test-unit "/lib/ruby/vendor_ruby"
3883 "/gems/test-unit-"
3884 ,(package-version ruby-test-unit)
3885 "/lib\""))))
3886 #t)))))
3887 (native-inputs
3888 `(("bundler" ,bundler)
3889 ("ruby-test-unit" ,ruby-test-unit)))
3890 (synopsis "Ruby library adding metaclass method to all objects")
3891 (description
3892 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3893 objects.")
3894 (home-page "https://github.com/floehopper/metaclass")
3895 (license license:expat)))
3896
3897 (define-public ruby-mkmf-lite
3898 (package
3899 (name "ruby-mkmf-lite")
3900 (version "0.3.2")
3901 (source (origin
3902 (method url-fetch)
3903 (uri (rubygems-uri "mkmf-lite" version))
3904 (sha256
3905 (base32
3906 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3907 (build-system ruby-build-system)
3908 (propagated-inputs
3909 `(("ruby-ptools" ,ruby-ptools)))
3910 (synopsis "Lightweight alternative to @code{mkmf}")
3911 (description
3912 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3913 for use as a library. It does not create packages, builds, or log files of
3914 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3915 to check for the presence of header files, constants, and so on.")
3916 (home-page "https://github.com/djberg96/mkmf-lite")
3917 (license license:asl2.0)))
3918
3919 (define-public ruby-mspec
3920 (package
3921 (name "ruby-mspec")
3922 (version "1.9.1")
3923 (source
3924 (origin
3925 (method url-fetch)
3926 (uri (rubygems-uri "mspec" version))
3927 (sha256
3928 (base32
3929 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3930 (build-system ruby-build-system)
3931 (arguments
3932 '(;; TODO: 3 test failures
3933 ;; ./spec/mocks/mock_spec.rb:82
3934 ;; ./spec/utils/name_map_spec.rb:151
3935 ;; ./spec/utils/name_map_spec.rb:155
3936 #:tests? #f
3937 #:phases
3938 (modify-phases %standard-phases
3939 (add-after 'extract-gemspec 'change-dependency-constraints
3940 (lambda _
3941 (substitute* "mspec.gemspec"
3942 (("rake.*") "rake>)\n")
3943 (("rspec.*") "rspec>)\n"))
3944 #t))
3945 (replace 'check
3946 (lambda* (#:key tests? #:allow-other-keys)
3947 (when tests?
3948 (invoke "rspec" "spec"))
3949 #t)))))
3950 (native-inputs
3951 `(("bundler" ,bundler)
3952 ("ruby-rake" ,ruby-rake)
3953 ("ruby-rspec" ,ruby-rspec)))
3954 (synopsis "MSpec is a specialized framework for RubySpec")
3955 (description
3956 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3957 for basic features. MSpec contains additional features that assist in writing
3958 specs for Ruby implementations in ruby/spec.")
3959 (home-page "http://rubyspec.org")
3960 (license license:expat)))
3961
3962 (define-public ruby-mysql2
3963 (package
3964 (name "ruby-mysql2")
3965 (version "0.5.2")
3966 (source
3967 (origin
3968 (method git-fetch)
3969 (uri (git-reference
3970 (url "https://github.com/brianmario/mysql2")
3971 (commit version)))
3972 (file-name (git-file-name name version))
3973 (sha256
3974 (base32
3975 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3976 (build-system ruby-build-system)
3977 (arguments
3978 '(;; TODO: Tests require a running MySQL/MariaDB service
3979 #:tests? #f
3980 #:phases
3981 (modify-phases %standard-phases
3982 (replace 'replace-git-ls-files
3983 (lambda _
3984 (substitute* "mysql2.gemspec"
3985 (("git ls-files .*`") "find . -type f |sort`"))
3986 #t))
3987 (add-before 'install 'set-MAKEFLAGS
3988 (lambda* (#:key outputs #:allow-other-keys)
3989 (setenv "MAKEFLAGS"
3990 (string-append
3991 "V=1 "
3992 "prefix=" (assoc-ref outputs "out")))
3993 #t))
3994 ;; Move the 'check phase to after 'install, as then you can test
3995 ;; using the installed mysql2 gem in the store.
3996 (delete 'check)
3997 (add-after 'install 'check
3998 (lambda* (#:key outputs tests? #:allow-other-keys)
3999 (setenv "GEM_PATH"
4000 (string-append
4001 (getenv "GEM_PATH")
4002 ":"
4003 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
4004 (when tests?
4005 (invoke "rspec"))
4006 #t)))))
4007 (inputs
4008 `(("mariadb-dev" ,mariadb "dev")
4009 ("zlib" ,zlib)))
4010 (native-inputs
4011 `(("ruby-rspec" ,ruby-rspec)
4012 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4013 (synopsis "MySQL library for Ruby, binding to libmysql")
4014 (description
4015 "This package provides a simple, fast MySQL library for Ruby, binding to
4016 libmysql.")
4017 (home-page "https://github.com/brianmario/mysql2")
4018 (license license:expat)))
4019
4020 (define-public ruby-blankslate
4021 (package
4022 (name "ruby-blankslate")
4023 (version "3.1.3")
4024 (source (origin
4025 (method url-fetch)
4026 (uri (rubygems-uri "blankslate" version))
4027 (sha256
4028 (base32
4029 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
4030 (build-system ruby-build-system)
4031 (arguments
4032 `(#:phases
4033 (modify-phases %standard-phases
4034 (replace 'check
4035 (lambda _ (invoke "rspec" "spec/"))))))
4036 (native-inputs
4037 `(("bundler" ,bundler)
4038 ("ruby-rspec" ,ruby-rspec)))
4039 (synopsis "Abstract base class with no predefined methods")
4040 (description
4041 "BlankSlate provides an abstract base class with no predefined
4042 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
4043 as a base class when writing classes that depend upon
4044 @code{method_missing} (e.g. dynamic proxies).")
4045 (home-page "https://github.com/masover/blankslate")
4046 (license license:expat)))
4047
4048 (define-public ruby-bond
4049 (package
4050 (name "ruby-bond")
4051 (version "0.5.1")
4052 (source
4053 (origin
4054 (method url-fetch)
4055 (uri (rubygems-uri "bond" version))
4056 (sha256
4057 (base32
4058 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
4059 (build-system ruby-build-system)
4060 (arguments
4061 ;; The test suite fails (see:
4062 ;; https://github.com/cldwalker/bond/issues/46).
4063 `(#:tests? #f))
4064 (native-inputs
4065 `(("ruby-bacon" ,ruby-bacon)
4066 ("ruby-bacon-bits" ,ruby-bacon-bits)
4067 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
4068 (synopsis "Bond can provide custom autocompletion for arguments, methods
4069 and more")
4070 (description
4071 "Bond can autocomplete argument(s) to methods, uniquely completing per
4072 module, per method and per argument. Bond provides a configuration system and
4073 a DSL for creating custom completions and completion rules. Bond can also
4074 load completions that ship with gems. Bond is able to offer more than irb's
4075 completion since it uses the full line of input when completing as opposed to
4076 irb's last-word approach.")
4077 (home-page "http://tagaholic.me/bond/")
4078 (license license:expat)))
4079
4080 (define-public ruby-idn-ruby
4081 (package
4082 (name "ruby-idn-ruby")
4083 (version "0.1.0")
4084 (source
4085 (origin
4086 (method url-fetch)
4087 (uri (rubygems-uri "idn-ruby" version))
4088 (sha256
4089 (base32
4090 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
4091 (build-system ruby-build-system)
4092 (arguments
4093 '(#:phases
4094 (modify-phases %standard-phases
4095 (delete 'check)
4096 (add-after 'install 'check
4097 (lambda* (#:key tests? outputs #:allow-other-keys)
4098 (when tests?
4099 (let* ((gem-file (cadr (find-files "." "\\.gem")))
4100 (name-and-version (basename gem-file ".gem")))
4101 (apply invoke
4102 "ruby" "--verbose"
4103 (string-append "-I"
4104 (assoc-ref outputs "out")
4105 "/lib/ruby/vendor_ruby/gems/"
4106 name-and-version
4107 "/lib")
4108 (find-files "./test" ".*\\.rb"))))
4109 #t)))))
4110 (inputs
4111 `(("libidn" ,libidn)))
4112 (synopsis "Ruby Bindings for the GNU LibIDN library")
4113 (description
4114 "Ruby Bindings for the GNU LibIDN library, an implementation of the
4115 Stringprep, Punycode and IDNA specifications. These are used to encode and
4116 decode internationalized domain + names according to the IDNA2003
4117 specifications.
4118
4119 Included are the most important parts of the Stringprep, Punycode and IDNA
4120 APIs like performing Stringprep processings, encoding to and decoding from
4121 Punycode strings and converting entire domain names to and from the ACE
4122 encoded form.")
4123 (home-page "https://github.com/deepfryed/idn-ruby")
4124 (license license:asl2.0)))
4125
4126 (define-public ruby-instantiator
4127 (package
4128 (name "ruby-instantiator")
4129 (version "0.0.7")
4130 (source (origin
4131 (method url-fetch)
4132 (uri (rubygems-uri "instantiator" version))
4133 (sha256
4134 (base32
4135 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
4136 (build-system ruby-build-system)
4137 (arguments
4138 `(#:phases
4139 (modify-phases %standard-phases
4140 (add-after 'unpack 'add-test-unit-to-search-path
4141 (lambda* (#:key inputs #:allow-other-keys)
4142 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
4143 (substitute* "Rakefile"
4144 (("t\\.libs << \"test\"" line)
4145 (string-append line "; t.libs << \""
4146 test-unit "/lib/ruby/vendor_ruby"
4147 "/gems/test-unit-"
4148 ,(package-version ruby-test-unit)
4149 "/lib\""))))
4150 #t)))))
4151 (propagated-inputs
4152 `(("ruby-blankslate" ,ruby-blankslate)))
4153 (native-inputs
4154 `(("bundler" ,bundler)
4155 ("ruby-test-unit" ,ruby-test-unit)))
4156 (synopsis "Instantiate an arbitrary Ruby class")
4157 (description
4158 "Instantiator lets you instantiate an arbitrary Ruby class without
4159 knowing anything about the constructor.")
4160 (home-page "https://github.com/floehopper/instantiator")
4161 (license license:expat)))
4162
4163 (define-public ruby-introspection
4164 (package
4165 (name "ruby-introspection")
4166 (version "0.0.4")
4167 (source (origin
4168 (method url-fetch)
4169 (uri (rubygems-uri "introspection" version))
4170 (sha256
4171 (base32
4172 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
4173 (build-system ruby-build-system)
4174 (arguments
4175 `(#:phases
4176 (modify-phases %standard-phases
4177 (add-after 'unpack 'add-test-unit-to-search-path
4178 (lambda* (#:key inputs #:allow-other-keys)
4179 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
4180 (substitute* "Rakefile"
4181 (("t\\.libs << \"test\"" line)
4182 (string-append line "; t.libs << \""
4183 test-unit "/lib/ruby/vendor_ruby"
4184 "/gems/test-unit-"
4185 ,(package-version ruby-test-unit)
4186 "/lib\""))))
4187 #t)))))
4188 (propagated-inputs
4189 `(("ruby-instantiator" ,ruby-instantiator)
4190 ("ruby-metaclass" ,ruby-metaclass)))
4191 (native-inputs
4192 `(("bundler" ,bundler)
4193 ("ruby-blankslate" ,ruby-blankslate)
4194 ("ruby-test-unit" ,ruby-test-unit)))
4195 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
4196 (description
4197 "Introspection provides tools to inspect the hierarchy of method
4198 definitions on a Ruby object.")
4199 (home-page "https://github.com/floehopper/introspection")
4200 (license license:expat)))
4201
4202 (define-public ruby-redcarpet
4203 (package
4204 (name "ruby-redcarpet")
4205 (version "3.5.0")
4206 (source (origin
4207 (method url-fetch)
4208 (uri (rubygems-uri "redcarpet" version))
4209 (sha256
4210 (base32
4211 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4212 (build-system ruby-build-system)
4213 (arguments
4214 `(#:phases
4215 (modify-phases %standard-phases
4216 ;; The gem archive does not include the conformance tests.
4217 (add-after 'unpack 'disable-conformance-tests
4218 (lambda _
4219 (substitute* "Rakefile"
4220 (("task :test => %w\\[test:unit test:conformance\\]")
4221 "task :test => %w[test:unit]"))
4222 #t)))))
4223 (native-inputs
4224 `(("bundler" ,bundler)
4225 ("ruby-test-unit" ,ruby-test-unit)
4226 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4227 (synopsis "Extensible Markdown to (X)HTML converter")
4228 (description
4229 "Redcarpet is an extensible Ruby library for Markdown processing and
4230 conversion to (X)HTML.")
4231 (home-page "https://github.com/vmg/redcarpet")
4232 (license license:expat)))
4233
4234 (define-public ruby-rerun
4235 (package
4236 (name "ruby-rerun")
4237 (version "0.13.0")
4238 (source
4239 (origin
4240 (method url-fetch)
4241 (uri (rubygems-uri "rerun" version))
4242 (sha256
4243 (base32
4244 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4245 (build-system ruby-build-system)
4246 (arguments
4247 '(#:tests? #f)) ; No included tests
4248 (propagated-inputs
4249 `(("ruby-listen" ,ruby-listen)))
4250 (synopsis "Run a process, and restart when some monitored files change")
4251 (description
4252 "Rerun is a tool to launch programs, then monitor the file system, and
4253 restart the program when any of the monitored files change. It's written in
4254 Ruby, but can be used for all programs.")
4255 (home-page "https://github.com/alexch/rerun/")
4256 (license license:expat)))
4257
4258 (define-public ruby-maxitest
4259 (package
4260 (name "ruby-maxitest")
4261 (version "3.6.0")
4262 (home-page "https://github.com/grosser/maxitest")
4263 (source (origin
4264 ;; Pull from git because the gem does not contain tests.
4265 (method git-fetch)
4266 (uri (git-reference
4267 (url home-page)
4268 (commit (string-append "v" version))))
4269 (file-name (git-file-name name version))
4270 (sha256
4271 (base32
4272 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4273 (build-system ruby-build-system)
4274 (arguments
4275 '(#:test-target "default"
4276 #:phases (modify-phases %standard-phases
4277 (replace 'replace-git-ls-files
4278 (lambda _
4279 (substitute* "maxitest.gemspec"
4280 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4281 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4282 #t))
4283 (add-before 'check 'remove-version-constraints
4284 (lambda _
4285 ;; Don't use specific versions of dependencies, instead
4286 ;; take whatever is available in Guix.
4287 (delete-file "Gemfile.lock")
4288 #t))
4289 (add-before 'check 'add-mtest-on-PATH
4290 (lambda _
4291 ;; Tests use 'mtest' which is not automatically added on
4292 ;; PATH.
4293 (setenv "PATH" (string-append (getcwd) "/bin:"
4294 (getenv "PATH")))
4295 #t)))))
4296 (native-inputs
4297 `(("ps" ,procps)
4298 ("ruby-bump" ,ruby-bump)
4299 ("ruby-byebug" ,ruby-byebug)
4300 ("ruby-rspec" ,ruby-rspec)
4301 ("ruby-wwtd" ,ruby-wwtd)))
4302 (propagated-inputs
4303 `(("ruby-minitest" ,ruby-minitest)))
4304 (synopsis "Minitest with extra features")
4305 (description
4306 "Maxitest is a wrapper around Minitest with extra functionality such
4307 as timeouts, an @command{mtest} executable that can run tests by line
4308 number, support for interrupted tests, better backtraces, and more.")
4309 (license license:expat)))
4310
4311 (define-public ruby-mocha
4312 (package
4313 (name "ruby-mocha")
4314 (version "1.11.2")
4315 (source (origin
4316 (method url-fetch)
4317 (uri (rubygems-uri "mocha" version))
4318 (sha256
4319 (base32
4320 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4321 (build-system ruby-build-system)
4322 (arguments
4323 `(#:phases
4324 (modify-phases %standard-phases
4325 (add-before 'check 'remove-rubocop-dependency
4326 (lambda _
4327 ;; Disable dependency on Rubocop, which is just a linter,
4328 ;; and would introduce a circular dependency.
4329 (substitute* "mocha.gemspec"
4330 ((".*rubocop.*")
4331 "true\n"))
4332 #t)))))
4333 (native-inputs
4334 `(("ruby-introspection" ,ruby-introspection)))
4335 (synopsis "Mocking and stubbing library for Ruby")
4336 (description
4337 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4338 allows mocking and stubbing of methods on real (non-mock) classes.")
4339 (home-page "http://gofreerange.com/mocha/docs")
4340 ;; Mocha can be used with either license at the users choice.
4341 (license (list license:expat license:ruby))))
4342
4343 (define-public ruby-mocha-on-bacon
4344 (package
4345 (name "ruby-mocha-on-bacon")
4346 (version "0.2.3")
4347 (source
4348 (origin
4349 (method url-fetch)
4350 (uri (rubygems-uri "mocha-on-bacon" version))
4351 (sha256
4352 (base32
4353 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4354 (build-system ruby-build-system)
4355 (arguments
4356 ;; rubygems.org release missing tests
4357 '(#:tests? #f))
4358 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4359 (synopsis "Mocha adapter for Bacon")
4360 (description
4361 "This package provides a Mocha adapter for Bacon, allowing you to use the
4362 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4363 (home-page
4364 "https://github.com/alloy/mocha-on-bacon")
4365 (license license:expat)))
4366
4367 (define-public ruby-net-ssh
4368 (package
4369 (name "ruby-net-ssh")
4370 (version "4.2.0")
4371 (source (origin
4372 (method url-fetch)
4373 (uri (rubygems-uri "net-ssh" version))
4374 (sha256
4375 (base32
4376 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4377 (build-system ruby-build-system)
4378 (native-inputs
4379 `(("bundler" ,bundler)
4380 ("ruby-mocha" ,ruby-mocha)
4381 ("ruby-test-unit" ,ruby-test-unit)))
4382 (synopsis "Ruby implementation of the SSH2 client protocol")
4383 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4384 client protocol. It allows you to write programs that invoke and interact
4385 with processes on remote servers, via SSH2.")
4386 (home-page "https://github.com/net-ssh/net-ssh")
4387 (license license:expat)))
4388
4389 (define-public ruby-net-scp
4390 (package
4391 (name "ruby-net-scp")
4392 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4393 (version "1.2.2.rc2")
4394 (source
4395 (origin
4396 (method git-fetch)
4397 (uri (git-reference
4398 (url "https://github.com/net-ssh/net-scp")
4399 (commit (string-append "v" version))))
4400 (file-name (git-file-name name version))
4401 (sha256
4402 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4403 (build-system ruby-build-system)
4404 (native-inputs
4405 `(("bundler" ,bundler)
4406 ("ruby-test-unit" ,ruby-test-unit)
4407 ("ruby-mocha" ,ruby-mocha)))
4408 (propagated-inputs
4409 `(("ruby-net-ssh" ,ruby-net-ssh)))
4410 (synopsis "Pure-Ruby SCP client library")
4411 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4412 client protocol.")
4413 (home-page "https://github.com/net-ssh/net-scp")
4414 (license license:expat)))
4415
4416 (define-public ruby-minitest
4417 (package
4418 (name "ruby-minitest")
4419 (version "5.11.3")
4420 (source (origin
4421 (method url-fetch)
4422 (uri (rubygems-uri "minitest" version))
4423 (sha256
4424 (base32
4425 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4426 (build-system ruby-build-system)
4427 (native-inputs
4428 `(("ruby-hoe" ,ruby-hoe)))
4429 (synopsis "Small test suite library for Ruby")
4430 (description "Minitest provides a complete suite of Ruby testing
4431 facilities supporting TDD, BDD, mocking, and benchmarking.")
4432 (home-page "https://github.com/seattlerb/minitest")
4433 (license license:expat)))
4434
4435 ;; This is the last release of Minitest 4, which is used by some packages.
4436 (define-public ruby-minitest-4
4437 (package (inherit ruby-minitest)
4438 (version "4.7.5")
4439 (source (origin
4440 (method url-fetch)
4441 (uri (rubygems-uri "minitest" version))
4442 (sha256
4443 (base32
4444 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4445 (arguments
4446 `(#:phases
4447 (modify-phases %standard-phases
4448 (add-after 'unpack 'remove-unsupported-method
4449 (lambda _
4450 (substitute* "Rakefile"
4451 (("self\\.rubyforge_name = .*") ""))
4452 #t))
4453 (add-after 'build 'exclude-failing-tests
4454 (lambda _
4455 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4456 ;; Fixnum.
4457 (delete-file "test/minitest/test_minitest_spec.rb")
4458 #t)))))))
4459
4460 (define-public ruby-minitest-around
4461 (package
4462 (name "ruby-minitest-around")
4463 (version "0.5.0")
4464 (source
4465 (origin
4466 (method url-fetch)
4467 (uri (rubygems-uri "minitest-around" version))
4468 (sha256
4469 (base32
4470 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4471 (build-system ruby-build-system)
4472 (arguments
4473 '(#:phases
4474 (modify-phases %standard-phases
4475 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4476 (lambda _
4477 (substitute* "minitest-around.gemspec"
4478 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4479 #t)))))
4480 (propagated-inputs
4481 `(("ruby-minitest" ,ruby-minitest)))
4482 (native-inputs
4483 `(("bundler" ,bundler)
4484 ("ruby-cucumber" ,ruby-cucumber)
4485 ("ruby-bump" ,ruby-bump)
4486 ("ruby-test-construct" ,ruby-test-construct)))
4487 (synopsis "Run code around tests in Minitest")
4488 (description
4489 "This library provides a way to run code around tests in Minitest,
4490 written using either the unit test or spec style.")
4491 (home-page "https://github.com/splattael/minitest-around")
4492 (license license:expat)))
4493
4494 (define-public ruby-minitest-sprint
4495 (package
4496 (name "ruby-minitest-sprint")
4497 (version "1.1.0")
4498 (source (origin
4499 (method url-fetch)
4500 (uri (rubygems-uri "minitest-sprint" version))
4501 (sha256
4502 (base32
4503 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4504 (build-system ruby-build-system)
4505 (native-inputs
4506 `(("ruby-hoe" ,ruby-hoe)
4507 ("ruby-minitest" ,ruby-minitest)))
4508 (synopsis "Fast test suite runner for minitest")
4509 (description "Minitest-sprint is a test runner for minitest that makes it
4510 easier to re-run individual failing tests.")
4511 (home-page "https://github.com/seattlerb/minitest-sprint")
4512 (license license:expat)))
4513
4514 (define-public ruby-minitest-bacon
4515 (package
4516 (name "ruby-minitest-bacon")
4517 (version "1.0.3")
4518 (source (origin
4519 (method url-fetch)
4520 (uri (rubygems-uri "minitest-bacon" version))
4521 (sha256
4522 (base32
4523 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4524 (build-system ruby-build-system)
4525 (native-inputs
4526 `(("ruby-hoe" ,ruby-hoe)))
4527 (inputs
4528 `(("ruby-minitest" ,ruby-minitest)))
4529 (synopsis "Bacon compatibility library for minitest")
4530 (description "Minitest-bacon extends minitest with bacon-like
4531 functionality, making it easier to migrate test suites from bacon to minitest.")
4532 (home-page "https://github.com/seattlerb/minitest-bacon")
4533 (license license:expat)))
4534
4535 (define-public ruby-minitest-focus
4536 (package
4537 (name "ruby-minitest-focus")
4538 (version "1.1.2")
4539 (source
4540 (origin
4541 (method url-fetch)
4542 (uri (rubygems-uri "minitest-focus" version))
4543 (sha256
4544 (base32
4545 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4546 (build-system ruby-build-system)
4547 (propagated-inputs
4548 `(("ruby-minitest" ,ruby-minitest)))
4549 (native-inputs
4550 `(("ruby-hoe" ,ruby-hoe)))
4551 (synopsis "Allows a few specific tests to be focused on")
4552 (description
4553 "@code{minitest-focus} gives the ability focus on a few tests with ease
4554 without having to use command-line arguments. It introduces a @code{focus}
4555 class method for use in testing classes, specifying that the next defined test
4556 is to be run.")
4557 (home-page "https://github.com/seattlerb/minitest-focus")
4558 (license license:expat)))
4559
4560 (define-public ruby-minitest-pretty-diff
4561 ;; Use git reference because gem is out of date and does not contain testing
4562 ;; script. There are no releases on GitHub.
4563 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4564 (package
4565 (name "ruby-minitest-pretty-diff")
4566 (version (string-append "0.1-1." (string-take commit 8)))
4567 (source (origin
4568 (method git-fetch)
4569 (uri (git-reference
4570 (url "https://github.com/adammck/minitest-pretty_diff")
4571 (commit commit)))
4572 (file-name (string-append name "-" version "-checkout"))
4573 (sha256
4574 (base32
4575 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4576 (build-system ruby-build-system)
4577 (arguments
4578 `(#:phases
4579 (modify-phases %standard-phases
4580 (replace 'check
4581 (lambda _
4582 (invoke "script/test"))))))
4583 (native-inputs
4584 `(("bundler" ,bundler)
4585 ("ruby-turn" ,ruby-turn)))
4586 (synopsis "Pretty-print hashes and arrays in MiniTest")
4587 (description
4588 "@code{minitest-pretty_diff} monkey-patches
4589 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4590 diffing them. This makes it easier to spot differences between nested
4591 structures when tests fail.")
4592 (home-page "https://github.com/adammck/minitest-pretty_diff")
4593 (license license:expat))))
4594
4595 (define-public ruby-minitest-moar
4596 (package
4597 (name "ruby-minitest-moar")
4598 (version "0.0.4")
4599 (source
4600 (origin
4601 (method url-fetch)
4602 (uri (rubygems-uri "minitest-moar" version))
4603 (sha256
4604 (base32
4605 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4606 (build-system ruby-build-system)
4607 (arguments
4608 `(#:phases
4609 (modify-phases %standard-phases
4610 (add-before 'check 'clean-dependencies
4611 (lambda _
4612 ;; Remove all gems defined in the Gemfile because these are not
4613 ;; truly needed.
4614 (substitute* "Gemfile"
4615 (("gem .*") ""))
4616 ;; Remove byebug as not needed to run tests.
4617 (substitute* "test/test_helper.rb"
4618 (("require 'byebug'") ""))
4619 #t)))))
4620 (native-inputs
4621 `(("bundler" ,bundler)
4622 ("ruby-minitest" ,ruby-minitest)))
4623 (synopsis "Extra features and changes to MiniTest")
4624 (description "@code{MiniTest Moar} add some additional features and
4625 changes some default behaviours in MiniTest. For instance, Moar replaces the
4626 MiniTest @code{Object#stub} with a global @code{stub} method.")
4627 (home-page "https://github.com/dockyard/minitest-moar")
4628 (license license:expat)))
4629
4630 (define-public ruby-minitest-bonus-assertions
4631 (package
4632 (name "ruby-minitest-bonus-assertions")
4633 (version "3.0")
4634 (source
4635 (origin
4636 (method url-fetch)
4637 (uri (rubygems-uri "minitest-bonus-assertions" version))
4638 (sha256
4639 (base32
4640 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4641 (build-system ruby-build-system)
4642 (arguments
4643 `(#:phases
4644 (modify-phases %standard-phases
4645 (add-before 'check 'clean-dependencies
4646 (lambda _
4647 ;; Remove unneeded require statement that would entail another
4648 ;; dependency.
4649 (substitute* "test/minitest_config.rb"
4650 (("require 'minitest/bisect'") ""))
4651 #t)))))
4652 (native-inputs
4653 `(("ruby-hoe" ,ruby-hoe)
4654 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4655 ("ruby-minitest-focus" ,ruby-minitest-focus)
4656 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4657 (synopsis "Bonus assertions for @code{Minitest}")
4658 (description
4659 "Minitest bonus assertions provides extra MiniTest assertions. For
4660 instance, it provides @code{assert_true}, @code{assert_false} and
4661 @code{assert_set_equal}.")
4662 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4663 (license license:expat)))
4664
4665 (define-public ruby-minitest-reporters
4666 (package
4667 (name "ruby-minitest-reporters")
4668 (version "1.3.6")
4669 (source
4670 (origin
4671 (method url-fetch)
4672 (uri (rubygems-uri "minitest-reporters" version))
4673 (sha256
4674 (base32
4675 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4676 (build-system ruby-build-system)
4677 (arguments
4678 '(#:phases
4679 (modify-phases %standard-phases
4680 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4681 ;; including it as an input can lead to circular dependencies.
4682 (add-after 'unpack 'remove-rubocop-from-Rakefile
4683 (lambda _
4684 (substitute* "Rakefile"
4685 (("require 'rubocop/rake\\_task'") "")
4686 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4687 #t))
4688 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4689 (lambda _
4690 (substitute* "minitest-reporters.gemspec"
4691 ((".*%q<rubocop>.*") "\n"))
4692 #t)))))
4693 (propagated-inputs
4694 `(("ruby-ansi" ,ruby-ansi)
4695 ("ruby-builder" ,ruby-builder)
4696 ("ruby-minitest" ,ruby-minitest)
4697 ("ruby-progressbar" ,ruby-progressbar)))
4698 (native-inputs
4699 `(("bundler" ,bundler)
4700 ("ruby-maruku" ,ruby-maruku)))
4701 (synopsis "Enhanced reporting for Minitest tests")
4702 (description
4703 "@code{minitest/reporters} provides a custom Minitest runner to improve
4704 how the test state is reported. A number of different reporters are
4705 available, including a spec reporter, progress bar reporter, a HTML
4706 reporter.")
4707 (home-page "https://github.com/kern/minitest-reporters")
4708 (license license:expat)))
4709
4710 (define-public ruby-minitest-rg
4711 (package
4712 (name "ruby-minitest-rg")
4713 (version "5.2.0")
4714 (source
4715 (origin
4716 (method url-fetch)
4717 (uri (rubygems-uri "minitest-rg" version))
4718 (sha256
4719 (base32
4720 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4721 (build-system ruby-build-system)
4722 (arguments
4723 ;; Some tests fail even outside Guix, so disable tests.
4724 ;; https://github.com/blowmage/minitest-rg/issues/12
4725 ;; https://github.com/blowmage/minitest-rg/pull/13
4726 `(#:tests? #f))
4727 (propagated-inputs
4728 `(("ruby-minitest" ,ruby-minitest)))
4729 (synopsis "Coloured output for Minitest")
4730 (description
4731 "@code{minitest-rg} changes the colour of the output from Minitest.")
4732 (home-page "https://blowmage.com/minitest-rg/")
4733 (license license:expat)))
4734
4735 (define-public ruby-minitest-global-expectations
4736 (package
4737 (name "ruby-minitest-global-expectations")
4738 (version "1.0.1")
4739 (source
4740 (origin
4741 (method url-fetch)
4742 (uri (rubygems-uri "minitest-global_expectations"
4743 version))
4744 (sha256
4745 (base32
4746 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4747 (build-system ruby-build-system)
4748 (propagated-inputs
4749 `(("ruby-minitest" ,ruby-minitest)))
4750 (synopsis "Adjust minitest behaviour for calling expectation methods")
4751 (description
4752 "Minitest-global_expectations allows continued use of expectation methods
4753 on all objects. Calling expectation methods on all objects was deprecated in
4754 minitest 5.12, and is planned to be removed from minitest 6.")
4755 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4756 (license license:expat)))
4757
4758 (define-public ruby-minitest-hooks
4759 (package
4760 (name "ruby-minitest-hooks")
4761 (version "1.4.2")
4762 (source
4763 (origin
4764 (method url-fetch)
4765 (uri (rubygems-uri "minitest-hooks" version))
4766 (sha256
4767 (base32
4768 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4769 (build-system ruby-build-system)
4770 (arguments
4771 '(#:test-target "spec"))
4772 (native-inputs
4773 `(("ruby-sequel" ,ruby-sequel)
4774 ("ruby-sqlite3" ,ruby-sqlite3)))
4775 (synopsis "Hooks for the minitest framework")
4776 (description
4777 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4778 @code{around_all} hooks for Minitest. This allows, for instance, running each
4779 suite of specs inside a database transaction, running each spec inside its own
4780 savepoint inside that transaction. This can significantly speed up testing
4781 for specs that share expensive database setup code.")
4782 (home-page "https://github.com/jeremyevans/minitest-hooks")
4783 (license license:expat)))
4784
4785 (define-public ruby-daemons
4786 (package
4787 (name "ruby-daemons")
4788 (version "1.2.5")
4789 (source (origin
4790 (method url-fetch)
4791 (uri (rubygems-uri "daemons" version))
4792 (sha256
4793 (base32
4794 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4795 (build-system ruby-build-system)
4796 (arguments
4797 `(#:tests? #f)) ; no test suite
4798 (synopsis "Daemonize Ruby programs")
4799 (description "Daemons provides a way to wrap existing Ruby scripts to be
4800 run as a daemon and to be controlled by simple start/stop/restart commands.")
4801 (home-page "https://github.com/thuehlinger/daemons")
4802 (license license:expat)))
4803
4804 (define-public ruby-data_uri
4805 (package
4806 (name "ruby-data_uri")
4807 (version "0.1.0")
4808 (source
4809 (origin
4810 (method url-fetch)
4811 (uri (rubygems-uri "data_uri" version))
4812 (sha256
4813 (base32
4814 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4815 (build-system ruby-build-system)
4816 (synopsis "URI class for parsing data URIs")
4817 (description
4818 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4819 embedded inside a URI. The URI::Data class provides support for parsing these
4820 URIs using the normal URI.parse method.")
4821 (home-page "https://github.com/dball/data_uri")
4822 (license license:expat)))
4823
4824 (define-public ruby-deep-merge
4825 (package
4826 (name "ruby-deep-merge")
4827 (version "1.2.1")
4828 (home-page "https://github.com/danielsdeleo/deep_merge")
4829 ;; The Rubygem source does not contain the gemspec required for tests.
4830 (source (origin
4831 (method git-fetch)
4832 (uri (git-reference (url home-page) (commit version)))
4833 (file-name (git-file-name name version))
4834 (sha256
4835 (base32
4836 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4837 (build-system ruby-build-system)
4838 (native-inputs
4839 `(("ruby-minitest" ,ruby-minitest)))
4840 (synopsis "Recursively merge hashes")
4841 (description
4842 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4843 you to merge elements inside a hash together recursively.")
4844 (license license:expat)))
4845
4846 (define-public ruby-git
4847 (package
4848 (name "ruby-git")
4849 (version "1.3.0")
4850 (source (origin
4851 (method url-fetch)
4852 (uri (rubygems-uri "git" version))
4853 (sha256
4854 (base32
4855 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4856 (build-system ruby-build-system)
4857 (arguments
4858 `(#:tests? #f ; no tests
4859 #:phases (modify-phases %standard-phases
4860 (add-after 'install 'patch-git-binary
4861 (lambda* (#:key inputs outputs #:allow-other-keys)
4862 ;; Make the default git binary an absolute path to the
4863 ;; store.
4864 (let ((git (string-append (assoc-ref inputs "git")
4865 "/bin/git"))
4866 (config (string-append
4867 (assoc-ref outputs "out")
4868 "/lib/ruby/vendor_ruby/gems/git-"
4869 ,version "/lib/git/config.rb")))
4870 (substitute* (list config)
4871 (("'git'")
4872 (string-append "'" git "'")))
4873 #t))))))
4874 (inputs
4875 `(("git" ,git)))
4876 (synopsis "Ruby wrappers for Git")
4877 (description "Ruby/Git is a Ruby library that can be used to create, read
4878 and manipulate Git repositories by wrapping system calls to the git binary.")
4879 (home-page "https://github.com/schacon/ruby-git")
4880 (license license:expat)))
4881
4882 (define-public ruby-hocon
4883 (package
4884 (name "ruby-hocon")
4885 (version "1.3.1")
4886 (home-page "https://github.com/puppetlabs/ruby-hocon")
4887 (source (origin
4888 (method git-fetch)
4889 (uri (git-reference (url home-page) (commit version)))
4890 (file-name (git-file-name name version))
4891 (sha256
4892 (base32
4893 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4894 (build-system ruby-build-system)
4895 (arguments
4896 '(#:phases (modify-phases %standard-phases
4897 (replace 'check
4898 (lambda* (#:key tests? #:allow-other-keys)
4899 (if tests?
4900 (invoke "rspec")
4901 (format #t "test suite not run~%"))
4902 #t)))))
4903 (native-inputs
4904 `(("bundler" ,bundler)
4905 ("ruby-rspec" ,ruby-rspec)))
4906 (synopsis "HOCON config library")
4907 (description
4908 "This package provides Ruby support for the @acronym{HOCON,
4909 Human-Optimized Config Object Notation} configuration file format. It
4910 supports parsing and modifying HOCON and JSON files, and rendering parsed
4911 objects back to a @code{String}.")
4912 (license license:asl2.0)))
4913
4914 (define-public ruby-slop
4915 (package
4916 (name "ruby-slop")
4917 (version "4.5.0")
4918 (source (origin
4919 (method url-fetch)
4920 (uri (rubygems-uri "slop" version))
4921 (sha256
4922 (base32
4923 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4924 (build-system ruby-build-system)
4925 (native-inputs
4926 `(("ruby-minitest" ,ruby-minitest)))
4927 (synopsis "Ruby command line option parser")
4928 (description "Slop provides a Ruby domain specific language for gathering
4929 options and parsing command line flags.")
4930 (home-page "https://github.com/leejarvis/slop")
4931 (license license:expat)))
4932
4933 (define-public ruby-slop-3
4934 (package (inherit ruby-slop)
4935 (version "3.6.0")
4936 (source (origin
4937 (method url-fetch)
4938 (uri (rubygems-uri "slop" version))
4939 (sha256
4940 (base32
4941 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4942
4943 (define-public ruby-multi-xml
4944 (package
4945 (name "ruby-multi-xml")
4946 (version "0.6.0")
4947 (source
4948 (origin
4949 (method url-fetch)
4950 (uri (rubygems-uri "multi_xml" version))
4951 (sha256
4952 (base32
4953 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4954 (build-system ruby-build-system)
4955 (arguments
4956 '(#:tests? #f)) ; No included tests
4957 (synopsis "Swappable XML backends for Ruby")
4958 (description
4959 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4960 Nokogiri, Ox, or REXML.")
4961 (home-page "https://github.com/sferik/multi_xml")
4962 (license license:expat)))
4963
4964 (define-public ruby-multipart-post
4965 (package
4966 (name "ruby-multipart-post")
4967 (version "2.0.0")
4968 (source (origin
4969 (method url-fetch)
4970 (uri (rubygems-uri "multipart-post" version))
4971 (sha256
4972 (base32
4973 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4974 (build-system ruby-build-system)
4975 (native-inputs
4976 `(("bundler" ,bundler)))
4977 (synopsis "Multipart POST library for Ruby")
4978 (description "Multipart-Post Adds multipart POST capability to Ruby's
4979 net/http library.")
4980 (home-page "https://github.com/nicksieger/multipart-post")
4981 (license license:expat)))
4982
4983 (define-public ruby-multi-json
4984 (package
4985 (name "ruby-multi-json")
4986 (version "1.13.1")
4987 (source
4988 (origin
4989 (method git-fetch)
4990 ;; Tests are not distributed at rubygems.org so download from GitHub
4991 ;; instead.
4992 (uri (git-reference
4993 (url "https://github.com/intridea/multi_json")
4994 (commit (string-append "v" version))))
4995 (file-name (git-file-name name version))
4996 (sha256
4997 (base32
4998 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4999 (build-system ruby-build-system)
5000 (arguments
5001 `(#:phases
5002 (modify-phases %standard-phases
5003 (add-after 'unpack 'remove-signing-key-reference
5004 (lambda _
5005 (substitute* "multi_json.gemspec"
5006 ((".*spec.signing_key.*") ""))
5007 #t)))))
5008 (native-inputs
5009 `(("bundler" ,bundler)
5010 ("ruby-rspec" ,ruby-rspec)
5011 ("ruby-yard" ,ruby-yard)
5012 ("ruby-json-pure" ,ruby-json-pure)
5013 ("ruby-oj" ,ruby-oj)
5014 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
5015 (synopsis "Common interface to multiple JSON libraries for Ruby")
5016 (description
5017 "This package provides a common interface to multiple JSON libraries,
5018 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
5019 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
5020 (home-page "https://github.com/intridea/multi_json")
5021 (license license:expat)))
5022
5023 (define-public ruby-multi-test
5024 (package
5025 (name "ruby-multi-test")
5026 (version "0.1.2")
5027 (source
5028 (origin
5029 (method url-fetch)
5030 (uri (rubygems-uri "multi_test" version))
5031 (sha256
5032 (base32
5033 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
5034 (build-system ruby-build-system)
5035 (arguments
5036 '(;; Tests require different sets of specific gem versions to be available,
5037 ;; and there is no gemfile that specifies the newest versions of
5038 ;; dependencies to be tested.
5039 #:tests? #f))
5040 (synopsis
5041 "Interface to testing libraries loaded into a running Ruby process")
5042 (description
5043 "@code{multi_test} provides a uniform interface onto whatever testing
5044 libraries that have been loaded into a running Ruby process to help control
5045 rogue test/unit/autorun requires.")
5046 (home-page "https://github.com/cucumber/multi_test")
5047 (license license:expat)))
5048
5049 (define-public ruby-arel
5050 (package
5051 (name "ruby-arel")
5052 (version "9.0.0")
5053 (source (origin
5054 (method url-fetch)
5055 (uri (rubygems-uri "arel" version))
5056 (sha256
5057 (base32
5058 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
5059 (build-system ruby-build-system)
5060 (arguments '(#:tests? #f)) ; no tests
5061 (home-page "https://github.com/rails/arel")
5062 (synopsis "SQL AST manager for Ruby")
5063 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
5064 Ruby. It simplifies the generation of complex SQL queries and adapts to
5065 various relational database implementations.")
5066 (license license:expat)))
5067
5068 (define-public ruby-marcel
5069 (package
5070 (name "ruby-marcel")
5071 (version "0.3.3")
5072 (source
5073 (origin
5074 (method url-fetch)
5075 (uri (rubygems-uri "marcel" version))
5076 (sha256
5077 (base32
5078 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
5079 (build-system ruby-build-system)
5080 (arguments
5081 '(;; No included tests
5082 #:tests? #f))
5083 (propagated-inputs
5084 `(("ruby-mimemagic" ,ruby-mimemagic)))
5085 (synopsis "MIME type detection using magic numbers, filenames and extensions")
5086 (description
5087 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
5088 Extensions} type detection using magic numbers, filenames, and extensions")
5089 (home-page "https://github.com/basecamp/marcel")
5090 (license license:expat)))
5091
5092 (define-public ruby-minitar
5093 ;; We package from the GitHub source to fix the security issue reported at
5094 ;; https://github.com/halostatue/minitar/issues/16.
5095 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
5096 (package
5097 (name "ruby-minitar")
5098 (version (string-append "0.5.4-1." (string-take commit 8)))
5099 (source
5100 (origin
5101 (method git-fetch)
5102 (uri (git-reference
5103 (url "https://github.com/halostatue/minitar")
5104 (commit commit)))
5105 (file-name (string-append name "-" version "-checkout"))
5106 (sha256
5107 (base32
5108 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
5109 (build-system ruby-build-system)
5110 (arguments
5111 '(#:tests? #f)) ; missing a gemspec
5112 (synopsis "Ruby library and utility for handling tar archives")
5113 (description
5114 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
5115 that provides the ability to deal with POSIX tar archive files.")
5116 (home-page "http://www.github.com/atoulme/minitar")
5117 (license (list license:gpl2+ license:ruby)))))
5118
5119 (define-public ruby-mini-portile
5120 (package
5121 (name "ruby-mini-portile")
5122 (version "0.6.2")
5123 (source
5124 (origin
5125 (method url-fetch)
5126 (uri (rubygems-uri "mini_portile" version))
5127 (sha256
5128 (base32
5129 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
5130 (build-system ruby-build-system)
5131 (arguments
5132 '(#:tests? #f)) ; tests require network access
5133 (synopsis "Ports system for Ruby developers")
5134 (description "Mini-portile is a port/recipe system for Ruby developers.
5135 It provides a standard way to compile against specific versions of libraries
5136 to reproduce user environments.")
5137 (home-page "https://github.com/flavorjones/mini_portile")
5138 (license license:expat)))
5139
5140 (define-public ruby-mini-portile-2
5141 (package (inherit ruby-mini-portile)
5142 (version "2.4.0")
5143 (source (origin
5144 (method url-fetch)
5145 (uri (rubygems-uri "mini_portile2" version))
5146 (sha256
5147 (base32
5148 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
5149
5150 (define-public ruby-nokogiri
5151 (package
5152 (name "ruby-nokogiri")
5153 (version "1.10.9")
5154 (source (origin
5155 (method url-fetch)
5156 (uri (rubygems-uri "nokogiri" version))
5157 (sha256
5158 (base32
5159 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
5160 (build-system ruby-build-system)
5161 (arguments
5162 ;; Tests fail because Nokogiri can only test with an installed extension,
5163 ;; and also because many test framework dependencies are missing.
5164 `(#:tests? #f
5165 #:gem-flags (list "--" "--use-system-libraries"
5166 (string-append "--with-xml2-include="
5167 (assoc-ref %build-inputs "libxml2")
5168 "/include/libxml2" ))
5169 #:phases
5170 (modify-phases %standard-phases
5171 (add-before 'build 'patch-extconf
5172 ;; 'pkg-config' is not included in the GEM_PATH during
5173 ;; installation, so we add it directly to the load path.
5174 (lambda* (#:key inputs #:allow-other-keys)
5175 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
5176 (substitute* "ext/nokogiri/extconf.rb"
5177 (("gem 'pkg-config'.*")
5178 (string-append "$:.unshift '"
5179 pkg-config "/lib/ruby/vendor_ruby"
5180 "/gems/pkg-config-"
5181 ,(package-version ruby-pkg-config)
5182 "/lib'\n"))))
5183 #t)))))
5184 (native-inputs
5185 `(("ruby-hoe" ,ruby-hoe)))
5186 (inputs
5187 `(("zlib" ,zlib)
5188 ("libxml2" ,libxml2)
5189 ("libxslt" ,libxslt)))
5190 (propagated-inputs
5191 `(("ruby-mini-portile" ,ruby-mini-portile-2)
5192 ("ruby-pkg-config" ,ruby-pkg-config)))
5193 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
5194 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
5195 both CSS3 selector and XPath 1.0 support.")
5196 (home-page "http://www.nokogiri.org/")
5197 (license license:expat)))
5198
5199 (define-public ruby-method-source
5200 (package
5201 (name "ruby-method-source")
5202 (version "1.0.0")
5203 (source
5204 (origin
5205 (method url-fetch)
5206 (uri (rubygems-uri "method_source" version))
5207 (sha256
5208 (base32
5209 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5210 (build-system ruby-build-system)
5211 (arguments
5212 `(#:test-target "spec"
5213 #:phases
5214 (modify-phases %standard-phases
5215 (add-after 'unpack 'remove-git-ls-files
5216 (lambda* (#:key outputs #:allow-other-keys)
5217 (substitute* "Rakefile"
5218 (("git ls-files") "find . -type f"))
5219 #t)))))
5220 (native-inputs
5221 `(("ruby-rspec" ,ruby-rspec)))
5222 (synopsis "Retrieve the source code for Ruby methods")
5223 (description "Method_source retrieves the source code for Ruby methods.
5224 Additionally, it can extract source code from Proc and Lambda objects or just
5225 extract comments.")
5226 (home-page "https://github.com/banister/method_source")
5227 (license license:expat)))
5228
5229 (define-public ruby-coderay
5230 (package
5231 (name "ruby-coderay")
5232 (version "1.1.2")
5233 (source
5234 (origin
5235 (method url-fetch)
5236 (uri (rubygems-uri "coderay" version))
5237 (sha256
5238 (base32
5239 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5240 (build-system ruby-build-system)
5241 (arguments
5242 '(#:tests? #f)) ; missing test files
5243 (synopsis "Ruby syntax highlighting library")
5244 (description "Coderay is a Ruby library that provides syntax highlighting
5245 for select languages.")
5246 (home-page "http://coderay.rubychan.de")
5247 (license license:expat)))
5248
5249 (define-public ruby-cuke-modeler
5250 (package
5251 (name "ruby-cuke-modeler")
5252 (version "3.1.0")
5253 (source
5254 (origin
5255 (method url-fetch)
5256 (uri (rubygems-uri "cuke_modeler" version))
5257 (sha256
5258 (base32
5259 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5260 (build-system ruby-build-system)
5261 (arguments `(#:tests? #f)) ;no test suite in gem
5262 (propagated-inputs
5263 `(("ruby-gherkin" ,ruby-gherkin)))
5264 (synopsis "Gherkin test suite analysis tool")
5265 (description "CukeModeler facilitates modeling a test suite that is
5266 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5267 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5268 the @code{cucumber-gherkin} generates when parsing features, as well as
5269 providing models for feature files and directories in order to be able to have
5270 a fully traversable model tree of a test suite's structure. These models can
5271 then be analyzed or manipulated more easily than the underlying AST layer.")
5272 (home-page "https://github.com/enkessler/cuke_modeler")
5273 (license license:expat)))
5274
5275 (define-public ruby-parallel-tests
5276 (package
5277 (name "ruby-parallel-tests")
5278 (version "3.0.0")
5279 (home-page "https://github.com/grosser/parallel_tests")
5280 (source (origin
5281 (method git-fetch)
5282 (uri (git-reference
5283 (url home-page)
5284 (commit (string-append "v" version))))
5285 (file-name (string-append name version))
5286 (sha256
5287 (base32
5288 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5289 (build-system ruby-build-system)
5290 (arguments
5291 '(#:test-target "default"
5292 #:phases (modify-phases %standard-phases
5293 (add-after 'patch-source-shebangs 'patch-shell-invokations
5294 (lambda _
5295 (substitute* '("lib/parallel_tests/tasks.rb"
5296 "spec/parallel_tests/tasks_spec.rb")
5297 (("/bin/sh") (which "sh"))
5298 (("/bin/bash") (which "bash")))
5299 #t))
5300 (add-before 'check 'remove-version-constraints
5301 (lambda _
5302 ;; Remove hard coded version constraints, instead just
5303 ;; use whatever versions are available in Guix.
5304 (delete-file "Gemfile.lock")
5305 (substitute* "Gemfile"
5306 (("'minitest',.*")
5307 "'minitest'\n")
5308 (("'cucumber',.*")
5309 "'cucumber'\n"))
5310 #t))
5311 (add-before 'check 'disable-rails-test
5312 (lambda _
5313 ;; XXX: This test attempts to download and run the test
5314 ;; suites of multiple Rails versions(!) directly.
5315 (delete-file "spec/rails_spec.rb")
5316 #t))
5317 (add-before 'check 'set-HOME
5318 (lambda _
5319 ;; Some tests check the output of Bundler, and fail when
5320 ;; Bundler warns that /homeless-shelter does not exist.
5321 (setenv "HOME" "/tmp")
5322 #t)))))
5323 (native-inputs
5324 `(("ruby-bump" ,ruby-bump)
5325 ("ruby-cucumber" ,ruby-cucumber)
5326 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5327 ("ruby-minitest" ,ruby-minitest)
5328 ("ruby-rake" ,ruby-rake)
5329 ("ruby-rspec" ,ruby-rspec)
5330 ("ruby-spinach" ,ruby-spinach)))
5331 (propagated-inputs
5332 `(("ruby-parallel" ,ruby-parallel)))
5333 (synopsis "Run tests in parallel")
5334 (description
5335 "This package can speed up @code{Test::Unit}, @code{RSpec},
5336 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5337 across multiple CPU cores.")
5338 (license license:expat)))
5339
5340 (define-public ruby-parser
5341 (package
5342 (name "ruby-parser")
5343 (version "3.0.0.0")
5344 (source
5345 (origin
5346 (method url-fetch)
5347 (uri (rubygems-uri "parser" version))
5348 (sha256
5349 (base32
5350 "1jixakyzmy0j5c1rb0fjrrdhgnyryvrr6vgcybs14jfw09akv5ml"))))
5351 (build-system ruby-build-system)
5352 (arguments
5353 '(#:tests? #f)) ; tests not included in gem
5354 (native-inputs
5355 `(("bundler" ,bundler)
5356 ("ruby-cliver" ,ruby-cliver)
5357 ("ruby-simplecov" ,ruby-simplecov)
5358 ("ruby-racc" ,ruby-racc)))
5359 (inputs
5360 `(("ragel" ,ragel)))
5361 (propagated-inputs
5362 `(("ruby-ast" ,ruby-ast)))
5363 (synopsis "Ruby parser written in pure Ruby")
5364 (description
5365 "This package provides a Ruby parser written in pure Ruby.")
5366 (home-page "https://github.com/whitequark/parser")
5367 (license license:expat)))
5368
5369 (define-public ruby-sexp-processor
5370 (package
5371 (name "ruby-sexp-processor")
5372 (version "4.15.0")
5373 (source
5374 (origin
5375 (method url-fetch)
5376 (uri (rubygems-uri "sexp_processor" version))
5377 (sha256
5378 (base32
5379 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5380 (build-system ruby-build-system)
5381 (native-inputs
5382 ;; TODO: Add ruby-minitest-proveit once available.
5383 `(("hoe" ,ruby-hoe)))
5384 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5385 (description "The sexp_processor package is derived from ParseTree, but
5386 contrary to ParseTree, it includes all the generic S-exp processing tools.
5387 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5388 @code{Environment}")
5389 (home-page "https://github.com/seattlerb/sexp_processor")
5390 (license license:expat)))
5391
5392 (define-public ruby-ruby-parser
5393 (package
5394 (name "ruby-ruby-parser")
5395 (version "3.14.2")
5396 (source
5397 (origin
5398 (method url-fetch)
5399 (uri (rubygems-uri "ruby_parser" version))
5400 (sha256
5401 (base32
5402 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5403 (build-system ruby-build-system)
5404 (native-inputs
5405 `(("hoe" ,ruby-hoe)
5406 ("racc" ,ruby-racc)
5407 ("unifdef" ,unifdef)))
5408 (propagated-inputs
5409 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5410 (home-page "https://github.com/seattlerb/ruby_parser/")
5411 (synopsis "Ruby parser written in pure Ruby")
5412 (description "The ruby_parser (RP) package provides a Ruby parser written
5413 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5414 back to Ruby via the @code{ruby2ruby} library.")
5415 (license license:expat)))
5416
5417 (define-public ruby-prawn-manual-builder
5418 (package
5419 (name "ruby-prawn-manual-builder")
5420 (version "0.3.1")
5421 (source
5422 (origin
5423 (method url-fetch)
5424 (uri (rubygems-uri "prawn-manual_builder" version))
5425 (sha256
5426 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5427 (build-system ruby-build-system)
5428 (arguments
5429 '(#:tests? #f ; no included tests
5430 #:phases
5431 (modify-phases %standard-phases
5432 (add-after 'extract-gemspec 'patch-gemspec
5433 (lambda _
5434 (substitute* ".gemspec"
5435 ;; Loosen the requirement for pdf-inspector
5436 (("~> 1\\.0\\.7") ">= 0")))))))
5437 (propagated-inputs
5438 `(("ruby-coderay" ,ruby-coderay)))
5439 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5440 (description
5441 "This package provides a tool for writing manuals for Prawn and Prawn
5442 accessories")
5443 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5444 (license %prawn-project-licenses)))
5445
5446 (define-public ruby-progress_bar
5447 (package
5448 (name "ruby-progress_bar")
5449 (version "1.1.0")
5450 (source
5451 (origin
5452 (method url-fetch)
5453 (uri (rubygems-uri "progress_bar" version))
5454 (sha256
5455 (base32
5456 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5457 (build-system ruby-build-system)
5458 (arguments
5459 '(#:test-target "spec"))
5460 (propagated-inputs
5461 `(("ruby-highline" ,ruby-highline)
5462 ("ruby-options" ,ruby-options)))
5463 (native-inputs
5464 `(("bundler" ,bundler)
5465 ("ruby-rspec" ,ruby-rspec)
5466 ("ruby-timecop" ,ruby-timecop)))
5467 (synopsis
5468 "Ruby library for displaying progress bars")
5469 (description
5470 "ProgressBar is a simple library for displaying progress bars. The
5471 maximum value is configurable, and additional information can be displayed
5472 like the percentage completion, estimated time remaining, elapsed time and
5473 rate.")
5474 (home-page "https://github.com/paul/progress_bar")
5475 (license license:wtfpl2)))
5476
5477 (define-public ruby-dep
5478 (package
5479 (name "ruby-dep")
5480 (version "1.5.0")
5481 (source
5482 (origin
5483 (method url-fetch)
5484 (uri (rubygems-uri "ruby_dep" version))
5485 (sha256
5486 (base32
5487 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5488 (build-system ruby-build-system)
5489 (arguments
5490 '(#:tests? #f)) ; No included tests
5491 (synopsis "Creates a version constraint of supported Rubies")
5492 (description
5493 "This package helps create a version constraint of supported Rubies,
5494 suitable for a gemspec file.")
5495 (home-page "https://github.com/e2/ruby_dep")
5496 (license license:expat)))
5497
5498 (define-public ruby-progressbar
5499 (package
5500 (name "ruby-progressbar")
5501 (version "1.10.1")
5502 (source
5503 (origin
5504 (method url-fetch)
5505 (uri (rubygems-uri "ruby-progressbar" version))
5506 (sha256
5507 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5508 (build-system ruby-build-system)
5509 (arguments
5510 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5511 #:tests? #f))
5512 (synopsis "Text progress bar library for Ruby")
5513 (description
5514 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5515 The output can be customized with a formatting system.")
5516 (home-page "https://github.com/jfelchner/ruby-progressbar")
5517 (license license:expat)))
5518
5519 (define-public ruby-pry
5520 (package
5521 (name "ruby-pry")
5522 (version "0.13.1")
5523 (source
5524 (origin
5525 (method url-fetch)
5526 (uri (rubygems-uri "pry" version))
5527 (sha256
5528 (base32
5529 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5530 (build-system ruby-build-system)
5531 (arguments
5532 '(#:tests? #f)) ; no tests
5533 (propagated-inputs
5534 `(("ruby-coderay" ,ruby-coderay)
5535 ("ruby-method-source" ,ruby-method-source)))
5536 (synopsis "Ruby REPL")
5537 (description "Pry is an IRB alternative and runtime developer console for
5538 Ruby. It features syntax highlighting, a plugin architecture, runtime
5539 invocation, and source and documentation browsing.")
5540 (home-page "https://cobaltbluemedia.com/pryrepl/")
5541 (license license:expat)))
5542
5543 (define-public ruby-single-cov
5544 (package
5545 (name "ruby-single-cov")
5546 (version "1.3.2")
5547 (home-page "https://github.com/grosser/single_cov")
5548 (source (origin
5549 (method git-fetch)
5550 (uri (git-reference (url home-page)
5551 (commit (string-append "v" version))))
5552 (file-name (git-file-name name version))
5553 (sha256
5554 (base32
5555 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5556 (build-system ruby-build-system)
5557 (arguments
5558 '(#:test-target "default"
5559 #:phases (modify-phases %standard-phases
5560 (replace 'replace-git-ls-files
5561 (lambda _
5562 (substitute* "single_cov.gemspec"
5563 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5564 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5565 #t))
5566 (add-before 'check 'remove-version-constraints
5567 (lambda _
5568 (delete-file "Gemfile.lock")
5569 #t))
5570 (add-before 'check 'make-files-writable
5571 (lambda _
5572 ;; Tests need to create local directories and open files
5573 ;; with write permissions.
5574 (for-each make-file-writable
5575 (find-files "specs" #:directories? #t))
5576 #t))
5577 (add-before 'check 'disable-failing-test
5578 (lambda _
5579 ;; XXX: This test copies assets from minitest, but can
5580 ;; not cope with the files being read-only. Just skip
5581 ;; it for now.
5582 (substitute* "specs/single_cov_spec.rb"
5583 (("it \"complains when coverage is bad\"")
5584 "xit \"complains when coverage is bad\""))
5585 #t)))))
5586 (native-inputs
5587 `(("ruby-bump" ,ruby-bump)
5588 ("ruby-minitest" ,ruby-minitest)
5589 ("ruby-rspec" ,ruby-rspec)
5590 ("ruby-simplecov" ,ruby-simplecov)))
5591 (synopsis "Code coverage reporting tool")
5592 (description
5593 "This package provides actionable code coverage reports for Ruby
5594 projects. It has very little overhead and can be easily integrated with
5595 development tools to catch coverage problems early.")
5596 (license license:expat)))
5597
5598 (define-public ruby-oedipus-lex
5599 (package
5600 (name "ruby-oedipus-lex")
5601 (version "2.5.2")
5602 (source
5603 (origin
5604 (method url-fetch)
5605 (uri (rubygems-uri "oedipus_lex" version))
5606 (sha256
5607 (base32
5608 "1v1rk78khwq87ar300lwll570zxpkq9rjnpgc9mgsyd6mm9qjz4w"))))
5609 (build-system ruby-build-system)
5610 (native-inputs
5611 `(("ruby-hoe" ,ruby-hoe)))
5612 (synopsis "Ruby lexer")
5613 (description
5614 "Oedipus Lex is a lexer generator in the same family as Rexical and Rex.
5615 It is based primarily on generating code much like you would a hand-written
5616 lexer. It uses StrScanner within a multi-level case statement. As such,
5617 Oedipus matches on the first match, not the longest.")
5618 (home-page "https://github.com/seattlerb/oedipus_lex")
5619 (license license:expat)))
5620
5621 (define-public ruby-guard
5622 (package
5623 (name "ruby-guard")
5624 (version "2.13.0")
5625 (source (origin
5626 (method git-fetch)
5627 ;; The gem does not include a Rakefile, nor does it contain a
5628 ;; gemspec file, nor does it come with the tests. This is why
5629 ;; we fetch the tarball from Github.
5630 (uri (git-reference
5631 (url "https://github.com/guard/guard")
5632 (commit (string-append "v" version))))
5633 (file-name (git-file-name name version))
5634 (sha256
5635 (base32
5636 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5637 (build-system ruby-build-system)
5638 (arguments
5639 `(#:tests? #f ; tests require cucumber
5640 #:phases
5641 (modify-phases %standard-phases
5642 (add-after 'unpack 'remove-git-ls-files
5643 (lambda* (#:key outputs #:allow-other-keys)
5644 (substitute* "guard.gemspec"
5645 (("git ls-files -z") "find . -type f -print0"))
5646 #t))
5647 (replace 'build
5648 (lambda _
5649 (invoke "gem" "build" "guard.gemspec"))))))
5650 (propagated-inputs
5651 `(("ruby-formatador" ,ruby-formatador)
5652 ("ruby-listen" ,ruby-listen)
5653 ("ruby-lumberjack" ,ruby-lumberjack)
5654 ("ruby-nenv" ,ruby-nenv)
5655 ("ruby-notiffany" ,ruby-notiffany)
5656 ("ruby-pry" ,ruby-pry)
5657 ("ruby-shellany" ,ruby-shellany)
5658 ("ruby-thor" ,ruby-thor)))
5659 (native-inputs
5660 `(("bundler" ,bundler)
5661 ("ruby-rspec" ,ruby-rspec)))
5662 (synopsis "Tool to handle events on file system modifications")
5663 (description
5664 "Guard is a command line tool to easily handle events on file system
5665 modifications. Guard automates various tasks by running custom rules whenever
5666 file or directories are modified.")
5667 (home-page "https://guardgem.org/")
5668 (license license:expat)))
5669
5670 (define-public ruby-spinach
5671 (package
5672 (name "ruby-spinach")
5673 (version "0.11.0")
5674 (home-page "https://github.com/codegram/spinach")
5675 (source (origin
5676 (method url-fetch)
5677 (uri (rubygems-uri "spinach" version))
5678 (sha256
5679 (base32
5680 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5681 (build-system ruby-build-system)
5682 (arguments
5683 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5684 ;; which in turn depends on many other unpackaged gems. Enable once
5685 ;; capybara is available.
5686 '(#:tests? #f))
5687 (propagated-inputs
5688 `(("ruby-colorize" ,ruby-colorize)
5689 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5690 ("ruby-json" ,ruby-json)))
5691 (synopsis "Gherkin-based BDD framework")
5692 (description
5693 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5694 framework that leverages the expressive @code{Gherkin} language to help you
5695 define executable specifications of your code.")
5696 (license license:expat)))
5697
5698 (define-public ruby-tilt
5699 (package
5700 (name "ruby-tilt")
5701 (version "2.0.10")
5702 (source
5703 (origin
5704 (method git-fetch) ;the distributed gem lacks tests
5705 (uri (git-reference
5706 (url "https://github.com/rtomayko/tilt")
5707 (commit (string-append "v" version))))
5708 (file-name (git-file-name name version))
5709 (sha256
5710 (base32
5711 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5712 (build-system ruby-build-system)
5713 (arguments
5714 '(#:phases
5715 (modify-phases %standard-phases
5716 (add-after 'unpack 'remove-some-dependencies
5717 (lambda _
5718 (substitute* "Gemfile"
5719 ;; TODO ronn is used for generating the manual
5720 (("gem 'ronn'.*") "\n")
5721 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5722 ;; pass it in as a native-input
5723 (("gem 'haml'.*") "\n")
5724 ;; TODO Not all of these gems are packaged for Guix yet:
5725 ;; less, coffee-script, livescript, babel-transpiler,
5726 ;; typescript-node
5727 (("if can_execjs") "if false")
5728 ;; Disable the secondary group to reduce the number of
5729 ;; dependencies. None of the normal approaches work, so patch
5730 ;; the Gemfile instead.
5731 (("group :secondary") "[].each"))
5732 #t)))))
5733 (propagated-inputs
5734 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5735 ("ruby-sassc" ,ruby-sassc)))
5736 (native-inputs
5737 `(("bundler" ,bundler)
5738 ("ruby-yard" ,ruby-yard)
5739 ("ruby-builder" ,ruby-builder)
5740 ("ruby-erubis" ,ruby-erubis)
5741 ("ruby-markaby" ,ruby-markaby)))
5742 (synopsis "Generic interface to multiple Ruby template engines")
5743 (description
5744 "Tilt is a thin interface over a number of different Ruby template
5745 engines in an attempt to make their usage as generic as possible.")
5746 (home-page "https://github.com/rtomayko/tilt/")
5747 (license license:expat)))
5748
5749 (define-public ruby-thread-safe
5750 (package
5751 (name "ruby-thread-safe")
5752 (version "0.3.6")
5753 (source
5754 (origin
5755 (method url-fetch)
5756 (uri (rubygems-uri "thread_safe" version))
5757 (sha256
5758 (base32
5759 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5760 (build-system ruby-build-system)
5761 (arguments
5762 '(#:tests? #f)) ; needs simplecov, among others
5763 (synopsis "Thread-safe utilities for Ruby")
5764 (description "The thread_safe library provides thread-safe collections and
5765 utilities for Ruby.")
5766 (home-page "https://github.com/ruby-concurrency/thread_safe")
5767 (license license:asl2.0)))
5768
5769 (define-public ruby-tzinfo
5770 (package
5771 (name "ruby-tzinfo")
5772 (version "1.2.4")
5773 (source
5774 (origin
5775 (method url-fetch)
5776 (uri (rubygems-uri "tzinfo" version))
5777 (sha256
5778 (base32
5779 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5780 (build-system ruby-build-system)
5781 (arguments
5782 '(#:phases
5783 (modify-phases %standard-phases
5784 (add-after 'unpack 'skip-safe-tests
5785 (lambda _
5786 (substitute* "test/test_utils.rb"
5787 (("def safe_test\\(options = \\{\\}\\)")
5788 "def safe_test(options = {})
5789 skip('The Guix build environment has an unsafe load path')"))
5790 #t)))))
5791 (propagated-inputs
5792 `(("ruby-thread-safe" ,ruby-thread-safe)))
5793 (synopsis "Time zone library for Ruby")
5794 (description "TZInfo is a Ruby library that provides daylight savings
5795 aware transformations between times in different time zones.")
5796 (home-page "https://tzinfo.github.io")
5797 (license license:expat)))
5798
5799 (define-public ruby-tzinfo-data
5800 (package
5801 (name "ruby-tzinfo-data")
5802 (version "1.2017.3")
5803 (source
5804 (origin
5805 (method git-fetch)
5806 ;; Download from GitHub because the rubygems version does not contain
5807 ;; Rakefile or tests.
5808 (uri (git-reference
5809 (url "https://github.com/tzinfo/tzinfo-data")
5810 (commit (string-append "v" version))))
5811 (file-name (git-file-name name version))
5812 (sha256
5813 (base32
5814 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5815 ;; Remove the known test failure.
5816 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5817 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5818 (patches (search-patches
5819 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5820 (build-system ruby-build-system)
5821 (propagated-inputs
5822 `(("ruby-tzinfo" ,ruby-tzinfo)))
5823 (synopsis "Data from the IANA Time Zone database")
5824 (description
5825 "This library provides @code{TZInfo::Data}, which contains data from the
5826 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5827 (home-page "https://tzinfo.github.io")
5828 (license license:expat)))
5829
5830 (define-public ruby-rb-inotify
5831 (package
5832 (name "ruby-rb-inotify")
5833 (version "0.9.10")
5834 (source
5835 (origin
5836 (method url-fetch)
5837 (uri (rubygems-uri "rb-inotify" version))
5838 (sha256
5839 (base32
5840 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5841 (build-system ruby-build-system)
5842 (arguments
5843 '(#:tests? #f ; there are no tests
5844 #:phases
5845 (modify-phases %standard-phases
5846 ;; Building the gemspec with rake is not working here since it is
5847 ;; generated with Jeweler. It is also unnecessary because the
5848 ;; existing gemspec does not use any development tools to generate a
5849 ;; list of files.
5850 (replace 'build
5851 (lambda _
5852 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5853 (propagated-inputs
5854 `(("ruby-ffi" ,ruby-ffi)))
5855 (native-inputs
5856 `(("ruby-yard" ,ruby-yard)))
5857 (synopsis "Ruby wrapper for Linux's inotify")
5858 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5859 kernel subsystem for monitoring changes to files and directories.")
5860 (home-page "https://github.com/nex3/rb-inotify")
5861 (license license:expat)))
5862
5863 (define-public ruby-pry-editline
5864 (package
5865 (name "ruby-pry-editline")
5866 (version "1.1.2")
5867 (source (origin
5868 (method url-fetch)
5869 (uri (rubygems-uri "pry-editline" version))
5870 (sha256
5871 (base32
5872 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5873 (build-system ruby-build-system)
5874 (arguments `(#:tests? #f)) ; no tests included
5875 (native-inputs
5876 `(("bundler" ,bundler)))
5877 (synopsis "Open the current REPL line in an editor")
5878 (description
5879 "This gem provides a plugin for the Ruby REPL to enable opening the
5880 current line in an external editor.")
5881 (home-page "https://github.com/tpope/pry-editline")
5882 (license license:expat)))
5883
5884 (define-public ruby-sdoc
5885 (package
5886 (name "ruby-sdoc")
5887 (version "1.1.0")
5888 (source (origin
5889 (method url-fetch)
5890 (uri (rubygems-uri "sdoc" version))
5891 (sha256
5892 (base32
5893 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5894 (build-system ruby-build-system)
5895 (arguments
5896 `(#:phases
5897 (modify-phases %standard-phases
5898 (add-before 'check 'set-rubylib-and-patch-gemfile
5899 (lambda _
5900 (setenv "RUBYLIB" "lib")
5901 (substitute* "sdoc.gemspec"
5902 (("s.add_runtime_dependency.*") "\n")
5903 (("s.add_dependency.*") "\n"))
5904 (substitute* "Gemfile"
5905 (("gem \"rake\".*")
5906 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5907 #t)))))
5908 (propagated-inputs
5909 `(("ruby-json" ,ruby-json)))
5910 (native-inputs
5911 `(("bundler" ,bundler)
5912 ("ruby-minitest" ,ruby-minitest)
5913 ("ruby-hoe" ,ruby-hoe)))
5914 (synopsis "Generate searchable RDoc documentation")
5915 (description
5916 "SDoc is an RDoc documentation generator to build searchable HTML
5917 documentation for Ruby code.")
5918 (home-page "https://github.com/voloko/sdoc")
5919 (license license:expat)))
5920
5921 (define-public ruby-tins
5922 (package
5923 (name "ruby-tins")
5924 (version "1.15.0")
5925 (source (origin
5926 (method url-fetch)
5927 (uri (rubygems-uri "tins" version))
5928 (sha256
5929 (base32
5930 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5931 (build-system ruby-build-system)
5932 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5933 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5934 ;; the gemspec.
5935 (arguments
5936 `(#:tests? #f ; there are no tests
5937 #:phases
5938 (modify-phases %standard-phases
5939 (replace 'build
5940 (lambda _
5941 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5942 ;; causes an error.
5943 (substitute* "tins.gemspec"
5944 (("\"lib/spruz\", ") ""))
5945 (invoke "gem" "build" "tins.gemspec"))))))
5946 (synopsis "Assorted tools for Ruby")
5947 (description "Tins is a Ruby library providing assorted tools.")
5948 (home-page "https://github.com/flori/tins")
5949 (license license:expat)))
5950
5951 (define-public ruby-gem-hadar
5952 (package
5953 (name "ruby-gem-hadar")
5954 (version "1.11.0")
5955 (source (origin
5956 (method url-fetch)
5957 (uri (rubygems-uri "gem_hadar" version))
5958 (sha256
5959 (base32
5960 "160abb3l4n3gkhd86f22n981bhqxkbf5ym6fhsk796pix6696pd5"))))
5961 (build-system ruby-build-system)
5962 ;; This gem needs itself at development time. We disable rebuilding of the
5963 ;; gemspec to avoid this loop.
5964 (arguments
5965 `(#:tests? #f ; there are no tests
5966 #:phases
5967 (modify-phases %standard-phases
5968 (replace 'build
5969 (lambda _
5970 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5971 (propagated-inputs
5972 `(("git" ,git)
5973 ("ruby-tins" ,ruby-tins)
5974 ("ruby-yard" ,ruby-yard)))
5975 (synopsis "Library for the development of Ruby gems")
5976 (description
5977 "This library contains some useful functionality to support the
5978 development of Ruby gems.")
5979 (home-page "https://github.com/flori/gem_hadar")
5980 (license license:expat)))
5981
5982 (define-public ruby-minitest-tu-shim
5983 (package
5984 (name "ruby-minitest-tu-shim")
5985 (version "1.3.3")
5986 (source (origin
5987 (method url-fetch)
5988 (uri (rubygems-uri "minitest_tu_shim" version))
5989 (sha256
5990 (base32
5991 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5992 (build-system ruby-build-system)
5993 (arguments
5994 `(#:phases
5995 (modify-phases %standard-phases
5996 (add-after 'unpack 'fix-test-include-path
5997 (lambda* (#:key inputs #:allow-other-keys)
5998 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5999 (substitute* "Rakefile"
6000 (("Hoe\\.add_include_dirs .*")
6001 (string-append "Hoe.add_include_dirs \""
6002 minitest "/lib/ruby/vendor_ruby"
6003 "/gems/minitest-"
6004 ,(package-version ruby-minitest-4)
6005 "/lib" "\""))))
6006 #t))
6007 (add-before 'check 'fix-test-assumptions
6008 (lambda _
6009 ;; The test output includes the file name, so a couple of tests
6010 ;; fail. Changing the regular expressions slightly fixes this
6011 ;; problem.
6012 (substitute* "test/test_mini_test.rb"
6013 (("output.sub!\\(.*, 'FILE:LINE'\\)")
6014 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
6015 (("gsub\\(/.*, 'FILE:LINE'\\)")
6016 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
6017 #t)))))
6018 (propagated-inputs
6019 `(("ruby-minitest-4" ,ruby-minitest-4)))
6020 (native-inputs
6021 `(("ruby-hoe" ,ruby-hoe)))
6022 (synopsis "Adapter library between minitest and test/unit")
6023 (description
6024 "This library bridges the gap between the small and fast minitest and
6025 Ruby's large and slower test/unit.")
6026 (home-page "https://rubygems.org/gems/minitest_tu_shim")
6027 (license license:expat)))
6028
6029 (define-public ruby-term-ansicolor
6030 (package
6031 (name "ruby-term-ansicolor")
6032 (version "1.6.0")
6033 (source (origin
6034 (method url-fetch)
6035 (uri (rubygems-uri "term-ansicolor" version))
6036 (sha256
6037 (base32
6038 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
6039 (build-system ruby-build-system)
6040 ;; Rebuilding the gemspec seems to require git, even though this is not a
6041 ;; git repository, so we just build the gem from the existing gemspec.
6042 (arguments
6043 `(#:phases
6044 (modify-phases %standard-phases
6045 (add-after 'unpack 'fix-test
6046 (lambda -
6047 (substitute* "tests/hsl_triple_test.rb"
6048 (("0\\\\\\.0%")
6049 "0\\.?0?%"))))
6050 (replace 'build
6051 (lambda _
6052 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
6053 (propagated-inputs
6054 `(("ruby-tins" ,ruby-tins)))
6055 (native-inputs
6056 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6057 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
6058 (synopsis "Ruby library to control the attributes of terminal output")
6059 (description
6060 "This Ruby library uses ANSI escape sequences to control the attributes
6061 of terminal output.")
6062 (home-page "https://flori.github.io/term-ansicolor/")
6063 ;; There is no mention of the "or later" clause.
6064 (license license:gpl2)))
6065
6066 (define-public ruby-terraform
6067 (package
6068 (name "ruby-terraform")
6069 (version "0.22.0")
6070 (source
6071 (origin
6072 (method url-fetch)
6073 (uri (rubygems-uri "ruby-terraform" version))
6074 (sha256
6075 (base32
6076 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
6077 (build-system ruby-build-system)
6078 (arguments
6079 '(#:tests? #f)) ; No included tests
6080 (propagated-inputs
6081 `(("ruby-lino" ,ruby-lino)))
6082 (synopsis "Ruby wrapper around the Terraform command line interface")
6083 (description
6084 "This package provides a Ruby wrapper around the Terraform command line
6085 interface so that Terraform can be more easily invoked from Ruby code.")
6086 (home-page "https://github.com/infrablocks/ruby_terraform")
6087 (license license:expat)))
6088
6089 (define-public ruby-pstree
6090 (package
6091 (name "ruby-pstree")
6092 (version "0.1.0")
6093 (source (origin
6094 (method url-fetch)
6095 (uri (rubygems-uri "pstree" version))
6096 (sha256
6097 (base32
6098 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
6099 (build-system ruby-build-system)
6100 (native-inputs
6101 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6102 ("bundler" ,bundler)))
6103 (synopsis "Create a process tree data structure")
6104 (description
6105 "This library uses the output of the @code{ps} command to create a
6106 process tree data structure for the current host.")
6107 (home-page "https://github.com/flori/pstree")
6108 ;; There is no mention of the "or later" clause.
6109 (license license:gpl2)))
6110
6111 (define-public ruby-utils
6112 (package
6113 (name "ruby-utils")
6114 (version "0.9.0")
6115 (source (origin
6116 (method url-fetch)
6117 (uri (rubygems-uri "utils" version))
6118 (sha256
6119 (base32
6120 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
6121 (build-system ruby-build-system)
6122 (propagated-inputs
6123 `(("ruby-tins" ,ruby-tins)
6124 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
6125 ("ruby-pstree" ,ruby-pstree)
6126 ("ruby-pry-editline" ,ruby-pry-editline)))
6127 (native-inputs
6128 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6129 ("bundler" ,bundler)))
6130 (synopsis "Command line tools for working with Ruby")
6131 (description
6132 "This package provides assorted command line tools that may be useful
6133 when working with Ruby code.")
6134 (home-page "https://github.com/flori/utils")
6135 ;; There is no mention of the "or later" clause.
6136 (license license:gpl2)))
6137
6138 (define-public ruby-jaro-winkler
6139 (package
6140 (name "ruby-jaro-winkler")
6141 (version "1.5.4")
6142 (source
6143 (origin
6144 (method url-fetch)
6145 (uri (rubygems-uri "jaro_winkler" version))
6146 (sha256
6147 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
6148 (build-system ruby-build-system)
6149 (arguments
6150 '(#:tests? #f)) ; no included tests
6151 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
6152 (description
6153 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
6154 algorithm. It is written as a C extension and will fallback to a pure Ruby
6155 implementation on platforms where this is unsupported.")
6156 (home-page "https://github.com/tonytonyjan/jaro_winkler")
6157 (license license:expat)))
6158
6159 (define-public ruby-json
6160 (package
6161 (name "ruby-json")
6162 (version "2.1.0")
6163 (source
6164 (origin
6165 (method url-fetch)
6166 (uri (rubygems-uri "json" version))
6167 (sha256
6168 (base32
6169 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
6170 (build-system ruby-build-system)
6171 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
6172 (synopsis "JSON library for Ruby")
6173 (description "This Ruby library provides a JSON implementation written as
6174 a native C extension.")
6175 (home-page "http://json-jruby.rubyforge.org/")
6176 (license (list license:ruby license:gpl2)))) ; GPL2 only
6177
6178 (define-public ruby-json-pure
6179 (package
6180 (name "ruby-json-pure")
6181 (version "2.2.0")
6182 (source (origin
6183 (method url-fetch)
6184 (uri (rubygems-uri "json_pure" version))
6185 (sha256
6186 (base32
6187 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
6188 (build-system ruby-build-system)
6189 (arguments
6190 `(#:phases
6191 (modify-phases %standard-phases
6192 (add-after 'unpack 'fix-rakefile
6193 (lambda _
6194 (substitute* "Rakefile"
6195 ;; Since this is not a git repository, do not call 'git'.
6196 (("`git ls-files`") "`find . -type f |sort`")
6197 ;; Loosen dependency constraint.
6198 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
6199 #t))
6200 (add-after 'replace-git-ls-files 'regenerate-gemspec
6201 (lambda _
6202 ;; Regenerate gemspec so loosened dependency constraints are
6203 ;; propagated.
6204 (invoke "rake" "gemspec")))
6205 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
6206 (lambda _
6207 ;; This gemspec doesn't look to be generated by the above
6208 ;; command, so patch it separately.
6209 (substitute* "json-java.gemspec"
6210 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
6211 "%q<test-unit>.freeze, [\">= 2.0\"]"))
6212 #t)))))
6213 (native-inputs
6214 `(("bundler" ,bundler)
6215 ("ragel" ,ragel)
6216 ("ruby-simplecov" ,ruby-simplecov)
6217 ("ruby-test-unit" ,ruby-test-unit)))
6218 (synopsis "JSON implementation in pure Ruby")
6219 (description
6220 "This package provides a JSON implementation written in pure Ruby.")
6221 (home-page "https://flori.github.com/json/")
6222 (license license:ruby)))
6223
6224 (define-public ruby-jwt
6225 (package
6226 (name "ruby-jwt")
6227 (version "2.1.0")
6228 (source
6229 (origin
6230 (method url-fetch)
6231 (uri (rubygems-uri "jwt" version))
6232 (sha256
6233 (base32
6234 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
6235 (build-system ruby-build-system)
6236 (arguments
6237 '(#:test-target "test"
6238 #:phases
6239 (modify-phases %standard-phases
6240 (add-after 'unpack 'remove-unnecessary-dependencies
6241 (lambda _
6242 (substitute* "spec/spec_helper.rb"
6243 (("require 'simplecov.*") "\n")
6244 ;; Use [].each to disable running the SimpleCov configuration
6245 ;; block
6246 (("SimpleCov\\.configure") "[].each")
6247 (("require 'codeclimate-test-reporter'") "")
6248 (("require 'codacy-coverage'") "")
6249 (("Codacy::Reporter\\.start") ""))
6250 #t)))))
6251 (native-inputs
6252 `(("bundler" ,bundler)
6253 ("ruby-rspec" ,ruby-rspec)
6254 ("ruby-rbnacl" ,ruby-rbnacl)))
6255 (synopsis "Ruby implementation of the JSON Web Token standard")
6256 (description
6257 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6258 @acronym{JWT, JSON Web Token} standard.")
6259 (home-page "https://github.com/jwt/ruby-jwt")
6260 (license license:expat)))
6261
6262 ;; Even though this package only provides bindings for a Mac OSX API it is
6263 ;; required by "ruby-listen" at runtime.
6264 (define-public ruby-rb-fsevent
6265 (package
6266 (name "ruby-rb-fsevent")
6267 (version "0.10.3")
6268 (source (origin
6269 (method url-fetch)
6270 (uri (rubygems-uri "rb-fsevent" version))
6271 (sha256
6272 (base32
6273 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6274 (build-system ruby-build-system)
6275 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6276 ;; "listen", which needs "rb-fsevent" at runtime.
6277 (arguments `(#:tests? #f))
6278 (synopsis "FSEvents API with signals catching")
6279 (description
6280 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6281 (home-page "https://rubygems.org/gems/rb-fsevent")
6282 (license license:expat)))
6283
6284 (define-public ruby-listen
6285 (package
6286 (name "ruby-listen")
6287 (version "3.2.0")
6288 (source
6289 (origin
6290 ;; The gem does not include a Rakefile, so fetch from the Git
6291 ;; repository.
6292 (method git-fetch)
6293 (uri (git-reference
6294 (url "https://github.com/guard/listen")
6295 (commit (string-append "v" version))))
6296 (file-name (git-file-name name version))
6297 (sha256
6298 (base32
6299 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6300 (build-system ruby-build-system)
6301 (arguments
6302 `(#:test-target "spec"
6303 #:phases
6304 (modify-phases %standard-phases
6305 (add-after 'unpack 'fix-files-in-gemspec
6306 (lambda _
6307 (substitute* "listen.gemspec"
6308 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6309 #t))
6310 (add-before 'check 'remove-unnecessary-dependencies'
6311 (lambda _
6312 (substitute* "Rakefile"
6313 ;; Rubocop is for code linting, and is unnecessary for running
6314 ;; the tests.
6315 ((".*rubocop.*") ""))
6316 #t)))))
6317 (native-inputs
6318 `(("bundler" ,bundler)
6319 ("ruby-rspec" ,ruby-rspec)))
6320 (inputs
6321 `(;; ruby-thor is used for the command line interface, and is referenced
6322 ;; in the wrapper, and therefore just needs to be an input.
6323 ("ruby-thor" ,ruby-thor)))
6324 (propagated-inputs
6325 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6326 ("ruby-rb-inotify" ,ruby-rb-inotify)
6327 ("ruby-dep" ,ruby-dep)))
6328 (synopsis "Listen to file modifications")
6329 (description "The Listen gem listens to file modifications and notifies
6330 you about the changes.")
6331 (home-page "https://github.com/guard/listen")
6332 (license license:expat)))
6333
6334 (define-public ruby-loofah
6335 (package
6336 (name "ruby-loofah")
6337 (version "2.2.3")
6338 (source
6339 (origin
6340 (method url-fetch)
6341 (uri (rubygems-uri "loofah" version))
6342 (sha256
6343 (base32
6344 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6345 (build-system ruby-build-system)
6346 (arguments
6347 '(#:phases
6348 (modify-phases %standard-phases
6349 (add-after 'unpack 'remove-unnecessary-dependencies
6350 (lambda _
6351 ;; concourse is a development tool which is unused, so remove it
6352 ;; so it's not required.
6353 (substitute* "Gemfile"
6354 ((".*\"concourse\".*") "\n"))
6355 (substitute* "Rakefile"
6356 (("require 'concourse'") "")
6357 (("Concourse\\.new.*") "\n"))
6358 #t)))))
6359 (native-inputs
6360 `(("ruby-hoe" ,ruby-hoe)
6361 ("ruby-rr" ,ruby-rr)))
6362 (propagated-inputs
6363 `(("ruby-nokogiri" ,ruby-nokogiri)
6364 ("ruby-crass" ,ruby-crass)))
6365 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6366 (description
6367 "Loofah is a general library for manipulating and transforming HTML/XML
6368 documents and fragments. It's built on top of Nokogiri and libxml2.")
6369 (home-page "https://github.com/flavorjones/loofah")
6370 (license license:expat)))
6371
6372 (define-public ruby-activesupport
6373 (package
6374 (name "ruby-activesupport")
6375 (version "5.2.2.1")
6376 (source
6377 (origin
6378 (method url-fetch)
6379 (uri (rubygems-uri "activesupport" version))
6380 (sha256
6381 (base32
6382 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6383 (build-system ruby-build-system)
6384 (arguments
6385 `(#:phases
6386 (modify-phases %standard-phases
6387 (replace 'check
6388 (lambda _
6389 ;; There are no tests, instead attempt to load the library.
6390 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6391 (propagated-inputs
6392 `(("ruby-concurrent" ,ruby-concurrent)
6393 ("ruby-i18n" ,ruby-i18n)
6394 ("ruby-minitest" ,ruby-minitest)
6395 ("ruby-tzinfo" ,ruby-tzinfo)
6396 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6397 (synopsis "Ruby on Rails utility library")
6398 (description "ActiveSupport is a toolkit of support libraries and Ruby
6399 core extensions extracted from the Rails framework. It includes support for
6400 multibyte strings, internationalization, time zones, and testing.")
6401 (home-page "http://www.rubyonrails.org")
6402 (license license:expat)))
6403
6404 (define-public ruby-crass
6405 (package
6406 (name "ruby-crass")
6407 (version "1.0.6")
6408 (home-page "https://github.com/rgrove/crass")
6409 (source (origin
6410 ;; The gem does not contain tests, so pull from git.
6411 (method git-fetch)
6412 (uri (git-reference
6413 (url home-page)
6414 (commit (string-append "v" version))))
6415 (file-name (git-file-name name version))
6416 (sha256
6417 (base32
6418 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6419 (build-system ruby-build-system)
6420 (synopsis "Pure Ruby CSS parser")
6421 (description
6422 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6423 (license license:expat)))
6424
6425 (define-public ruby-nokogumbo
6426 (package
6427 (name "ruby-nokogumbo")
6428 (version "2.0.2")
6429 (source (origin
6430 ;; We use the git reference, because there's no Rakefile in the
6431 ;; published gem and the tarball on Github is outdated.
6432 (method git-fetch)
6433 (uri (git-reference
6434 (url "https://github.com/rubys/nokogumbo")
6435 (commit (string-append "v" version))))
6436 (file-name (string-append name "-" version "-checkout"))
6437 (sha256
6438 (base32
6439 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6440 (build-system ruby-build-system)
6441 (native-inputs
6442 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6443 (inputs
6444 `(("gumbo-parser" ,gumbo-parser)))
6445 (propagated-inputs
6446 `(("ruby-nokogiri" ,ruby-nokogiri)))
6447 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6448 (description
6449 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6450 access the result as a Nokogiri parsed document.")
6451 (home-page "https://github.com/rubys/nokogumbo/")
6452 (license license:asl2.0)))
6453
6454 (define-public ruby-sanitize
6455 (package
6456 (name "ruby-sanitize")
6457 (version "5.1.0")
6458 (home-page "https://github.com/rgrove/sanitize")
6459 (source (origin
6460 (method git-fetch)
6461 ;; The gem does not include the Rakefile, so we download the
6462 ;; source from Github.
6463 (uri (git-reference
6464 (url home-page)
6465 (commit (string-append "v" version))))
6466 (file-name (git-file-name name version))
6467 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6468 (sha256
6469 (base32
6470 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6471 (build-system ruby-build-system)
6472 (propagated-inputs
6473 `(("ruby-crass" ,ruby-crass)
6474 ("ruby-nokogiri" ,ruby-nokogiri)
6475 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6476 (native-inputs
6477 `(("ruby-minitest" ,ruby-minitest)))
6478 (synopsis "Whitelist-based HTML and CSS sanitizer")
6479 (description
6480 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6481 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6482 unacceptable HTML and/or CSS from a string.")
6483 (license license:expat)))
6484
6485 (define-public ruby-oj
6486 (package
6487 (name "ruby-oj")
6488 (version "3.10.1")
6489 (source
6490 (origin
6491 (method git-fetch)
6492 ;; Version on rubygems.org does not contain Rakefile, so download from
6493 ;; GitHub instead.
6494 (uri (git-reference
6495 (url "https://github.com/ohler55/oj")
6496 (commit (string-append "v" version))))
6497 (file-name (git-file-name name version))
6498 (sha256
6499 (base32
6500 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6501 (build-system ruby-build-system)
6502 (arguments
6503 '(#:test-target "test_all"
6504 #:phases
6505 (modify-phases %standard-phases
6506 (add-before 'check 'disable-bundler
6507 (lambda _
6508 (substitute* "Rakefile"
6509 (("Bundler\\.with_clean_env") "1.times")
6510 (("bundle exec ") "")))))))
6511 (native-inputs
6512 `(("bundler" ,bundler)
6513 ("ruby-rspec" ,ruby-rspec)
6514 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6515 (synopsis "JSON parser for Ruby optimized for speed")
6516 (description
6517 "Oj is a JSON parser and generator for Ruby, where the encoding and
6518 decoding of JSON is implemented as a C extension to Ruby.")
6519 (home-page "http://www.ohler.com/oj/")
6520 (license (list license:expat ; Ruby code
6521 license:bsd-3)))) ; extension code
6522
6523 (define-public ruby-ox
6524 (package
6525 (name "ruby-ox")
6526 (version "2.6.0")
6527 (source
6528 (origin
6529 (method url-fetch)
6530 (uri (rubygems-uri "ox" version))
6531 (sha256
6532 (base32
6533 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6534 (build-system ruby-build-system)
6535 (arguments
6536 '(#:tests? #f)) ; no tests
6537 (synopsis "Optimized XML library for Ruby")
6538 (description
6539 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6540 written as a native C extension. It was designed to be an alternative to
6541 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6542 alternative to Marshal for Object serialization. ")
6543 (home-page "http://www.ohler.com/ox")
6544 (license license:expat)))
6545
6546 (define-public ruby-redcloth
6547 (package
6548 (name "ruby-redcloth")
6549 (version "4.3.2")
6550 (source (origin
6551 (method url-fetch)
6552 (uri (rubygems-uri "RedCloth" version))
6553 (sha256
6554 (base32
6555 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6556 (build-system ruby-build-system)
6557 (arguments
6558 `(#:tests? #f ; no tests
6559 #:phases
6560 (modify-phases %standard-phases
6561 ;; Redcloth has complicated rake tasks to build various versions for
6562 ;; multiple targets using RVM. We don't want this so we just use the
6563 ;; existing gemspec.
6564 (replace 'build
6565 (lambda _
6566 (invoke "gem" "build" "redcloth.gemspec"))))))
6567 (native-inputs
6568 `(("bundler" ,bundler)
6569 ("ruby-diff-lcs" ,ruby-diff-lcs)
6570 ("ruby-rspec-2" ,ruby-rspec-2)))
6571 (synopsis "Textile markup language parser for Ruby")
6572 (description
6573 "RedCloth is a Ruby parser for the Textile markup language.")
6574 (home-page "http://redcloth.org")
6575 (license license:expat)))
6576
6577 (define-public ruby-pg
6578 (package
6579 (name "ruby-pg")
6580 (version "1.2.3")
6581 (source
6582 (origin
6583 (method url-fetch)
6584 (uri (rubygems-uri "pg" version))
6585 (sha256
6586 (base32
6587 "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj"))))
6588 (build-system ruby-build-system)
6589 (arguments
6590 '(#:test-target "spec"))
6591 (native-inputs
6592 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6593 ("ruby-hoe" ,ruby-hoe)
6594 ("ruby-rspec" ,ruby-rspec)))
6595 (inputs
6596 `(("postgresql" ,postgresql)))
6597 (synopsis "Ruby interface to PostgreSQL")
6598 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6599 with PostgreSQL 9.0 and later.")
6600 (home-page "https://bitbucket.org/ged/ruby-pg")
6601 (license license:ruby)))
6602
6603 (define-public ruby-byebug
6604 (package
6605 (name "ruby-byebug")
6606 (version "9.0.6")
6607 (source
6608 (origin
6609 (method url-fetch)
6610 (uri (rubygems-uri "byebug" version))
6611 (sha256
6612 (base32
6613 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6614 (build-system ruby-build-system)
6615 (arguments
6616 '(#:tests? #f)) ; no tests
6617 (synopsis "Debugger for Ruby 2")
6618 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6619 TracePoint C API for execution control and the Debug Inspector C API for call
6620 stack navigation. The core component provides support that front-ends can
6621 build on. It provides breakpoint handling and bindings for stack frames among
6622 other things and it comes with a command line interface.")
6623 (home-page "https://github.com/deivid-rodriguez/byebug")
6624 (license license:bsd-2)))
6625
6626 ;;; TODO: Make it the default byebug in core-updates.
6627 (define-public ruby-byebug-11
6628 (package
6629 (inherit ruby-byebug)
6630 (name "ruby-byebug")
6631 (version "11.1.3")
6632 (source
6633 (origin
6634 (method git-fetch)
6635 (uri (git-reference
6636 (url "https://github.com/deivid-rodriguez/byebug")
6637 (commit (string-append "v" version))))
6638 (file-name (git-file-name name version))
6639 (sha256
6640 (base32
6641 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6642 (modules '((guix build utils)))
6643 (snippet
6644 '(begin
6645 ;; Remove wrappers that try to setup a bundle environment.
6646 (with-directory-excursion "bin"
6647 (for-each delete-file '("bundle" "rake" "rubocop"))
6648 ;; ruby-minitest doesn't come with a launcher, so fix the one
6649 ;; provided.
6650 (substitute* "minitest"
6651 (("load File\\.expand_path\\(\"bundle\".*") "")
6652 (("require \"bundler/setup\".*") "")))
6653 #t))))
6654 (arguments
6655 `(#:tests? #t
6656 #:phases
6657 (modify-phases %standard-phases
6658 (add-after 'unpack 'skip-tmp-path-sensitive-test
6659 (lambda _
6660 (substitute* "test/commands/where_test.rb"
6661 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6662 "unless true\n"))
6663 #t))
6664 (add-before 'build 'compile
6665 (lambda _
6666 (invoke "rake" "compile")))
6667 (add-before 'check 'set-home
6668 (lambda _
6669 (setenv "HOME" (getcwd))
6670 #t)))))
6671 (native-inputs
6672 `(("bundler" ,bundler)
6673 ("ruby-chandler" ,ruby-chandler)
6674 ("ruby-minitest" ,ruby-minitest)
6675 ("ruby-pry" ,ruby-pry)
6676 ("ruby-rake-compiler" ,ruby-rake-compiler)
6677 ("ruby-rubocop" ,ruby-rubocop)
6678 ("ruby-yard" ,ruby-yard)))))
6679
6680 (define-public ruby-netrc
6681 (package
6682 (name "ruby-netrc")
6683 (version "0.11.0")
6684 (source (origin
6685 (method url-fetch)
6686 (uri (rubygems-uri "netrc" version))
6687 (sha256
6688 (base32
6689 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6690 (build-system ruby-build-system)
6691 (arguments
6692 `(#:phases
6693 (modify-phases %standard-phases
6694 (replace 'check
6695 ;; There is no Rakefile and minitest can only run one file at once,
6696 ;; so we have to iterate over all test files.
6697 (lambda _
6698 (for-each (lambda (file)
6699 (invoke "ruby" "-Itest" file))
6700 (find-files "./test" "test_.*\\.rb"))
6701 #t)))))
6702 (native-inputs
6703 `(("ruby-minitest" ,ruby-minitest)))
6704 (synopsis "Library to read and update netrc files")
6705 (description
6706 "This library can read and update netrc files, preserving formatting
6707 including comments and whitespace.")
6708 (home-page "https://github.com/geemus/netrc")
6709 (license license:expat)))
6710
6711 (define-public ruby-unf-ext
6712 (package
6713 (name "ruby-unf-ext")
6714 (version "0.0.7.6")
6715 (source (origin
6716 (method url-fetch)
6717 (uri (rubygems-uri "unf_ext" version))
6718 (sha256
6719 (base32
6720 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6721 (build-system ruby-build-system)
6722 (arguments
6723 `(#:phases
6724 (modify-phases %standard-phases
6725 (add-after 'build 'build-ext
6726 (lambda _ (invoke "rake" "compile:unf_ext")))
6727 (add-before 'check 'lose-rake-compiler-dock-dependency
6728 (lambda _
6729 ;; rake-compiler-dock is listed in the gemspec, but only
6730 ;; required when cross-compiling.
6731 (substitute* "unf_ext.gemspec"
6732 ((".*rake-compiler-dock.*") ""))
6733 #t)))))
6734 (native-inputs
6735 `(("bundler" ,bundler)
6736 ("ruby-rake-compiler" ,ruby-rake-compiler)
6737 ("ruby-test-unit" ,ruby-test-unit)))
6738 (synopsis "Unicode normalization form support library")
6739 (description
6740 "This package provides unicode normalization form support for Ruby.")
6741 (home-page "https://github.com/knu/ruby-unf_ext")
6742 (license license:expat)))
6743
6744 (define-public ruby-tdiff
6745 ;; Use a newer than released snapshot so that rspec-2 is not required.
6746 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6747 (package
6748 (name "ruby-tdiff")
6749 (version (string-append "0.3.3-1." (string-take commit 8)))
6750 (source (origin
6751 (method git-fetch)
6752 (uri (git-reference
6753 (url "https://github.com/postmodern/tdiff")
6754 (commit commit)))
6755 (file-name (string-append name "-" version "-checkout"))
6756 (sha256
6757 (base32
6758 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6759 (build-system ruby-build-system)
6760 (native-inputs
6761 `(("ruby-rspec" ,ruby-rspec)
6762 ("ruby-yard" ,ruby-yard)
6763 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6764 (synopsis "Calculate the differences between two tree-like structures")
6765 (description
6766 "This library provides functions to calculate the differences between two
6767 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6768 (home-page "https://github.com/postmodern/tdiff")
6769 (license license:expat))))
6770
6771 (define-public ruby-nokogiri-diff
6772 ;; Use a newer than released snapshot so that rspec-2 is not required.
6773 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6774 (package
6775 (name "ruby-nokogiri-diff")
6776 (version (string-append "0.2.0-1." (string-take commit 8)))
6777 (source (origin
6778 (method git-fetch)
6779 (uri (git-reference
6780 (url "https://github.com/postmodern/nokogiri-diff")
6781 (commit commit)))
6782 (file-name (string-append name "-" version "-checkout"))
6783 (sha256
6784 (base32
6785 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6786 (build-system ruby-build-system)
6787 (propagated-inputs
6788 `(("ruby-tdiff" ,ruby-tdiff)
6789 ("ruby-nokogiri" ,ruby-nokogiri)))
6790 (native-inputs
6791 `(("ruby-rspec" ,ruby-rspec)
6792 ("ruby-yard" ,ruby-yard)
6793 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6794 (synopsis "Calculate the differences between two XML/HTML documents")
6795 (description
6796 "@code{Nokogiri::Diff} adds the ability to calculate the
6797 differences (added or removed nodes) between two XML/HTML documents.")
6798 (home-page "https://github.com/postmodern/nokogiri-diff")
6799 (license license:expat))))
6800
6801 (define-public ruby-racc
6802 (package
6803 (name "ruby-racc")
6804 (version "1.4.14")
6805 (source
6806 (origin
6807 (method url-fetch)
6808 (uri (rubygems-uri "racc" version))
6809 (sha256
6810 (base32
6811 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6812 (build-system ruby-build-system)
6813 (native-inputs
6814 `(("ruby-hoe" ,ruby-hoe)
6815 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6816 (synopsis "LALR(1) parser generator for Ruby")
6817 (description
6818 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6819 generates Ruby program.")
6820 (home-page "http://i.loveruby.net/en/projects/racc/")
6821 (license (list
6822 ;; Generally licensed under the LGPL2.1, and some files also
6823 ;; available under the same license as Ruby.
6824 license:lgpl2.1
6825 license:ruby))))
6826
6827 (define-public ruby-rack
6828 (package
6829 (name "ruby-rack")
6830 (version "2.0.6")
6831 (source
6832 (origin
6833 (method git-fetch)
6834 ;; Download from GitHub so that the patch can be applied.
6835 (uri (git-reference
6836 (url "https://github.com/rack/rack")
6837 (commit version)))
6838 (file-name (git-file-name name version))
6839 (sha256
6840 (base32
6841 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6842 ;; Ignore test which fails inside the build environment but works
6843 ;; outside.
6844 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6845 (build-system ruby-build-system)
6846 (arguments
6847 '(#:phases
6848 (modify-phases %standard-phases
6849 (add-before 'check 'fix-tests
6850 (lambda _
6851 ;; A few of the tests use the length of a file on disk for
6852 ;; Content-Length and Content-Range headers. However, this file
6853 ;; has a shebang in it which an earlier phase patches, growing
6854 ;; the file size from 193 to 239 bytes when the store prefix is
6855 ;; "/gnu/store".
6856 (let ((size-diff (- (string-length (which "ruby"))
6857 (string-length "/usr/bin/env ruby"))))
6858 (substitute* '("test/spec_file.rb")
6859 (("193")
6860 (number->string (+ 193 size-diff)))
6861 (("bytes(.)22-33" all delimiter)
6862 (string-append "bytes"
6863 delimiter
6864 (number->string (+ 22 size-diff))
6865 "-"
6866 (number->string (+ 33 size-diff))))))
6867 #t))
6868 (add-before 'reset-gzip-timestamps 'make-files-writable
6869 (lambda* (#:key outputs #:allow-other-keys)
6870 ;; Make sure .gz files are writable so that the
6871 ;; 'reset-gzip-timestamps' phase can do its work.
6872 (let ((out (assoc-ref outputs "out")))
6873 (for-each make-file-writable
6874 (find-files out "\\.gz$"))
6875 #t))))))
6876 (native-inputs
6877 `(("ruby-minitest" ,ruby-minitest)
6878 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6879 ("which" ,which)))
6880 (propagated-inputs
6881 `(("ruby-concurrent" ,ruby-concurrent)))
6882 (synopsis "Unified web application interface for Ruby")
6883 (description "Rack provides a minimal, modular and adaptable interface for
6884 developing web applications in Ruby. By wrapping HTTP requests and responses,
6885 it unifies the API for web servers, web frameworks, and software in between
6886 into a single method call.")
6887 (home-page "https://rack.github.io/")
6888 (license license:expat)))
6889
6890 (define-public ruby-rack-test
6891 (package
6892 (name "ruby-rack-test")
6893 (version "0.8.3")
6894 (source
6895 (origin
6896 (method url-fetch)
6897 (uri (rubygems-uri "rack-test" version))
6898 (sha256
6899 (base32
6900 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6901 (build-system ruby-build-system)
6902 (arguments
6903 ;; Disable tests because of circular dependencies: requires sinatra,
6904 ;; which requires rack-protection, which requires rack-test. Instead
6905 ;; simply require the library.
6906 `(#:phases
6907 (modify-phases %standard-phases
6908 (replace 'check
6909 (lambda _
6910 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6911 (propagated-inputs
6912 `(("ruby-rack" ,ruby-rack)))
6913 (synopsis "Testing API for Rack applications")
6914 (description
6915 "Rack::Test is a small, simple testing API for Rack applications. It can
6916 be used on its own or as a reusable starting point for Web frameworks and
6917 testing libraries to build on.")
6918 (home-page "https://github.com/rack-test/rack-test")
6919 (license license:expat)))
6920
6921 (define-public ruby-rack-protection
6922 (package
6923 (name "ruby-rack-protection")
6924 (version "2.0.8.1")
6925 (source
6926 (origin
6927 (method url-fetch)
6928 (uri (rubygems-uri "rack-protection" version))
6929 (sha256
6930 (base32
6931 "1zyj97bfr1shfgwk4ddmdbw0mdkm4qdyh9s1hl0k7accf3kxx1yi"))))
6932 (build-system ruby-build-system)
6933 (arguments
6934 '(;; Tests missing from the gem.
6935 #:tests? #f))
6936 (propagated-inputs
6937 `(("ruby-rack" ,ruby-rack)))
6938 (native-inputs
6939 `(("bundler" ,bundler)
6940 ("ruby-rspec" ,ruby-rspec-2)
6941 ("ruby-rack-test" ,ruby-rack-test)))
6942 (synopsis "Rack middleware that protects against typical web attacks")
6943 (description "Rack middleware that can be used to protect against typical
6944 web attacks. It can protect all Rack apps, including Rails. For instance, it
6945 protects against cross site request forgery, cross site scripting,
6946 clickjacking, directory traversal, session hijacking and IP spoofing.")
6947 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6948 (license license:expat)))
6949
6950 (define-public ruby-rainbow
6951 (package
6952 (name "ruby-rainbow")
6953 (version "3.0.0")
6954 (source
6955 (origin
6956 (method url-fetch)
6957 (uri (rubygems-uri "rainbow" version))
6958 (sha256
6959 (base32
6960 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6961 (build-system ruby-build-system)
6962 (arguments
6963 '(#:phases
6964 (modify-phases %standard-phases
6965 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6966 ;; the Rakefile.
6967 (replace 'check
6968 (lambda* (#:key tests? #:allow-other-keys)
6969 (when tests?
6970 (invoke "rspec"))
6971 #t)))))
6972 (native-inputs
6973 `(("bundler" ,bundler)
6974 ("ruby-rspec" ,ruby-rspec)))
6975 (synopsis "Colorize printed text on ANSI terminals")
6976 (description
6977 "@code{rainbow} provides a string presenter object to colorize strings by
6978 wrapping them in ANSI escape codes.")
6979 (home-page "https://github.com/sickill/rainbow")
6980 (license license:expat)))
6981
6982 (define-public ruby-rr
6983 (package
6984 (name "ruby-rr")
6985 (version "1.2.1")
6986 (source
6987 (origin
6988 (method url-fetch)
6989 (uri (rubygems-uri "rr" version))
6990 (sha256
6991 (base32
6992 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6993 (build-system ruby-build-system)
6994 (arguments
6995 '(#:tests? #f)) ; test files not included
6996 (native-inputs
6997 `(("bundler" ,bundler)
6998 ("ruby-rspec" ,ruby-rspec)))
6999 (synopsis "Ruby test double framework")
7000 (description
7001 "RR is a test double framework that features a rich selection of double
7002 techniques and a terse syntax.")
7003 (home-page "https://rr.github.io/rr/")
7004 (license license:expat)))
7005
7006 (define-public ruby-rest-client
7007 (package
7008 (name "ruby-rest-client")
7009 (version "2.0.2")
7010 (source
7011 (origin
7012 (method url-fetch)
7013 (uri (rubygems-uri "rest-client" version))
7014 (sha256
7015 (base32
7016 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
7017 (build-system ruby-build-system)
7018 (arguments
7019 '(#:phases
7020 (modify-phases %standard-phases
7021 (add-before 'check 'remove-unnecessary-development-dependencies
7022 (lambda _
7023 (substitute* "rest-client.gemspec"
7024 ;; Remove rubocop as it's unused. Rubocop also indirectly
7025 ;; depends on this package through ruby-parser and ruby-ast so
7026 ;; this avoids a dependency loop.
7027 ((".*rubocop.*") "\n")
7028 ;; Remove pry as it's unused, it's a debugging tool
7029 ((".*pry.*") "\n")
7030 ;; Remove an unnecessarily strict rdoc dependency
7031 ((".*rdoc.*") "\n"))
7032 #t))
7033 (add-before 'check 'delete-network-dependent-tests
7034 (lambda _
7035 (delete-file "spec/integration/request_spec.rb")
7036 (delete-file "spec/integration/httpbin_spec.rb")
7037 #t)))))
7038 (propagated-inputs
7039 `(("ruby-http-cookie" ,ruby-http-cookie)
7040 ("ruby-mime-types" ,ruby-mime-types)
7041 ("ruby-netrc" ,ruby-netrc)))
7042 (native-inputs
7043 `(("bundler" ,bundler)
7044 ("ruby-webmock" ,ruby-webmock-2)
7045 ("ruby-rspec" ,ruby-rspec)))
7046 (synopsis "Simple HTTP and REST client for Ruby")
7047 (description
7048 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
7049 inspired by the Sinatra microframework style of specifying actions:
7050 @code{get}, @code{put}, @code{post}, @code{delete}.")
7051 (home-page "https://github.com/rest-client/rest-client")
7052 (license license:expat)))
7053
7054 (define-public ruby-rubocop-ast
7055 (package
7056 (name "ruby-rubocop-ast")
7057 (version "1.4.1")
7058 (source
7059 (origin
7060 (method git-fetch) ;no test suite in distributed gem
7061 (uri (git-reference
7062 (url "https://github.com/rubocop-hq/rubocop-ast")
7063 (commit (string-append "v" version))))
7064 (file-name (git-file-name name version))
7065 (sha256
7066 (base32
7067 "1x2m7k4bn4zvvwmj7imzmv0dav6xnrbcvssad1m5lkprx7h5lzkq"))))
7068 (build-system ruby-build-system)
7069 (arguments
7070 `(#:test-target "spec"
7071 #:phases (modify-phases %standard-phases
7072 (add-before 'build 'generate-lexer
7073 (lambda _
7074 (setenv "RUBOCOP_VERSION" "none")
7075 (invoke "rake" "generate")))
7076 (replace 'replace-git-ls-files
7077 (lambda _
7078 (substitute* "rubocop-ast.gemspec"
7079 (("`git ls-files(.*)`" _ files)
7080 (format #f "`find ~a -type f| sort`" files)))
7081 #t)))))
7082 (native-inputs
7083 `(("ruby-bump" ,ruby-bump)
7084 ("ruby-oedipus-lex" ,ruby-oedipus-lex)
7085 ("ruby-pry" ,ruby-pry)
7086 ("ruby-racc" ,ruby-racc)
7087 ("ruby-rake" ,ruby-rake)
7088 ("ruby-rspec" ,ruby-rspec)
7089 ("ruby-simplecov" ,ruby-simplecov)))
7090 (propagated-inputs
7091 `(("ruby-parser" ,ruby-parser)))
7092 (synopsis "RuboCop's AST extensions and NodePattern functionality")
7093 (description "Rubocop::AST extends @code{ruby-parser} with classes used
7094 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
7095 @itemize
7096 @item @code{RuboCop::AST::Node}
7097 @item @code{RuboCop::AST::NodePattern}
7098 @end itemize")
7099 (home-page "https://rubocop.org/")
7100 (license license:expat)))
7101
7102 (define-public ruby-rexml
7103 (package
7104 (name "ruby-rexml")
7105 (version "3.2.4")
7106 (source
7107 (origin
7108 (method git-fetch) ;no tests in distributed gem
7109 (uri (git-reference
7110 (url "https://github.com/ruby/rexml")
7111 (commit (string-append "v" version))))
7112 (file-name (git-file-name name version))
7113 (sha256
7114 (base32
7115 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
7116 (build-system ruby-build-system)
7117 (synopsis "XML toolkit for Ruby")
7118 (description "Inspired by Electric XML library for Java, REXML aims to be
7119 easy-to-use API, small and fast. It supports both tree and stream document
7120 parsing.")
7121 (home-page "https://github.com/ruby/rexml")
7122 (license license:bsd-2)))
7123
7124 (define-public ruby-character-set
7125 (package
7126 (name "ruby-character-set")
7127 (version "1.4.0")
7128 (source
7129 (origin
7130 (method url-fetch)
7131 (uri (rubygems-uri "character_set" version))
7132 (sha256
7133 (base32
7134 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
7135 (build-system ruby-build-system)
7136 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
7137 (synopsis "Ruby library to manipulate Unicode")
7138 (description "CharacterSet is a C-extended Ruby library to work with sets
7139 of Unicode code points. It can read and write these sets in various formats
7140 and implements the @code{stdlib} @code{Set} interface for them. It also
7141 offers an alternate paradigm of @code{String} processing which grants much
7142 better performance than @code{Regexp} and @code{String} methods from the
7143 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
7144 @itemize
7145 @item @code{CharacterSet::Character}
7146 @item @code{CharacterSet::Parser}
7147 @item @code{CharacterSet::Writer}
7148 @item @code{RangeCompressor}
7149 @end itemize")
7150 (home-page "https://github.com/jaynetics/character_set")
7151 (license license:expat)))
7152
7153 (define-public ruby-range-compressor
7154 (package
7155 (name "ruby-range-compressor")
7156 (version "1.0.0")
7157 (source
7158 (origin
7159 (method git-fetch)
7160 (uri (git-reference
7161 (url "https://github.com/janosch-x/range_compressor")
7162 (commit (string-append "v" version))))
7163 (file-name (git-file-name name version))
7164 (sha256
7165 (base32
7166 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
7167 (build-system ruby-build-system)
7168 (arguments
7169 `(#:test-target "spec"
7170 #:phases (modify-phases %standard-phases
7171 (add-after 'extract-gemspec 'strip-version-requirements
7172 (lambda _
7173 (substitute* "range_compressor.gemspec"
7174 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7175 (string-append stripped "\n")))
7176 #t)))))
7177 (native-inputs
7178 `(("ruby-rspec" ,ruby-rspec)))
7179 (synopsis "Simple arrays of objects to arrays of ranges compressor")
7180 (description "RangeCompresses is a tiny library that allows compressing
7181 arrays of objects into arrays of ranges. For example, it can turn the
7182 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
7183 (home-page "https://github.com/janosch-x/range_compressor")
7184 (license license:expat)))
7185
7186 (define-public ruby-regexp-property-values
7187 (package
7188 (name "ruby-regexp-property-values")
7189 (version "1.0.0")
7190 (source
7191 (origin
7192 (method git-fetch)
7193 (uri (git-reference ;no test suite in distributed gem
7194 (url "https://github.com/jaynetics/regexp_property_values")
7195 (commit (string-append "v" version))))
7196 (file-name (git-file-name name version))
7197 (sha256
7198 (base32
7199 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
7200 (build-system ruby-build-system)
7201 (arguments
7202 '(#:test-target "default"))
7203 (native-inputs
7204 `(("ruby-character-set" ,ruby-character-set)
7205 ("ruby-rake-compiler" ,ruby-rake-compiler)
7206 ("ruby-range-compressor" ,ruby-range-compressor)
7207 ("ruby-rspec" ,ruby-rspec)))
7208 (synopsis "Inspect Ruby's regex engine property values")
7209 (description "This small library lets you see which property values are
7210 supported by the regular expression engine of the Ruby version you are running
7211 and can directly read out their code point ranges. In other words, it
7212 determines all supported values for @code{\\p{value}} expressions and what
7213 they match.")
7214 (home-page "https://github.com/jaynetics/regexp_property_values")
7215 (license license:expat)))
7216
7217 (define-public ruby-regexp-parser
7218 (package
7219 (name "ruby-regexp-parser")
7220 (version "2.0.0")
7221 (source
7222 (origin
7223 (method git-fetch) ;bin/test missing from gem
7224 (uri (git-reference
7225 (url "https://github.com/ammar/regexp_parser")
7226 (commit (string-append "v" version))))
7227 (file-name (git-file-name name version))
7228 (sha256
7229 (base32
7230 "09ddxdwlml30q6j4rqf06bbjj1mwx00rs0bksnyblhv85anrqz3k"))))
7231 (build-system ruby-build-system)
7232 (arguments
7233 '(#:test-target "default"
7234 #:phases (modify-phases %standard-phases
7235 (add-before 'build 'compile-scanner.rb
7236 (lambda _
7237 (invoke "rake" "build")
7238 ;; XXX: This is needed otherwise the install
7239 ;; phase fails to delete the installed cached
7240 ;; gem file.
7241 (delete-file-recursively "pkg")
7242 #t)))))
7243 (native-inputs
7244 `(("ragel" ,ragel)
7245 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7246 ("ruby-rspec" ,ruby-rspec)))
7247 (synopsis "A regular expression parser library for Ruby ")
7248 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7249 expressions. It comprises the following components:
7250 @itemize
7251 @item A scanner/tokenizer based on Ragel,
7252 @item A lexer that produces a stream of token objects,
7253 @item A parser that produces a tree of Expression objects.
7254 @end itemize")
7255 (home-page "https://github.com/ammar/regexp_parser")
7256 (license license:expat)))
7257
7258 (define-public ruby-test-queue
7259 (package
7260 (name "ruby-test-queue")
7261 (version "0.4.2")
7262 (source
7263 (origin
7264 (method url-fetch)
7265 (uri (rubygems-uri "test-queue" version))
7266 (sha256
7267 (base32
7268 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7269 (build-system ruby-build-system)
7270 (arguments
7271 '(#:phases
7272 (modify-phases %standard-phases
7273 (replace 'check
7274 (lambda* (#:key tests? #:allow-other-keys)
7275 (when tests?
7276 (invoke "rspec"))
7277 #t)))))
7278 (native-inputs
7279 `(("ruby-rspec" ,ruby-rspec)))
7280 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7281 (description "The test-queue module is a parallel test runner,
7282 built using a centralized queue to ensure optimal distribution of
7283 tests between workers. It is specifically optimized for Continuous
7284 Integration (CI) environments: build statistics from each run are
7285 stored locally and used to sort the queue at the beginning of the next
7286 run.")
7287 (home-page "https://github.com/tmm1/test-queue")
7288 (license license:expat)))
7289
7290 (define-public ruby-rubocop
7291 (package
7292 (name "ruby-rubocop")
7293 (version "1.10.0")
7294 (source
7295 (origin
7296 (method git-fetch) ;no tests in distributed gem
7297 (uri (git-reference
7298 (url "https://github.com/rubocop-hq/rubocop")
7299 (commit (string-append "v" version))))
7300 (file-name (git-file-name name version))
7301 (sha256
7302 (base32
7303 "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29"))))
7304 (build-system ruby-build-system)
7305 (arguments
7306 '(#:test-target "default"
7307 #:phases
7308 (modify-phases %standard-phases
7309 (add-before 'check 'set-home
7310 (lambda _
7311 (setenv "HOME" (getcwd))
7312 #t))
7313 ;; Rubocop depends on itself for tests, directly and indirectly. By
7314 ;; regenerating the TODO list we test rubocop against itself and
7315 ;; forgo adjusting the test suite to our environment each release.
7316 (replace 'check
7317 (lambda* (#:key tests? #:allow-other-keys)
7318 (when tests?
7319 (make-file-writable ".rubocop_todo.yml")
7320 (invoke "./exe/rubocop" "--auto-gen-config"))
7321 #t))
7322 (add-before 'check 'make-adoc-files-writable
7323 (lambda _
7324 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7325 "\\.adoc$")))
7326 (for-each make-file-writable adoc-files))
7327 #t)))))
7328 (native-inputs
7329 `(("ruby-bump" ,ruby-bump)
7330 ("ruby-memory-profiler" ,ruby-memory-profiler)
7331 ("ruby-pry" ,ruby-pry)
7332 ("ruby-rake" ,ruby-rake)
7333 ("ruby-rspec" ,ruby-rspec)
7334 ("ruby-rubocop-minimal" ,ruby-rubocop-minimal)
7335 ("ruby-rubocop-performance-minimal" ,ruby-rubocop-performance-minimal)
7336 ("ruby-rubocop-rspec-minimal" ,ruby-rubocop-rspec-minimal)
7337 ("ruby-simplecov" ,ruby-simplecov)
7338 ("ruby-stackprof" ,ruby-stackprof)
7339 ("ruby-test-queue" ,ruby-test-queue)
7340 ("ruby-webmock" ,ruby-webmock)
7341 ("ruby-yard" ,ruby-yard)))
7342 (propagated-inputs
7343 `(("ruby-parallel" ,ruby-parallel)
7344 ("ruby-parser" ,ruby-parser)
7345 ("ruby-rainbow" ,ruby-rainbow)
7346 ("ruby-regexp-parser" ,ruby-regexp-parser)
7347 ("ruby-rexml" ,ruby-rexml)
7348 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7349 ("ruby-progressbar" ,ruby-progressbar)
7350 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7351 (synopsis "Ruby code style checking tool")
7352 (description
7353 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7354 the community-driven Ruby Style Guide.")
7355 (home-page "https://github.com/rubocop-hq/rubocop")
7356 (license license:expat)))
7357
7358 (define-public ruby-rubocop-minimal
7359 (hidden-package
7360 (package
7361 (inherit ruby-rubocop)
7362 (arguments
7363 (substitute-keyword-arguments (package-arguments ruby-rubocop)
7364 ((#:tests? _ #f) #f)))
7365 (propagated-inputs '())
7366 (native-inputs '()))))
7367
7368 (define-public ruby-contest
7369 (package
7370 (name "ruby-contest")
7371 (version "0.1.3")
7372 (source
7373 (origin
7374 (method url-fetch)
7375 (uri (rubygems-uri "contest" version))
7376 (sha256
7377 (base32
7378 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7379 (build-system ruby-build-system)
7380 (synopsis "Write declarative tests using nested contexts")
7381 (description
7382 "Contest allows writing declarative @code{Test::Unit} tests using nested
7383 contexts without performance penalties.")
7384 (home-page "https://github.com/citrusbyte/contest")
7385 (license license:expat)))
7386
7387 (define-public ruby-creole
7388 (package
7389 (name "ruby-creole")
7390 (version "0.5.0")
7391 (source
7392 (origin
7393 (method url-fetch)
7394 (uri (rubygems-uri "creole" version))
7395 (sha256
7396 (base32
7397 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7398 (build-system ruby-build-system)
7399 (native-inputs
7400 `(("ruby-bacon" ,ruby-bacon)))
7401 (synopsis "Creole markup language converter")
7402 (description
7403 "Creole is a lightweight markup language and this library for converting
7404 creole to @code{HTML}.")
7405 (home-page "https://github.com/minad/creole")
7406 (license license:ruby)))
7407
7408 (define-public ruby-docile
7409 (package
7410 (name "ruby-docile")
7411 (version "1.1.5")
7412 (source
7413 (origin
7414 (method url-fetch)
7415 (uri (rubygems-uri "docile" version))
7416 (sha256
7417 (base32
7418 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7419 (build-system ruby-build-system)
7420 (arguments
7421 '(#:tests? #f)) ; needs github-markup, among others
7422 (synopsis "Ruby EDSL helper library")
7423 (description "Docile is a Ruby library that provides an interface for
7424 creating embedded domain specific languages (EDSLs) that manipulate existing
7425 Ruby classes.")
7426 (home-page "https://ms-ati.github.io/docile/")
7427 (license license:expat)))
7428
7429 (define-public ruby-middleware
7430 (package
7431 (name "ruby-middleware")
7432 (version "0.1.0")
7433 (source
7434 (origin
7435 (method url-fetch)
7436 (uri (rubygems-uri "middleware" version))
7437 (sha256
7438 (base32
7439 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7440 (build-system ruby-build-system)
7441 (arguments '(#:tests? #f)) ;no test suite
7442 (synopsis "Implementation of a middleware abstraction for Ruby")
7443 (description "Middleware is a generalized implementation of a middleware
7444 abstraction for Ruby.")
7445 (home-page "https://github.com/mitchellh/middleware")
7446 (license license:expat)))
7447
7448 (define-public ruby-benchmark-ips
7449 (package
7450 (name "ruby-benchmark-ips")
7451 (version "2.8.2")
7452 (source
7453 (origin
7454 (method url-fetch)
7455 (uri (rubygems-uri "benchmark-ips" version))
7456 (sha256
7457 (base32
7458 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7459 (build-system ruby-build-system)
7460 (native-inputs
7461 `(("ruby-hoe" ,ruby-hoe)))
7462 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7463 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7464 iterations per second count. For short snippets of code, it can automatically
7465 figure out how many times to run the code to get interesting data.")
7466 (home-page "https://github.com/evanphx/benchmark-ips")
7467 (license license:expat)))
7468
7469 (define-public ruby-ffi-rzmq-core
7470 (package
7471 (name "ruby-ffi-rzmq-core")
7472 (version "1.0.7")
7473 (source
7474 (origin
7475 (method url-fetch)
7476 (uri (rubygems-uri "ffi-rzmq-core" version))
7477 (sha256
7478 (base32
7479 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7480 (build-system ruby-build-system)
7481 (arguments
7482 `(#:phases
7483 (modify-phases %standard-phases
7484 (add-after 'unpack 'patch-libzmq-search-path
7485 (lambda* (#:key inputs #:allow-other-keys)
7486 (let ((zeromq (assoc-ref inputs "zeromq")))
7487 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7488 (("/usr/local/lib")
7489 (string-append zeromq "/lib")))
7490 #t)))
7491 (replace 'check
7492 (lambda _
7493 (invoke "rspec"))))))
7494 (native-inputs
7495 `(("ruby-rspec" ,ruby-rspec)))
7496 (inputs
7497 `(("zeromq" ,zeromq)))
7498 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7499 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7500 (description "This library only provides the FFI wrapper for the ZeroMQ
7501 networking library. It can be used to implement a Ruby API for the ZeroMQ
7502 library.")
7503 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7504 (license license:expat)))
7505
7506 (define-public ruby-ffi-rzmq
7507 (package
7508 (name "ruby-ffi-rzmq")
7509 (version "2.0.7")
7510 (source
7511 (origin
7512 (method url-fetch)
7513 (uri (rubygems-uri "ffi-rzmq" version))
7514 (sha256
7515 (base32
7516 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7517 (build-system ruby-build-system)
7518 (arguments '(#:tests? #t
7519 #:phases (modify-phases %standard-phases
7520 (replace 'check
7521 (lambda _
7522 (invoke "rspec"))))))
7523 (native-inputs
7524 `(("ruby-rspec" ,ruby-rspec)))
7525 (propagated-inputs
7526 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7527 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7528 (description "This library provides a high-level API that wraps the ZeroMQ
7529 networking library using the Ruby foreign function interface (FFI). It is a
7530 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7531 for FFI.")
7532 (home-page "https://github.com/chuckremes/ffi-rzmq")
7533 (license license:expat)))
7534
7535 (define-public ruby-sawyer
7536 (package
7537 (name "ruby-sawyer")
7538 (version "0.8.2")
7539 (source
7540 (origin
7541 (method url-fetch)
7542 (uri (rubygems-uri "sawyer" version))
7543 (sha256
7544 (base32
7545 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7546 (build-system ruby-build-system)
7547 (propagated-inputs
7548 `(("ruby-addressable" ,ruby-addressable)
7549 ("ruby-faraday" ,ruby-faraday)))
7550 (synopsis "Experimental hypermedia agent for Ruby")
7551 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7552 top of Faraday.")
7553 (home-page "https://github.com/lostisland/sawyer")
7554 (license license:expat)))
7555
7556 (define-public ruby-octokit
7557 (package
7558 (name "ruby-octokit")
7559 (version "4.18.0")
7560 (source
7561 (origin
7562 (method url-fetch)
7563 (uri (rubygems-uri "octokit" version))
7564 (sha256
7565 (base32
7566 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7567 (build-system ruby-build-system)
7568 (arguments '(#:tests? #f)) ;no test suite in the gem release
7569 (propagated-inputs
7570 `(("ruby-faraday" ,ruby-faraday)
7571 ("ruby-sawyer" ,ruby-sawyer)))
7572 (synopsis "Ruby toolkit for the GitHub API")
7573 (description "Octokit wraps the GitHub API in a flat API client that
7574 follows Ruby conventions and requires little knowledge of REST.")
7575 (home-page "https://github.com/octokit/octokit.rb")
7576 (license license:expat)))
7577
7578 (define-public ruby-chandler
7579 (package
7580 (name "ruby-chandler")
7581 (version "0.9.0")
7582 (source
7583 (origin
7584 (method url-fetch)
7585 (uri (rubygems-uri "chandler" version))
7586 (sha256
7587 (base32
7588 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7589 (build-system ruby-build-system)
7590 (native-inputs
7591 `(("ruby-rubocop" ,ruby-rubocop)))
7592 (propagated-inputs
7593 `(("ruby-netrc" ,ruby-netrc)
7594 ("ruby-octokit" ,ruby-octokit)))
7595 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7596 (description "Chandler syncs a project's CHANGELOG file entries to
7597 GitHub's release notes to remove the need of manually entering release
7598 notes.")
7599 (home-page "https://github.com/mattbrictson/chandler")
7600 (license license:expat)))
7601
7602 (define-public ruby-pry-byebug
7603 (package
7604 (name "ruby-pry-byebug")
7605 (version "3.9.0")
7606 (source
7607 (origin
7608 (method git-fetch)
7609 (uri (git-reference
7610 (url "https://github.com/deivid-rodriguez/pry-byebug")
7611 (commit (string-append "v" version))))
7612 (file-name (git-file-name name version))
7613 (sha256
7614 (base32
7615 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7616 (build-system ruby-build-system)
7617 (arguments
7618 `(#:phases (modify-phases %standard-phases
7619 (add-before 'check 'set-home
7620 (lambda _
7621 (setenv "HOME" (getcwd))
7622 #t)))))
7623 (native-inputs
7624 `(("ruby-chandler" ,ruby-chandler)
7625 ("ruby-rubocop" ,ruby-rubocop)
7626 ("ruby-simplecov" ,ruby-simplecov)))
7627 (propagated-inputs
7628 `(("ruby-byebug" ,ruby-byebug-11)
7629 ("ruby-pry" ,ruby-pry)))
7630 (synopsis "Step-by-step debugging and stack navigation in Pry")
7631 (description "This package adds step-by-step debugging and stack
7632 navigation capabilities to @code{pry}, using @code{byebug}.")
7633 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7634 (license license:expat)))
7635
7636 (define-public ruby-stackprof
7637 (package
7638 (name "ruby-stackprof")
7639 (version "0.2.16")
7640 (source
7641 (origin
7642 (method url-fetch)
7643 (uri (rubygems-uri "stackprof" version))
7644 (sha256
7645 (base32
7646 "147rb66p3n062vc433afqhkd99iazvkrqnghxgh871r62yhha93f"))))
7647 (build-system ruby-build-system)
7648 (native-inputs
7649 `(("ruby-mocha" ,ruby-mocha)
7650 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7651 (synopsis "Sampling profiler for Ruby code")
7652 (description
7653 "@code{stackprof} is a fast sampling profiler for Ruby code, with cpu,
7654 wallclock and object allocation samplers.")
7655 (home-page "http://github.com/tmm1/stackprof")
7656 (license license:expat)))
7657
7658 (define-public ruby-binding-of-caller
7659 (package
7660 (name "ruby-binding-of-caller")
7661 (version "0.8.0")
7662 (source
7663 (origin
7664 (method url-fetch)
7665 (uri (rubygems-uri "binding_of_caller" version))
7666 (sha256
7667 (base32
7668 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7669 (build-system ruby-build-system)
7670 ;; Attempting to run the test suite fails with a rake deprecation error
7671 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7672 (arguments '(#:tests? #f))
7673 (propagated-inputs
7674 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7675 (synopsis "Retrieve the binding of a method's caller")
7676 (description "The @code{binding_of_caller} module provides the
7677 @code{Binding#of_caller} method. It allows accessing bindings from upper
7678 frames in the call stack and can evaluate code in that context.")
7679 (home-page "https://github.com/banister/binding_of_caller")
7680 (license license:expat)))
7681
7682 (define-public ruby-pry-stack-explorer
7683 (package
7684 (name "ruby-pry-stack-explorer")
7685 (version "0.5.1")
7686 (source
7687 (origin
7688 (method url-fetch)
7689 (uri (rubygems-uri "pry-stack_explorer" version))
7690 (sha256
7691 (base32
7692 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7693 (build-system ruby-build-system)
7694 (arguments '(#:tests? #f)) ;no test suite in gem release
7695 (propagated-inputs
7696 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7697 ("ruby-pry" ,ruby-pry)))
7698 (synopsis "Call-stack navigation plugin for the Pry REPL")
7699 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7700 add support to navigate the call-stack.")
7701 (home-page "https://github.com/pry/pry-stack_explorer")
7702 (license license:expat)))
7703
7704 (define-public ruby-varint
7705 (package
7706 (name "ruby-varint")
7707 (version "0.1.1")
7708 (source
7709 (origin
7710 (method url-fetch)
7711 (uri (rubygems-uri "varint" version))
7712 (sha256
7713 (base32
7714 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7715 (build-system ruby-build-system)
7716 (arguments '(#:tests? #f)) ;no test suite
7717 (synopsis "Variable length integers (varint) C extension for Ruby")
7718 (description "This package provides a small C extension to speed up
7719 variable length integers (varint) in Ruby Protocol Buffers.")
7720 (home-page "https://github.com/liquidm/varint")
7721 (license license:bsd-3)))
7722
7723 (define-public ruby-ruby-prof
7724 (package
7725 (name "ruby-ruby-prof")
7726 (version "1.4.1")
7727 (source
7728 (origin
7729 (method url-fetch)
7730 (uri (rubygems-uri "ruby-prof" version))
7731 (sha256
7732 (base32
7733 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7734 (build-system ruby-build-system)
7735 (arguments
7736 `(#:phases
7737 (modify-phases %standard-phases
7738 (add-after 'unpack 'patch-rakefile
7739 ;; This fixes the following error: "NameError: uninitialized
7740 ;; constant Bundler::GemHelper" (see:
7741 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7742 (lambda _
7743 (substitute* "Rakefile"
7744 ((".*require \"bundler/setup\".*" all)
7745 (string-append all " require 'bundler/gem_tasks'\n")))
7746 #t))
7747 ;; The LineNumbersTest test fails non-deterministically (see:
7748 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7749 (add-after 'extract-gemspec 'delete-flaky-test
7750 (lambda _
7751 (delete-file "test/line_number_test.rb")
7752 (substitute* "ruby-prof.gemspec"
7753 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7754 #t))
7755 (add-before 'check 'compile
7756 (lambda _
7757 (invoke "rake" "compile"))))))
7758 (native-inputs
7759 `(("bundler" ,bundler)
7760 ("ruby-minitest" ,ruby-minitest)
7761 ("ruby-rake-compiler" ,ruby-rake-compiler)
7762 ("ruby-rdoc" ,ruby-rdoc)))
7763 (synopsis "Fast code profiler for Ruby")
7764 (description "RubyProf is a fast code profiler for Ruby. Its features
7765 include:
7766 @table @asis
7767 @item Speed
7768 Being a C extension, it is many times faster than the standard Ruby profiler.
7769 @item Measurement Modes
7770 It can measure program wall time, process time, object allocations and memory
7771 usage.
7772 @item Reports
7773 A variety of text and cross-referenced HTML reports can be generated.
7774 @item Threads
7775 Profiling multiple threads simultaneously is supported.
7776 @end table")
7777 (home-page "https://github.com/ruby-prof/ruby-prof")
7778 (license license:bsd-2)))
7779
7780 (define-public ruby-memory-profiler
7781 (package
7782 (name "ruby-memory-profiler")
7783 (version "1.0.0")
7784 (source
7785 (origin
7786 (method git-fetch)
7787 (uri (git-reference
7788 (url "https://github.com/SamSaffron/memory_profiler")
7789 (commit (string-append "v" version))))
7790 (file-name (git-file-name name version))
7791 (sha256
7792 (base32
7793 "07yqv11q68xg2fqkrhs6ysngryk8b9zq6qzh24rgx9xqv6qfnj0w"))))
7794 (build-system ruby-build-system)
7795 (native-inputs
7796 `(("ruby-rake" ,ruby-rake)))
7797 (synopsis "Memory profiling routines for Ruby")
7798 (description
7799 "This package provides memory profiling routines for Ruby.")
7800 (home-page "https://github.com/SamSaffron/memory_profiler")
7801 (license license:expat)))
7802
7803 (define-public ruby-cucumber-messages
7804 (package
7805 (name "ruby-cucumber-messages")
7806 (version "12.2.0")
7807 (source (origin
7808 (method git-fetch)
7809 (uri (git-reference
7810 (url "https://github.com/cucumber/messages-ruby")
7811 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7812 (file-name (git-file-name name version))
7813 (sha256
7814 (base32
7815 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7816 (build-system ruby-build-system)
7817 (arguments
7818 `(#:phases (modify-phases %standard-phases
7819 (add-after 'unpack 'patch-protobuf.rb
7820 (lambda _
7821 (substitute* "rake/protobuf.rb"
7822 (("load 'protobuf/tasks/compile.rake'")
7823 "require 'protobuf/tasks'"))
7824 #t))
7825 (add-before 'build 'compile
7826 (lambda _
7827 (substitute* "Makefile"
7828 (("bundle exec ") "")
7829 (("include default.mk.*" all)
7830 (string-append "#" all)))
7831 (invoke "make")))
7832 (replace 'check
7833 (lambda _
7834 (invoke "rspec"))))))
7835 (propagated-inputs
7836 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7837 (native-inputs
7838 `(("ruby-rspec" ,ruby-rspec)))
7839 (home-page "https://github.com/cucumber/messages-ruby")
7840 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7841 (description "Cucumber Messages for Ruby is a library which allows
7842 serialization and deserialization of the protocol buffer messages used in
7843 Cucumber.")
7844 (license license:expat)))
7845
7846 (define-public ruby-gherkin
7847 (package
7848 (name "ruby-gherkin")
7849 (version "14.0.1")
7850 (source (origin
7851 (method git-fetch)
7852 (uri (git-reference
7853 (url "https://github.com/cucumber/gherkin-ruby")
7854 (commit (string-append "v" version))))
7855 (file-name (git-file-name name version))
7856 (sha256
7857 (base32
7858 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7859 (build-system ruby-build-system)
7860 (native-inputs
7861 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7862 ("ruby-rspec" ,ruby-rspec)))
7863 (arguments
7864 `(#:test-target "spec"))
7865 (synopsis "Gherkin parser for Ruby")
7866 (description "Gherkin is a parser and compiler for the Gherkin language.
7867 It is intended be used by all Cucumber implementations to parse
7868 @file{.feature} files.")
7869 (home-page "https://github.com/cucumber/gherkin-ruby")
7870 (license license:expat)))
7871
7872 (define-public ruby-gherkin-ruby
7873 (package
7874 (name "ruby-gherkin-ruby")
7875 (version "0.3.2")
7876 (home-page "https://github.com/codegram/gherkin-ruby")
7877 (source (origin
7878 (method url-fetch)
7879 (uri (rubygems-uri "gherkin-ruby" version))
7880 (sha256
7881 (base32
7882 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7883 (build-system ruby-build-system)
7884 (synopsis "Pure Ruby Gherkin parser")
7885 (description
7886 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7887 200 lines of code.")
7888 ;; XXX: No license information anywhere but Readme.md.
7889 (license license:expat)))
7890
7891 (define-public ruby-aruba
7892 (package
7893 (name "ruby-aruba")
7894 (version "0.14.14")
7895 (source
7896 (origin
7897 (method url-fetch)
7898 (uri (rubygems-uri "aruba" version))
7899 (sha256
7900 (base32
7901 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7902 (build-system ruby-build-system)
7903 (arguments
7904 '(#:test-target "spec"
7905 #:phases
7906 (modify-phases %standard-phases
7907 (add-after 'unpack 'patch
7908 (lambda _
7909 (substitute* "spec/aruba/api_spec.rb"
7910 ;; This resolves some errors in the specs
7911 ;;
7912 ;; undefined method `parse' for Time:Class
7913 (("require 'spec_helper'")
7914 "require 'spec_helper'\nrequire 'time'"))
7915 ;; Avoid shebang issues in this spec file
7916 (substitute* "spec/aruba/matchers/command_spec.rb"
7917 (("/usr/bin/env bash")
7918 (which "bash")))
7919 #t))
7920 (add-before 'check 'remove-unnecessary-dependencies
7921 (lambda _
7922 (substitute* "Gemfile"
7923 ((".*byebug.*") "\n")
7924 ((".*pry.*") "\n")
7925 ((".*yaml.*") "\n")
7926 ((".*bcat.*") "\n")
7927 ((".*kramdown.*") "\n")
7928 ((".*rubocop.*") "\n")
7929 ((".*cucumber-pro.*") "\n")
7930 ((".*cucumber.*") "\n")
7931 ((".*license_finder.*") "\n")
7932 ((".*rake.*") "gem 'rake'\n")
7933 ((".*relish.*") "\n"))
7934 (substitute* "aruba.gemspec"
7935 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7936 "spec.add_runtime_dependency 'cucumber'"))
7937 #t))
7938 (add-before 'check 'set-home
7939 (lambda _ (setenv "HOME" "/tmp") #t)))))
7940 (native-inputs
7941 `(("bundler" ,bundler)
7942 ("ruby-rspec" ,ruby-rspec)
7943 ("ruby-fuubar" ,ruby-fuubar)
7944 ("ruby-simplecov" ,ruby-simplecov)))
7945 (propagated-inputs
7946 `(("ruby-childprocess" ,ruby-childprocess)
7947 ("ruby-contracts" ,ruby-contracts)
7948 ("ruby-cucumber" ,ruby-cucumber)
7949 ("ruby-ffi" ,ruby-ffi)
7950 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7951 ("ruby-thor" ,ruby-thor)
7952 ("ruby-yard" ,ruby-yard)))
7953 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7954 (description
7955 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7956 command-line applications. It supports applications written in any
7957 language.")
7958 (home-page "https://github.com/cucumber/aruba")
7959 (license license:expat)))
7960
7961 ;; A version of ruby-aruba without tests run so that circular dependencies can
7962 ;; be avoided.
7963 (define ruby-aruba-without-tests
7964 (package
7965 (inherit ruby-aruba)
7966 (arguments '(#:tests? #f))
7967 (propagated-inputs
7968 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7969 ,@(alist-delete "ruby-cucumber"
7970 (package-propagated-inputs ruby-aruba))))
7971 (native-inputs '())))
7972
7973 (define-public ruby-sys-uname
7974 (package
7975 (name "ruby-sys-uname")
7976 (version "1.2.1")
7977 (source
7978 (origin
7979 (method url-fetch)
7980 (uri (rubygems-uri "sys-uname" version))
7981 (sha256
7982 (base32
7983 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7984 (build-system ruby-build-system)
7985 (arguments
7986 `(#:test-target "spec"))
7987 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7988 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7989 (synopsis "Ruby interface for gathering system information")
7990 (description "The sys-uname library provides an interface for gathering
7991 information about your current platform. It allows retrieving information
7992 such as the OS name, OS version, system name, etc.")
7993 (home-page "https://github.com/djberg96/sys-uname")
7994 (license license:asl2.0)))
7995
7996 (define-public ruby-cucumber-create-meta
7997 (package
7998 (name "ruby-cucumber-create-meta")
7999 (version "1.0.0")
8000 (source
8001 (origin
8002 (method url-fetch)
8003 (uri (rubygems-uri "cucumber-create-meta" version))
8004 (sha256
8005 (base32
8006 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
8007 (build-system ruby-build-system)
8008 (arguments
8009 `(#:phases (modify-phases %standard-phases
8010 (add-after 'extract-gemspec 'relax-version-requirements
8011 (lambda _
8012 (substitute* ".gemspec"
8013 ((" 12\\.2")
8014 " 12.1"))
8015 #t))
8016 (replace 'check
8017 (lambda _
8018 (invoke "rspec"))))))
8019 (native-inputs
8020 `(("ruby-rspec" ,ruby-rspec)))
8021 (propagated-inputs
8022 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
8023 ("ruby-sys-uname" ,ruby-sys-uname)))
8024 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
8025 (description "The @code{createMeta} utility function allows generating
8026 system-specific @code{Meta} messages for Cucumber Ruby.")
8027 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
8028 (license license:expat)))
8029
8030 (define-public ruby-cucumber-html-formatter
8031 (package
8032 (name "ruby-cucumber-html-formatter")
8033 (version "7.0.0")
8034 (source
8035 (origin
8036 (method url-fetch)
8037 (uri (rubygems-uri "cucumber-html-formatter" version))
8038 (sha256
8039 (base32
8040 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
8041 (build-system ruby-build-system)
8042 (arguments
8043 `(#:phases (modify-phases %standard-phases
8044 (replace 'check
8045 (lambda _
8046 (invoke "rspec"))))))
8047 (native-inputs
8048 `(("ruby-rspec" ,ruby-rspec)))
8049 (propagated-inputs
8050 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8051 (synopsis "HTML formatter for Cucumber")
8052 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
8053 runs. It is built on top of cucumber-react and works with any Cucumber
8054 implementation with a protocol buffer formatter that outputs Cucumber
8055 messages.")
8056 (home-page "https://github.com/cucumber/cucumber/tree/\
8057 master/html-formatter/ruby")
8058 (license license:expat)))
8059
8060 (define-public ruby-cucumber
8061 (package
8062 (name "ruby-cucumber")
8063 (version "4.1.0")
8064 (source
8065 (origin
8066 (method git-fetch)
8067 (uri (git-reference
8068 (url "https://github.com/cucumber/cucumber-ruby")
8069 (commit (string-append "v" version))))
8070 (file-name (git-file-name name version))
8071 (sha256
8072 (base32
8073 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
8074 (build-system ruby-build-system)
8075 (arguments
8076 '(#:test-target "default"
8077 #:phases
8078 (modify-phases %standard-phases
8079 (add-after 'unpack 'disable-rubocop
8080 ;; Rubocop lint check fails with our more recent version.
8081 (lambda _
8082 (substitute* "Rakefile"
8083 (("spec cucumber rubocop")
8084 "spec cucumber"))
8085 #t))
8086 (add-after 'extract-gemspec 'strip-version-requirements
8087 (lambda _
8088 (delete-file "Gemfile") ;do not use Bundler
8089 (substitute* "cucumber.gemspec"
8090 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
8091 (string-append stripped "\n")))
8092 #t))
8093 (add-before 'check 'set-home
8094 (lambda _
8095 (setenv "HOME" (getcwd))
8096 #t)))))
8097 (propagated-inputs
8098 `(("ruby-builder" ,ruby-builder)
8099 ("ruby-cucumber-core" ,ruby-cucumber-core)
8100 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
8101 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
8102 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
8103 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
8104 ("ruby-diff-lcs" ,ruby-diff-lcs)
8105 ("ruby-gherkin" ,ruby-gherkin)
8106 ("ruby-multi-json" ,ruby-multi-json)
8107 ("ruby-multi-test" ,ruby-multi-test)))
8108 (native-inputs
8109 `(;; Use a untested version of aruba, to avoid a circular dependency, as
8110 ;; ruby-aruba depends on ruby-cucumber.
8111 ("ruby-aruba" ,ruby-aruba-without-tests)
8112 ("ruby-rspec" ,ruby-rspec)
8113 ("ruby-pry" ,ruby-pry)
8114 ("ruby-nokogiri" ,ruby-nokogiri)
8115 ("ruby-rubocop" ,ruby-rubocop)))
8116 (synopsis "Describe automated tests in plain language")
8117 (description "Cucumber is a tool for running automated tests written in
8118 plain language. It's designed to support a Behaviour Driven Development (BDD)
8119 software development workflow.")
8120 (home-page "https://cucumber.io/")
8121 (license license:expat)))
8122
8123 (define ruby-cucumber-without-tests
8124 (package (inherit ruby-cucumber)
8125 (arguments
8126 '(#:tests? #f))
8127 (native-inputs
8128 '())))
8129
8130 (define-public ruby-coveralls
8131 (package
8132 (name "ruby-coveralls")
8133 (version "0.8.23")
8134 (source
8135 (origin
8136 (method url-fetch)
8137 (uri (rubygems-uri "coveralls" version))
8138 (sha256
8139 (base32
8140 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
8141 (build-system ruby-build-system)
8142 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
8143 ;; because of its nonfree, Hippocratic-derived license.
8144 (arguments
8145 `(#:tests? #f
8146 #:phases (modify-phases %standard-phases
8147 (add-after 'extract-gemspec 'strip-version-requirements
8148 ;; Keeping strict version requirements can cause problems
8149 ;; to users of the library, such as: Gem::ConflictError:
8150 ;; Unable to activate coveralls-0.8.23, because
8151 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
8152 (lambda _
8153 (substitute* "coveralls-ruby.gemspec"
8154 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
8155 (string-append stripped ")\n")))
8156 #t)))))
8157 (propagated-inputs
8158 `(("ruby-json" ,ruby-json)
8159 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
8160 ("ruby-thor" ,ruby-thor)
8161 ("ruby-tins" ,ruby-tins)))
8162 (synopsis "Ruby implementation of the Coveralls API")
8163 (description "This package provides a Ruby implementation of the Coveralls
8164 API.")
8165 (home-page "https://coveralls.io")
8166 (license license:expat)))
8167
8168 (define-public ruby-unindent
8169 (package
8170 (name "ruby-unindent")
8171 (version "1.0")
8172 (source
8173 (origin
8174 (method url-fetch)
8175 (uri (rubygems-uri "unindent" version))
8176 (sha256
8177 (base32
8178 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
8179 (build-system ruby-build-system)
8180 (synopsis "Ruby method to unindent strings")
8181 (description "This module provides a @code{String#unindent} Ruby method to
8182 unindent strings, which can be useful to unindent multiline strings embedded
8183 in already-indented code.")
8184 (home-page "https://github.com/mynyml/unindent")
8185 (license license:expat)))
8186
8187 (define-public ruby-cucumber-core
8188 (package
8189 (name "ruby-cucumber-core")
8190 (version "7.1.0")
8191 (source
8192 (origin
8193 (method git-fetch)
8194 (uri (git-reference
8195 (url "https://github.com/cucumber/cucumber-ruby-core")
8196 (commit (string-append "v" version))))
8197 (file-name (git-file-name name version))
8198 (sha256
8199 (base32
8200 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
8201 (build-system ruby-build-system)
8202 (arguments
8203 `(#:test-target "spec"
8204 #:phases
8205 (modify-phases %standard-phases
8206 (add-after 'extract-gemspec 'relax-version-requirements
8207 (lambda _
8208 (substitute* "cucumber-core.gemspec"
8209 (("'cucumber-tag-expressions',.*")
8210 "'cucumber-tag-expressions', '>=2.0.0'\n"))
8211 #t)))))
8212 (native-inputs
8213 `(("ruby-rspec" ,ruby-rspec)
8214 ("ruby-coveralls" ,ruby-coveralls)
8215 ("ruby-rubocop" ,ruby-rubocop)
8216 ("ruby-simplecov" ,ruby-simplecov)
8217 ("ruby-unindent" ,ruby-unindent)))
8218 (propagated-inputs
8219 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
8220 ("ruby-gherkin" ,ruby-gherkin)
8221 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
8222 (synopsis "Core library for the Cucumber BDD app")
8223 (description "Cucumber is a tool for running automated tests
8224 written in plain language. Because they're written in plain language,
8225 they can be read by anyone on your team. Because they can be read by
8226 anyone, you can use them to help improve communication, collaboration
8227 and trust on your team.")
8228 (home-page "https://cucumber.io/")
8229 (license license:expat)))
8230
8231 (define-public ruby-cucumber-expressions
8232 (package
8233 (name "ruby-cucumber-expressions")
8234 (version "10.2.0")
8235 (source
8236 (origin
8237 (method git-fetch)
8238 (uri (git-reference
8239 (url "https://github.com/cucumber/cucumber-expressions-ruby")
8240 (commit (string-append "v" version))))
8241 (file-name (git-file-name name version))
8242 (sha256
8243 (base32
8244 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
8245 (build-system ruby-build-system)
8246 (arguments
8247 '(#:test-target "spec"))
8248 (native-inputs
8249 `(("ruby-rspec" ,ruby-rspec)
8250 ("ruby-simplecov" ,ruby-simplecov)))
8251 (synopsis "Simpler alternative to Regular Expressions")
8252 (description "Cucumber Expressions offer similar functionality to Regular
8253 Expressions, with a syntax that is easier to read and write. Cucumber
8254 Expressions are extensible with parameter types.")
8255 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
8256 (license license:expat)))
8257
8258 (define-public ruby-cucumber-wire
8259 (package
8260 (name "ruby-cucumber-wire")
8261 (version "3.1.0")
8262 (source
8263 (origin
8264 (method url-fetch)
8265 (uri (rubygems-uri "cucumber-wire" version))
8266 (sha256
8267 (base32
8268 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
8269 (build-system ruby-build-system)
8270 (arguments
8271 '(#:tests? #f ;tests use cucumber, causing a cycle
8272 #:phases
8273 (modify-phases %standard-phases
8274 (add-after 'extract-gemspec 'relax-version-requirements
8275 (lambda _
8276 (substitute* ".gemspec"
8277 ((" 10\\.1") " 10.2"))
8278 #t)))))
8279 (propagated-inputs
8280 `(("ruby-cucumber-core" ,ruby-cucumber-core)
8281 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
8282 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8283 (synopsis "Cucumber wire protocol plugin")
8284 (description "Cucumber's wire protocol allows step definitions to be
8285 implemented and invoked on any platform.")
8286 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8287 (license license:expat)))
8288
8289 (define-public ruby-cucumber-tag-expressions
8290 (package
8291 (name "ruby-cucumber-tag-expressions")
8292 (version "3.0.0")
8293 (source
8294 (origin
8295 (method git-fetch)
8296 (uri (git-reference
8297 (url "https://github.com/cucumber/tag-expressions-ruby")
8298 (commit (string-append "v" version))))
8299 (file-name (git-file-name name version))
8300 (sha256
8301 (base32
8302 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8303 (build-system ruby-build-system)
8304 (arguments
8305 `(#:test-target "spec"))
8306 (native-inputs
8307 `(("ruby-rspec" ,ruby-rspec)))
8308 (synopsis "Cucumber tag expressions for Ruby")
8309 (description "Cucumber tag expression parser for Ruby. A tag expression
8310 is an infix boolean expression used by Cucumber.")
8311 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8312 (license license:expat)))
8313
8314 (define-public ruby-bindex
8315 (package
8316 (name "ruby-bindex")
8317 (version "0.5.0")
8318 (source
8319 (origin
8320 (method url-fetch)
8321 (uri (rubygems-uri "bindex" version))
8322 (sha256
8323 (base32
8324 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8325 (build-system ruby-build-system)
8326 (arguments
8327 '(#:test-target "default"))
8328 (native-inputs
8329 `(("bundler" ,bundler)
8330 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8331 (synopsis "Provides access for bindings relating to Ruby exceptions")
8332 (description
8333 "@code{bindex} provides a way to access the bindings that relate to
8334 exceptions in Ruby, providing more information about the context in which the
8335 exception occurred.")
8336 (home-page "https://github.com/gsamokovarov/bindex")
8337 (license license:expat)))
8338
8339 (define-public ruby-bio-logger
8340 (package
8341 (name "ruby-bio-logger")
8342 (version "1.0.1")
8343 (source
8344 (origin
8345 (method url-fetch)
8346 (uri (rubygems-uri "bio-logger" version))
8347 (sha256
8348 (base32
8349 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8350 (build-system ruby-build-system)
8351 (arguments
8352 `(#:tests? #f)) ; rake errors, missing shoulda
8353 (propagated-inputs
8354 `(("ruby-log4r" ,ruby-log4r)))
8355 (synopsis "Log4r wrapper for Ruby")
8356 (description "Bio-logger is a wrapper around Log4r adding extra logging
8357 features such as filtering and fine grained logging.")
8358 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8359 (license license:expat)))
8360
8361 (define-public ruby-yajl-ruby
8362 (package
8363 (name "ruby-yajl-ruby")
8364 (version "1.4.1")
8365 (source
8366 (origin
8367 (method url-fetch)
8368 (uri (rubygems-uri "yajl-ruby" version))
8369 (sha256
8370 (base32
8371 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8372 (build-system ruby-build-system)
8373 (arguments
8374 '(#:test-target "spec"
8375 #:phases
8376 (modify-phases %standard-phases
8377 (add-before 'check 'patch-test-to-update-load-path
8378 (lambda _
8379 (substitute* "spec/parsing/large_number_spec.rb"
8380 (("require \"yajl\"")
8381 "$LOAD_PATH << 'lib'; require 'yajl'"))
8382 #t)))))
8383 (native-inputs
8384 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8385 ("ruby-rspec" ,ruby-rspec)))
8386 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8387 (description
8388 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8389 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8390 replacement.
8391
8392 A modified copy of yajl is used, and included in the package.")
8393 (home-page "https://github.com/brianmario/yajl-ruby")
8394 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8395 license:bsd-3)))) ; Included, modified copy of yajl
8396
8397 (define-public ruby-yard
8398 (package
8399 (name "ruby-yard")
8400 (version "0.9.25")
8401 (source
8402 (origin
8403 (method git-fetch)
8404 ;; Tests do not pass if we build from the distributed gem.
8405 (uri (git-reference
8406 (url "https://github.com/lsegal/yard")
8407 (commit (string-append "v" version))))
8408 (file-name (git-file-name name version))
8409 (sha256
8410 (base32
8411 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8412 (build-system ruby-build-system)
8413 (arguments
8414 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8415 ;; problems.
8416 `(#:tests? #f
8417 #:phases (modify-phases %standard-phases
8418 (add-after 'unpack 'do-not-set-date-in-gemspec
8419 ;; Fix a reproducibility issue (see:
8420 ;; https://github.com/lsegal/yard/issues/1343).
8421 (lambda _
8422 (substitute* "yard.gemspec"
8423 ((".*s\\.date.*") ""))
8424 #t)))))
8425 (synopsis "Documentation generation tool for Ruby")
8426 (description "YARD is a documentation generation tool for the Ruby
8427 programming language. It enables the user to generate consistent, usable
8428 documentation that can be exported to a number of formats very easily, and
8429 also supports extending for custom Ruby constructs such as custom class level
8430 definitions.")
8431 (home-page "https://yardoc.org")
8432 (license license:expat)))
8433
8434 (define-public ruby-yard-with-tests
8435 (package
8436 (inherit ruby-yard)
8437 (name "ruby-yard-with-tests")
8438 (arguments
8439 (substitute-keyword-arguments (package-arguments ruby-yard)
8440 ((#:tests? _ #t) #t)
8441 ((#:test-target _ "default") "default")
8442 ((#:phases phases '%standard-phases)
8443 `(modify-phases ,phases
8444 (add-before 'check 'prepare-for-tests
8445 (lambda* (#:key tests? #:allow-other-keys)
8446 (when tests?
8447 (substitute* "Rakefile"
8448 ((".*[Ss]amus.*") ""))
8449 ;; Delete the Gemfile to avoid errors relating to it.
8450 (delete-file "Gemfile")
8451 ;; $HOME needs to be set to somewhere writeable for tests to
8452 ;; run.
8453 (setenv "HOME" "/tmp"))
8454 #t))))))
8455 (native-inputs
8456 `(("ruby-rspec" ,ruby-rspec)
8457 ("ruby-rack" ,ruby-rack)
8458 ("ruby-redcloth" ,ruby-redcloth)
8459 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8460
8461 (define-public ruby-spectroscope
8462 (package
8463 (name "ruby-spectroscope")
8464 (version "0.1.0")
8465 (source
8466 (origin
8467 (method url-fetch)
8468 (uri (rubygems-uri "spectroscope" version))
8469 (sha256
8470 (base32
8471 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8472 (build-system ruby-build-system)
8473 (arguments
8474 `(#:phases
8475 (modify-phases %standard-phases
8476 (replace 'check
8477 (lambda _
8478 (with-output-to-file ".test"
8479 (lambda _
8480 (display
8481 "\
8482 require 'ae/should'
8483 require 'rspec'
8484
8485 include RSpec
8486
8487 Test.run :default do |run|
8488 run.files << 'spec/*_spec.rb'
8489 end")))
8490 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8491 (native-inputs
8492 `(("ruby-ae" ,ruby-ae)
8493 ("ruby-rspec" ,ruby-rspec)))
8494 (propagated-inputs
8495 `(("ruby-rubytest" ,ruby-rubytest)))
8496 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8497 (description "Spectroscope is a Behavior-Driven Development (BDD)
8498 framework built on RubyTest, designed to emulate RSpec in most respects. It
8499 is assertion framework independent so any number of assertion systems can be
8500 used, such as Assay or AE.")
8501 (home-page "http://rubyworks.github.com/spectroscope/")
8502 (license license:bsd-2)))
8503
8504 (define-public ruby-tomparse
8505 (package
8506 (name "ruby-tomparse")
8507 (version "0.4.2")
8508 (source
8509 (origin
8510 (method url-fetch)
8511 (uri (rubygems-uri "tomparse" version))
8512 (sha256
8513 (base32
8514 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8515 (build-system ruby-build-system)
8516 ;; TODO: Tests require citron and rulebow, not yet packaged.
8517 (arguments '(#:tests? #f))
8518 (synopsis "TomDoc parser for Ruby")
8519 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8520 comment as input and parses it into a convenient object-oriented structure in
8521 accordance with the TomDoc standard. See
8522 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8523 TomDoc format.")
8524 (home-page "http://rubyworks.github.com/tomparse/")
8525 (license license:bsd-2)))
8526
8527 (define-public ruby-yard-tomdoc
8528 (package
8529 (name "ruby-yard-tomdoc")
8530 (version "0.7.1")
8531 (source
8532 (origin
8533 (method url-fetch)
8534 (uri (rubygems-uri "yard-tomdoc" version))
8535 (sha256
8536 (base32
8537 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8538 (build-system ruby-build-system)
8539 (arguments
8540 `(#:phases (modify-phases %standard-phases
8541 (replace 'check
8542 (lambda _
8543 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8544 (native-inputs
8545 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8546 ("ruby-spectroscope" ,ruby-spectroscope)
8547 ("ruby-ae" ,ruby-ae)))
8548 (propagated-inputs
8549 `(("ruby-tomparse" ,ruby-tomparse)
8550 ("ruby-yard" ,ruby-yard)))
8551 (synopsis "TomDoc syntax for YARD")
8552 (description "This module adds support for the TomDoc documentation format
8553 to YARD, a documentation generation tool for Ruby.")
8554 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8555 (license license:expat)))
8556
8557 (define-public ruby-clap
8558 (package
8559 (name "ruby-clap")
8560 (version "1.0.0")
8561 (source (origin
8562 (method url-fetch)
8563 (uri (rubygems-uri "clap" version))
8564 (sha256
8565 (base32
8566 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8567 (build-system ruby-build-system)
8568 ;; Clap needs cutest for running tests, but cutest needs clap.
8569 (arguments `(#:tests? #f))
8570 (synopsis "Command line argument parsing for simple applications")
8571 (description
8572 "Clap provides command line argument parsing features. It covers the
8573 simple case of executing code based on the flags or parameters passed.")
8574 (home-page "https://github.com/djanowski/cutest")
8575 (license license:expat)))
8576
8577 (define-public ruby-cutest
8578 (package
8579 (name "ruby-cutest")
8580 (version "1.2.2")
8581 (source (origin
8582 (method url-fetch)
8583 (uri (rubygems-uri "cutest" version))
8584 (sha256
8585 (base32
8586 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8587 (build-system ruby-build-system)
8588 (propagated-inputs
8589 `(("ruby-clap" ,ruby-clap)))
8590 (synopsis "Run tests in separate processes")
8591 (description
8592 "Cutest runs tests in separate processes to avoid shared state.")
8593 (home-page "https://github.com/djanowski/cutest")
8594 (license license:expat)))
8595
8596 (define-public ruby-pygmentize
8597 (package
8598 (name "ruby-pygmentize")
8599 (version "0.0.3")
8600 (source (origin
8601 (method url-fetch)
8602 (uri (rubygems-uri "pygmentize" version))
8603 (sha256
8604 (base32
8605 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8606 (build-system ruby-build-system)
8607 (arguments
8608 `(#:phases
8609 (modify-phases %standard-phases
8610 (add-after 'unpack 'fix-pygmentize-path
8611 (lambda _
8612 (substitute* "lib/pygmentize.rb"
8613 (("\"/usr/bin/env python.*")
8614 (string-append "\"" (which "pygmentize") "\"\n")))
8615 #t))
8616 (add-after 'build 'do-not-use-vendor-directory
8617 (lambda _
8618 ;; Remove bundled pygments sources
8619 ;; FIXME: ruby-build-system does not support snippets.
8620 (delete-file-recursively "vendor")
8621 (substitute* "pygmentize.gemspec"
8622 (("\"vendor/\\*\\*/\\*\",") ""))
8623 #t)))))
8624 (inputs
8625 `(("pygments" ,python-pygments)))
8626 (native-inputs
8627 `(("ruby-cutest" ,ruby-cutest)
8628 ("ruby-nokogiri" ,ruby-nokogiri)))
8629 (synopsis "Thin Ruby wrapper around pygmentize")
8630 (description
8631 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8632 application.")
8633 (home-page "https://github.com/djanowski/pygmentize")
8634 (license license:expat)))
8635
8636 (define-public ruby-eventmachine
8637 (package
8638 (name "ruby-eventmachine")
8639 (version "1.2.7")
8640 (source
8641 (origin
8642 (method url-fetch)
8643 (uri (rubygems-uri "eventmachine" version))
8644 (sha256
8645 (base32
8646 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8647 (build-system ruby-build-system)
8648 (arguments
8649 '(#:tests? #f)) ; test suite tries to connect to google.com
8650 (native-inputs
8651 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8652 (synopsis "Single-threaded network event framework for Ruby")
8653 (description
8654 "EventMachine implements a single-threaded engine for arbitrary network
8655 communications. EventMachine wraps all interactions with sockets, allowing
8656 programs to concentrate on the implementation of network protocols. It can be
8657 used to create both network servers and clients.")
8658 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8659 (home-page "https://github.com/eventmachine/eventmachine")
8660 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8661
8662 (define-public ruby-ruby-engine
8663 (package
8664 (name "ruby-ruby-engine")
8665 (version "2.0.0")
8666 (source
8667 (origin
8668 (method url-fetch)
8669 (uri (rubygems-uri "ruby_engine" version))
8670 (sha256
8671 (base32
8672 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8673 (build-system ruby-build-system)
8674 (arguments
8675 `(#:phases
8676 (modify-phases %standard-phases
8677 (add-after 'extract-gemspec 'clean-up
8678 (lambda _
8679 (delete-file "Gemfile.lock")
8680 (substitute* "ruby_engine.gemspec"
8681 ;; Remove unnecessary imports that would entail further
8682 ;; dependencies.
8683 ((".*<rdoc.*") "")
8684 ((".*<rubygems-tasks.*") "")
8685 ;; Remove extraneous .gem file
8686 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8687 (("\"Gemfile.lock\".freeze, ") "")
8688 ;; Soften rake dependency
8689 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8690 "%q<rake>.freeze, [\">= 10.0\"]")
8691 ;; Soften the rspec dependency
8692 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8693 "%q<rspec>.freeze, [\">= 2.4\"]"))
8694 (substitute* "Rakefile"
8695 (("require 'rubygems/tasks'") "")
8696 (("Gem::Tasks.new") ""))
8697 ;; Remove extraneous .gem file that otherwise gets installed.
8698 (delete-file-recursively "pkg")
8699 #t)))))
8700 (native-inputs
8701 `(("bundler" ,bundler)
8702 ("ruby-rake" ,ruby-rake)
8703 ("ruby-rspec" ,ruby-rspec)))
8704 (synopsis "Simplifies checking for Ruby implementation")
8705 (description
8706 "@code{ruby_engine} provides an RubyEngine class that can be used to
8707 check which implementation of Ruby is in use. It can provide the interpreter
8708 name and provides query methods such as @{RubyEngine.mri?}.")
8709 (home-page "https://github.com/janlelis/ruby_engine")
8710 (license license:expat)))
8711
8712 (define-public ruby-turn
8713 (package
8714 (name "ruby-turn")
8715 (version "0.9.7")
8716 (source
8717 (origin
8718 (method url-fetch)
8719 (uri (rubygems-uri "turn" version))
8720 (sha256
8721 (base32
8722 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8723 (build-system ruby-build-system)
8724 (arguments
8725 `(#:phases
8726 (modify-phases %standard-phases
8727 ;; Tests fail because turn changes its environment so can no longer
8728 ;; find test/unit. Instead simply test if the executable runs
8729 ;; without issue.
8730 (replace 'check
8731 (lambda _
8732 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8733 (propagated-inputs
8734 `(("ruby-ansi" ,ruby-ansi)
8735 ("ruby-minitest" ,ruby-minitest-4)))
8736 (synopsis "Alternate set of alternative runners for MiniTest")
8737 (description
8738 "TURN provides a set of alternative runners for MiniTest which are both
8739 colorful and informative. TURN displays each test on a separate line with
8740 failures being displayed immediately instead of at the end of the tests. Note
8741 that TURN is no longer being maintained.")
8742 (home-page "https://rubygems.org/gems/turn")
8743 (license license:expat)))
8744
8745 (define-public ruby-mimemagic
8746 (package
8747 (name "ruby-mimemagic")
8748 (version "0.3.3")
8749 (source
8750 (origin
8751 (method url-fetch)
8752 (uri (rubygems-uri "mimemagic" version))
8753 (sha256
8754 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8755 (build-system ruby-build-system)
8756 (arguments
8757 '(#:phases
8758 (modify-phases %standard-phases
8759 ;; This phase breaks the tests, as it patches some of the test data.
8760 (delete 'patch-source-shebangs))))
8761 (native-inputs
8762 `(("ruby-bacon" ,ruby-bacon)))
8763 (synopsis "Ruby library for MIME detection by extension or content")
8764 (description
8765 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8766 extension or content, using the freedesktop.org.xml shared-mime-info
8767 database.")
8768 (home-page "https://github.com/minad/mimemagic")
8769 (license license:expat)))
8770
8771 (define-public ruby-mime-types-data
8772 (package
8773 (name "ruby-mime-types-data")
8774 (version "3.2016.0521")
8775 (source
8776 (origin
8777 (method url-fetch)
8778 (uri (rubygems-uri "mime-types-data" version))
8779 (sha256
8780 (base32
8781 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8782 (build-system ruby-build-system)
8783 (native-inputs
8784 `(("ruby-hoe" ,ruby-hoe)))
8785 (synopsis "Registry for information about MIME media type definitions")
8786 (description
8787 "@code{mime-types-data} provides a registry for information about
8788 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8789 be used with the Ruby mime-types library or other software to determine
8790 defined filename extensions for MIME types, or to use filename extensions to
8791 look up the likely MIME type definitions.")
8792 (home-page "https://github.com/mime-types/mime-types-data/")
8793 (license license:expat)))
8794
8795 (define-public ruby-mime-types
8796 (package
8797 (name "ruby-mime-types")
8798 (version "3.1")
8799 (source
8800 (origin
8801 (method url-fetch)
8802 (uri (rubygems-uri "mime-types" version))
8803 (sha256
8804 (base32
8805 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8806 (build-system ruby-build-system)
8807 (propagated-inputs
8808 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8809 (native-inputs
8810 `(("ruby-hoe" ,ruby-hoe)
8811 ("ruby-fivemat" ,ruby-fivemat)
8812 ("ruby-minitest-focus" ,ruby-minitest-focus)
8813 ("ruby-minitest-rg" ,ruby-minitest-rg)
8814 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8815 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8816 (synopsis "Library and registry for MIME content type definitions")
8817 (description "The mime-types library provides a library and registry for
8818 information about Multipurpose Internet Mail Extensions (MIME) content type
8819 definitions. It can be used to determine defined filename extensions for MIME
8820 types, or to use filename extensions to look up the likely MIME type
8821 definitions.")
8822 (home-page "https://github.com/mime-types/ruby-mime-types")
8823 (license license:expat)))
8824
8825 (define-public ruby-fivemat
8826 (package
8827 (name "ruby-fivemat")
8828 (version "1.3.7")
8829 (source
8830 (origin
8831 (method url-fetch)
8832 (uri (rubygems-uri "fivemat" version))
8833 (sha256
8834 (base32
8835 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8836 (build-system ruby-build-system)
8837 (arguments
8838 `(#:tests? #f)) ; no tests
8839 (synopsis "Each test file given its own line of dots")
8840 (description
8841 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8842 its own line of dots during testing. It aims to provide test output that is
8843 neither too verbose nor too minimal.")
8844 (home-page "https://github.com/tpope/fivemat")
8845 (license license:expat)))
8846
8847 (define-public ruby-sqlite3
8848 (package
8849 (name "ruby-sqlite3")
8850 (version "1.4.2")
8851 (source
8852 (origin
8853 (method url-fetch)
8854 (uri (rubygems-uri "sqlite3" version))
8855 (sha256
8856 (base32
8857 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8858 (build-system ruby-build-system)
8859 (arguments
8860 `(#:phases
8861 (modify-phases %standard-phases
8862 (add-before 'check 'add-gemtest-file
8863 ;; This file exists in the repository but is not distributed.
8864 (lambda _ (invoke "touch" ".gemtest"))))))
8865 (inputs
8866 `(("sqlite" ,sqlite)))
8867 (native-inputs
8868 `(("ruby-hoe" ,ruby-hoe)
8869 ("ruby-rake-compiler" ,ruby-rake-compiler)
8870 ("ruby-mini-portile" ,ruby-mini-portile)))
8871 (synopsis "Interface with SQLite3 databases")
8872 (description
8873 "This module allows Ruby programs to interface with the SQLite3 database
8874 engine.")
8875 (home-page
8876 "https://github.com/sparklemotion/sqlite3-ruby")
8877 (license license:bsd-3)))
8878
8879 (define-public ruby-shoulda-context
8880 (package
8881 (name "ruby-shoulda-context")
8882 (version "1.2.2")
8883 (source
8884 (origin
8885 (method url-fetch)
8886 (uri (rubygems-uri "shoulda-context" version))
8887 (sha256
8888 (base32
8889 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8890 (build-system ruby-build-system)
8891 (arguments
8892 `(#:phases
8893 (modify-phases %standard-phases
8894 (replace 'check
8895 (lambda _
8896 ;; Do not run tests to avoid circular dependence with rails.
8897 ;; Instead just import the library to test.
8898 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8899 (synopsis "Test::Unit context framework extracted from Shoulda")
8900 (description
8901 "@code{shoulda-context} is the context framework extracted from Shoulda.
8902 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8903 context, setup, and should blocks combine to produce natural test method
8904 names.")
8905 (home-page "https://github.com/thoughtbot/shoulda-context")
8906 (license license:expat)))
8907
8908 (define-public ruby-shoulda-matchers
8909 (package
8910 (name "ruby-shoulda-matchers")
8911 (version "3.1.2")
8912 (source
8913 (origin
8914 (method url-fetch)
8915 (uri (rubygems-uri "shoulda-matchers" version))
8916 (sha256
8917 (base32
8918 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8919 (build-system ruby-build-system)
8920 (arguments
8921 `(#:phases
8922 (modify-phases %standard-phases
8923 (replace 'check
8924 (lambda _
8925 ;; Do not run tests to avoid circular dependence with rails. Instead
8926 ;; just import the library to test.
8927 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8928 (propagated-inputs
8929 `(("ruby-activesupport" ,ruby-activesupport)))
8930 (synopsis "Collection of testing matchers extracted from Shoulda")
8931 (description
8932 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8933 test common Rails functionality. These tests would otherwise be much longer,
8934 more complex, and error-prone.")
8935 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8936 (license license:expat)))
8937
8938 (define-public ruby-shoulda-matchers-2
8939 (package
8940 (inherit ruby-shoulda-matchers)
8941 (version "2.8.0")
8942 (source (origin
8943 (method url-fetch)
8944 (uri (rubygems-uri "shoulda-matchers" version))
8945 (sha256
8946 (base32
8947 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8948
8949 (define-public ruby-shoulda
8950 (package
8951 (name "ruby-shoulda")
8952 (version "3.5.0")
8953 (source
8954 (origin
8955 (method url-fetch)
8956 (uri (rubygems-uri "shoulda" version))
8957 (sha256
8958 (base32
8959 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8960 (build-system ruby-build-system)
8961 (arguments
8962 `(#:phases
8963 (modify-phases %standard-phases
8964 (replace 'check
8965 ;; Don't run tests to avoid circular dependence with rails. Instead
8966 ;; just import the library to test.
8967 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8968 (propagated-inputs
8969 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8970 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8971 (synopsis "Context framework and matchers for testing")
8972 (description
8973 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8974 @code{shoulda-matchers} providing tools for writing tests.")
8975 (home-page "https://github.com/thoughtbot/shoulda")
8976 (license license:expat)))
8977
8978 (define-public ruby-unf
8979 (package
8980 (name "ruby-unf")
8981 (version "0.1.4")
8982 (source
8983 (origin
8984 (method url-fetch)
8985 (uri (rubygems-uri "unf" version))
8986 (sha256
8987 (base32
8988 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8989 (build-system ruby-build-system)
8990 (arguments
8991 `(#:phases
8992 (modify-phases %standard-phases
8993 (add-before 'check 'add-dependency-to-bundler
8994 (lambda _
8995 ;; test-unit is required but not provided by the bundler
8996 ;; environment. This is fixed in the upstream repository but fix
8997 ;; has not been released.
8998 (substitute* "Gemfile"
8999 (("^gemspec") "gem 'test-unit'\ngemspec"))
9000 #t)))))
9001 (propagated-inputs
9002 `(("ruby-unf-ext" ,ruby-unf-ext)))
9003 (native-inputs
9004 `(("ruby-shoulda" ,ruby-shoulda)
9005 ("bundler" ,bundler)
9006 ("ruby-test-unit" ,ruby-test-unit)))
9007 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
9008 (description
9009 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
9010 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
9011 @code{java.text.Normalizer} on JRuby.")
9012 (home-page "https://github.com/knu/ruby-unf")
9013 (license license:bsd-2)))
9014
9015 (define-public ruby-warden
9016 (package
9017 (name "ruby-warden")
9018 (version "1.2.8")
9019 (source
9020 (origin
9021 (method url-fetch)
9022 (uri (rubygems-uri "warden" version))
9023 (sha256
9024 (base32
9025 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
9026 (build-system ruby-build-system)
9027 (arguments
9028 '(#:tests? #f)) ; No included tests
9029 (propagated-inputs
9030 `(("ruby-rack" ,ruby-rack)))
9031 (synopsis "Rack middleware providing authentication")
9032 (description
9033 "Warden is a Rack-based middleware that provides a mechanism for
9034 authentication in Ruby web applications.")
9035 (home-page "https://github.com/wardencommunity/warden")
9036 (license license:expat)))
9037
9038 (define-public ruby-warden-oauth2
9039 (package
9040 (name "ruby-warden-oauth2")
9041 (version "0.0.1")
9042 (source
9043 (origin
9044 (method url-fetch)
9045 (uri (rubygems-uri "warden-oauth2" version))
9046 (sha256
9047 (base32
9048 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
9049 (build-system ruby-build-system)
9050 (arguments
9051 '(#:test-target "spec"
9052 #:phases
9053 (modify-phases %standard-phases
9054 (add-after 'unpack 'remove-unnecessary-dependencies
9055 (lambda _
9056 (substitute* "Gemfile"
9057 ;; All of these gems relate to development, and are unnecessary
9058 ;; when running the tests
9059 (("gem 'guard-bundler'") "")
9060 (("gem 'guard'") "")
9061 (("gem 'guard-rspec'") "")
9062 (("gem 'rb-fsevent'") "")
9063 (("gem 'pry'") "")
9064 (("gem 'growl'") ""))
9065 #t))
9066 ;; The test suite doesn't work with rspec@2, and this is incompatible
9067 ;; with the current version of Rake, so invoke Rspec directly
9068 (replace 'check
9069 (lambda* (#:key tests? #:allow-other-keys)
9070 (when tests?
9071 (invoke "bundle" "exec" "rspec"))
9072 #t)))))
9073 (propagated-inputs
9074 `(("ruby-warden" ,ruby-warden)))
9075 (native-inputs
9076 `(("bundler" ,bundler)
9077 ("ruby-rspec" ,ruby-rspec-2)
9078 ("ruby-rack-test" ,ruby-rack-test)))
9079 (synopsis "OAuth 2.0 strategies for Warden")
9080 (description
9081 "This library extends Warden to support OAuth 2.0 authorized API
9082 requests.")
9083 (home-page "https://github.com/opperator/warden-oauth2")
9084 (license license:expat)))
9085
9086 (define-public ruby-webmock
9087 (package
9088 (name "ruby-webmock")
9089 (version "3.11.2")
9090 (source
9091 (origin
9092 (method url-fetch)
9093 (uri (rubygems-uri "webmock" version))
9094 (sha256
9095 (base32
9096 "1hdlbvfw316lkz251qnfk79drmaay7l51kidvicz41nhvw12xz8v"))))
9097 (build-system ruby-build-system)
9098 (native-inputs
9099 `(("bundler" ,bundler)
9100 ("ruby-rspec" ,ruby-rspec)))
9101 (propagated-inputs
9102 `(("ruby-addressable" ,ruby-addressable)
9103 ("ruby-crack" ,ruby-crack)
9104 ("ruby-hashdiff" ,ruby-hashdiff)))
9105 (synopsis "Allows stubbing and setting expectations on HTTP requests")
9106 (description
9107 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
9108 requests. This is useful when testing software.")
9109 (home-page "https://github.com/bblimke/webmock")
9110 (license license:expat)))
9111
9112 (define-public ruby-webmock-2
9113 (package
9114 (inherit ruby-webmock)
9115 (name "ruby-webmock")
9116 (version "2.3.2")
9117 (source
9118 (origin
9119 (method url-fetch)
9120 (uri (rubygems-uri "webmock" version))
9121 (sha256
9122 (base32
9123 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))))
9124
9125 (define-public ruby-unicode-display-width
9126 (package
9127 (name "ruby-unicode-display-width")
9128 (version "1.6.0")
9129 (source
9130 (origin
9131 (method url-fetch)
9132 (uri (rubygems-uri "unicode-display_width" version))
9133 (sha256
9134 (base32
9135 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
9136 (build-system ruby-build-system)
9137 (arguments
9138 '(;; Test data not included.
9139 #:tests? #f))
9140 (synopsis "Determine the monospace display width of Ruby strings")
9141 (description
9142 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
9143 display width of strings in Ruby.")
9144 (home-page "https://github.com/janlelis/unicode-display_width")
9145 (license license:expat)))
9146
9147 ;; There is another gem called 'ruby-version' so we use an underscore in this
9148 ;; name
9149 (define-public ruby_version
9150 (package
9151 (name "ruby_version")
9152 (version "1.0.2")
9153 (source
9154 (origin
9155 (method url-fetch)
9156 (uri (rubygems-uri "ruby_version" version))
9157 (sha256
9158 (base32
9159 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
9160 (build-system ruby-build-system)
9161 (arguments
9162 `(#:phases
9163 (modify-phases %standard-phases
9164 (add-before 'check 'fix-dependencies
9165 (lambda _
9166 ;; Remove the Gemfile.lock, as we want to use Guix packages at
9167 ;; whatever versions.
9168 (delete-file "Gemfile.lock")
9169 ;; Remove the included gem files as they unnecessary.
9170 (delete-file-recursively "pkg/")
9171 ;; Accept any version of rake, rdoc and rspec
9172 (substitute* "ruby_version.gemspec"
9173 (("%q<rake.*") "%q<rake>)\n")
9174 (("%q<rdoc.*") "%q<rdoc>)\n")
9175 (("%q<rspec.*") "%q<rspec>)\n"))
9176 ;; Do not use bundler.
9177 (substitute* "Rakefile"
9178 (("Bundler\\.setup.*") "nil\n"))
9179 #t)))))
9180 (native-inputs
9181 `(("ruby-rdoc" ,ruby-rdoc)
9182 ("ruby-rspec" ,ruby-rspec)
9183 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
9184 (synopsis "Ruby library to help check the Ruby version")
9185 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
9186 checking for the right Ruby version in software.")
9187 (home-page "https://github.com/janlelis/ruby_version")
9188 (license license:expat)))
9189
9190 (define-public ruby-websocket-driver
9191 (package
9192 (name "ruby-websocket-driver")
9193 (version "0.7.1")
9194 (source
9195 (origin
9196 (method url-fetch)
9197 (uri (rubygems-uri "websocket-driver" version))
9198 (sha256
9199 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
9200 (build-system ruby-build-system)
9201 (arguments
9202 '(#:tests? #f)) ; no included tests
9203 (propagated-inputs
9204 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
9205 (synopsis "WebSocket protocol handler with pluggable I/O")
9206 (description
9207 "@code{websocket-driver} provides a complete implementation of the
9208 WebSocket protocols that can be hooked up to any TCP library")
9209 (home-page "https://github.com/faye/websocket-driver-ruby")
9210 (license license:expat)))
9211
9212 (define-public ruby-websocket-extensions
9213 (package
9214 (name "ruby-websocket-extensions")
9215 (version "0.1.3")
9216 (source
9217 (origin
9218 (method url-fetch)
9219 (uri (rubygems-uri "websocket-extensions" version))
9220 (sha256
9221 (base32
9222 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
9223 (build-system ruby-build-system)
9224 (arguments
9225 '(;; No included tests
9226 #:tests? #f))
9227 (synopsis "Generic extension manager for WebSocket connections")
9228 (description
9229 "@code{websocket-extensions} provides a container for registering
9230 extension plugins.")
9231 (home-page "https://github.com/faye/websocket-extensions-ruby")
9232 (license license:expat)))
9233
9234 (define-public ruby-domain-name
9235 (package
9236 (name "ruby-domain-name")
9237 (version "0.5.20190701")
9238 (source
9239 (origin
9240 (method url-fetch)
9241 (uri (rubygems-uri "domain_name" version))
9242 (sha256
9243 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
9244 (build-system ruby-build-system)
9245 (arguments
9246 `(#:phases
9247 (modify-phases %standard-phases
9248 (add-before 'check 'fix-versions
9249 (lambda _
9250 ;; Fix NameError that appears to already be fixed upstream.
9251 (substitute* "Rakefile"
9252 (("DomainName::VERSION")
9253 "Bundler::GemHelper.gemspec.version"))
9254 ;; Loosen unnecessarily strict test-unit version specification.
9255 (substitute* "domain_name.gemspec"
9256 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
9257 #t)))))
9258 (propagated-inputs
9259 `(("ruby-unf" ,ruby-unf)))
9260 (native-inputs
9261 `(("ruby-shoulda" ,ruby-shoulda)
9262 ("bundler" ,bundler)
9263 ("ruby-test-unit" ,ruby-test-unit)))
9264 (synopsis "Domain name manipulation library")
9265 (description
9266 "@code{domain_name} is a Domain name manipulation library. It parses a
9267 domain name ready for extracting the registered domain and TLD (Top Level
9268 Domain). It can also be used for cookie domain validation based on the Public
9269 Suffix List.")
9270 (home-page "https://github.com/knu/ruby-domain_name")
9271 (license license:bsd-2)))
9272
9273 (define-public ruby-http-cookie
9274 (package
9275 (name "ruby-http-cookie")
9276 (version "1.0.3")
9277 (source
9278 (origin
9279 (method url-fetch)
9280 (uri (rubygems-uri "http-cookie" version))
9281 (sha256
9282 (base32
9283 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
9284 (build-system ruby-build-system)
9285 (arguments
9286 `(#:phases
9287 (modify-phases %standard-phases
9288 (add-before 'check 'add-dependency-to-bundler
9289 (lambda _
9290 ;; Fix NameError
9291 (substitute* "Rakefile"
9292 (("HTTP::Cookie::VERSION")
9293 "Bundler::GemHelper.gemspec.version"))
9294 #t)))))
9295 (propagated-inputs
9296 `(("ruby-domain-name" ,ruby-domain-name)))
9297 (native-inputs
9298 `(("rubysimplecov" ,ruby-simplecov)
9299 ("bundler" ,bundler)
9300 ("ruby-sqlite3" ,ruby-sqlite3)
9301 ("ruby-test-unit" ,ruby-test-unit)))
9302 (synopsis "Handle HTTP Cookies based on RFC 6265")
9303 (description
9304 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9305 RFC 6265. It has been designed with security, standards compliance and
9306 compatibility in mind, to behave just the same as today's major web browsers.
9307 It has built-in support for the legacy @code{cookies.txt} and
9308 @code{cookies.sqlite} formats of Mozilla Firefox.")
9309 (home-page "https://github.com/sparklemotion/http-cookie")
9310 (license license:expat)))
9311
9312 (define-public ruby-httpclient
9313 (package
9314 (name "ruby-httpclient")
9315 (version "2.8.3")
9316 (source
9317 (origin
9318 (method url-fetch)
9319 (uri (rubygems-uri "httpclient" version))
9320 (sha256
9321 (base32
9322 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9323 (build-system ruby-build-system)
9324 (arguments
9325 '(;; TODO: Some tests currently fail
9326 ;; ------
9327 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9328 ;; 2 omissions, 0 notifications
9329 ;; 91.866% passed
9330 ;; ------
9331 ;; 6.49 tests/s, 22.41 assertions/s
9332 #:tests? #f
9333 #:phases
9334 (modify-phases %standard-phases
9335 (replace 'check
9336 (lambda* (#:key tests? #:allow-other-keys)
9337 (if tests?
9338 (invoke "ruby"
9339 "-Ilib"
9340 "test/runner.rb")
9341 #t))))))
9342 (native-inputs
9343 `(("ruby-rack" ,ruby-rack)))
9344 (synopsis
9345 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9346 (description
9347 "The @code{httpclient} ruby library provides functionality related to
9348 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9349 Cookie, multithreading and authentication (digest, NTLM) support.
9350
9351 Also provided is a @command{httpclient} command, which can perform HTTP
9352 requests either using arguments or with an interactive prompt.")
9353 (home-page "https://github.com/nahi/httpclient")
9354 (license license:ruby)))
9355
9356 (define-public ruby-ansi
9357 (package
9358 (name "ruby-ansi")
9359 (version "1.5.0")
9360 (source
9361 (origin
9362 (method git-fetch)
9363 ;; Fetch from GitHub as the gem does not contain testing code.
9364 (uri (git-reference
9365 (url "https://github.com/rubyworks/ansi")
9366 (commit version)))
9367 (file-name (git-file-name name version))
9368 (sha256
9369 (base32
9370 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9371 (build-system ruby-build-system)
9372 (arguments
9373 `(#:phases
9374 (modify-phases %standard-phases
9375 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9376 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9377 ;; be require'd.
9378 (replace 'check
9379 (lambda _
9380 (invoke "ruby" "-Ilib" "-r" "ansi")))
9381 (add-before 'validate-runpath 'replace-broken-symlink
9382 (lambda* (#:key outputs #:allow-other-keys)
9383 (let* ((out (assoc-ref outputs "out"))
9384 (file (string-append
9385 out "/lib/ruby/vendor_ruby/gems/ansi-"
9386 ,version "/lib/ansi.yml")))
9387 ;; XXX: This symlink is broken since ruby 2.4.
9388 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9389 (delete-file file)
9390 (symlink "../.index" file)
9391 #t))))))
9392 (synopsis "ANSI escape code related libraries")
9393 (description
9394 "This package is a collection of ANSI escape code related libraries
9395 enabling ANSI colorization and stylization of console output. Included in the
9396 library are the @code{Code} module, which defines ANSI codes as constants and
9397 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9398 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9399 @code{Terminal} module which provides information about the current output
9400 device.")
9401 (home-page "https://rubyworks.github.io/ansi/")
9402 (license license:bsd-2)))
9403
9404 (define-public ruby-systemu
9405 (package
9406 (name "ruby-systemu")
9407 (version "2.6.5")
9408 (source
9409 (origin
9410 (method url-fetch)
9411 (uri (rubygems-uri "systemu" version))
9412 (sha256
9413 (base32
9414 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9415 (build-system ruby-build-system)
9416 (arguments
9417 `(#:phases
9418 (modify-phases %standard-phases
9419 (add-before 'check 'set-version
9420 (lambda _
9421 (setenv "VERSION" ,version)
9422 #t)))))
9423 (synopsis "Capture of stdout/stderr and handling of child processes")
9424 (description
9425 "Systemu can be used on any platform to return status, stdout, and stderr
9426 of any command. Unlike other methods like @code{open3} and @code{popen4}
9427 there is no danger of full pipes or threading issues hanging your process or
9428 subprocess.")
9429 (home-page "https://github.com/ahoward/systemu")
9430 (license license:ruby)))
9431
9432 (define-public ruby-bio-commandeer
9433 (package
9434 (name "ruby-bio-commandeer")
9435 (version "0.4.0")
9436 (source
9437 (origin
9438 (method url-fetch)
9439 (uri (rubygems-uri "bio-commandeer" version))
9440 (sha256
9441 (base32
9442 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9443 (build-system ruby-build-system)
9444 (arguments
9445 `(#:phases
9446 (modify-phases %standard-phases
9447 (replace 'check
9448 ;; Run test without calling 'rake' so that jeweler is
9449 ;; not required as an input.
9450 (lambda _
9451 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9452 (propagated-inputs
9453 `(("ruby-bio-logger" ,ruby-bio-logger)
9454 ("ruby-systemu" ,ruby-systemu)))
9455 (native-inputs
9456 `(("bundler" ,bundler)
9457 ("ruby-rspec" ,ruby-rspec)))
9458 (synopsis "Simplified running of shell commands from within Ruby")
9459 (description
9460 "Bio-commandeer provides an opinionated method of running shell commands
9461 from within Ruby. The advantage of bio-commandeer over other methods of
9462 running external commands is that when something goes wrong, messages printed
9463 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9464 detail to ease debugging.")
9465 (home-page "https://github.com/wwood/bioruby-commandeer")
9466 (license license:expat)))
9467
9468 (define-public ruby-rubytest
9469 (package
9470 (name "ruby-rubytest")
9471 (version "0.8.1")
9472 (source
9473 (origin
9474 (method url-fetch)
9475 (uri (rubygems-uri "rubytest" version))
9476 (sha256
9477 (base32
9478 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9479 (build-system ruby-build-system)
9480 (arguments
9481 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9482 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9483 ;; simply test that the library can be require'd.
9484 `(#:phases
9485 (modify-phases %standard-phases
9486 (replace 'check
9487 (lambda _
9488 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9489 (propagated-inputs
9490 `(("ruby-ansi" ,ruby-ansi)))
9491 (synopsis "Universal test harness for Ruby")
9492 (description
9493 "Rubytest is a testing meta-framework for Ruby. It can handle any
9494 compliant test framework and can run tests from multiple frameworks in a
9495 single pass.")
9496 (home-page "https://rubyworks.github.io/rubytest")
9497 (license license:bsd-2)))
9498
9499 (define-public ruby-brass
9500 (package
9501 (name "ruby-brass")
9502 (version "1.2.1")
9503 (source
9504 (origin
9505 (method url-fetch)
9506 (uri (rubygems-uri "brass" version))
9507 (sha256
9508 (base32
9509 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9510 (build-system ruby-build-system)
9511 (arguments
9512 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9513 ;; Instead simply test that the library can be require'd.
9514 `(#:phases
9515 (modify-phases %standard-phases
9516 (replace 'check
9517 (lambda _
9518 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9519 (synopsis "Basic foundational assertions framework")
9520 (description
9521 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9522 foundational assertions framework for other assertion and test frameworks to
9523 make use of.")
9524 (home-page "https://rubyworks.github.io/brass")
9525 (license license:bsd-2)))
9526
9527 (define-public ruby-qed
9528 (package
9529 (name "ruby-qed")
9530 (version "2.9.2")
9531 (source
9532 (origin
9533 (method url-fetch)
9534 (uri (rubygems-uri "qed" version))
9535 (sha256
9536 (base32
9537 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9538 (build-system ruby-build-system)
9539 (arguments
9540 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9541 ;; Instead simply test that the executable runs using --copyright.
9542 `(#:phases
9543 (modify-phases %standard-phases
9544 (replace 'check
9545 (lambda _
9546 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9547 (propagated-inputs
9548 `(("ruby-ansi" ,ruby-ansi)
9549 ("ruby-brass" ,ruby-brass)))
9550 (synopsis "Test framework utilizing literate programming techniques")
9551 (description
9552 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9553 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9554 Development} (BDD) utilizing Literate Programming techniques. QED sits
9555 somewhere between lower-level testing tools like @code{Test::Unit} and
9556 requirement specifications systems like Cucumber.")
9557 (home-page "https://rubyworks.github.io/qed")
9558 (license license:bsd-2)))
9559
9560 (define-public ruby-que
9561 (package
9562 (name "ruby-que")
9563 (version "1.0.0.beta3")
9564 (source
9565 (origin
9566 (method url-fetch)
9567 (uri (rubygems-uri "que" version))
9568 (sha256
9569 (base32
9570 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9571 (build-system ruby-build-system)
9572 (arguments
9573 '(#:tests? #f)) ; No included tests
9574 (synopsis "Job queue using PostgreSQL written in Ruby")
9575 (description
9576 "This package provides a job queue that uses PostgreSQL for storing jobs
9577 and locking between worker processes.")
9578 (home-page "https://github.com/chanks/que")
9579 (license license:expat)))
9580
9581 (define-public ruby-ae
9582 (package
9583 (name "ruby-ae")
9584 (version "1.8.2")
9585 (source
9586 (origin
9587 (method git-fetch)
9588 ;; Fetch from github so tests are included.
9589 (uri (git-reference
9590 (url "https://github.com/rubyworks/ae")
9591 (commit version)))
9592 (file-name (git-file-name name version))
9593 (sha256
9594 (base32
9595 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9596 (build-system ruby-build-system)
9597 (arguments
9598 `(#:phases
9599 (modify-phases %standard-phases
9600 (replace 'check
9601 (lambda _ (invoke "qed")))
9602 (add-before 'validate-runpath 'replace-broken-symlink
9603 (lambda* (#:key outputs #:allow-other-keys)
9604 (let* ((out (assoc-ref outputs "out"))
9605 (file (string-append
9606 out "/lib/ruby/vendor_ruby/gems/ae-"
9607 ,version "/lib/ae.yml")))
9608 ;; XXX: This symlink is broken since ruby 2.4.
9609 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9610 (delete-file file)
9611 (symlink "../.index" file)
9612 #t))))))
9613 (propagated-inputs
9614 `(("ruby-ansi" ,ruby-ansi)))
9615 (native-inputs
9616 `(("ruby-qed" ,ruby-qed)))
9617 (synopsis "Assertions library")
9618 (description
9619 "Assertive Expressive (AE) is an assertions library specifically designed
9620 for reuse by other test frameworks.")
9621 (home-page "https://rubyworks.github.io/ae/")
9622 (license license:bsd-2)))
9623
9624 (define-public ruby-lemon
9625 (package
9626 (name "ruby-lemon")
9627 (version "0.9.1")
9628 (source
9629 (origin
9630 (method url-fetch)
9631 (uri (rubygems-uri "lemon" version))
9632 (sha256
9633 (base32
9634 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9635 (build-system ruby-build-system)
9636 (arguments
9637 `(#:phases
9638 (modify-phases %standard-phases
9639 (replace 'check (lambda _ (invoke "qed"))))))
9640 (propagated-inputs
9641 `(("ruby-ae" ,ruby-ae)
9642 ("ruby-ansi" ,ruby-ansi)
9643 ("ruby-rubytest" ,ruby-rubytest)))
9644 (native-inputs
9645 `(("ruby-qed" ,ruby-qed)))
9646 (synopsis "Test framework correlating code structure and test unit")
9647 (description
9648 "Lemon is a unit testing framework that enforces highly formal
9649 case-to-class and unit-to-method test construction. This enforcement can help
9650 focus concern on individual units of behavior.")
9651 (home-page "https://rubyworks.github.io/lemon")
9652 (license license:bsd-2)))
9653
9654 (define-public ruby-rubytest-cli
9655 (package
9656 (name "ruby-rubytest-cli")
9657 (version "0.2.0")
9658 (source
9659 (origin
9660 (method url-fetch)
9661 (uri (rubygems-uri "rubytest-cli" version))
9662 (sha256
9663 (base32
9664 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9665 (build-system ruby-build-system)
9666 (arguments
9667 `(#:tests? #f)) ; no tests
9668 (propagated-inputs
9669 `(("ruby-ansi" ,ruby-ansi)
9670 ("ruby-rubytest" ,ruby-rubytest)))
9671 (synopsis "Command-line interface for rubytest")
9672 (description
9673 "Rubytest CLI is a command-line interface for running tests for
9674 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9675 (home-page "https://rubyworks.github.io/rubytest-cli")
9676 (license license:bsd-2)))
9677
9678 (define-public ruby-hashery
9679 (package
9680 (name "ruby-hashery")
9681 (version "2.1.2")
9682 (source
9683 (origin
9684 (method url-fetch)
9685 (uri (rubygems-uri "hashery" version))
9686 (sha256
9687 (base32
9688 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9689 (build-system ruby-build-system)
9690 (arguments
9691 `(#:phases
9692 (modify-phases %standard-phases
9693 (replace 'check
9694 (lambda _
9695 (invoke "qed")
9696 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9697 (native-inputs
9698 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9699 ("ruby-qed" ,ruby-qed)
9700 ("ruby-lemon" ,ruby-lemon)))
9701 (synopsis "Hash-like classes with extra features")
9702 (description
9703 "The Hashery is a tight collection of @code{Hash}-like classes.
9704 Included are the auto-sorting @code{Dictionary} class, the efficient
9705 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9706 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9707 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9708 standard @code{Hash} making it possible to subclass and augment to fit any
9709 specific use case.")
9710 (home-page "https://rubyworks.github.io/hashery")
9711 (license license:bsd-2)))
9712
9713 (define-public ruby-rc4
9714 (package
9715 (name "ruby-rc4")
9716 (version "0.1.5")
9717 (source
9718 (origin
9719 (method url-fetch)
9720 (uri (rubygems-uri "ruby-rc4" version))
9721 (sha256
9722 (base32
9723 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9724 (build-system ruby-build-system)
9725 (arguments
9726 `(#:phases
9727 (modify-phases %standard-phases
9728 (replace 'check
9729 (lambda _
9730 (invoke "rspec" "spec/rc4_spec.rb"))))))
9731 (native-inputs
9732 `(("ruby-rspec" ,ruby-rspec-2)))
9733 (synopsis "Implementation of the RC4 algorithm")
9734 (description
9735 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9736 (home-page "https://github.com/caiges/Ruby-RC4")
9737 (license license:expat)))
9738
9739 (define-public ruby-afm
9740 (package
9741 (name "ruby-afm")
9742 (version "0.2.2")
9743 (source
9744 (origin
9745 (method url-fetch)
9746 (uri (rubygems-uri "afm" version))
9747 (sha256
9748 (base32
9749 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9750 (build-system ruby-build-system)
9751 (native-inputs
9752 `(("bundler" ,bundler)))
9753 (synopsis "Read Adobe Font Metrics (afm) files")
9754 (description
9755 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9756 files and use the data therein.")
9757 (home-page "https://github.com/halfbyte/afm")
9758 (license license:expat)))
9759
9760 (define-public ruby-ascii85
9761 (package
9762 (name "ruby-ascii85")
9763 (version "1.0.3")
9764 (source
9765 (origin
9766 (method url-fetch)
9767 (uri (rubygems-uri "Ascii85" version))
9768 (sha256
9769 (base32
9770 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9771 (build-system ruby-build-system)
9772 (native-inputs
9773 `(("bundler" ,bundler)))
9774 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9775 (description
9776 "This library provides methods to encode and decode Ascii85
9777 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9778 @dfn{Portable Document Format} (PDF) file formats.")
9779 (home-page "https://github.com/datawraith/ascii85gem")
9780 (license license:expat)))
9781
9782 (define-public ruby-ttfunk
9783 (package
9784 (name "ruby-ttfunk")
9785 (version "1.6.2.1")
9786 (source
9787 (origin
9788 (method git-fetch)
9789 ;; fetch from github as the gem does not contain testing code
9790 (uri (git-reference
9791 (url "https://github.com/prawnpdf/ttfunk")
9792 (commit version)))
9793 (file-name (git-file-name name version))
9794 (sha256
9795 (base32
9796 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9797 (build-system ruby-build-system)
9798 (arguments
9799 `(#:test-target "spec"
9800 #:phases
9801 (modify-phases %standard-phases
9802 (add-before 'build 'remove-ssh
9803 (lambda _
9804 ;; remove dependency on an ssh key pair that doesn't exist
9805 (substitute* "ttfunk.gemspec"
9806 (("spec.signing_key.*") ""))
9807 #t))
9808 (add-before 'check 'remove-rubocop
9809 (lambda _
9810 ;; remove rubocop as a dependency as not needed for testing
9811 (substitute* "ttfunk.gemspec"
9812 (("spec.add_development_dependency\\('rubocop'.*") ""))
9813 (substitute* "Rakefile"
9814 (("require 'rubocop/rake_task'") "")
9815 (("RuboCop::RakeTask.new") ""))
9816 #t)))))
9817 (native-inputs
9818 `(("ruby-rspec" ,ruby-rspec)
9819 ("ruby-yard" ,ruby-yard)
9820 ("bundler" ,bundler)))
9821 (synopsis "Font metrics parser for the Prawn PDF generator")
9822 (description
9823 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9824 part of the Prawn PDF generator.")
9825 (home-page "https://github.com/prawnpdf/ttfunk")
9826 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9827 ;; for details."
9828 (license %prawn-project-licenses)))
9829
9830 (define-public ruby-puma
9831 (package
9832 (name "ruby-puma")
9833 (version "3.9.1")
9834 (source
9835 (origin
9836 (method git-fetch)
9837 ;; Fetch from GitHub because distributed gem does not contain tests.
9838 (uri (git-reference
9839 (url "https://github.com/puma/puma")
9840 (commit (string-append "v" version))))
9841 (file-name (git-file-name name version))
9842 (sha256
9843 (base32
9844 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9845 (build-system ruby-build-system)
9846 (arguments
9847 `(#:tests? #f ; Tests require an out-dated version of minitest.
9848 #:phases
9849 (modify-phases %standard-phases
9850 (add-before 'build 'fix-gemspec
9851 (lambda _
9852 (substitute* "puma.gemspec"
9853 (("git ls-files") "find * |sort"))
9854 #t)))))
9855 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9856 (description
9857 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9858 for Ruby/Rack applications. Puma is intended for use in both development and
9859 production environments. In order to get the best throughput, it is highly
9860 recommended that you use a Ruby implementation with real threads like Rubinius
9861 or JRuby.")
9862 (home-page "https://puma.io/")
9863 (license license:expat)))
9864
9865 (define-public ruby-hoe-git
9866 (package
9867 (name "ruby-hoe-git")
9868 (version "1.6.0")
9869 (source
9870 (origin
9871 (method url-fetch)
9872 (uri (rubygems-uri "hoe-git" version))
9873 (sha256
9874 (base32
9875 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9876 (build-system ruby-build-system)
9877 (propagated-inputs
9878 `(("ruby-hoe" ,ruby-hoe)))
9879 (synopsis "Hoe plugins for tighter Git integration")
9880 (description
9881 "This package provides a set of Hoe plugins for tighter Git integration.
9882 It provides tasks to automate release tagging and pushing and changelog
9883 generation.")
9884 (home-page "https://github.com/jbarnette/hoe-git")
9885 (license license:expat)))
9886
9887 (define-public ruby-sequel
9888 (package
9889 (name "ruby-sequel")
9890 (version "4.49.0")
9891 (source
9892 (origin
9893 (method url-fetch)
9894 (uri (rubygems-uri "sequel" version))
9895 (sha256
9896 (base32
9897 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9898 (build-system ruby-build-system)
9899 (arguments
9900 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9901 (synopsis "Database toolkit for Ruby")
9902 (description "Sequel provides thread safety, connection pooling and a
9903 concise DSL for constructing SQL queries and table schemas. It includes a
9904 comprehensive ORM layer for mapping records to Ruby objects and handling
9905 associated records.")
9906 (home-page "https://sequel.jeremyevans.net")
9907 (license license:expat)))
9908
9909 (define-public ruby-timecop
9910 (package
9911 (name "ruby-timecop")
9912 (version "0.9.1")
9913 (source
9914 (origin
9915 (method url-fetch)
9916 (uri (rubygems-uri "timecop" version))
9917 (sha256
9918 (base32
9919 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9920 (build-system ruby-build-system)
9921 (arguments
9922 `(#:phases
9923 (modify-phases %standard-phases
9924 (add-before 'check 'set-check-rubylib
9925 (lambda _
9926 ;; Set RUBYLIB so timecop tests finds its own lib.
9927 (setenv "RUBYLIB" "lib")
9928 #t)))))
9929 (native-inputs
9930 `(("bundler" ,bundler)
9931 ("ruby-minitest-rg" ,ruby-minitest-rg)
9932 ("ruby-mocha" ,ruby-mocha)
9933 ("ruby-activesupport" ,ruby-activesupport)))
9934 (synopsis "Test mocks for time-dependent functions")
9935 (description
9936 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9937 making it easier to test time-dependent code. It provides a unified method to
9938 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9939 call.")
9940 (home-page "https://github.com/travisjeffery/timecop")
9941 (license license:expat)))
9942
9943 (define-public ruby-concurrent
9944 (package
9945 (name "ruby-concurrent")
9946 (version "1.1.5")
9947 (source
9948 (origin
9949 (method git-fetch)
9950 ;; Download from GitHub because the rubygems version does not contain
9951 ;; Rakefile.
9952 (uri (git-reference
9953 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9954 (commit (string-append "v" version))))
9955 (file-name (git-file-name name version))
9956 (sha256
9957 (base32
9958 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9959 (build-system ruby-build-system)
9960 (arguments
9961 `(#:test-target "ci"
9962 #:phases
9963 (modify-phases %standard-phases
9964 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9965 (lambda _
9966 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9967 ;; correct one.
9968 (delete-file "concurrent-ruby-edge.gemspec")
9969 (delete-file "concurrent-ruby-ext.gemspec")
9970 #t))
9971 (replace 'replace-git-ls-files
9972 (lambda _
9973 ;; XXX: The default substitution made by this phase is not fully
9974 ;; compatible with "git ls-files". The latter produces file names
9975 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9976 ;; which gives "./lib/foo". That difference in turn breaks the
9977 ;; comparison against a glob pattern in this script.
9978 (substitute* "concurrent-ruby.gemspec"
9979 (("git ls-files") "find * -type f | sort"))
9980 #t))
9981 (add-before 'build 'remove-jar-from-gemspec
9982 (lambda _
9983 ;; The gemspec wants to include a JAR file that we do not build
9984 ;; nor need.
9985 (substitute* "concurrent-ruby.gemspec"
9986 (("'lib/concurrent/concurrent_ruby.jar'")
9987 ""))
9988 #t))
9989 (add-before 'build 'remove-rake_compiler_dock-dependency
9990 (lambda _
9991 ;; This library is only used when building for non-MRI targets.
9992 (substitute* "Rakefile"
9993 (("require 'rake_compiler_dock'")
9994 ""))
9995 #t))
9996 (add-before 'check 'remove-timecop-dependency
9997 ;; Remove timecop-dependent tests as having timecop as a depedency
9998 ;; causes circular depedencies.
9999 (lambda _
10000 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
10001 (delete-file "spec/concurrent/scheduled_task_spec.rb")
10002 #t)))))
10003 (native-inputs
10004 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10005 ("ruby-rspec" ,ruby-rspec)))
10006 (synopsis "Concurrency tools for Ruby")
10007 (description
10008 "This library provides modern concurrency tools including agents,
10009 futures, promises, thread pools, actors, supervisors, and more. It is
10010 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
10011 patterns.")
10012 (home-page "http://www.concurrent-ruby.com")
10013 (license license:expat)))
10014
10015 (define-public ruby-pkg-config
10016 (package
10017 (name "ruby-pkg-config")
10018 (version "1.2.5")
10019 (source
10020 (origin
10021 (method url-fetch)
10022 (uri (rubygems-uri "pkg-config" version))
10023 (sha256
10024 (base32
10025 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
10026 (build-system ruby-build-system)
10027 (arguments
10028 ;; Tests require extra files not included in the gem.
10029 `(#:tests? #f))
10030 (synopsis "Detect libraries for compiling Ruby native extensions")
10031 (description
10032 "@code{pkg-config} can be used in your extconf.rb to properly detect need
10033 libraries for compiling Ruby native extensions.")
10034 (home-page "https://github.com/ruby-gnome2/pkg-config")
10035 (license license:lgpl2.0+)))
10036
10037 (define-public ruby-net-http-digest-auth
10038 (package
10039 (name "ruby-net-http-digest-auth")
10040 (version "1.4.1")
10041 (source
10042 (origin
10043 (method url-fetch)
10044 (uri (rubygems-uri "net-http-digest_auth" version))
10045 (sha256
10046 (base32
10047 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
10048 (build-system ruby-build-system)
10049 (native-inputs
10050 `(("ruby-hoe" ,ruby-hoe)))
10051 (synopsis "RFC 2617 HTTP digest authentication library")
10052 (description
10053 "This library implements HTTP's digest authentication scheme based on
10054 RFC 2617. This enables the use of the digest authentication scheme instead
10055 of the more insecure basic authentication scheme.")
10056 (home-page "https://github.com/drbrain/net-http-digest_auth")
10057 (license license:expat)))
10058
10059 (define-public ruby-mail
10060 (package
10061 (name "ruby-mail")
10062 (version "2.6.6")
10063 (source
10064 (origin
10065 (method url-fetch)
10066 (uri (rubygems-uri "mail" version))
10067 (sha256
10068 (base32
10069 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
10070 (build-system ruby-build-system)
10071 (propagated-inputs
10072 `(("ruby-mime-types" ,ruby-mime-types)))
10073 (arguments
10074 ;; Tests require extra gems not included in the Gemfile.
10075 ;; XXX: Try enabling this for the next version with mini_mime.
10076 `(#:tests? #f))
10077 (synopsis "Mail library for Ruby")
10078 (description
10079 "Mail is an internet library for Ruby that is designed to handle email
10080 generation, parsing and sending. The purpose of this library is to provide
10081 a single point of access to handle all email functions, including sending
10082 and receiving emails. All network type actions are done through proxy
10083 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
10084
10085 Mail has been designed with a very simple object oriented system that
10086 really opens up the email messages you are parsing, if you know what you
10087 are doing, you can fiddle with every last bit of your email directly.")
10088 (home-page "https://github.com/mikel/mail")
10089 (license license:expat)))
10090
10091 (define-public ruby-mathn
10092 (package
10093 (name "ruby-mathn")
10094 (version "0.1.0")
10095 (source
10096 (origin
10097 (method url-fetch)
10098 (uri (rubygems-uri "mathn" version))
10099 (sha256
10100 (base32
10101 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
10102 (build-system ruby-build-system)
10103 (native-inputs
10104 `(("bundler" ,bundler)
10105 ("ruby-rake-compiler" ,ruby-rake-compiler)))
10106 (synopsis "Extends math operations for increased precision")
10107 (description
10108 "This gem makes mathematical operations more precise in Ruby and
10109 integrates other mathematical standard libraries. Prior to Ruby 2.5,
10110 @code{mathn} was part of the Ruby standard library.")
10111 (home-page "https://github.com/ruby/mathn")
10112 (license license:bsd-2)))
10113
10114 (define-public ruby-code-statistics
10115 (package
10116 (name "ruby-code-statistics")
10117 (version "0.2.13")
10118 (source
10119 (origin
10120 (method url-fetch)
10121 (uri (rubygems-uri "code_statistics" version))
10122 (sha256
10123 (base32
10124 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
10125 (build-system ruby-build-system)
10126 (arguments
10127 `(#:tests? #f)) ; Not all test code is included in gem.
10128 (synopsis "Port of the rails 'rake stats' method")
10129 (description
10130 "This gem is a port of the rails 'rake stats' method so it can be made
10131 more robust and work for non rails projects.")
10132 (home-page "https://github.com/danmayer/code_statistics")
10133 (license license:expat)))
10134
10135 (define-public ruby-rubypants
10136 (package
10137 (name "ruby-rubypants")
10138 (version "0.6.0")
10139 (source (origin
10140 (method url-fetch)
10141 (uri (rubygems-uri "rubypants" version))
10142 (sha256
10143 (base32
10144 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
10145 (build-system ruby-build-system)
10146 (arguments
10147 '(#:tests? #f)) ; need Codecov
10148 (synopsis "Port of the smart-quotes library SmartyPants")
10149 (description
10150 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
10151 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
10152 and BBEdit that easily translates plain ASCII punctuation characters into
10153 smart typographic punctuation HTML entities.")
10154 (home-page "https://github.com/jmcnevin/rubypants")
10155 (license license:bsd-2)))
10156
10157 (define-public ruby-org-ruby
10158 (package
10159 (name "ruby-org-ruby")
10160 (version "0.9.12")
10161 (source (origin
10162 (method url-fetch)
10163 (uri (rubygems-uri "org-ruby" version))
10164 (sha256
10165 (base32
10166 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
10167 (build-system ruby-build-system)
10168 (arguments
10169 '(#:tests? #f)) ; no rakefile
10170 (propagated-inputs
10171 `(("ruby-rubypants" ,ruby-rubypants)))
10172 (synopsis "Org-mode parser written in Ruby")
10173 (description
10174 "Org-ruby is an org-mode parser written in Ruby. The most significant
10175 thing this library does today is convert org-mode files to HTML or Textile or
10176 Markdown.")
10177 (home-page "https://github.com/wallyqs/org-ruby")
10178 (license license:expat)))
10179
10180 (define-public ruby-rake
10181 (package
10182 (name "ruby-rake")
10183 (version "13.0.1")
10184 (source
10185 (origin
10186 (method url-fetch)
10187 (uri (rubygems-uri "rake" version))
10188 (sha256
10189 (base32
10190 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
10191 (build-system ruby-build-system)
10192 (native-inputs
10193 `(("bundler" ,bundler)))
10194 (synopsis "Rake is a Make-like program implemented in Ruby")
10195 (description
10196 "Rake is a Make-like program where tasks and dependencies are specified
10197 in standard Ruby syntax.")
10198 (home-page "https://github.com/ruby/rake")
10199 (license license:expat)))
10200
10201 (define-public ruby-childprocess
10202 (package
10203 (name "ruby-childprocess")
10204 (version "3.0.0")
10205 (source
10206 (origin
10207 (method url-fetch)
10208 (uri (rubygems-uri "childprocess" version))
10209 (sha256
10210 (base32
10211 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
10212 (build-system ruby-build-system)
10213 (arguments
10214 `(#:tests? #f))
10215 (native-inputs
10216 `(("bundler" ,bundler)
10217 ("ruby-rspec" ,ruby-rspec)))
10218 (propagated-inputs
10219 `(("ruby-ffi" ,ruby-ffi)))
10220 (synopsis "Control external programs running in the background, in Ruby")
10221 (description "@code{childprocess} provides a gem to control external
10222 programs running in the background, in Ruby.")
10223 (home-page "https://github.com/enkessler/childprocess")
10224 (license license:expat)))
10225
10226 (define-public ruby-public-suffix
10227 (package
10228 (name "ruby-public-suffix")
10229 (version "4.0.5")
10230 (source (origin
10231 (method url-fetch)
10232 (uri (rubygems-uri "public_suffix" version))
10233 (sha256
10234 (base32
10235 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
10236 (build-system ruby-build-system)
10237 (arguments
10238 '(#:phases
10239 (modify-phases %standard-phases
10240 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
10241 ;; including it as an input can lead to circular dependencies.
10242 (add-after 'unpack 'remove-rubocop-from-Rakefile
10243 (lambda _
10244 (substitute* "Rakefile"
10245 (("require \"rubocop/rake\\_task\"") "")
10246 (("RuboCop::RakeTask\\.new") ""))
10247 #t)))))
10248 (native-inputs
10249 `(("bundler" ,bundler)
10250 ("ruby-yard" ,ruby-yard)
10251 ("ruby-mocha" ,ruby-mocha)
10252 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
10253 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
10254 (synopsis "Domain name parser")
10255 (description "The gem @code{public_suffix} is a domain name parser,
10256 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
10257 is one under which Internet users can (or historically could) directly
10258 register names. Some examples of public suffixes are @code{.com},
10259 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
10260 all known public suffixes.")
10261 (license license:expat)))
10262
10263 (define-public ruby-addressable
10264 (package
10265 (name "ruby-addressable")
10266 (version "2.7.0")
10267 (source (origin
10268 (method url-fetch)
10269 (uri (rubygems-uri "addressable" version))
10270 (sha256
10271 (base32
10272 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
10273 (build-system ruby-build-system)
10274 (arguments
10275 '(#:test-target "spec"
10276 #:phases
10277 (modify-phases %standard-phases
10278 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
10279 (lambda _
10280 (substitute* "Gemfile"
10281 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
10282 ((".*launchy.*") "")
10283 ((".*rake.*") "gem 'rake'\n")
10284 ((".*redcarpet.*") ""))
10285 #t))
10286 (add-before 'check 'delete-network-dependent-test
10287 (lambda _
10288 (delete-file "spec/addressable/net_http_compat_spec.rb")
10289 #t)))))
10290 (native-inputs
10291 `(("ruby-rspec" ,ruby-rspec)
10292 ("bundler" ,bundler)
10293 ("ruby-idn-ruby" ,ruby-idn-ruby)
10294 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
10295 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
10296 ("ruby-yard" ,ruby-yard)
10297 ("ruby-simplecov" ,ruby-simplecov)))
10298 (propagated-inputs
10299 `(("ruby-public-suffix" ,ruby-public-suffix)))
10300 (home-page "https://github.com/sporkmonger/addressable")
10301 (synopsis "Alternative URI implementation")
10302 (description "Addressable is a replacement for the URI implementation that
10303 is part of Ruby's standard library. It more closely conforms to RFC 3986,
10304 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10305 (license license:asl2.0)))
10306
10307 (define-public ruby-colorize
10308 (package
10309 (name "ruby-colorize")
10310 (version "0.8.1")
10311 (source (origin
10312 (method url-fetch)
10313 (uri (rubygems-uri "colorize" version))
10314 (sha256
10315 (base32
10316 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10317 (build-system ruby-build-system)
10318 (arguments
10319 '(#:phases (modify-phases %standard-phases
10320 (add-before 'check 'remove-codeclimate-dependency
10321 (lambda _
10322 (substitute* "test/test_colorize.rb"
10323 ;; Do not hook the tests into the online CodeClimate
10324 ;; service which is unnecessary for these tests.
10325 (("require 'codeclimate-test-reporter'")
10326 "")
10327 (("CodeClimate.*") ""))
10328 #t)))))
10329 (synopsis "Add color effects to the @code{String} class")
10330 (description
10331 "This package extends the @code{String} class and adds a
10332 @code{ColorizedString} with methods to set text color, background color,
10333 and text effects.")
10334 (home-page "https://github.com/fazibear/colorize")
10335 (license license:gpl2+)))
10336
10337 (define-public ruby-colorator
10338 (package
10339 (name "ruby-colorator")
10340 (version "1.1.0")
10341 (source (origin
10342 (method url-fetch)
10343 (uri (rubygems-uri "colorator" version))
10344 (sha256
10345 (base32
10346 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10347 (build-system ruby-build-system)
10348 (arguments
10349 ;; No test target
10350 `(#:tests? #f))
10351 (home-page "http://octopress.org/colorator/")
10352 (synopsis "Terminal color library")
10353 (description "Colorator is a Ruby gem that helps you colorize your text
10354 for the terminal.")
10355 (license license:expat)))
10356
10357 (define-public ruby-command-line-reporter
10358 (package
10359 (name "ruby-command-line-reporter")
10360 (version "4.0.1")
10361 (source (origin
10362 (method url-fetch)
10363 (uri (rubygems-uri "command_line_reporter" version))
10364 (sha256
10365 (base32
10366 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10367 (build-system ruby-build-system)
10368 (arguments
10369 ;; No Rakefile
10370 `(#:tests? #f
10371 #:phases
10372 (modify-phases %standard-phases
10373 (add-before 'build 'fix-dependencies
10374 (lambda _
10375 (substitute* ".gemspec"
10376 ;; colored is unmaintained
10377 (("colored") "colorator")
10378 ;; colorator version
10379 (("= 1.2") "= 1.1"))
10380 #t)))))
10381 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10382 (home-page "https://github.com/wbailey/command_line_reporter")
10383 (synopsis "Report production while executing Ruby scripts")
10384 (description "This gem provides a DSL that makes it easy to write reports
10385 of various types in ruby. It eliminates the need to litter your source with
10386 puts statements, instead providing a more readable, expressive interface to
10387 your application.")
10388 (license license:asl2.0)))
10389
10390 (define-public ruby-command-line-reporter-3
10391 (package
10392 (inherit ruby-command-line-reporter)
10393 (version "3.3.6")
10394 (source (origin
10395 (method url-fetch)
10396 (uri (rubygems-uri "command_line_reporter" version))
10397 (sha256
10398 (base32
10399 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10400
10401 (define-public ruby-kpeg
10402 (package
10403 (name "ruby-kpeg")
10404 (version "1.1.0")
10405 (source
10406 (origin
10407 (method url-fetch)
10408 (uri (rubygems-uri "kpeg" version))
10409 (sha256
10410 (base32
10411 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10412 (build-system ruby-build-system)
10413 (native-inputs
10414 `(("ruby-hoe" ,ruby-hoe)))
10415 (synopsis "PEG library for Ruby")
10416 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10417 well as native grammar to build the grammar. KPeg supports direct left
10418 recursion of rules via the
10419 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10420 technique.")
10421 (home-page "https://github.com/evanphx/kpeg")
10422 (license license:expat)))
10423
10424 (define-public ruby-rdoc
10425 (package
10426 (name "ruby-rdoc")
10427 (version "6.2.0")
10428 (source
10429 (origin
10430 (method git-fetch)
10431 (uri (git-reference
10432 (url "https://github.com/ruby/rdoc")
10433 (commit (string-append "v" version))))
10434 (file-name (git-file-name name version))
10435 (sha256
10436 (base32
10437 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10438 (build-system ruby-build-system)
10439 (arguments
10440 `(#:phases
10441 (modify-phases %standard-phases
10442 (add-after 'unpack 'patch-gemspec
10443 ;; TODO: Remove after next release is tagged.
10444 (lambda _
10445 (substitute* "rdoc.gemspec"
10446 (("\"lib/rdoc/generator/template/darkfish/js/\
10447 jquery\\.js\", ") ""))
10448 #t))
10449 (add-before 'build 'generate
10450 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10451 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10452 (lambda _
10453 (invoke "rake" "generate"))))))
10454 (native-inputs
10455 `(("bundler" ,bundler)
10456 ("ruby-kpeg" ,ruby-kpeg)
10457 ("ruby-racc" ,ruby-racc)
10458 ("ruby-rubocop" ,ruby-rubocop)))
10459 (home-page "https://ruby.github.io/rdoc/")
10460 (synopsis "HTML and command-line documentation utility")
10461 (description "RDoc produces HTML and command-line documentation for Ruby
10462 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10463 documentation from the command-line.")
10464 (license license:gpl2+)))
10465
10466 (define-public ruby-sass-listen
10467 (package
10468 (name "ruby-sass-listen")
10469 (version "4.0.0")
10470 (source (origin
10471 (method url-fetch)
10472 (uri (rubygems-uri "sass-listen" version))
10473 (sha256
10474 (base32
10475 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10476 (build-system ruby-build-system)
10477 (arguments
10478 ;; No test target
10479 `(#:tests? #f))
10480 (propagated-inputs
10481 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10482 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10483 (home-page "https://github.com/sass/listen")
10484 (synopsis "File modification notification library")
10485 (description "The Listen gem listens to file modifications and notifies you
10486 about the changes.")
10487 (license license:expat)))
10488
10489 (define-public ruby-terminfo
10490 (package
10491 (name "ruby-terminfo")
10492 (version "0.1.1")
10493 (source
10494 (origin
10495 (method url-fetch)
10496 (uri (rubygems-uri "ruby-terminfo" version))
10497 (sha256
10498 (base32
10499 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10500 (build-system ruby-build-system)
10501 (arguments
10502 `(#:test-target "test"
10503 ;; Rakefile requires old packages and would need modification to
10504 ;; work with current software.
10505 #:tests? #f))
10506 (inputs
10507 `(("ncurses" ,ncurses)))
10508 (native-inputs
10509 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10510 ("ruby-rdoc" ,ruby-rdoc)))
10511 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10512 (synopsis "Terminfo binding for Ruby")
10513 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10514 (license license:bsd-3)))
10515
10516 (define-public ruby-diffy
10517 (package
10518 (name "ruby-diffy")
10519 (version "3.2.1")
10520 (source
10521 (origin
10522 (method url-fetch)
10523 (uri (rubygems-uri "diffy" version))
10524 (sha256
10525 (base32
10526 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10527 (build-system ruby-build-system)
10528 (arguments
10529 ;; No tests
10530 `(#:tests? #f))
10531 (native-inputs
10532 `(("ruby-rspec" ,ruby-rspec)))
10533 (home-page "https://github.com/samg/diffy")
10534 (synopsis "Convenient diffing in ruby")
10535 (description "Diffy provides a convenient way to generate a diff from two
10536 strings or files.")
10537 (license license:expat)))
10538
10539 (define-public ruby-sass-spec
10540 (package
10541 (name "ruby-sass-spec")
10542 (version "3.5.4")
10543 (source
10544 (origin
10545 (method git-fetch)
10546 (uri (git-reference
10547 (url "https://github.com/sass/sass-spec")
10548 (commit (string-append "v" version))))
10549 (file-name (git-file-name name version))
10550 (sha256
10551 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10552 (build-system ruby-build-system)
10553 (propagated-inputs
10554 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10555 ("ruby-diffy" ,ruby-diffy)
10556 ("ruby-terminfo" ,ruby-terminfo)))
10557 (arguments
10558 `(;; This package contains tests for a sass implementation, and the to
10559 ;; avoid any circular dependencies, the tests are not run here
10560 #:tests? #f
10561 #:phases
10562 (modify-phases %standard-phases
10563 (add-after 'unpack 'patch-test
10564 (lambda _
10565 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10566 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10567 (("string") "color")))))))
10568 (home-page "https://github.com/sass/sass-spec")
10569 (synopsis "Test suite for Sass")
10570 (description "Sass Spec is a test suite for Sass. Test cases are all in
10571 the @file{spec} directory.")
10572 (license license:expat)))
10573
10574 (define-public ruby-sass
10575 (package
10576 (name "ruby-sass")
10577 (version "3.6.0")
10578 (source (origin
10579 (method url-fetch)
10580 (uri (rubygems-uri "sass" version))
10581 (sha256
10582 (base32
10583 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10584 (build-system ruby-build-system)
10585 (propagated-inputs
10586 `(("ruby-sass-listen" ,ruby-sass-listen)))
10587 (native-inputs
10588 `(("ruby-sass-spec" ,ruby-sass-spec)
10589 ("ruby-mathn" ,ruby-mathn)))
10590 (home-page "https://sass-lang.com/")
10591 (synopsis "CSS extension language")
10592 (description "Sass is a CSS extension language. It extends CSS with
10593 features that don't exist yet like variables, nesting, mixins and inheritance.")
10594 (license license:expat)))
10595
10596 (define-public ruby-sassc
10597 (package
10598 (name "ruby-sassc")
10599 (version "2.4.0")
10600 (source
10601 (origin
10602 (method url-fetch)
10603 (uri (rubygems-uri "sassc" version))
10604 (sha256
10605 (base32
10606 "0gpqv48xhl8mb8qqhcifcp0pixn206a7imc07g48armklfqa4q2c"))))
10607 (build-system ruby-build-system)
10608 (arguments
10609 '(#:modules ((guix build ruby-build-system)
10610 (guix build utils)
10611 (ice-9 textual-ports))
10612 #:phases
10613 (modify-phases %standard-phases
10614 ;; TODO: This would be better as a snippet, but the ruby-build-system
10615 ;; doesn't seem to support that
10616 (add-after 'unpack 'remove-libsass
10617 (lambda _
10618 (delete-file-recursively "ext")
10619 (with-atomic-file-replacement "sassc.gemspec"
10620 (lambda (in out)
10621 (let* ((gemspec (get-string-all in))
10622 (index (string-contains gemspec "libsass_dir")))
10623 (display (string-append
10624 (string-take gemspec index)
10625 "\nend\n")
10626 out))))
10627 #t))
10628 (add-after 'unpack 'dont-check-the-libsass-version
10629 (lambda _
10630 (substitute* "test/native_test.rb"
10631 (("assert_equal.*Native\\.version") ""))
10632 #t))
10633 (add-after 'unpack 'remove-git-from-gemspec
10634 (lambda _
10635 (substitute* "sassc.gemspec"
10636 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10637 #t))
10638 (add-after 'unpack 'remove-extensions-from-gemspec
10639 (lambda _
10640 (substitute* "sassc.gemspec"
10641 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10642 #t))
10643 (add-after 'unpack 'fix-Rakefile
10644 (lambda _
10645 (substitute* "Rakefile"
10646 (("test: 'compile:libsass'") ":test"))
10647 #t))
10648 (add-after 'unpack 'remove-unnecessary-dependencies
10649 (lambda _
10650 (substitute* "test/test_helper.rb"
10651 (("require \"pry\"") ""))
10652 #t))
10653 (add-before 'build 'patch-native.rb
10654 (lambda* (#:key inputs #:allow-other-keys)
10655 (substitute* "lib/sassc/native.rb"
10656 ((".*gem_root = spec.gem_dir") "")
10657 (("ffi_lib .*\n")
10658 (string-append
10659 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10660 #t))
10661 ;; The gemspec still references the libsass files, so just keep the
10662 ;; one in the gem.
10663 (delete 'extract-gemspec))))
10664 (propagated-inputs
10665 `(("ruby-ffi" ,ruby-ffi)
10666 ("ruby-rake" ,ruby-rake)))
10667 (inputs
10668 `(("libsass" ,libsass)))
10669 (native-inputs
10670 `(("bundler" ,bundler)
10671 ("ruby-rake-compiler" ,ruby-rake-compiler)
10672 ("ruby-minitest-around" ,ruby-minitest-around)
10673 ("ruby-test-construct" ,ruby-test-construct)))
10674 (synopsis "Use libsss from Ruby")
10675 (description
10676 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10677 bindings to the libsass library. This enables rendering
10678 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10679 (home-page "https://github.com/sass/sassc-ruby")
10680 (license license:expat)))
10681
10682 (define-public ruby-jekyll-sass-converter
10683 (package
10684 (name "ruby-jekyll-sass-converter")
10685 (version "2.1.0")
10686 (source (origin
10687 (method url-fetch)
10688 (uri (rubygems-uri "jekyll-sass-converter" version))
10689 (sha256
10690 (base32
10691 "04ncr44wrilz26ayqwlg7379yjnkb29mvx4j04i62b7czmdrc9dv"))))
10692 (build-system ruby-build-system)
10693 (propagated-inputs
10694 `(("ruby-sass" ,ruby-sass)))
10695 (arguments
10696 ;; No rakefile
10697 `(#:tests? #f))
10698 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10699 (synopsis "Sass converter for Jekyll")
10700 (description "This gem provide built-in support for the Sass converter
10701 in Jekyll.")
10702 (license license:expat)))
10703
10704 (define-public ruby-jekyll-watch
10705 (package
10706 (name "ruby-jekyll-watch")
10707 (version "2.1.2")
10708 (source (origin
10709 (method url-fetch)
10710 (uri (rubygems-uri "jekyll-watch" version))
10711 (sha256
10712 (base32
10713 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10714 (build-system ruby-build-system)
10715 (propagated-inputs
10716 `(("ruby-listen" ,ruby-listen)))
10717 (arguments
10718 ;; No rakefile
10719 `(#:tests? #f))
10720 (home-page "https://github.com/jekyll/jekyll-watch")
10721 (synopsis "Jekyll auto-rebuild support")
10722 (description "This gems add the @code{--watch} switch to the jekyll CLI
10723 interface. It allows Jekyll to rebuild your site when a file changes.")
10724 (license license:expat)))
10725
10726 (define-public ruby-parallel
10727 (package
10728 (name "ruby-parallel")
10729 (version "1.13.0")
10730 (source
10731 (origin
10732 (method git-fetch)
10733 (uri (git-reference
10734 (url "https://github.com/grosser/parallel")
10735 (commit (string-append "v" version))))
10736 (file-name (git-file-name name version))
10737 (sha256
10738 (base32
10739 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10740 (build-system ruby-build-system)
10741 (arguments
10742 `(;; TODO 3 test failures
10743 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10744 ;; open unnecessary pipes
10745 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10746 ;; SQLite in processes
10747 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10748 ;; SQLite in threads
10749 #:tests? #f
10750 #:test-target "rspec-rerun:spec"
10751 #:phases
10752 (modify-phases %standard-phases
10753 (add-after 'unpack 'patch-Gemfile
10754 (lambda _
10755 (substitute* "Gemfile"
10756 (("gem 'rspec-legacy_formatters'") "")
10757 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10758 (add-before 'check 'delete-Gemfile.lock
10759 (lambda _
10760 ;; Bundler isn't being used for fetching dependendencies, so
10761 ;; delete the Gemfile.lock
10762 (delete-file "Gemfile.lock")
10763 #t))
10764 (add-before 'build 'patch-gemspec
10765 (lambda _
10766 (substitute* "parallel.gemspec"
10767 (("git ls-files") "find"))
10768 #t)))))
10769 (native-inputs
10770 `(("ruby-rspec" ,ruby-rspec)
10771 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10772 ("bundler" ,bundler)
10773 ("ruby-activerecord" ,ruby-activerecord)
10774 ("ruby-progressbar" ,ruby-progressbar)
10775 ("ruby-bump" ,ruby-bump)
10776 ("procps" ,procps)
10777 ("lsof" ,lsof)
10778 ("ruby-mysql2" ,ruby-mysql2)
10779 ("ruby-sqlite3" ,ruby-sqlite3)
10780 ("ruby-i18n" ,ruby-i18n)))
10781 (home-page "https://github.com/grosser/parallel")
10782 (synopsis "Parallel processing in Ruby")
10783 (description "Parallel allows you to run any code in parallel Processes
10784 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10785 suited for map-reduce or e.g. parallel downloads/uploads.")
10786 (license license:expat)))
10787
10788 (define-public ruby-cane
10789 (package
10790 (name "ruby-cane")
10791 (version "3.0.0")
10792 (source (origin
10793 (method url-fetch)
10794 (uri (rubygems-uri "cane" version))
10795 (sha256
10796 (base32
10797 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10798 (build-system ruby-build-system)
10799 (arguments `(#:tests? #f)); No rakefile
10800 (home-page "https://github.com/square/cane")
10801 (propagated-inputs
10802 `(("ruby-parallel" ,ruby-parallel)))
10803 (synopsis "Code quality threshold checking")
10804 (description "Cane fails your build if code quality thresholds are not met.")
10805 (license license:asl2.0)))
10806
10807 (define-public ruby-morecane
10808 (package
10809 (name "ruby-morecane")
10810 (version "0.2.0")
10811 (source (origin
10812 (method url-fetch)
10813 (uri (rubygems-uri "morecane" version))
10814 (sha256
10815 (base32
10816 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10817 (build-system ruby-build-system)
10818 (home-page "https://github.com/yob/morecane")
10819 (arguments `(#:tests? #f)); No rakefile
10820 (propagated-inputs
10821 `(("ruby-parallel" ,ruby-parallel)))
10822 (synopsis "Extra checks for cane")
10823 (description "The cane gem provides a great framework for running quality
10824 checks over your ruby project as part of continuous integration build. It
10825 comes with a few checks out of the box, but also provides an API for loading
10826 custom checks. This gem provides a set of additional checks.")
10827 (license license:expat)))
10828
10829 (define-public ruby-pdf-reader
10830 (package
10831 (name "ruby-pdf-reader")
10832 (version "2.4.0")
10833 (source (origin
10834 (method git-fetch) ;no test in distributed gem archive
10835 (uri (git-reference
10836 (url "https://github.com/yob/pdf-reader")
10837 (commit (string-append "v" version))))
10838 (file-name (git-file-name name version))
10839 (sha256
10840 (base32
10841 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10842 (build-system ruby-build-system)
10843 (arguments `(#:test-target "spec"
10844 #:phases (modify-phases %standard-phases
10845 (add-after 'unpack 'do-not-use-bundler
10846 (lambda _
10847 (substitute* "spec/spec_helper.rb"
10848 ((".*[Bb]undler.*") ""))
10849 #t)))))
10850 (native-inputs
10851 `(("ruby-rspec" ,ruby-rspec)
10852 ("ruby-cane" ,ruby-cane)
10853 ("ruby-morecane" ,ruby-morecane)))
10854 (propagated-inputs
10855 `(("ruby-afm" ,ruby-afm)
10856 ("ruby-ascii85" ,ruby-ascii85)
10857 ("ruby-hashery" ,ruby-hashery)
10858 ("ruby-rc4" ,ruby-rc4)
10859 ("ruby-ttfunk" ,ruby-ttfunk)))
10860 (home-page "https://github.com/yob/pdf-reader")
10861 (synopsis "PDF parser in Ruby")
10862 (description "The PDF::Reader library implements a PDF parser conforming as
10863 much as possible to the PDF specification from Adobe. It provides programmatic
10864 access to the contents of a PDF file with a high degree of flexibility.")
10865 (license license:gpl3+)))
10866
10867 (define-public ruby-pdf-inspector
10868 (let ((revision "1")
10869 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10870 (package
10871 (name "ruby-pdf-inspector")
10872 (version (git-version "1.3.0" revision commit))
10873 (source (origin
10874 (method git-fetch)
10875 (uri (git-reference
10876 (url "https://github.com/prawnpdf/pdf-inspector")
10877 (commit commit)))
10878 (file-name (git-file-name name version))
10879 (sha256
10880 (base32
10881 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10882 (build-system ruby-build-system)
10883 (arguments
10884 `(#:test-target "spec"
10885 #:phases (modify-phases %standard-phases
10886 (add-before 'build 'drop-signing-key-requirement
10887 (lambda _
10888 (substitute* "pdf-inspector.gemspec"
10889 (("spec.signing_key =.*")
10890 "spec.signing_key = nil"))
10891 #t))
10892 (replace 'check
10893 (lambda _
10894 (substitute* "pdf-inspector.gemspec"
10895 ((".*rubocop.*") "")
10896 ((".*yard.*") ""))
10897 (invoke "rspec"))))))
10898 (native-inputs
10899 `(("ruby-rspec" ,ruby-rspec)))
10900 (propagated-inputs
10901 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10902 (home-page "https://github.com/prawnpdf/pdf-inspector")
10903 (synopsis "Analysis classes for inspecting PDF output")
10904 (description "This library provides a number of PDF::Reader based tools for
10905 use in testing PDF output. Presently, the primary purpose of this tool is to
10906 support the tests found in Prawn, a pure Ruby PDF generation library.")
10907 (license %prawn-project-licenses))))
10908
10909 (define-public ruby-pdf-core
10910 (package
10911 (name "ruby-pdf-core")
10912 (version "0.8.1")
10913 (source (origin
10914 (method url-fetch)
10915 (uri (rubygems-uri "pdf-core" version))
10916 (sha256
10917 (base32
10918 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10919 (build-system ruby-build-system)
10920 (arguments
10921 ; No test target
10922 `(#:tests? #f))
10923 (home-page "https://github.com/prawnpdf/pdf-core")
10924 (synopsis "Low level PDF features for Prawn")
10925 (description "This is an experimental gem that extracts low-level PDF
10926 functionality from Prawn.")
10927 (license license:gpl3+)))
10928
10929 (define-public ruby-prawn
10930 ;; There hasn't been a new release since 2017/03/17.
10931 (let ((revision "1")
10932 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10933 (package
10934 (name "ruby-prawn")
10935 (version (git-version "2.2.2" revision commit))
10936 (source (origin
10937 (method git-fetch)
10938 (uri (git-reference
10939 (url "https://github.com/prawnpdf/prawn")
10940 (commit commit)))
10941 (file-name (git-file-name name version))
10942 (sha256
10943 (base32
10944 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10945 (build-system ruby-build-system)
10946 (arguments
10947 `(#:phases
10948 (modify-phases %standard-phases
10949 (add-before 'build 'drop-signing-key-requirement
10950 (lambda _
10951 (substitute* "prawn.gemspec"
10952 (("spec.signing_key =.*")
10953 "spec.signing_key = nil"))
10954 #t))
10955 (replace 'check
10956 (lambda* (#:key tests? #:allow-other-keys)
10957 (when tests?
10958 ;; The Prawn manual test fails (see:
10959 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10960 ;; it.
10961 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10962 #t)))))
10963 (propagated-inputs
10964 `(("ruby-pdf-core" ,ruby-pdf-core)
10965 ("ruby-ttfunk" ,ruby-ttfunk)))
10966 (native-inputs
10967 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10968 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10969 ("ruby-rspec" ,ruby-rspec)
10970 ("ruby-simplecov" ,ruby-simplecov)
10971 ("ruby-yard" ,ruby-yard)))
10972 (home-page "https://prawnpdf.org/api-docs/2.0/")
10973 (synopsis "PDF generation for Ruby")
10974 (description "Prawn is a pure Ruby PDF generation library.")
10975 (license %prawn-project-licenses))))
10976
10977 (define-public ruby-prawn-table
10978 (package
10979 (name "ruby-prawn-table")
10980 (version "0.2.2")
10981 (source (origin
10982 (method url-fetch)
10983 (uri (rubygems-uri "prawn-table" version))
10984 (sha256
10985 (base32
10986 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10987 (build-system ruby-build-system)
10988 (propagated-inputs
10989 `(("ruby-prawn" ,ruby-prawn)
10990 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10991 (native-inputs
10992 `(("bundler" ,bundler)
10993 ("ruby-yard" ,ruby-yard)
10994 ("ruby-mocha" ,ruby-mocha)
10995 ("ruby-coderay" ,ruby-coderay)
10996 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10997 ("ruby-simplecov" ,ruby-simplecov)
10998 ("ruby-rspec-2" ,ruby-rspec-2)))
10999 (arguments
11000 '(;; TODO: 1 test fails
11001 ;; Failure/Error: pdf.page_count.should == 1
11002 ;; expected: 1
11003 ;; got: 2 (using ==)
11004 ;; # ./spec/table_spec.rb:1308
11005 ;;
11006 ;; 225 examples, 1 failure
11007 #:tests? #f
11008 #:phases
11009 (modify-phases %standard-phases
11010 (add-before 'check 'patch-gemspec
11011 (lambda _
11012 (substitute* "prawn-table.gemspec"
11013 ;; Loosen the requirement for pdf-inspector
11014 (("~> 1\\.1\\.0") ">= 0")
11015 ;; Loosen the requirement for pdf-reader
11016 (("~> 1\\.2") ">= 0"))))
11017 (replace 'check
11018 (lambda* (#:key tests? #:allow-other-keys)
11019 (when tests?
11020 (invoke "rspec"))
11021 #t)))))
11022 (home-page "https://github.com/prawnpdf/prawn-table")
11023 (synopsis "Tables support for Prawn")
11024 (description "This gem provides tables support for Prawn.")
11025 (license license:gpl3+)))
11026
11027 (define-public ruby-kramdown
11028 (package
11029 (name "ruby-kramdown")
11030 (version "2.3.0")
11031 (source (origin
11032 (method url-fetch)
11033 (uri (rubygems-uri "kramdown" version))
11034 (sha256
11035 (base32
11036 "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7"))))
11037 (build-system ruby-build-system)
11038 (arguments `(#:tests? #f)); FIXME: some test failures
11039 (native-inputs
11040 `(("ruby-prawn" ,ruby-prawn)
11041 ("ruby-prawn-table" ,ruby-prawn-table)))
11042 (home-page "https://kramdown.gettalong.org/")
11043 (synopsis "Markdown parsing and converting library")
11044 (description "Kramdown is a library for parsing and converting a superset
11045 of Markdown. It is completely written in Ruby, supports standard Markdown
11046 (with some minor modifications) and various extensions that have been made
11047 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
11048 (license license:expat)))
11049
11050 (define-public ruby-kramdown-parser-gfm
11051 (package
11052 (name "ruby-kramdown-parser-gfm")
11053 (version "1.1.0")
11054 (source
11055 (origin
11056 (method url-fetch)
11057 (uri (rubygems-uri "kramdown-parser-gfm" version))
11058 (sha256
11059 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
11060 (build-system ruby-build-system)
11061 (arguments
11062 `(#:tests? #f)) ;no rakefile
11063 (propagated-inputs
11064 `(("ruby-kramdown" ,ruby-kramdown)))
11065 (synopsis "Kramdown parser for the GFM dialect of Markdown")
11066 (description
11067 "This is a parser for kramdown that converts Markdown documents in the
11068 GFM dialect to HTML.")
11069 (home-page "https://github.com/kramdown/parser-gfm")
11070 (license license:expat)))
11071
11072 (define-public ruby-http-parser.rb
11073 (package
11074 (name "ruby-http-parser.rb")
11075 (version "0.6.0")
11076 (source
11077 (origin
11078 (method url-fetch)
11079 (uri (rubygems-uri "http_parser.rb" version))
11080 (sha256
11081 (base32
11082 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
11083 (build-system ruby-build-system)
11084 (arguments
11085 ;; No tests
11086 `(#:tests? #f))
11087 (native-inputs
11088 `(("ruby-rake-compiler" ,ruby-rake-compiler)
11089 ("ruby-rspec" ,ruby-rspec)))
11090 (home-page "https://github.com/tmm1/http_parser.rb")
11091 (synopsis "HTTP parser un Ruby")
11092 (description "This gem is a simple callback-based HTTP request/response
11093 parser for writing http servers, clients and proxies.")
11094 (license license:expat)))
11095
11096 (define-public ruby-em-websocket
11097 (package
11098 (name "ruby-em-websocket")
11099 (version "0.5.1")
11100 (source
11101 (origin
11102 (method url-fetch)
11103 (uri (rubygems-uri "em-websocket" version))
11104 (sha256
11105 (base32
11106 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
11107 (build-system ruby-build-system)
11108 (arguments
11109 ;; No tests
11110 `(#:tests? #f))
11111 (propagated-inputs
11112 `(("ruby-eventmachine" ,ruby-eventmachine)
11113 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
11114 (native-inputs
11115 `(("bundler" ,bundler)
11116 ("ruby-rspec" ,ruby-rspec)))
11117 (home-page "https://github.com/igrigorik/em-websocket")
11118 (synopsis "EventMachine based WebSocket server")
11119 (description "Em-websocket is an EventMachine based WebSocket server
11120 implementation.")
11121 (license license:expat)))
11122
11123 (define-public ruby-rouge
11124 (package
11125 (name "ruby-rouge")
11126 (version "3.21.0")
11127 (source (origin
11128 (method url-fetch)
11129 (uri (rubygems-uri "rouge" version))
11130 (sha256
11131 (base32
11132 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
11133 (build-system ruby-build-system)
11134 (arguments `(#:tests? #f)); No rakefile
11135 (home-page "http://rouge.jneen.net/")
11136 (synopsis "Code highlighter")
11137 (description "Rouge is a code highlighter written in Ruby. It supports more
11138 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
11139 is compatible with stylesheets designed for pygments.")
11140 (license (list
11141 ;; rouge is licensed under expat
11142 license:expat
11143 ;; pygments is licensed under bsd-2
11144 license:bsd-2))))
11145
11146 (define-public ruby-hashie
11147 (package
11148 (name "ruby-hashie")
11149 (version "3.6.0")
11150 (source (origin
11151 (method url-fetch)
11152 (uri (rubygems-uri "hashie" version))
11153 (sha256
11154 (base32
11155 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
11156 (build-system ruby-build-system)
11157 (native-inputs
11158 `(("bundler" ,bundler)))
11159 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
11160 (home-page "https://github.com/intridea/hashie")
11161 (synopsis "Extensions to Ruby Hashes")
11162 (description "Hashie is a collection of classes and mixins that make Ruby
11163 hashes more powerful.")
11164 (license license:expat)))
11165
11166 (define-public ruby-heredoc-unindent
11167 (package
11168 (name "ruby-heredoc-unindent")
11169 (version "1.2.0")
11170 (source (origin
11171 (method url-fetch)
11172 (uri (rubygems-uri "heredoc_unindent" version))
11173 (sha256
11174 (base32
11175 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
11176 (build-system ruby-build-system)
11177 (native-inputs
11178 `(("ruby-hoe" ,ruby-hoe)))
11179 (home-page "https://github.com/adrianomitre/heredoc_unindent")
11180 (synopsis "Heredoc indentation cleaner")
11181 (description "This gem removes common margin from indented strings, such
11182 as the ones produced by indented heredocs. In other words, it strips out
11183 leading whitespace chars at the beginning of each line, but only as much as
11184 the line with the smallest margin.
11185
11186 It is acknowledged that many strings defined by heredocs are just code and
11187 fact is that most parsers are insensitive to indentation. If, however, the
11188 strings are to be used otherwise, be it for printing or testing, the extra
11189 indentation will probably be an issue and hence this gem.")
11190 (license license:expat)))
11191
11192 (define-public ruby-safe-yaml
11193 (package
11194 (name "ruby-safe-yaml")
11195 (version "1.0.5")
11196 (source
11197 (origin
11198 (method git-fetch)
11199 (uri (git-reference
11200 (url "https://github.com/dtao/safe_yaml")
11201 (commit version)))
11202 (file-name (git-file-name name version))
11203 (sha256
11204 (base32
11205 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
11206 (build-system ruby-build-system)
11207 (native-inputs
11208 `(("ruby-rspec" ,ruby-rspec)
11209 ("ruby-hashie" ,ruby-hashie)
11210 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
11211 (arguments
11212 '(#:test-target "spec"
11213 #:phases
11214 (modify-phases %standard-phases
11215 (add-before 'check 'set-TZ
11216 (lambda _
11217 ;; This test is dependent on the timezone
11218 ;; spec/transform/to_date_spec.rb:35
11219 ;; # SafeYAML::Transform::ToDate converts times to the local
11220 ;; timezone
11221 (setenv "TZ" "UTC-11")
11222 #t)))))
11223 (home-page "https://github.com/dtao/safe_yaml")
11224 (synopsis "YAML parser")
11225 (description "The SafeYAML gem provides an alternative implementation of
11226 YAML.load suitable for accepting user input in Ruby applications.")
11227 (license license:expat)))
11228
11229 (define-public ruby-mercenary
11230 (package
11231 (name "ruby-mercenary")
11232 (version "0.4.0")
11233 (source (origin
11234 (method url-fetch)
11235 (uri (rubygems-uri "mercenary" version))
11236 (sha256
11237 (base32
11238 "0f2i827w4lmsizrxixsrv2ssa3gk1b7lmqh8brk8ijmdb551wnmj"))))
11239 (build-system ruby-build-system)
11240 (arguments `(#:test-target "spec"))
11241 (native-inputs
11242 `(("bundler" ,bundler)))
11243 (home-page "https://github.com/jekyll/mercenary")
11244 (synopsis "Command-line apps library in Ruby")
11245 (description "Mercenary is a lightweight and flexible library for writing
11246 command-line apps in Ruby.")
11247 (license license:expat)))
11248
11249 (define-public ruby-liquid
11250 (package
11251 (name "ruby-liquid")
11252 (version "4.0.0")
11253 (source (origin
11254 (method url-fetch)
11255 (uri (rubygems-uri "liquid" version))
11256 (sha256
11257 (base32
11258 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
11259 (build-system ruby-build-system)
11260 (arguments `(#:tests? #f)); No rakefile
11261 (home-page "https://shopify.github.io/liquid/")
11262 (synopsis "Template language")
11263 (description "Liquid is a template language written in Ruby. It is used
11264 to load dynamic content on storefronts.")
11265 (license license:expat)))
11266
11267 (define-public ruby-forwardable-extended
11268 (package
11269 (name "ruby-forwardable-extended")
11270 (version "2.6.0")
11271 (source (origin
11272 (method url-fetch)
11273 (uri (rubygems-uri "forwardable-extended" version))
11274 (sha256
11275 (base32
11276 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
11277 (build-system ruby-build-system)
11278 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
11279 (home-page "https://github.com/envygeeks/forwardable-extended")
11280 (synopsis "Delegation to hashes and instance variables in Forwardable")
11281 (description "Forwardable Extended provides more @code{Forwardable}
11282 methods for your source as @code{Forwardable::Extended}.")
11283 (license license:expat)))
11284
11285 (define-public ruby-pathutil
11286 (package
11287 (name "ruby-pathutil")
11288 (version "0.16.2")
11289 (source (origin
11290 (method url-fetch)
11291 (uri (rubygems-uri "pathutil" version))
11292 (sha256
11293 (base32
11294 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11295 (build-system ruby-build-system)
11296 (propagated-inputs
11297 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11298 (native-inputs
11299 `(("bundler" ,bundler)
11300 ("ruby-rspec" ,ruby-rspec)))
11301 ;; Fails with: cannot load such file --
11302 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11303 (arguments `(#:tests? #f))
11304 (home-page "https://github.com/envygeeks/pathutil")
11305 (synopsis "Extended implementation of Pathname")
11306 (description "Pathutil tries to be a faster pure Ruby implementation of
11307 Pathname.")
11308 (license license:expat)))
11309
11310 (define-public ruby-terminal-table
11311 (package
11312 (name "ruby-terminal-table")
11313 (version "2.0.0")
11314 (source
11315 (origin
11316 (method url-fetch)
11317 (uri (rubygems-uri "terminal-table" version))
11318 (sha256
11319 (base32
11320 "18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh"))))
11321 (arguments
11322 '(#:phases
11323 (modify-phases %standard-phases
11324 (add-before 'check 'remove-gemfile-lock
11325 (lambda _
11326 (delete-file "Gemfile.lock")))
11327 (add-before 'check 'remove-unnecessary-dependencies
11328 (lambda _
11329 (substitute* "terminal-table.gemspec"
11330 (("s.add_runtime_dependency.*") "\n")
11331 (("s.add_development_dependency.*") "\n"))
11332 (substitute* "Gemfile"
11333 ((".*tins.*") "\n"))))
11334 (replace 'check
11335 (lambda* (#:key tests? #:allow-other-keys)
11336 (when tests?
11337 (invoke "rspec")))))))
11338 (build-system ruby-build-system)
11339 (propagated-inputs
11340 `(("ruby-unicode-display-width" ,ruby-unicode-display-width)))
11341 (native-inputs
11342 `(("ruby-rspec" ,ruby-rspec)))
11343 (home-page "https://github.com/tj/terminal-table")
11344 (synopsis "Simple, feature rich ASCII table generation library")
11345 (description
11346 "Terminal Table is a fast and simple, yet feature rich
11347 table generator written in Ruby. It supports ASCII and
11348 Unicode formatted tables.")
11349 (license license:expat)))
11350
11351 (define-public jekyll
11352 (package
11353 (name "jekyll")
11354 (version "4.2.0")
11355 (source (origin
11356 (method url-fetch)
11357 (uri (rubygems-uri "jekyll" version))
11358 (sha256
11359 (base32
11360 "0cqkh78jw8scrajyx5nla0vwm9fvp2qql3kdcvvplcq9mazy8snq"))))
11361 (build-system ruby-build-system)
11362 (arguments
11363 ;; No rakefile, but a test subdirectory.
11364 `(#:tests? #f
11365 #:phases
11366 (modify-phases %standard-phases
11367 (add-before 'build 'fix-i18n
11368 (lambda _
11369 (substitute* ".gemspec"
11370 (("~> 0.7") ">= 0.7")
11371 (("~> 1.14") ">= 1.14"))
11372 #t)))))
11373 (propagated-inputs
11374 `(("ruby-addressable" ,ruby-addressable)
11375 ("ruby-colorator" ,ruby-colorator)
11376 ("ruby-em-websocket" ,ruby-em-websocket)
11377 ("ruby-i18n" ,ruby-i18n)
11378 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11379 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11380 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11381 ("ruby-liquid" ,ruby-liquid)
11382 ("ruby-mercenary" ,ruby-mercenary)
11383 ("ruby-pathutil" ,ruby-pathutil)
11384 ("ruby-rouge" ,ruby-rouge)
11385 ("ruby-safe-yaml" ,ruby-safe-yaml)
11386 ("ruby-sassc" ,ruby-sassc)
11387 ("ruby-terminal-table" ,ruby-terminal-table)))
11388 (home-page "https://jekyllrb.com/")
11389 (synopsis "Static site generator")
11390 (description "Jekyll is a simple, blog aware, static site generator.")
11391 (license license:expat)))
11392
11393 (define-public ruby-jekyll-paginate-v2
11394 (package
11395 (name "ruby-jekyll-paginate-v2")
11396 (version "3.0.0")
11397 (source (origin
11398 (method url-fetch)
11399 (uri (rubygems-uri "jekyll-paginate-v2" version))
11400 (sha256
11401 (base32
11402 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11403 (build-system ruby-build-system)
11404 (propagated-inputs
11405 `(("jekyll" ,jekyll)))
11406 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11407 (synopsis "Pagination Generator for Jekyll 3")
11408 (description "The Pagination Generator forms the core of the pagination
11409 logic in Jekyll. It calculates and generates the pagination pages.")
11410 (license license:expat)))
11411
11412 (define-public ruby-faraday
11413 (package
11414 (name "ruby-faraday")
11415 (version "0.15.4")
11416 (source
11417 (origin
11418 (method url-fetch)
11419 (uri (rubygems-uri "faraday" version))
11420 (sha256
11421 (base32
11422 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11423 (build-system ruby-build-system)
11424 (arguments
11425 '(#:tests? #f))
11426 (propagated-inputs
11427 `(("ruby-multipart-post" ,ruby-multipart-post)))
11428 (synopsis "Ruby HTTP/REST API client library")
11429 (description
11430 "Faraday is a HTTP/REST API client library which provides a common
11431 interface over different adapters.")
11432 (home-page "https://github.com/lostisland/faraday")
11433 (license license:expat)))
11434
11435 (define-public ruby-nio4r
11436 (package
11437 (name "ruby-nio4r")
11438 (version "2.5.2")
11439 (source
11440 (origin
11441 (method url-fetch)
11442 (uri (rubygems-uri "nio4r" version))
11443 (sha256
11444 (base32
11445 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11446 (build-system ruby-build-system)
11447 (arguments
11448 '(#:phases
11449 (modify-phases %standard-phases
11450 (add-after 'unpack 'remove-unnecessary-dependencies
11451 (lambda _
11452 (substitute* "spec/spec_helper.rb"
11453 ;; Coveralls is for uploading test coverage information to an
11454 ;; online service, and thus unnecessary for building the Guix
11455 ;; package
11456 (("require \"coveralls\"") "")
11457 (("Coveralls\\.wear!") "")
11458 ;; Remove rspec/retry as we are not retrying the tests
11459 (("require \"rspec/retry\"") "")
11460 (("config\\.display_try_failure_messages = true") "")
11461 (("config\\.verbose_retry = true") ""))
11462 #t))
11463 (add-before 'check 'compile
11464 (lambda _
11465 (invoke "rake" "compile")
11466 #t))
11467 (replace 'check
11468 (lambda* (#:key tests? #:allow-other-keys)
11469 (when tests?
11470 (invoke "rspec"))
11471 #t)))))
11472 (native-inputs
11473 `(("bundler" ,bundler)
11474 ("ruby-rake-compiler" ,ruby-rake-compiler)
11475 ("ruby-rspec" ,ruby-rspec)
11476 ("ruby-rubocop" ,ruby-rubocop)))
11477 (synopsis "New I/O for Ruby")
11478 (description
11479 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11480 for scalable network clients and servers.")
11481 (home-page "https://github.com/socketry/nio4r")
11482 (license license:expat)))
11483
11484 (define-public ruby-globalid
11485 (package
11486 (name "ruby-globalid")
11487 (version "0.4.2")
11488 (source
11489 (origin
11490 (method url-fetch)
11491 (uri (rubygems-uri "globalid" version))
11492 (sha256
11493 (base32
11494 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11495 (build-system ruby-build-system)
11496 (arguments
11497 '(;; No included tests
11498 #:tests? #f))
11499 (propagated-inputs
11500 `(("ruby-activesupport" ,ruby-activesupport)))
11501 (synopsis "Generate URIs idenfitying model instances in Ruby")
11502 (description
11503 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11504 uniquely identify it.")
11505 (home-page "https://rubyonrails.org/")
11506 (license license:expat)))
11507
11508 (define-public ruby-sprockets
11509 (package
11510 (name "ruby-sprockets")
11511 (version "3.7.2")
11512 (source
11513 (origin
11514 (method url-fetch)
11515 (uri (rubygems-uri "sprockets" version))
11516 (sha256
11517 (base32
11518 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11519 (build-system ruby-build-system)
11520 (arguments
11521 '(;; No included tests
11522 #:tests? #f))
11523 (propagated-inputs
11524 `(("ruby-concurrent" ,ruby-concurrent)
11525 ("ruby-rack" ,ruby-rack)))
11526 (synopsis "Sprockets is a Rack-based asset packaging system")
11527 (description
11528 "Sprockets is a Rack-based asset packaging system that concatenates and
11529 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11530 (home-page "https://github.com/rails/sprockets")
11531 (license license:expat)))
11532
11533 (define-public ruby-mustache
11534 (package
11535 (name "ruby-mustache")
11536 (version "1.1.1")
11537 (source
11538 (origin
11539 (method url-fetch)
11540 (uri (rubygems-uri "mustache" version))
11541 (sha256
11542 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11543 (build-system ruby-build-system)
11544 (native-inputs
11545 `(("ruby-simplecov" ,ruby-simplecov)))
11546 (synopsis "framework-agnostic way to render logic-free views")
11547 (description
11548 "Mustache is a framework-agnostic way to render logic-free views.
11549 Think of Mustache as a replacement for your views. Instead of views
11550 consisting of ERB or HAML with random helpers and arbitrary logic,
11551 your views are broken into two parts: a Ruby class and an HTML
11552 template.")
11553 (home-page "https://github.com/mustache/mustache")
11554 (license license:expat)))
11555
11556 (define-public ruby-mustermann
11557 (package
11558 (name "ruby-mustermann")
11559 (version "1.0.3")
11560 (source
11561 (origin
11562 (method url-fetch)
11563 (uri (rubygems-uri "mustermann" version))
11564 (sha256
11565 (base32
11566 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11567 (build-system ruby-build-system)
11568 (arguments
11569 ;; No tests.
11570 '(#:tests? #f))
11571 (synopsis "Library implementing patterns that behave like regular expressions")
11572 (description "Given a string pattern, Mustermann will turn it into an
11573 object that behaves like a regular expression and has comparable performance
11574 characteristics.")
11575 (home-page "https://github.com/sinatra/mustermann")
11576 (license license:expat)))
11577
11578 (define-public ruby-html-proofer
11579 (package
11580 (name "ruby-html-proofer")
11581 (version "3.18.5")
11582 (source
11583 (origin
11584 (method git-fetch)
11585 (uri (git-reference
11586 (url "https://github.com/gjtorikian/html-proofer")
11587 (commit (string-append "v" version))))
11588 (file-name (git-file-name name version))
11589 (sha256
11590 (base32
11591 "1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb"))))
11592 (build-system ruby-build-system)
11593 (arguments
11594 `(;; FIXME: Tests depend on rubocop-standard.
11595 #:tests? #f))
11596 (native-inputs
11597 `(("ruby-awesome-print" ,ruby-awesome-print)
11598 ("ruby-redcarpet" ,ruby-redcarpet)
11599 ("ruby-rspec" ,ruby-rspec)
11600 ("ruby-rubocop" ,ruby-rubocop)
11601 ("ruby-rubocop-performance" ,ruby-rubocop-performance)
11602 ("ruby-pry-byebug" ,ruby-pry-byebug)))
11603 (propagated-inputs
11604 `(("ruby-addressable" ,ruby-addressable)
11605 ("ruby-mercenary" ,ruby-mercenary)
11606 ("ruby-nokogumbo" ,ruby-nokogumbo)
11607 ("ruby-parallel" ,ruby-parallel)
11608 ("ruby-rainbow" ,ruby-rainbow)
11609 ("ruby-typhoeus" ,ruby-typhoeus)
11610 ("ruby-yell" ,ruby-yell)))
11611 (synopsis "Test your rendered HTML files to make sure they're accurate")
11612 (description
11613 "HTMLProofer is a set of tests to validate your HTML output. These
11614 tests check if your image references are legitimate, if they have alt tags,
11615 if your internal links are working, and so on. It's intended to be an
11616 all-in-one checker for your output.")
11617 (home-page "https://github.com/gjtorikian/html-proofer")
11618 (license license:expat)))
11619
11620 (define-public ruby-htmlentities
11621 (package
11622 (name "ruby-htmlentities")
11623 (version "4.3.4")
11624 (source
11625 (origin
11626 (method url-fetch)
11627 (uri (rubygems-uri "htmlentities" version))
11628 (sha256
11629 (base32
11630 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11631 (build-system ruby-build-system)
11632 (arguments
11633 `(#:phases
11634 (modify-phases %standard-phases
11635 (replace 'check
11636 (lambda _
11637 (map (lambda (file)
11638 (invoke "ruby" "-Itest" file))
11639 (find-files "./test" ".*_test\\.rb")))))))
11640 (synopsis "Encode and decode (X)HTML entities")
11641 (description
11642 "This package provides a module for encoding and decoding (X)HTML
11643 entities.")
11644 (home-page "https://github.com/threedaymonk/htmlentities")
11645 (license license:expat)))
11646
11647 (define-public ruby-sinatra
11648 (package
11649 (name "ruby-sinatra")
11650 (version "2.0.8.1")
11651 (source
11652 (origin
11653 (method url-fetch)
11654 (uri (rubygems-uri "sinatra" version))
11655 (sha256
11656 (base32
11657 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11658 (build-system ruby-build-system)
11659 (arguments
11660 `(#:phases
11661 (modify-phases %standard-phases
11662 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11663 (add-after 'extract-gemspec 'fix-slow-doc-generation
11664 (lambda _
11665 (substitute* "sinatra.gemspec"
11666 (("\"README.rdoc\"\\.freeze," all)
11667 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11668 #t)))))
11669 (propagated-inputs
11670 `(("ruby-mustermann" ,ruby-mustermann)
11671 ("ruby-rack" ,ruby-rack)
11672 ("ruby-rack-protection" ,ruby-rack-protection)
11673 ("ruby-tilt" ,ruby-tilt)))
11674 (synopsis "DSL for quick web applications creation in Ruby")
11675 (description
11676 "Sinatra is a DSL for quickly creating web applications in Ruby with
11677 minimal effort.")
11678 (home-page "http://sinatrarb.com/")
11679 (license license:expat)))
11680
11681 (define-public ruby-thin
11682 (package
11683 (name "ruby-thin")
11684 (version "1.7.2")
11685 (source
11686 (origin
11687 (method url-fetch)
11688 (uri (rubygems-uri "thin" version))
11689 (sha256
11690 (base32
11691 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11692 (build-system ruby-build-system)
11693 (arguments
11694 ;; No tests.
11695 '(#:tests? #f))
11696 (propagated-inputs
11697 `(("ruby-daemons" ,ruby-daemons)
11698 ("ruby-eventmachine" ,ruby-eventmachine)
11699 ("ruby-rack" ,ruby-rack)))
11700 (synopsis "Thin and fast web server for Ruby")
11701 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11702 @itemize
11703 @item the Mongrel parser,
11704 @item Event Machine, a network I/O library with high scalability, performance
11705 and stability,
11706 @item Rack, a minimal interface between webservers and Ruby frameworks.
11707 @end itemize\n")
11708 (home-page "https://github.com/macournoyer/thin")
11709 (license license:ruby)))
11710
11711 (define-public ruby-skinny
11712 (package
11713 (name "ruby-skinny")
11714 (version "0.2.4")
11715 (source
11716 (origin
11717 (method url-fetch)
11718 (uri (rubygems-uri "skinny" version))
11719 (sha256
11720 (base32
11721 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11722 (build-system ruby-build-system)
11723 (arguments
11724 '(#:tests? #f ; No included tests
11725 #:phases
11726 (modify-phases %standard-phases
11727 (add-before 'build 'patch-gemspec
11728 (lambda _
11729 (substitute* ".gemspec"
11730 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11731 "<eventmachine>, [\">= 1.0.0\"")
11732 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11733 #t)))))
11734 (propagated-inputs
11735 `(("ruby-eventmachine" ,ruby-eventmachine)
11736 ("ruby-thin" ,ruby-thin)))
11737 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11738 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11739 the Thin library.")
11740 (home-page "https://github.com/sj26/skinny")
11741 (license license:expat)))
11742
11743 (define-public ruby-sys-filesystem
11744 (package
11745 (name "ruby-sys-filesystem")
11746 (version "1.3.4")
11747 (source (origin
11748 (method url-fetch)
11749 (uri (rubygems-uri "sys-filesystem" version))
11750 (sha256
11751 (base32
11752 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11753 (build-system ruby-build-system)
11754 (arguments
11755 '(#:phases (modify-phases %standard-phases
11756 (add-before 'check 'set-HOME
11757 (lambda _
11758 ;; Some tests attempt to stat $HOME. Let them.
11759 (setenv "HOME" "/tmp")
11760 #t)))))
11761 (propagated-inputs
11762 `(("ruby-ffi" ,ruby-ffi)))
11763 (native-inputs
11764 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11765 (synopsis "Gather file system information")
11766 (description
11767 "The @code{sys-filesystem} library provides a cross-platform interface
11768 for gathering file system information, such as disk space and mount points.")
11769 (home-page "https://github.com/djberg96/sys-filesystem")
11770 (license license:asl2.0)))
11771
11772 (define-public mailcatcher
11773 (package
11774 (name "mailcatcher")
11775 (version "0.7.1")
11776 (source
11777 (origin
11778 (method url-fetch)
11779 (uri (rubygems-uri "mailcatcher" version))
11780 (sha256
11781 (base32
11782 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11783 (build-system ruby-build-system)
11784 (arguments
11785 ;; Tests require web/assets which is not included in the output. We
11786 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11787 ;; of the tests. See ruby-mysql2.
11788 '(#:tests? #f
11789 #:phases
11790 (modify-phases %standard-phases
11791 (add-before 'build 'patch-gemspec
11792 (lambda _
11793 (substitute* ".gemspec"
11794 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11795 "<eventmachine>, [\">= 1.0.9.1")
11796 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11797 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11798 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11799 #t))
11800 (add-before 'build 'loosen-dependency-contraint
11801 (lambda _
11802 (substitute* "lib/mail_catcher.rb"
11803 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11804 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11805 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11806 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11807 #t)))))
11808 (inputs
11809 `(("ruby-eventmachine" ,ruby-eventmachine)
11810 ("ruby-mail" ,ruby-mail)
11811 ("ruby-rack" ,ruby-rack)
11812 ("ruby-sinatra" ,ruby-sinatra)
11813 ("ruby-skinny" ,ruby-skinny)
11814 ("ruby-sqlite3" ,ruby-sqlite3)
11815 ("ruby-thin" ,ruby-thin)))
11816 (synopsis "SMTP server which catches messages to display them a browser")
11817 (description
11818 "MailCatcher runs a super simple SMTP server which catches any message
11819 sent to it to display in a web interface. Run mailcatcher, set your favourite
11820 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11821 then check out http://127.0.0.1:1080 to see the mail.")
11822 (home-page "https://mailcatcher.me")
11823 (license license:expat)))
11824
11825 (define-public ruby-backport
11826 (package
11827 (name "ruby-backport")
11828 (version "1.1.2")
11829 (source
11830 (origin
11831 ;; The gem does not include test code, so fetch from the Git repository.
11832 (method git-fetch)
11833 (uri (git-reference
11834 (url "https://github.com/castwide/backport")
11835 (commit (string-append "v" version))))
11836 (file-name (git-file-name name version))
11837 (sha256
11838 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11839 (build-system ruby-build-system)
11840 (arguments
11841 `(#:test-target "spec"))
11842 (native-inputs
11843 `(("bundler" ,bundler)
11844 ("ruby-rspec" ,ruby-rspec)))
11845 (inputs
11846 `(("ruby-simplecov" ,ruby-simplecov)))
11847 (synopsis "Pure Ruby library for event-driven IO")
11848 (description
11849 "This package provides a pure Ruby library for event-driven IO.")
11850 (home-page "https://github.com/castwide/backport")
11851 (license license:expat)))
11852
11853 (define-public ruby-json-schema
11854 (package
11855 (name "ruby-json-schema")
11856 (version "2.8.1")
11857 (source
11858 (origin
11859 (method url-fetch)
11860 (uri (rubygems-uri "json-schema" version))
11861 (sha256
11862 (base32
11863 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11864 (build-system ruby-build-system)
11865 (arguments
11866 `(#:tests? #f ; no tests
11867 #:phases
11868 (modify-phases %standard-phases
11869 (replace 'build
11870 (lambda _
11871 (invoke "gem" "build" ".gemspec"))))))
11872 (propagated-inputs
11873 `(("ruby-addressable" ,ruby-addressable)))
11874 (synopsis "Ruby JSON Schema Validator")
11875 (description "This library provides Ruby with an interface for validating
11876 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11877 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11878 is also included.")
11879 (home-page "https://github.com/ruby-json-schema/json-schema")
11880 (license license:expat)))
11881
11882 (define-public swagger-diff
11883 (package
11884 (name "swagger-diff")
11885 (version "1.1.2")
11886 (source
11887 (origin
11888 (method url-fetch)
11889 (uri (rubygems-uri "swagger-diff" version))
11890 (sha256
11891 (base32
11892 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11893 (build-system ruby-build-system)
11894 (arguments
11895 `(#:test-target "spec"
11896 #:phases
11897 (modify-phases %standard-phases
11898 ;; Don't run or require rubocop, the code linting tool, as this is a
11899 ;; bit unnecessary.
11900 (add-after 'unpack 'dont-run-rubocop
11901 (lambda _
11902 (substitute* "Rakefile"
11903 ((".*rubocop.*") "")
11904 ((".*RuboCop.*") ""))
11905 #t)))))
11906 (propagated-inputs
11907 `(("ruby-json-schema" ,ruby-json-schema)))
11908 (native-inputs
11909 `(("bundler" ,bundler)
11910 ("ruby-rspec-core" ,ruby-rspec-core)
11911 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11912 (synopsis
11913 "Compare Open API Initiative specification files")
11914 (description
11915 "Swagger::Diff is a utility for comparing two different Open API
11916 Initiative (OAI) specifications (formerly known as Swagger specifications).
11917 It is intended to determine whether a newer API specification is
11918 backwards-compatible with an older API specification.")
11919 (home-page "https://github.com/civisanalytics/swagger-diff")
11920 (license license:bsd-3)))
11921
11922 (define-public ruby-reverse-markdown
11923 (package
11924 (name "ruby-reverse-markdown")
11925 (version "1.1.0")
11926 (source
11927 (origin
11928 (method url-fetch)
11929 (uri (rubygems-uri "reverse_markdown" version))
11930 (sha256
11931 (base32
11932 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11933 (build-system ruby-build-system)
11934 (propagated-inputs
11935 `(("ruby-nokogiri" ,ruby-nokogiri)))
11936 (native-inputs
11937 `(("bundler" ,bundler)
11938 ("ruby-rspec" ,ruby-rspec)
11939 ("ruby-kramdown" ,ruby-kramdown)
11940 ("ruby-simplecov" ,ruby-simplecov)))
11941 (arguments
11942 `(#:phases
11943 (modify-phases %standard-phases
11944 (replace 'check
11945 (lambda* (#:key tests? #:allow-other-keys)
11946 (when tests?
11947 (invoke "rspec"))
11948 #t)))))
11949 (synopsis "Convert HTML into Markdown")
11950 (description
11951 "This Ruby module allows you to map simple HTML back into
11952 Markdown---e.g., if you want to import existing HTML data in your
11953 application.")
11954 (home-page "https://github.com/xijo/reverse_markdown")
11955 (license license:wtfpl2)))
11956
11957 (define-public ruby-solargraph
11958 (package
11959 (name "ruby-solargraph")
11960 (version "0.36.0")
11961 (source
11962 (origin
11963 (method url-fetch)
11964 (uri (rubygems-uri "solargraph" version))
11965 (sha256
11966 (base32
11967 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11968 (build-system ruby-build-system)
11969 (propagated-inputs
11970 `(("ruby-backport" ,ruby-backport)
11971 ("bundler" ,bundler)
11972 ("ruby-htmlentities" ,ruby-htmlentities)
11973 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11974 ("ruby-maruku" ,ruby-maruku)
11975 ("ruby-nokogiri" ,ruby-nokogiri)
11976 ("ruby-parser" ,ruby-parser)
11977 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11978 ("ruby-rubocop" ,ruby-rubocop)
11979 ("ruby-thor" ,ruby-thor)
11980 ("ruby-tilt" ,ruby-tilt)
11981 ("ruby-yard" ,ruby-yard)))
11982 (native-inputs
11983 `(("ruby-rspec" ,ruby-rspec)
11984 ("ruby-pry" ,ruby-pry)
11985 ("ruby-simplecov" ,ruby-simplecov)
11986 ("ruby-webmock" ,ruby-webmock)))
11987 ;; FIXME: can't figure out how to run the tests properly:
11988
11989 ;; An error occurred while loading spec_helper.
11990 ;; Failure/Error: return gem_original_require(path)
11991 ;; LoadError:
11992 ;; cannot load such file -- spec_helper
11993 (arguments
11994 '(#:tests? #f
11995 #:phases
11996 (modify-phases %standard-phases
11997 (replace 'check
11998 (lambda* (#:key tests? #:allow-other-keys)
11999 (when tests?
12000 (invoke "rspec"))
12001 #t)))))
12002 (synopsis
12003 "IDE tools for code completion, inline documentation, and static analysis")
12004 (description
12005 "Solargraph provides a comprehensive suite of tools for Ruby
12006 programming: intellisense, diagnostics, inline documentation, and type
12007 checking.")
12008 (home-page "https://solargraph.org/")
12009 (license license:expat)))
12010
12011 (define-public ruby-wayback-machine-downloader
12012 (package
12013 (name "ruby-wayback-machine-downloader")
12014 (version "2.2.1")
12015 (source
12016 (origin
12017 (method url-fetch)
12018 (uri (rubygems-uri
12019 "wayback_machine_downloader"
12020 version))
12021 (sha256
12022 (base32
12023 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
12024 (build-system ruby-build-system)
12025 (arguments
12026 '(#:tests? #f)) ; no tests
12027 (synopsis "Download archived websites from the Wayback Machine")
12028 (description
12029 "Wayback Machine Downloader is a command line tool for downloading
12030 websites from the Internet Archive's Wayback Machine (archive.org).
12031 It allows fine grained control over what to download by specifying
12032 which snapshots to consider and what files to include.")
12033 (home-page
12034 "https://github.com/hartator/wayback-machine-downloader")
12035 (license license:expat)))
12036
12037 (define-public ruby-wwtd
12038 (package
12039 (name "ruby-wwtd")
12040 (version "1.4.1")
12041 (home-page "https://github.com/grosser/wwtd")
12042 (source (origin
12043 (method git-fetch)
12044 (uri (git-reference
12045 (url home-page)
12046 (commit (string-append "v" version))))
12047 (file-name (git-file-name name version))
12048 (sha256
12049 (base32
12050 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
12051 (modules '((guix build utils)))
12052 (snippet
12053 '(begin
12054 ;; Remove bundled library.
12055 (delete-file "spec/rake-12.3.0.gem")
12056 #t))))
12057 (build-system ruby-build-system)
12058 (arguments
12059 '(;; XXX: Tests need multiple versions of ruby, wants to run
12060 ;; `bundle install`, etc.
12061 #:tests? #f
12062 #:phases (modify-phases %standard-phases
12063 (replace 'replace-git-ls-files
12064 (lambda _
12065 (substitute* "wwtd.gemspec"
12066 (("git ls-files lib/ bin/`")
12067 "find lib/ bin/ -type f |sort`"))
12068 #t))
12069 (add-before 'check 'remove-version-constraints
12070 (lambda _
12071 (delete-file "Gemfile.lock")
12072 #t))
12073 (replace 'check
12074 (lambda* (#:key tests? #:allow-other-keys)
12075 (if tests?
12076 (invoke "rspec" "spec/")
12077 (format #t "test suite not run~%"))
12078 #t)))))
12079 (native-inputs
12080 `(("ruby-bump" ,ruby-bump)
12081 ("ruby-rspec" ,ruby-rspec)))
12082 (synopsis "Run @file{.travis.yml} files locally")
12083 (description
12084 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
12085 defined in @file{.travis.yml} on your local machine, using @code{rvm},
12086 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
12087 (license license:expat)))
12088
12089 (define-public ruby-rugged
12090 (package
12091 (name "ruby-rugged")
12092 (version "1.1.0")
12093 (home-page "https://www.rubydoc.info/gems/rugged")
12094 (source
12095 (origin
12096 (method url-fetch)
12097 (uri (rubygems-uri "rugged" version))
12098 (sha256
12099 (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy"))))
12100 (build-system ruby-build-system)
12101 (arguments
12102 `(#:tests? #f
12103 #:gem-flags (list "--" "--use-system-libraries")))
12104 (inputs
12105 `(("libgit2" ,libgit2)))
12106 (native-inputs
12107 `(("ruby-minitest" ,ruby-minitest)
12108 ("ruby-pry" ,ruby-pry)
12109 ("ruby-rake-compiler" ,ruby-rake-compiler)))
12110 (synopsis "Ruby bindings to the libgit2 linkable C Git library")
12111 (description "Rugged is a library for accessing libgit2 in Ruby. It gives
12112 you the speed and portability of libgit2 with the beauty of the Ruby
12113 language.")
12114 (license license:expat)))
12115
12116 (define-public ruby-yell
12117 (package
12118 (name "ruby-yell")
12119 (version "2.2.2")
12120 (source
12121 (origin
12122 (method url-fetch)
12123 (uri (rubygems-uri "yell" version))
12124 (sha256
12125 (base32
12126 "1g16kcdhdfvczn7x81jiq6afg3bdxmb73skqjyjlkp5nqcy6y5hx"))))
12127 (build-system ruby-build-system)
12128 (arguments
12129 `(#:phases
12130 (modify-phases %standard-phases
12131 (replace 'check
12132 (lambda _
12133 (invoke "rake" "examples")))))) ; there is no test target.
12134 (synopsis
12135 "Extensible logging library for Ruby")
12136 (description
12137 "Yell is a comprehensive logging replacement for Ruby. It defines
12138 multiple adapters, various log level combinations and message formatting
12139 options.")
12140 (home-page "https://github.com/rudionrails/yell")
12141 (license license:expat)))