Merge branch 'master' into staging
[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 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 ;;;
28 ;;; This file is part of GNU Guix.
29 ;;;
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
34 ;;;
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
39 ;;;
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42
43 (define-module (gnu packages ruby)
44 #:use-module ((guix licenses) #:prefix license:)
45 #:use-module (gnu packages)
46 #:use-module (gnu packages base)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages c)
49 #:use-module (gnu packages check)
50 #:use-module (gnu packages compression)
51 #:use-module (gnu packages crypto)
52 #:use-module (gnu packages databases)
53 #:use-module (gnu packages dbm)
54 #:use-module (gnu packages rails)
55 #:use-module (gnu packages readline)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages haskell-xyz)
58 #:use-module (gnu packages java)
59 #:use-module (gnu packages libffi)
60 #:use-module (gnu packages libidn)
61 #:use-module (gnu packages linux)
62 #:use-module (gnu packages lsof)
63 #:use-module (gnu packages maths)
64 #:use-module (gnu packages ncurses)
65 #:use-module (gnu packages networking)
66 #:use-module (gnu packages node)
67 #:use-module (gnu packages protobuf)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages python-xyz)
70 #:use-module (gnu packages ragel)
71 #:use-module (gnu packages rsync)
72 #:use-module (gnu packages sqlite)
73 #:use-module (gnu packages tls)
74 #:use-module (gnu packages version-control)
75 #:use-module (guix packages)
76 #:use-module (guix download)
77 #:use-module (guix git-download)
78 #:use-module (guix utils)
79 #:use-module (guix build-system gnu)
80 #:use-module (gnu packages xml)
81 #:use-module (gnu packages web)
82 #:use-module (guix build-system ruby)
83 #:use-module ((srfi srfi-1) #:select (alist-delete)))
84
85 (define %prawn-project-licenses
86 ;; This set of licenses applies to most (all?) components of the Prawn
87 ;; project (it is triple licensed).
88 (list license:ruby
89 license:gpl2+
90 license:gpl3+))
91
92 (define-public ruby
93 (package
94 (name "ruby")
95 (version "2.6.5")
96 (source
97 (origin
98 (method url-fetch)
99 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
100 (version-major+minor version)
101 "/ruby-" version ".tar.xz"))
102 (sha256
103 (base32
104 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
105 (modules '((guix build utils)))
106 (snippet `(begin
107 ;; Remove bundled libffi
108 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
109 #t))))
110 (build-system gnu-build-system)
111 (arguments
112 `(#:test-target "test"
113 #:configure-flags '("--enable-shared") ; dynamic linking
114 #:phases
115 (modify-phases %standard-phases
116 (add-before 'configure 'replace-bin-sh-and-remove-libffi
117 (lambda _
118 (substitute* '("Makefile.in"
119 "ext/pty/pty.c"
120 "io.c"
121 "lib/mkmf.rb"
122 "process.c"
123 "test/rubygems/test_gem_ext_configure_builder.rb"
124 "test/rdoc/test_rdoc_parser.rb"
125 "test/ruby/test_rubyoptions.rb"
126 "test/ruby/test_process.rb"
127 "test/ruby/test_system.rb"
128 "tool/rbinstall.rb")
129 (("/bin/sh") (which "sh")))
130 #t)))))
131 (inputs
132 `(("readline" ,readline)
133 ("openssl" ,openssl)
134 ("libffi" ,libffi)
135 ("gdbm" ,gdbm)))
136 (propagated-inputs
137 `(("zlib" ,zlib)))
138 (native-search-paths
139 (list (search-path-specification
140 (variable "GEM_PATH")
141 (files (list (string-append "lib/ruby/vendor_ruby"))))))
142 (synopsis "Programming language interpreter")
143 (description "Ruby is a dynamic object-oriented programming language with
144 a focus on simplicity and productivity.")
145 (home-page "https://www.ruby-lang.org")
146 (license license:ruby)))
147
148 (define-public ruby-2.7
149 (package
150 (inherit ruby)
151 (version "2.7.2")
152 (source
153 (origin
154 (method url-fetch)
155 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
156 (version-major+minor version)
157 "/ruby-" version ".tar.gz"))
158 (sha256
159 (base32
160 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
161 (modules '((guix build utils)))
162 (snippet `(begin
163 ;; Remove bundled libffi
164 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
165 #t))))
166 (arguments
167 `(#:test-target "test"
168 #:configure-flags '("--enable-shared") ; dynamic linking
169 #:phases
170 (modify-phases %standard-phases
171 (add-before 'configure 'replace-bin-sh-and-remove-libffi
172 (lambda _
173 (substitute* '("configure.ac"
174 "template/Makefile.in"
175 "lib/rubygems/installer.rb"
176 "ext/pty/pty.c"
177 "io.c"
178 "lib/mkmf.rb"
179 "process.c"
180 "test/rubygems/test_gem_ext_configure_builder.rb"
181 "test/rdoc/test_rdoc_parser.rb"
182 "test/ruby/test_rubyoptions.rb"
183 "test/ruby/test_process.rb"
184 "test/ruby/test_system.rb"
185 "tool/rbinstall.rb")
186 (("/bin/sh") (which "sh")))
187 #t)))))
188 (native-inputs
189 `(("autoconf" ,autoconf)))))
190
191 (define-public ruby-3.0
192 (package
193 (inherit ruby-2.7)
194 (version "3.0.0")
195 (source
196 (origin
197 (method url-fetch)
198 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
199 (version-major+minor version)
200 "/ruby-" version ".tar.xz"))
201 (sha256
202 (base32
203 "1cbcixwnr0y8q0lg67wjgplp06kjd6p6hjjh680csv3v0bpsxgv8"))))))
204
205 (define-public ruby-2.5
206 (package
207 (inherit ruby)
208 (version "2.5.8")
209 (source
210 (origin
211 (method url-fetch)
212 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
213 (version-major+minor version)
214 "/ruby-" version ".tar.xz"))
215 (sha256
216 (base32
217 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
218 (modules '((guix build utils)))
219 (snippet `(begin
220 ;; Remove bundled libffi
221 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
222 #t))))))
223
224 (define-public ruby-2.4
225 (package
226 (inherit ruby)
227 (version "2.4.10")
228 (source
229 (origin
230 (method url-fetch)
231 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
232 (version-major+minor version)
233 "/ruby-" version ".tar.xz"))
234 (sha256
235 (base32
236 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
237 (modules '((guix build utils)))
238 (snippet `(begin
239 ;; Remove bundled libffi
240 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
241 #t))))))
242
243 (define-public mruby
244 (package
245 (name "mruby")
246 (version "2.1.2")
247 (source
248 (origin
249 (method git-fetch)
250 (uri (git-reference
251 (url "https://github.com/mruby/mruby")
252 (commit version)))
253 (file-name (git-file-name name version))
254 (sha256
255 (base32
256 "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3"))))
257 (build-system gnu-build-system)
258 (arguments
259 `(#:test-target "test"
260 #:phases
261 (modify-phases %standard-phases
262 (delete 'configure)
263 (add-after 'unpack 'enable-verbose-tests
264 (lambda _
265 (substitute* "Makefile"
266 (("ruby ./minirake" m)
267 (string-append m " --verbose")))
268 #t))
269 (add-after 'unpack 'disable-broken-tests
270 (lambda _
271 (substitute* "mrbgems/mruby-io/test/io.rb"
272 (("assert\\('IO.popen.+$" m)
273 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
274 (("assert\\('IO#isatty.+$" m)
275 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
276 ;; This one is really weird. The *expected* output is all wrong.
277 (("assert\\('`cmd`.*" m)
278 (string-append m "skip \"Disable for Guix\"\n"))
279 (("echo foo")
280 (string-append (which "echo") " foo")))
281 #t))
282 ;; There is no install target
283 (replace 'install
284 (lambda* (#:key outputs #:allow-other-keys)
285 (let* ((out (assoc-ref outputs "out"))
286 (bin (string-append out "/bin"))
287 (lib (string-append out "/lib")))
288 (mkdir-p bin)
289 (copy-recursively "build/host/bin" bin)
290 (mkdir-p lib)
291 (copy-recursively "build/host/lib" lib))
292 #t)))))
293 (native-inputs
294 `(("ruby" ,ruby)
295 ("bison" ,bison)))
296 (home-page "https://github.com/mruby/mruby")
297 (synopsis "Lightweight Ruby")
298 (description "mruby is the lightweight implementation of the Ruby
299 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
300 embedded within your application.")
301 (license license:expat)))
302
303 (define-public ruby-commander
304 (package
305 (name "ruby-commander")
306 (version "4.4.7")
307 (source
308 (origin
309 (method url-fetch)
310 (uri (rubygems-uri "commander" version))
311 (sha256
312 (base32
313 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
314 (build-system ruby-build-system)
315 (arguments
316 `(#:test-target "spec"
317 #:phases
318 (modify-phases %standard-phases
319 ;; Don't run or require rubocop, the code linting tool, as this is a
320 ;; bit unnecessary.
321 (add-after 'unpack 'dont-run-rubocop
322 (lambda _
323 (substitute* "Rakefile"
324 ((".*rubocop.*") "")
325 ((".*RuboCop.*") ""))
326 #t)))))
327 (propagated-inputs
328 `(("ruby-highline" ,ruby-highline)))
329 (native-inputs
330 `(("bundler" ,bundler)
331 ("ruby-rspec-core" ,ruby-rspec-core)
332 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
333 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
334 ("ruby-simplecov" ,ruby-simplecov)))
335 (home-page "https://github.com/commander-rb/commander")
336 (synopsis "Library for building Ruby command-line executables")
337 (description
338 "Commander aims to be a complete solution for Ruby command-line
339 executables. Commander bridges the gap between other terminal related
340 libraries (OptionParser, HighLine), while providing many new features, and an
341 elegant API.")
342 (license license:expat)))
343
344 (define-public ruby-highline
345 (package
346 (name "ruby-highline")
347 (version "2.0.1")
348 (source
349 (origin
350 (method url-fetch)
351 (uri (rubygems-uri "highline" version))
352 (sha256
353 (base32
354 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
355 (build-system ruby-build-system)
356 (arguments
357 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
358 (native-inputs
359 `(("bundler" ,bundler)
360 ("ruby-code-statistics" ,ruby-code-statistics)))
361 (synopsis
362 "HighLine helps you build command-line interfaces")
363 (description
364 "HighLine provides a high-level IO library that provides validation,
365 type conversion, and more for command-line interfaces. HighLine also includes
366 a menu system for providing multiple options to the user.")
367 (home-page "https://github.com/JEG2/highline")
368 (license (list license:gpl2 license:ruby))))
369
370 (define-public ruby-hoe
371 (package
372 (name "ruby-hoe")
373 (version "3.21.0")
374 (source (origin
375 (method url-fetch)
376 (uri (rubygems-uri "hoe" version))
377 (sha256
378 (base32
379 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
380 (build-system ruby-build-system)
381 (arguments
382 '(#:phases
383 (modify-phases %standard-phases
384 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
385 ;; variable is set, so unset it for the duration of the tests.
386 ;;
387 ;; TestHoe#test_possibly_better
388 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
389 ;; Expected: 2019-11-12 00:00:00 UTC
390 ;; Actual: 1970-01-01 00:00:00 UTC
391 (add-before 'check 'unset-SOURCE-DATE-EPOCH
392 (lambda _
393 (unsetenv "SOURCE_DATE_EPOCH")
394 #t))
395 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
396 (lambda _
397 (setenv "SOURCE_DATE_EPOCH" "1")
398 #t)))))
399 (synopsis "Ruby project management helper")
400 (description
401 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
402 maintain, and release projects and includes a dynamic plug-in system allowing
403 for easy extensibility. Hoe ships with plug-ins for all the usual project
404 tasks including rdoc generation, testing, packaging, deployment, and
405 announcement.")
406 (home-page "https://www.zenspider.com/projects/hoe.html")
407 (license license:expat)))
408
409 (define-public ruby-rake-compiler
410 (package
411 (name "ruby-rake-compiler")
412 (version "1.1.0")
413 (source (origin
414 (method url-fetch)
415 (uri (rubygems-uri "rake-compiler" version))
416 (sha256
417 (base32
418 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
419 (build-system ruby-build-system)
420 (arguments
421 '(#:tests? #f)) ; needs cucumber
422 (synopsis "Building and packaging helper for Ruby native extensions")
423 (description "Rake-compiler provides a framework for building and
424 packaging native C and Java extensions in Ruby.")
425 (home-page "https://github.com/rake-compiler/rake-compiler")
426 (license license:expat)))
427
428 (define-public ruby-rsync
429 (package
430 (name "ruby-rsync")
431 (version "1.0.9")
432 (source
433 (origin
434 (method url-fetch)
435 (uri (rubygems-uri "rsync" version))
436 (sha256
437 (base32
438 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
439 (build-system ruby-build-system)
440 (arguments
441 '(#:test-target "spec"
442 #:phases
443 (modify-phases %standard-phases
444 (add-after 'unpack 'remove-coveralls-requirement
445 (lambda _
446 (substitute* "spec/spec_helper.rb"
447 (("require 'coveralls'") "")
448 (("Coveralls.wear!") ""))
449 #t)))))
450 (native-inputs
451 `(("bundler" ,bundler)
452 ("rsync" ,rsync)
453 ("ruby-rspec-core" ,ruby-rspec-core)
454 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
455 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
456 (home-page "https://github.com/jbussdieker/ruby-rsync")
457 (synopsis "Ruby wrapper around rsync")
458 (description
459 "Ruby Rsync is a Ruby library that can synchronize files between remote
460 hosts by wrapping the @file{rsync} binary.")
461 (license license:expat)))
462
463 (define-public ruby-i18n
464 (package
465 (name "ruby-i18n")
466 (version "1.7.0")
467 (source (origin
468 (method url-fetch)
469 (uri (rubygems-uri "i18n" version))
470 (sha256
471 (base32
472 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
473 (build-system ruby-build-system)
474 (arguments
475 '(#:tests? #f)) ; no tests
476 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
477 (synopsis "Internationalization library for Ruby")
478 (description "Ruby i18n is an internationalization and localization
479 solution for Ruby programs. It features translation and localization,
480 interpolation of values to translations, pluralization, customizable
481 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
482 translation data, custom key/scope separator, custom exception handlers, and
483 an extensible architecture with a swappable backend.")
484 (home-page "https://github.com/ruby-i18n/i18n")
485 (license license:expat)))
486
487 (define-public ruby-iruby
488 (package
489 (name "ruby-iruby")
490 (version "0.3")
491 (source
492 (origin
493 (method url-fetch)
494 (uri (rubygems-uri "iruby" version))
495 (sha256
496 (base32
497 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
498 (build-system ruby-build-system)
499 (arguments
500 ;; TODO: Tests currently fail.
501 ;;
502 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
503 ;;
504 ;; 1) Failure:
505 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
506 ;; In [ expected
507 ;;
508 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
509 '(#:tests? #f
510 #:phases
511 (modify-phases %standard-phases
512 (add-after 'unpack 'patch-ipython
513 (lambda* (#:key inputs #:allow-other-keys)
514 (substitute* "lib/iruby/command.rb"
515 (("version = `")
516 (string-append
517 "version = `"
518 (assoc-ref inputs "python-ipython")
519 "/bin/"))
520 (("Kernel\\.exec\\('")
521 (string-append
522 "Kernel.exec('"
523 (assoc-ref inputs "python-ipython")
524 "/bin/")))
525 #t)))))
526 (inputs
527 `(("python-ipython" ,python-ipython)))
528 (propagated-inputs
529 `(("ruby-bond" ,ruby-bond)
530 ("ruby-data_uri" ,ruby-data_uri)
531 ("ruby-mimemagic" ,ruby-mimemagic)
532 ("ruby-multi-json" ,ruby-multi-json)
533 ("ruby-cztop" ,ruby-cztop)
534 ;; Optional inputs
535 ("ruby-pry" ,ruby-pry)))
536 (synopsis "Ruby kernel for Jupyter/IPython")
537 (description
538 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
539 notebook).")
540 (home-page "https://github.com/SciRuby/iruby")
541 (license license:expat)))
542
543 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
544 ;; dependencies use RSpec for their test suites! To avoid these circular
545 ;; dependencies, we disable tests for all of the RSpec-related packages.
546 (define-public ruby-rspec-support
547 (package
548 (name "ruby-rspec-support")
549 (version "3.8.0")
550 (source (origin
551 (method url-fetch)
552 (uri (rubygems-uri "rspec-support" version))
553 (sha256
554 (base32
555 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
556 (build-system ruby-build-system)
557 (arguments
558 '(#:tests? #f)) ; avoid dependency cycles
559 (synopsis "RSpec support library")
560 (description "Support utilities for RSpec gems.")
561 (home-page "https://github.com/rspec/rspec-support")
562 (license license:expat)))
563
564 (define-public ruby-rspec-core
565 (package
566 (name "ruby-rspec-core")
567 (version "3.8.0")
568 (source (origin
569 (method url-fetch)
570 (uri (rubygems-uri "rspec-core" version))
571 (sha256
572 (base32
573 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
574 (build-system ruby-build-system)
575 (arguments
576 '(#:tests? #f)) ; avoid dependency cycles
577 (propagated-inputs
578 `(("ruby-rspec-support" ,ruby-rspec-support)))
579 (synopsis "RSpec core library")
580 (description "Rspec-core provides the RSpec test runner and example
581 groups.")
582 (home-page "https://github.com/rspec/rspec-core")
583 (license license:expat)))
584
585 (define-public ruby-rspec-core-2
586 (package (inherit ruby-rspec-core)
587 (version "2.14.8")
588 (source (origin
589 (method url-fetch)
590 (uri (rubygems-uri "rspec-core" version))
591 (sha256
592 (base32
593 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
594 (propagated-inputs `())))
595
596 (define-public ruby-diff-lcs
597 (package
598 (name "ruby-diff-lcs")
599 (version "1.3")
600 (source (origin
601 (method url-fetch)
602 (uri (rubygems-uri "diff-lcs" version))
603 (sha256
604 (base32
605 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
606 (build-system ruby-build-system)
607 (arguments
608 '(#:tests? #f)) ; avoid dependency cycles
609 (synopsis "Compute the difference between two Enumerable sequences")
610 (description "Diff::LCS computes the difference between two Enumerable
611 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
612 It includes utilities to create a simple HTML diff output format and a
613 standard diff-like tool.")
614 (home-page "https://github.com/halostatue/diff-lcs")
615 (license license:expat)))
616
617 (define-public ruby-rspec-expectations
618 (package
619 (name "ruby-rspec-expectations")
620 (version "3.8.2")
621 (source (origin
622 (method url-fetch)
623 (uri (rubygems-uri "rspec-expectations" version))
624 (sha256
625 (base32
626 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
627 (build-system ruby-build-system)
628 (arguments
629 '(#:tests? #f)) ; avoid dependency cycles
630 (propagated-inputs
631 `(("ruby-rspec-support" ,ruby-rspec-support)
632 ("ruby-diff-lcs" ,ruby-diff-lcs)))
633 (synopsis "RSpec expectations library")
634 (description "Rspec-expectations provides a simple API to express expected
635 outcomes of a code example.")
636 (home-page "https://github.com/rspec/rspec-expectations")
637 (license license:expat)))
638
639 (define-public ruby-rspec-expectations-2
640 (package (inherit ruby-rspec-expectations)
641 (version "2.14.5")
642 (source (origin
643 (method url-fetch)
644 (uri (rubygems-uri "rspec-expectations" version))
645 (sha256
646 (base32
647 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
648 (propagated-inputs
649 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
650
651 (define-public ruby-sorcerer
652 (package
653 (name "ruby-sorcerer")
654 (version "2.0.1")
655 (source
656 (origin
657 (method url-fetch)
658 (uri (rubygems-uri "sorcerer" version))
659 (sha256
660 (base32
661 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
662 (build-system ruby-build-system)
663 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
664 (description "Sorcerer generates Ruby code from a Ripper-like abstract
665 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
666 snippets of Ruby code, expressible in a single line. Longer examples may be
667 re-sourced, but they will be rendered in a single-line format.")
668 (home-page "https://github.com/rspec-given/sorcerer")
669 (license license:expat)))
670
671 (define-public ruby-given-core
672 (package
673 (name "ruby-given-core")
674 (version "3.8.0")
675 (source
676 (origin
677 (method url-fetch)
678 (uri (rubygems-uri "given_core" version))
679 (sha256
680 (base32
681 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
682 (build-system ruby-build-system)
683 (arguments '(#:tests? #f)) ;no test suite for the core package
684 (propagated-inputs
685 `(("ruby-sorcerer" ,ruby-sorcerer)))
686 (synopsis "Core abstractions used by rspec-given and minitest-given")
687 (description "Given_core is the basic functionality behind rspec-given and
688 minitest-given, extensions that allow the use of Given/When/Then terminology
689 when defining specifications.")
690 (home-page "https://github.com/rspec-given/rspec-given")
691 (license license:expat)))
692
693 (define-public ruby-rspec-given
694 (package
695 (name "ruby-rspec-given")
696 (version "3.8.0")
697 (source
698 (origin
699 (method url-fetch)
700 (uri (rubygems-uri "rspec-given" version))
701 (sha256
702 (base32
703 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
704 (build-system ruby-build-system)
705 (arguments
706 `(#:test-target "rs"
707 #:phases
708 (modify-phases %standard-phases
709 (add-after 'unpack 'fix-rakefile
710 (lambda _
711 (substitute* '("Rakefile" "rakelib/gemspec.rake")
712 (("require '\\./lib/given/.*") "")
713 (("Given::VERSION") (format #f "~s" ,version))
714 ;; Fix the error: "cannot load such file -- example_helper"
715 (("sh \"rspec")
716 "sh \"rspec -Ilib:examples"))
717 #t))
718 (add-after 'extract-gemspec 'delete-failing-tests
719 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
720 (lambda _
721 (substitute* ".gemspec"
722 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
723 "")
724 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
725 ""))
726 (delete-file "spec/lib/given/natural_assertion_spec.rb")
727 (delete-file "examples/integration/failing_messages_spec.rb")
728 #t)))))
729 (native-inputs
730 `(("ruby-rspec" ,ruby-rspec)
731 ("ruby-minitest" ,ruby-minitest)))
732 (propagated-inputs
733 `(("ruby-given-core" ,ruby-given-core)
734 ("ruby-rspec" ,ruby-rspec)))
735 (synopsis "Given/When/Then for RSpec and Minitest")
736 (description "Given is an RSpec extension that allows the use of
737 Given/When/Then terminology when defining specifications, in a way similar to
738 the Cucumber Gherkin language.")
739 (home-page "https://github.com/rspec-given/rspec-given")
740 (license license:expat)))
741
742 (define-public ruby-rspec-its
743 (package
744 (name "ruby-rspec-its")
745 (version "1.3.0")
746 (source
747 (origin
748 (method git-fetch)
749 (uri (git-reference
750 (url "https://github.com/rspec/rspec-its")
751 (commit (string-append "v" version))))
752 (file-name (git-file-name name version))
753 (sha256
754 (base32
755 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
756 (build-system ruby-build-system)
757 (arguments
758 `(#:test-target "spec"
759 #:phases
760 (modify-phases %standard-phases
761 (add-after 'unpack 'dont-install-gems-from-gemfile
762 (lambda _
763 (substitute* "Gemfile"
764 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
765 ""))
766 #t))
767 (add-before 'build 'loosen-ffi-requirement
768 (lambda _
769 ;; Accept any version of ruby-ffi.
770 (substitute* "Gemfile"
771 ((" gem 'ffi', '~> 1\\.9\\.25'")
772 " gem 'ffi'"))
773 #t))
774 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
775 (lambda _
776 (substitute* "rspec-its.gemspec"
777 (("rake.*") "rake'\n")
778 (("spec.add_development_dependency 'cucumber'.*")
779 "spec.add_development_dependency 'cucumber'\n")
780 (("bundler.*") "bundler'\n")
781 (("\"aruba.*") "'aruba'\n"))
782 #t)))))
783 (propagated-inputs
784 `(("ruby-rspec-core" ,ruby-rspec-core)
785 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
786 (native-inputs
787 `(("bundler" ,bundler)
788 ("ruby-cucumber" ,ruby-cucumber)
789 ("ruby-ffi" ,ruby-ffi)
790 ("ruby-aruba" ,ruby-aruba)))
791 (synopsis "RSpec extension that provides the @code{its} method")
792 (description
793 "RSpec::Its provides the its method as a short-hand to specify the expected
794 value of an attribute. For example, one can use @code{its(:size)\\{should
795 eq(1)\\}}.")
796 (home-page "https://github.com/rspec/rspec-its")
797 (license license:expat)))
798
799 ;;; This variant is used to break a cycle with ruby-protobuf.
800 (define-public ruby-rspec-its-minimal
801 (hidden-package
802 (package
803 (inherit ruby-rspec-its)
804 (arguments
805 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
806 ((#:tests? _ #f) #f)))
807 (native-inputs '()))))
808
809 (define-public ruby-rspec-mocks
810 (package
811 (name "ruby-rspec-mocks")
812 (version "3.8.0")
813 (source (origin
814 (method url-fetch)
815 (uri (rubygems-uri "rspec-mocks" version))
816 (sha256
817 (base32
818 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
819 (build-system ruby-build-system)
820 (arguments
821 '(#:tests? #f)) ; avoid dependency cycles
822 (propagated-inputs
823 `(("ruby-rspec-support" ,ruby-rspec-support)
824 ("ruby-diff-lcs" ,ruby-diff-lcs)))
825 (synopsis "RSpec stubbing and mocking library")
826 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
827 support for stubbing and mocking.")
828 (home-page "https://github.com/rspec/rspec-mocks")
829 (license license:expat)))
830
831 (define-public ruby-rspec-mocks-2
832 (package (inherit ruby-rspec-mocks)
833 (version "2.14.6")
834 (source (origin
835 (method url-fetch)
836 (uri (rubygems-uri "rspec-mocks" version))
837 (sha256
838 (base32
839 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
840 (propagated-inputs
841 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
842
843 (define-public ruby-rspec-rerun
844 (package
845 (name "ruby-rspec-rerun")
846 (version "1.1.0")
847 (source
848 (origin
849 (method url-fetch)
850 (uri (rubygems-uri "rspec-rerun" version))
851 (sha256
852 (base32
853 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
854 (build-system ruby-build-system)
855 (arguments
856 '(;; No included tests
857 #:tests? #f))
858 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
859 (synopsis "Track failed RSpec tests to re-run them")
860 (description
861 "This package provides an automated way to track, and then re-run failed
862 RSpec tests.")
863 (home-page "https://github.com/dblock/rspec-rerun")
864 (license license:expat)))
865
866 (define-public ruby-rspec-wait
867 (package
868 (name "ruby-rspec-wait")
869 (version "0.0.9")
870 (source
871 (origin
872 (method url-fetch)
873 (uri (rubygems-uri "rspec-wait" version))
874 (sha256
875 (base32
876 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
877 (build-system ruby-build-system)
878 (arguments
879 '(#:phases
880 (modify-phases %standard-phases
881 (replace 'check
882 (lambda _
883 (invoke "rake" "spec"))))))
884 (native-inputs
885 `(("bundler" ,bundler)))
886 (propagated-inputs
887 `(("ruby-rspec" ,ruby-rspec)))
888 (home-page "https://github.com/laserlemon/rspec-wait")
889 (synopsis "Wait for conditions in RSpec")
890 (description
891 "RSpec::Wait strives to make it easier to test asynchronous or slow
892 interactions.")
893 (license license:expat)))
894
895 (define-public ruby-rspec
896 (package
897 (name "ruby-rspec")
898 (version "3.8.0")
899 (source (origin
900 (method url-fetch)
901 (uri (rubygems-uri "rspec" version))
902 (sha256
903 (base32
904 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
905 (build-system ruby-build-system)
906 (arguments
907 '(#:tests? #f)) ; avoid dependency cycles
908 (propagated-inputs
909 `(("ruby-rspec-core" ,ruby-rspec-core)
910 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
911 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
912 (synopsis "Behavior-driven development framework for Ruby")
913 (description "RSpec is a behavior-driven development (BDD) framework for
914 Ruby. This meta-package includes the RSpec test runner, along with the
915 expectations and mocks frameworks.")
916 (home-page "https://rspec.info/")
917 (license license:expat)))
918
919 (define-public ruby-rspec-2
920 (package (inherit ruby-rspec)
921 (version "2.14.1")
922 (source (origin
923 (method url-fetch)
924 (uri (rubygems-uri "rspec" version))
925 (sha256
926 (base32
927 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
928 (propagated-inputs
929 `(("ruby-rspec-core" ,ruby-rspec-core-2)
930 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
931 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
932
933 ;; Bundler is yet another source of circular dependencies, so we must disable
934 ;; its test suite as well.
935 (define-public bundler
936 (package
937 (name "bundler")
938 (version "2.1.4")
939 (source (origin
940 (method url-fetch)
941 (uri (rubygems-uri "bundler" version))
942 (sha256
943 (base32
944 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
945 (build-system ruby-build-system)
946 (arguments
947 '(#:tests? #f)) ; avoid dependency cycles
948 (synopsis "Ruby gem bundler")
949 (description "Bundler automatically downloads and installs a list of gems
950 specified in a \"Gemfile\", as well as their dependencies.")
951 (home-page "https://bundler.io/")
952 (license license:expat)))
953
954 (define-public ruby-builder
955 (package
956 (name "ruby-builder")
957 (version "3.2.3")
958 (source (origin
959 (method url-fetch)
960 (uri (rubygems-uri "builder" version))
961 (sha256
962 (base32
963 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
964 (build-system ruby-build-system)
965 (arguments
966 `(#:phases
967 (modify-phases %standard-phases
968 (add-after 'unpack 'do-not-use-rvm
969 (lambda _
970 (substitute* "rakelib/tags.rake"
971 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
972 #t)))))
973 (synopsis "Ruby library to create structured data")
974 (description "Builder provides a number of builder objects that make it
975 easy to create structured data. Currently the following builder objects are
976 supported: XML Markup and XML Events.")
977 (home-page "https://github.com/jimweirich/builder")
978 (license license:expat)))
979
980 (define-public ruby-bump
981 (package
982 (name "ruby-bump")
983 (version "0.7.0")
984 (source
985 (origin
986 (method url-fetch)
987 (uri (rubygems-uri "bump" version))
988 (sha256
989 (base32
990 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
991 (build-system ruby-build-system)
992 (arguments
993 '(;; No included tests
994 #:tests? #f))
995 (synopsis "Tool for working with Rubygems")
996 (description
997 "Bump provides commands to manage Rubygem versioning, updating to the
998 next patch version for example.")
999 (home-page "https://github.com/gregorym/bump")
1000 (license license:expat)))
1001
1002 (define-public ruby-rjb
1003 (package
1004 (name "ruby-rjb")
1005 (version "1.5.5")
1006 (source (origin
1007 (method url-fetch)
1008 (uri (rubygems-uri "rjb" version))
1009 (sha256
1010 (base32
1011 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
1012 (build-system ruby-build-system)
1013 (arguments
1014 `(#:tests? #f ; no rakefile
1015 #:phases
1016 (modify-phases %standard-phases
1017 (add-before 'build 'set-java-home
1018 (lambda* (#:key inputs #:allow-other-keys)
1019 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1020 #t)))))
1021 (native-inputs
1022 `(("jdk" ,icedtea "jdk")))
1023 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1024 (description "RJB is a bridge program that connects Ruby and Java via the
1025 Java Native Interface.")
1026 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1027 (license license:lgpl2.1+)))
1028
1029 (define-public ruby-log4r
1030 (package
1031 (name "ruby-log4r")
1032 (version "1.1.10")
1033 (source
1034 (origin
1035 (method url-fetch)
1036 (uri (rubygems-uri "log4r" version))
1037 (sha256
1038 (base32
1039 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1040 (build-system ruby-build-system)
1041 (arguments
1042 '(#:tests? #f)) ; no Rakefile in gem
1043 (synopsis "Flexible logging library for Ruby")
1044 (description "Comprehensive and flexible logging library written
1045 in Ruby for use in Ruby programs. It features a hierarchical logging
1046 system of any number of levels, custom level names, logger
1047 inheritance, multiple output destinations per log event, execution
1048 tracing, custom formatting, thread safteyness, XML and YAML
1049 configuration, and more.")
1050 (home-page "http://log4r.rubyforge.org/")
1051 (license license:bsd-3)))
1052
1053 (define-public ruby-atoulme-antwrap
1054 (package
1055 (name "ruby-atoulme-antwrap")
1056 (version "0.7.5")
1057 (source (origin
1058 (method url-fetch)
1059 (uri (rubygems-uri "atoulme-Antwrap" version))
1060 (sha256
1061 (base32
1062 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1063 (build-system ruby-build-system)
1064 ;; Test data required for most of the tests are not included.
1065 (arguments `(#:tests? #f))
1066 (native-inputs
1067 `(("ruby-hoe" ,ruby-hoe)))
1068 (inputs
1069 `(("ruby-rjb" ,ruby-rjb)))
1070 (synopsis "Ruby wrapper for the Ant build tool")
1071 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1072 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1073 script.")
1074 (home-page "http://rubyforge.org/projects/antwrap/")
1075 (license license:expat)))
1076
1077 (define-public ruby-atoulme-saikuro
1078 (package
1079 (name "ruby-atoulme-saikuro")
1080 (version "1.2.1")
1081 (source (origin
1082 (method url-fetch)
1083 (uri (rubygems-uri "atoulme-Saikuro" version))
1084 (sha256
1085 (base32
1086 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1087 (build-system ruby-build-system)
1088 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1089 ;; "saikuro" tool.
1090 (arguments `(#:tests? #f))
1091 (synopsis "Cyclomatic complexity analyzer")
1092 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1093 given Ruby source code Saikuro will generate a report listing the cyclomatic
1094 complexity of each method found. In addition, Saikuro counts the number of
1095 lines per method and can generate a listing of the number of tokens on each
1096 line of code.")
1097 (home-page "http://www.github.com/atoulme/Saikuro")
1098 ;; File headers contain the BSD-3 license and the README.rdoc says that
1099 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1100 ;; of the Expat license.
1101 (license license:bsd-3)))
1102
1103 (define-public ruby-pandoc-ruby
1104 (package
1105 (name "ruby-pandoc-ruby")
1106 (version "2.1.4")
1107 (source
1108 (origin
1109 (method git-fetch) ;the gem lacks many test files
1110 (uri (git-reference
1111 (url "https://github.com/xwmx/pandoc-ruby")
1112 (commit version)))
1113 (file-name (git-file-name name version))
1114 (sha256
1115 (base32
1116 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1117 (build-system ruby-build-system)
1118 (arguments
1119 `(#:phases
1120 (modify-phases %standard-phases
1121 (add-after 'unpack 'disable-failing-tests
1122 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1123 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1124 (lambda _
1125 (substitute* "test/test_conversions.rb"
1126 (("next if from == to.*" all)
1127 (string-append
1128 all
1129 " next if ['plain', 'beamer'].include? to\n")))
1130 #t))
1131 (add-after 'unpack 'patch-pandoc-path
1132 (lambda* (#:key inputs #:allow-other-keys)
1133 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1134 "/bin/pandoc")))
1135 (substitute* "lib/pandoc-ruby.rb"
1136 (("@@pandoc_path = 'pandoc'")
1137 (format #f "@@pandoc_path = '~a'" pandoc)))
1138 (substitute* "test/test_pandoc_ruby.rb"
1139 (("('|\")pandoc" _ quote)
1140 (string-append quote pandoc))
1141 (("\\^pandoc")
1142 ".*pandoc"))
1143 #t)))
1144 (add-after 'extract-gemspec 'remove-Gemfile.lock
1145 (lambda _
1146 (delete-file "Gemfile.lock")
1147 (substitute* "pandoc-ruby.gemspec"
1148 (("Gemfile\\.lock") ""))
1149 #t)))))
1150 (native-inputs
1151 `(("ruby-mocha" ,ruby-mocha)))
1152 (inputs
1153 `(("pandoc" ,pandoc)))
1154 (synopsis "Ruby wrapper for Pandoc")
1155 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1156 command line tools for converting one markup format to another. Pandoc can
1157 convert documents from a variety of formats including markdown,
1158 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1159 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1160 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1161 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1162 more.")
1163 (home-page "https://github.com/xwmx/pandoc-ruby")
1164 (license license:expat)))
1165
1166 (define-public ruby-slim
1167 (package
1168 (name "ruby-slim")
1169 (version "4.1.0")
1170 (source
1171 (origin
1172 (method url-fetch)
1173 (uri (rubygems-uri "slim" version))
1174 (sha256
1175 (base32
1176 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1177 (build-system ruby-build-system)
1178 (arguments
1179 `(#:phases
1180 (modify-phases %standard-phases
1181 ;; See: https://github.com/slim-template/slim/issues/857 and
1182 ;; https://github.com/slim-template/slim/issues/858.
1183 (add-after 'unpack 'skip-broken-tests
1184 (lambda _
1185 (substitute* "test/core/test_embedded_engines.rb"
1186 (("def test_render_with_markdown")
1187 "def skipped_test_render_with_markdown"))
1188 (substitute* "test/translator/test_translator.rb"
1189 (("raise (\"Missing test for.*)" _ tail)
1190 (string-append "print " tail)))
1191 #t))
1192 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1193 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1194 (add-after 'unpack 'prevent-bundler-interference
1195 (lambda _
1196 (substitute* "Rakefile"
1197 (("require 'bundler/setup'") "nil")
1198 (("Bundler::GemHelper\\.install_tasks") "nil"))
1199 #t)))))
1200 (native-inputs
1201 `(("ruby-rack-test" ,ruby-rack-test)
1202 ("ruby-sinatra" ,ruby-sinatra)))
1203 (propagated-inputs
1204 `(("ruby-temple" ,ruby-temple)
1205 ("ruby-tilt" ,ruby-tilt)))
1206 (synopsis "Minimalist template language for Ruby")
1207 (description "Slim is a template language for Ruby that aims to reduce the
1208 syntax to the minimum while remaining clear.")
1209 (home-page "http://slim-lang.com/")
1210 (license license:expat)))
1211
1212 (define-public ruby-asciidoctor
1213 (package
1214 (name "ruby-asciidoctor")
1215 (version "2.0.10")
1216 (source
1217 (origin
1218 (method git-fetch) ;the gem release lacks a Rakefile
1219 (uri (git-reference
1220 (url "https://github.com/asciidoctor/asciidoctor")
1221 (commit (string-append "v" version))))
1222 (file-name (git-file-name name version))
1223 (sha256
1224 (base32
1225 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1226 (build-system ruby-build-system)
1227 (arguments
1228 `(#:test-target "test:all"
1229 #:phases
1230 (modify-phases %standard-phases
1231 (replace 'replace-git-ls-files
1232 (lambda _
1233 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1234 ;; git ls-files output is merged in ruby-build-system.
1235 (substitute* "asciidoctor.gemspec"
1236 (("`git ls-files -z`")
1237 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1238 #t))
1239 (add-after 'extract-gemspec 'strip-version-requirements
1240 (lambda _
1241 (delete-file "Gemfile")
1242 (substitute* "asciidoctor.gemspec"
1243 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1244 (string-append stripped "\n")))
1245 #t)))))
1246 (native-inputs
1247 `(("ruby-erubis" ,ruby-erubis)
1248 ("ruby-minitest" ,ruby-minitest)
1249 ("ruby-nokogiri" ,ruby-nokogiri)
1250 ("ruby-asciimath" ,ruby-asciimath)
1251 ("ruby-coderay" ,ruby-coderay)
1252 ("ruby-cucumber" ,ruby-cucumber)
1253 ("ruby-haml" ,ruby-haml)
1254 ("ruby-rouge" ,ruby-rouge)
1255 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1256 ("ruby-simplecov" ,ruby-simplecov)
1257 ("ruby-slim" ,ruby-slim)
1258 ("ruby-tilt" ,ruby-tilt)))
1259 (synopsis "Converter from AsciiDoc content to other formats")
1260 (description "Asciidoctor is a text processor and publishing toolchain for
1261 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1262 formats.")
1263 (home-page "https://asciidoctor.org")
1264 (license license:expat)))
1265
1266 (define-public ruby-prawn-icon
1267 (package
1268 (name "ruby-prawn-icon")
1269 (version "2.5.0")
1270 (source
1271 (origin
1272 (method url-fetch)
1273 (uri (rubygems-uri "prawn-icon" version))
1274 (sha256
1275 (base32
1276 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1277 (build-system ruby-build-system)
1278 (arguments
1279 `(#:test-target "spec"
1280 #:phases (modify-phases %standard-phases
1281 (add-after 'unpack 'remove-unnecessary-dependencies
1282 (lambda _
1283 (substitute* '("Rakefile" "spec/spec_helper.rb")
1284 ((".*[Bb]undler.*") "")
1285 (("^require 'rubocop.*") "")
1286 (("^RuboCop.*") ""))
1287 #t)))))
1288 (native-inputs
1289 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1290 ("ruby-pdf-reader" ,ruby-pdf-reader)
1291 ("ruby-rspec" ,ruby-rspec)
1292 ("ruby-simplecov" ,ruby-simplecov)))
1293 (propagated-inputs
1294 `(("ruby-prawn" ,ruby-prawn)))
1295 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1296 (description "@code{Prawn::Icon} provides various icon fonts including
1297 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1298 toolkit.")
1299 (home-page "https://github.com/jessedoyle/prawn-icon/")
1300 (license %prawn-project-licenses)))
1301
1302 (define-public ruby-css-parser
1303 (package
1304 (name "ruby-css-parser")
1305 (version "1.7.1")
1306 (source
1307 (origin
1308 (method url-fetch)
1309 (uri (rubygems-uri "css_parser" version))
1310 (sha256
1311 (base32
1312 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1313 (build-system ruby-build-system)
1314 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1315 (propagated-inputs
1316 `(("ruby-addressable" ,ruby-addressable)))
1317 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1318 (description "This package allows loading, parsing and cascading Cascading
1319 Style Sheets (CSS) rule sets in Ruby.")
1320 (home-page "https://github.com/premailer/css_parser")
1321 (license license:expat)))
1322
1323 (define-public ruby-prawn-svg
1324 (package
1325 (name "ruby-prawn-svg")
1326 (version "0.30.0")
1327 (source
1328 (origin
1329 (method url-fetch)
1330 (uri (rubygems-uri "prawn-svg" version))
1331 (sha256
1332 (base32
1333 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1334 (build-system ruby-build-system)
1335 (arguments
1336 `(#:phases (modify-phases %standard-phases
1337 (add-after 'unpack 'do-not-use-bundler
1338 (lambda _
1339 (substitute* "spec/spec_helper.rb"
1340 ((".*[Bb]undler.*") ""))
1341 #t))
1342 (replace 'check
1343 (lambda* (#:key tests? #:allow-other-keys)
1344 (when tests?
1345 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1346 #t)))))
1347 (native-inputs
1348 `(("ruby-rspec" ,ruby-rspec)))
1349 (propagated-inputs
1350 `(("ruby-css-parser" ,ruby-css-parser)
1351 ("ruby-prawn" ,ruby-prawn)))
1352 (synopsis "SVG renderer for the Prawn PDF library")
1353 (description "This library allows rendering Scalable Vector Graphics (SVG)
1354 graphics directly into a Portable Document Format (PDF) document using the
1355 Prawn module.")
1356 (home-page "https://github.com/mogest/prawn-svg")
1357 (license license:expat)))
1358
1359 (define-public ruby-prawn-templates
1360 (package
1361 (name "ruby-prawn-templates")
1362 (version "0.1.2")
1363 (source
1364 (origin
1365 (method git-fetch)
1366 (uri (git-reference
1367 (url "https://github.com/prawnpdf/prawn-templates")
1368 (commit version)))
1369 (file-name (git-file-name name version))
1370 (sha256
1371 (base32
1372 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1373 (build-system ruby-build-system)
1374 (arguments
1375 `(#:phases (modify-phases %standard-phases
1376 (add-after 'unpack 'do-not-use-bundler
1377 (lambda _
1378 (substitute* "spec/spec_helper.rb"
1379 ((".*[Bb]undler.*") ""))
1380 #t))
1381 (replace 'check
1382 (lambda* (#:key tests? #:allow-other-keys)
1383 (when tests?
1384 (invoke "rspec"))
1385 #t)))))
1386 (native-inputs
1387 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1388 ("ruby-rspec" ,ruby-rspec)))
1389 (propagated-inputs
1390 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1391 ("ruby-prawn" ,ruby-prawn)))
1392 (synopsis "Prawn extension to include or combine PDF documents")
1393 (description "This @strong{unmaintained} package provides a Prawn
1394 extension that allows including other Portable Document Format (PDF) documents
1395 as background or combining several PDF documents into one. This functionality
1396 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1397 of its many longstanding issues.")
1398 (home-page "https://github.com/prawnpdf/prawn-templates")
1399 (license %prawn-project-licenses)))
1400
1401 (define-public ruby-polyglot
1402 (package
1403 (name "ruby-polyglot")
1404 (version "0.3.5")
1405 (source
1406 (origin
1407 (method url-fetch)
1408 (uri (rubygems-uri "polyglot" version))
1409 (sha256
1410 (base32
1411 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1412 (build-system ruby-build-system)
1413 (arguments `(#:tests? #f)) ;no test suite
1414 (synopsis "Augment @code{require} to load non-Ruby file types")
1415 (description "The Polyglot library allows a Ruby module to register a
1416 loader for the file type associated with a filename extension, and it augments
1417 @code{require} to find and load matching files.")
1418 (home-page "https://github.com/cjheath/polyglot")
1419 (license license:expat)))
1420
1421 (define-public ruby-treetop
1422 (package
1423 (name "ruby-treetop")
1424 (version "1.6.10")
1425 (source
1426 (origin
1427 (method git-fetch) ;no test suite in distributed gem
1428 (uri (git-reference
1429 (url "https://github.com/cjheath/treetop")
1430 (commit (string-append "v" version))))
1431 (file-name (git-file-name name version))
1432 (sha256
1433 (base32
1434 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1435 (build-system ruby-build-system)
1436 (arguments
1437 `(#:test-target "spec"
1438 #:phases
1439 (modify-phases %standard-phases
1440 (replace 'replace-git-ls-files
1441 (lambda _
1442 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1443 ;; git ls-files output is merged in ruby-build-system.
1444 (substitute* "treetop.gemspec"
1445 (("`git ls-files -z`")
1446 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1447 #t)))))
1448 (native-inputs
1449 `(("ruby-activesupport" ,ruby-activesupport)
1450 ("ruby-rr" ,ruby-rr)
1451 ("ruby-rspec" ,ruby-rspec)))
1452 (propagated-inputs
1453 `(("ruby-polyglot" ,ruby-polyglot)))
1454 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1455 (description "This package provides a Ruby-based Parsing Expression
1456 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1457 (home-page "https://github.com/cjheath/treetop")
1458 (license license:expat)))
1459
1460 (define-public ruby-rubocop-performance
1461 (package
1462 (name "ruby-rubocop-performance")
1463 (version "1.7.1")
1464 (source
1465 (origin
1466 (method url-fetch)
1467 (uri (rubygems-uri "rubocop-performance" version))
1468 (sha256
1469 (base32
1470 "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
1471 (build-system ruby-build-system)
1472 (arguments
1473 `(#:tests? #f)) ;no test suite in the distributed gem
1474 (propagated-inputs
1475 `(("ruby-rubocop" ,ruby-rubocop)))
1476 (synopsis "Performance optimizations checkers for Ruby code")
1477 (description "This package provides a collection of RuboCop cops to check
1478 for performance optimizations in Ruby code.")
1479 (home-page "https://docs.rubocop.org/rubocop-performance/")
1480 (license license:expat)))
1481
1482 (define-public ruby-gimme
1483 (let ((revision "1")
1484 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1485 (package
1486 (name "ruby-gimme")
1487 (version (git-version "0.5.0" revision commit))
1488 (source
1489 (origin
1490 (method git-fetch)
1491 (uri (git-reference
1492 (url "https://github.com/searls/gimme")
1493 (commit commit)))
1494 (file-name (git-file-name name version))
1495 (sha256
1496 (base32
1497 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1498 (build-system ruby-build-system)
1499 (native-inputs
1500 `(("ruby-coveralls" ,ruby-coveralls)
1501 ("ruby-cucumber" ,ruby-cucumber)
1502 ("ruby-pry" ,ruby-pry)
1503 ("ruby-simplecov" ,ruby-simplecov)
1504 ("ruby-rspec-given" ,ruby-rspec-given)))
1505 (arguments
1506 `(;; The cucumber task fails with error: "index 3 out of matches
1507 ;; (IndexError)", apparently due to our newer Cucumber version.
1508 ;; TODO: Try the "default" task with a future release.
1509 #:test-target "spec"
1510 #:phases
1511 (modify-phases %standard-phases
1512 (add-after 'extract-gemspec 'prepare-for-tests
1513 (lambda _
1514 ;; Delete failing tests (possibly due to our newer rspec
1515 ;; version).
1516 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1517 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1518 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1519 ;; Fix duplicate version requirements and de-register files.
1520 (delete-file "Gemfile")
1521 (delete-file "Gemfile.lock")
1522 (substitute* "gimme.gemspec"
1523 ((".*\"Gemfile\".*") "")
1524 ((".*\"Gemfile\\.lock\",.*") "")
1525 ((".*(rspec|cucumber).*\">= 0\".*") "")
1526 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1527 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1528 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1529 ;; All of these gems relate to development, and are
1530 ;; unnecessary when running the tests.
1531 ((".*(add|gem).*guard-.*") "")
1532 ((".*(add|gem).*jeweler.*") "")
1533 ((".*(add|gem).*pry.*") "")
1534 ((".*(add|gem).*growl.*") "")
1535 ((".*(add|gem).*rb-fsevent.*") ""))
1536 #t)))))
1537 (synopsis "Lightweight test double library for Ruby")
1538 (description "Gimme is a very lightweight test double library for Ruby,
1539 based on Mockito (a mocking framework for Java). It is an opinionated (but
1540 not noisy) means to facilitate test-driving by enabling the authors to specify
1541 only what they care about.")
1542 (home-page "https://github.com/searls/gimme")
1543 (license license:expat))))
1544
1545 (define-public ruby-standard
1546 (package
1547 (name "ruby-standard")
1548 (version "0.4.7")
1549 (source
1550 (origin
1551 (method git-fetch) ;no test suite in distributed gem
1552 (uri (git-reference
1553 (url "https://github.com/testdouble/standard")
1554 (commit (string-append "v" version))))
1555 (file-name (git-file-name name version))
1556 (sha256
1557 (base32
1558 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1559 (build-system ruby-build-system)
1560 (arguments
1561 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1562 `(#:tests? #f
1563 #:phases
1564 (modify-phases %standard-phases
1565 (add-after 'unpack 'relax-version-requiremens
1566 (lambda _
1567 (delete-file "Gemfile")
1568 (delete-file "Gemfile.lock")
1569 #t))
1570 (replace 'replace-git-ls-files
1571 (lambda _
1572 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1573 ;; git ls-files output is merged in ruby-build-system.
1574 (substitute* "standard.gemspec"
1575 (("`git ls-files -z`")
1576 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1577 |sort -z|cut -zc3-`"))
1578 #t)))))
1579 (native-inputs
1580 `(("ruby-gimme" ,ruby-gimme)
1581 ("ruby-pry" ,ruby-pry)
1582 ("ruby-simplecov" ,ruby-simplecov)))
1583 (propagated-inputs
1584 `(("ruby-rubocop" ,ruby-rubocop)
1585 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1586 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1587 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1588 to save time in the following ways:
1589 @itemize
1590 @item No configuration.
1591 @item Automatically format code.
1592 @item Catch style issues and programmer errors early.
1593 @end itemize")
1594 (home-page "https://github.com/testdouble/standard")
1595 (license license:expat)))
1596
1597 (define-public ruby-chunky-png
1598 (package
1599 (name "ruby-chunky-png")
1600 (version "1.3.14")
1601 (source
1602 (origin
1603 (method git-fetch)
1604 (uri (git-reference
1605 (url "https://github.com/wvanbergen/chunky_png")
1606 (commit (string-append "v" version))))
1607 (file-name (git-file-name name version))
1608 (sha256
1609 (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h"))))
1610 (build-system ruby-build-system)
1611 (arguments
1612 `(#:test-target "spec"
1613 #:phases
1614 (modify-phases %standard-phases
1615 (add-after 'unpack 'disable-bundler
1616 (lambda _
1617 (substitute* (find-files "." "\\.rb$")
1618 (("require.*bundler/setup.*") ""))
1619 #t))
1620 (replace 'replace-git-ls-files
1621 (lambda _
1622 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1623 ;; git ls-files output is merged in ruby-build-system.
1624 (substitute* "chunky_png.gemspec"
1625 (("`git ls-files`")
1626 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1627 #t)))))
1628 (native-inputs
1629 `(("bundler" ,bundler)
1630 ("ruby-rspec" ,ruby-rspec)
1631 ("ruby-standard" ,ruby-standard)
1632 ("ruby-yard" ,ruby-yard)))
1633 (synopsis "Ruby library to handle PNG images")
1634 (description "ChunkyPNG is a pure Ruby library that can read and write
1635 Portable Network Graphics (PNG) images without depending on an external image
1636 library. It tries to be memory efficient and reasonably fast. It has
1637 features such as:
1638 @itemize
1639 @item
1640 Decoding support for any image that the PNG standard allows. This includes all
1641 standard color modes, all bit depths, all transparency, and interlacing and
1642 filtering options.
1643 @item
1644 Encoding support for images of all color modes (true color, grayscale, and
1645 indexed) and transparency for all these color modes. The best color mode is
1646 chosen automatically, based on the amount of used colors.
1647 @item Read/write access to the image's pixels.
1648 @item Read/write access to all image metadata that is stored in chunks.
1649 @item
1650 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1651 pixel, depending on the hardware).
1652 @item
1653 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1654 integer math and a highly optimized saving routine.
1655 @item Interoperability with RMagick.
1656 @end itemize
1657
1658 ChunkyPNG is vulnerable to decompression bombs and can run out of memory when
1659 loading a specifically crafted PNG file. This is hard to fix in pure Ruby.
1660 Deal with untrusted images in a separate process, e.g., by using @code{fork}
1661 or a background processing library.")
1662 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1663 (license license:expat)))
1664
1665 (define-public ruby-text-hyphen
1666 (package
1667 (name "ruby-text-hyphen")
1668 (version "1.4.1")
1669 (source
1670 (origin
1671 (method url-fetch)
1672 (uri (rubygems-uri "text-hyphen" version))
1673 (sha256
1674 (base32
1675 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1676 (build-system ruby-build-system)
1677 (native-inputs
1678 `(("ruby-hoe" ,ruby-hoe)))
1679 (synopsis "Ruby library to hyphenate words in various languages")
1680 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1681 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1682 properly hyphenate various words according to the rules of the language the
1683 word is written in. The algorithm is based on that of the TeX typesetting
1684 system by Donald E. Knuth.")
1685 (home-page "https://github.com/halostatue/text-hyphen")
1686 ;; The whole is licensed under the Expat license, but parts use various
1687 ;; versions of the LaTeX Project Public License.
1688 (license license:expat)))
1689
1690 (define-public ruby-open-uri-cached
1691 (package
1692 (name "ruby-open-uri-cached")
1693 (version "0.0.5")
1694 (source
1695 (origin
1696 (method url-fetch)
1697 (uri (rubygems-uri "open-uri-cached" version))
1698 (sha256
1699 (base32
1700 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1701 (build-system ruby-build-system)
1702 (arguments
1703 `(#:tests? #f)) ;no test suite
1704 (synopsis "OpenURI with transparent disk caching")
1705 (description "OpenURI with transparent disk caching, which is
1706 useful to avoid making excessive queries, for example when scraping
1707 web pages.")
1708 (home-page "https://github.com/tigris/open-uri-cached")
1709 (license license:expat)))
1710
1711 (define-public ruby-asciidoctor-pdf
1712 ;; Use the latest commit, as the last tag doesn't build with the
1713 ;; latest Ruby dependencies in Guix.
1714 (let ((revision "1")
1715 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1716 (package
1717 (name "ruby-asciidoctor-pdf")
1718 (version (git-version "1.5.3" revision commit))
1719 (source
1720 (origin
1721 (method git-fetch) ;no test suite in the distributed gem
1722 (uri (git-reference
1723 (url "https://github.com/asciidoctor/asciidoctor-pdf")
1724 (commit commit)))
1725 (file-name (git-file-name name version))
1726 (sha256
1727 (base32
1728 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1729 (build-system ruby-build-system)
1730 (arguments
1731 `(#:test-target "spec"
1732 #:phases
1733 (modify-phases %standard-phases
1734 (add-after 'unpack 'remove-failing-tests
1735 ;; Two tests module fail for unknown reasons, *only* when
1736 ;; ran in the build container (see:
1737 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1738 (lambda _
1739 (delete-file "spec/audio_spec.rb")
1740 (delete-file "spec/video_spec.rb")
1741 #t))
1742 (add-after 'extract-gemspec 'strip-version-requirements
1743 (lambda _
1744 (substitute* "asciidoctor-pdf.gemspec"
1745 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1746 (string-append stripped "\n")))
1747 #t))
1748 (replace 'replace-git-ls-files
1749 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1750 ;; git ls-files output is merged in ruby-build-system.
1751 (lambda _
1752 (substitute* "asciidoctor-pdf.gemspec"
1753 (("`git ls-files -z`")
1754 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1755 |sort -z|cut -zc3-`"))
1756 #t))
1757 ;; The tests rely on the Gem being installed, so move the check phase
1758 ;; after the install phase.
1759 (delete 'check)
1760 (add-after 'install 'check
1761 (lambda* (#:key outputs tests? #:allow-other-keys)
1762 (let ((new-gem (string-append (assoc-ref outputs "out")
1763 "/lib/ruby/vendor_ruby")))
1764 (setenv "GEM_PATH"
1765 (string-append (getenv "GEM_PATH") ":" new-gem))
1766 (when tests?
1767 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1768 #t))))))
1769 (native-inputs
1770 `(("ruby-chunky-png" ,ruby-chunky-png)
1771 ("ruby-coderay" ,ruby-coderay)
1772 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1773 ("ruby-rouge" ,ruby-rouge)
1774 ("ruby-rspec" ,ruby-rspec)))
1775 (propagated-inputs
1776 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1777 ("ruby-concurrent-ruby" ,ruby-concurrent)
1778 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1779 ("ruby-prawn" ,ruby-prawn)
1780 ("ruby-prawn-icon" ,ruby-prawn-icon)
1781 ("ruby-prawn-svg" ,ruby-prawn-svg)
1782 ("ruby-prawn-table" ,ruby-prawn-table)
1783 ("ruby-prawn-templates" ,ruby-prawn-templates)
1784 ("ruby-safe-yaml" ,ruby-safe-yaml)
1785 ("ruby-text-hyphen" ,ruby-text-hyphen)
1786 ("ruby-thread-safe" ,ruby-thread-safe)
1787 ("ruby-treetop" ,ruby-treetop)
1788 ("ruby-ttfunk" ,ruby-ttfunk)))
1789 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1790 (description "Asciidoctor PDF is an extension for Asciidoctor that
1791 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1792 PDF library. It has features such as:
1793 @itemize
1794 @item Direct AsciiDoc to PDF conversion
1795 @item Configuration-driven theme (style and layout)
1796 @item Scalable Vector Graphics (SVG) support
1797 @item PDF document outline (i.e., bookmarks)
1798 @item Table of contents page(s)
1799 @item Document metadata (title, authors, subject, keywords, etc.)
1800 @item Internal cross reference links
1801 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1802 @item Page numbering
1803 @item Customizable running content (header and footer)
1804 @item
1805 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1806 @item Orphaned section titles avoided
1807 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1808 @item Table border settings honored
1809 @item Font-based icons
1810 @item Custom TrueType (TTF) fonts
1811 @item Double-sided printing mode (margins alternate on recto and verso pages)
1812 @end itemize")
1813 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1814 (license license:expat))))
1815
1816 (define-public ruby-ast
1817 (package
1818 (name "ruby-ast")
1819 (version "2.4.1")
1820 (source
1821 (origin
1822 (method git-fetch) ;no test included in gem from v2.4.1
1823 (uri (git-reference
1824 (url "https://github.com/whitequark/ast")
1825 (commit (string-append "v" version))))
1826 (file-name (git-file-name name version))
1827 (sha256
1828 (base32
1829 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1830 (build-system ruby-build-system)
1831 (arguments
1832 '(#:phases
1833 (modify-phases %standard-phases
1834 (add-after 'unpack 'remove-coveralls-requirement
1835 (lambda _
1836 (substitute* "test/helper.rb"
1837 (("require 'coveralls'") "")
1838 (("Coveralls::SimpleCov::Formatter") ""))
1839 #t))
1840 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1841 (lambda _
1842 (substitute* "ast.gemspec"
1843 ((".*coveralls.*") "\n")
1844 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1845 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1846 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1847 #t)))))
1848 (native-inputs
1849 `(("bundler" ,bundler)
1850 ("ruby-simplecov" ,ruby-simplecov)
1851 ("ruby-json-pure" ,ruby-json-pure)
1852 ("ruby-mime-times" ,ruby-mime-types)
1853 ("ruby-yard" ,ruby-yard)
1854 ("ruby-kramdown" ,ruby-kramdown)
1855 ("ruby-rest-client" ,ruby-rest-client)
1856 ("ruby-bacon" ,ruby-bacon)
1857 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1858 ("ruby-racc" ,ruby-racc)))
1859 (synopsis "Library for working with Abstract Syntax Trees")
1860 (description
1861 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1862 It does this through immutable data structures.")
1863 (home-page "https://whitequark.github.io/ast/")
1864 (license license:expat)))
1865
1866 (define-public ruby-sporkmonger-rack-mount
1867 ;; Testing the addressable gem requires a newer commit than that released, so
1868 ;; use an up to date version.
1869 (let ((revision "1")
1870 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1871 (package
1872 (name "ruby-sporkmonger-rack-mount")
1873 (version (git-version "0.8.3" revision commit))
1874 (source (origin
1875 (method git-fetch)
1876 (uri (git-reference
1877 (url "https://github.com/sporkmonger/rack-mount")
1878 (commit commit)))
1879 (file-name (git-file-name name version))
1880 (sha256
1881 (base32
1882 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1883 (build-system ruby-build-system)
1884 (arguments
1885 ;; Tests currently fail so disable them.
1886 ;; https://github.com/sporkmonger/rack-mount/pull/1
1887 `(#:tests? #f))
1888 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1889 (synopsis "Stackable dynamic tree based Rack router")
1890 (description
1891 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1892 continue trying routes if the response returns pass. This allows multiple
1893 routes to be nested or stacked on top of each other.")
1894 (home-page "https://github.com/sporkmonger/rack-mount")
1895 (license license:expat))))
1896
1897 (define-public ruby-ci-reporter
1898 (package
1899 (name "ruby-ci-reporter")
1900 (version "2.0.0")
1901 (source (origin
1902 (method url-fetch)
1903 (uri (rubygems-uri "ci_reporter" version))
1904 (sha256
1905 (base32
1906 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1907 (build-system ruby-build-system)
1908 (arguments
1909 `(#:test-target "rspec"))
1910 (propagated-inputs
1911 `(("ruby-builder" ,ruby-builder)))
1912 (native-inputs
1913 `(("bundler" ,bundler)
1914 ("ruby-rspec" ,ruby-rspec)))
1915 (synopsis "Generate XML reports of runs test")
1916 (description
1917 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1918 you to generate XML reports of your test runs. The resulting files can be
1919 read by a continuous integration system that understands Ant's JUnit report
1920 format.")
1921 (home-page "https://github.com/nicksieger/ci_reporter")
1922 (license license:expat)))
1923
1924 (define-public ruby-contracts
1925 (package
1926 (name "ruby-contracts")
1927 (version "0.16.0")
1928 (source
1929 (origin
1930 (method url-fetch)
1931 (uri (rubygems-uri "contracts" version))
1932 (sha256
1933 (base32
1934 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1935 (build-system ruby-build-system)
1936 (arguments
1937 '(#:test-target "spec"
1938 #:phases
1939 (modify-phases %standard-phases
1940 ;; Don't run or require rubocop, the code linting tool, as this is a
1941 ;; bit unnecessary.
1942 (add-after 'unpack 'dont-run-rubocop
1943 (lambda _
1944 (substitute* "Rakefile"
1945 ((".*rubocop.*") "")
1946 ((".*RuboCop.*") ""))
1947 #t)))))
1948 (native-inputs
1949 `(("ruby-rspec" ,ruby-rspec)))
1950 (synopsis "Method contracts for Ruby")
1951 (description
1952 "This library provides contracts for Ruby. A contract describes the
1953 correct inputs and output for a method, and will raise an error if a incorrect
1954 value is found.")
1955 (home-page "https://github.com/egonSchiele/contracts.ruby")
1956 (license license:bsd-2)))
1957
1958 (define-public ruby-crack
1959 (package
1960 (name "ruby-crack")
1961 (version "0.4.3")
1962 (source
1963 (origin
1964 (method url-fetch)
1965 (uri (rubygems-uri "crack" version))
1966 (sha256
1967 (base32
1968 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1969 (build-system ruby-build-system)
1970 (arguments
1971 `(#:phases
1972 (modify-phases %standard-phases
1973 (replace 'check
1974 (lambda* (#:key tests? #:allow-other-keys)
1975 (when tests?
1976 (for-each (lambda (file)
1977 (display file)(display "\n")
1978 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1979 (find-files "test" ".*rb$")))
1980 #t)))))
1981 (propagated-inputs
1982 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1983 (synopsis "Simple JSON and XML parsing for Ruby")
1984 (description
1985 "@code{crack} provides really simple JSON and XML parsing, extracted from
1986 code in Merb and Rails.")
1987 (home-page "https://github.com/jnunemaker/crack")
1988 (license license:expat)))
1989
1990 (define-public ruby-cliver
1991 (package
1992 (name "ruby-cliver")
1993 (version "0.3.2")
1994 (source
1995 (origin
1996 (method url-fetch)
1997 (uri (rubygems-uri "cliver" version))
1998 (sha256
1999 (base32
2000 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
2001 (build-system ruby-build-system)
2002 (arguments
2003 '(#:phases
2004 (modify-phases %standard-phases
2005 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
2006 ;; would be nice, but the tests look to be incompatible:
2007 ;;
2008 ;; NoMethodError: undefined method `last_comment'
2009 (replace 'check
2010 (lambda* (#:key tests? #:allow-other-keys)
2011 (when tests?
2012 (invoke "rspec"))
2013 #t)))))
2014 (native-inputs
2015 `(("bundler" ,bundler)
2016 ("ruby-rspec" ,ruby-rspec-2)))
2017 (synopsis "Assertions for command-line dependencies in Ruby")
2018 (description
2019 "@code{cliver} provides a way to detect missing command-line
2020 dependencies, including versions.")
2021 (home-page "https://github.com/yaauie/cliver")
2022 (license license:expat)))
2023
2024 (define-public ruby-czmq-ffi-gen
2025 (package
2026 (name "ruby-czmq-ffi-gen")
2027 (version "0.13.0")
2028 (source
2029 (origin
2030 (method url-fetch)
2031 (uri (rubygems-uri "czmq-ffi-gen" version))
2032 (sha256
2033 (base32
2034 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2035 (build-system ruby-build-system)
2036 (arguments
2037 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2038 #:phases
2039 (modify-phases %standard-phases
2040 (add-after 'unpack 'patch-lib_dirs
2041 (lambda* (#:key inputs #:allow-other-keys)
2042 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2043 (("lib\\_dirs = \\[.*\\]")
2044 (string-append "lib_dirs = ['"
2045 (assoc-ref inputs "czmq") "/lib"
2046 "']")))
2047 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2048 (("lib\\_dirs = \\[.*\\]")
2049 (string-append "lib_dirs = ['"
2050 (assoc-ref inputs "zeromq") "/lib"
2051 "']"))))))))
2052 (inputs
2053 `(("zeromq" ,zeromq)
2054 ("czmq" ,czmq)))
2055 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2056 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2057 (description
2058 "These Ruby bindings are not intended to be directly used, but rather
2059 used by higher level bindings like those provided by CZTop.")
2060 (home-page
2061 "https://github.com/paddor/czmq-ffi-gen")
2062 (license license:isc)))
2063
2064 (define-public ruby-cztop
2065 (package
2066 (name "ruby-cztop")
2067 (version "0.12.2")
2068 (source
2069 (origin
2070 (method url-fetch)
2071 (uri (rubygems-uri "cztop" version))
2072 (sha256
2073 (base32
2074 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2075 (build-system ruby-build-system)
2076 (arguments
2077 '(#:test-target "spec"
2078 #:phases
2079 (modify-phases %standard-phases
2080 (add-after 'unpack 'patch-lib_paths
2081 (lambda* (#:key inputs #:allow-other-keys)
2082 (substitute* "lib/cztop/poller/zmq.rb"
2083 (("lib\\_paths = \\[.*\\]")
2084 (string-append "lib_paths = ['"
2085 (assoc-ref inputs "zeromq") "/lib"
2086 "']"))))))))
2087 (native-inputs
2088 `(("bundler" ,bundler)
2089 ("ruby-rspec" ,ruby-rspec)))
2090 (inputs
2091 `(("zeromq" ,zeromq)))
2092 (propagated-inputs
2093 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2094 (synopsis "CZMQ Ruby bindings")
2095 (description
2096 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2097 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2098 support for security mechanisms.")
2099 (home-page "https://github.com/paddor/cztop")
2100 (license license:isc)))
2101
2102 (define-public ruby-saikuro-treemap
2103 (package
2104 (name "ruby-saikuro-treemap")
2105 (version "0.2.0")
2106 (source (origin
2107 (method url-fetch)
2108 (uri (rubygems-uri "saikuro_treemap" version))
2109 (sha256
2110 (base32
2111 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2112 (build-system ruby-build-system)
2113 ;; Some of the tests fail because the generated JSON has keys in a
2114 ;; different order. This is a problem with the test suite rather than any
2115 ;; of the involved libraries.
2116 (arguments `(#:tests? #f))
2117 (propagated-inputs
2118 `(("ruby-json-pure" ,ruby-json-pure)
2119 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2120 (synopsis "Generate complexity treemap based on saikuro analysis")
2121 (description
2122 "This gem generates a treemap showing the complexity of Ruby code on
2123 which it is run. It uses Saikuro under the covers to analyze Ruby code
2124 complexity.")
2125 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2126 (license license:expat)))
2127
2128 (define-public ruby-oauth2
2129 (package
2130 (name "ruby-oauth2")
2131 (version "1.4.2")
2132 (source
2133 (origin
2134 (method url-fetch)
2135 (uri (rubygems-uri "oauth2" version))
2136 (sha256
2137 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2138 (build-system ruby-build-system)
2139 (arguments
2140 '(#:tests? #f)) ; no included tests
2141 (propagated-inputs
2142 `(("ruby-faraday" ,ruby-faraday)
2143 ("ruby-jwt" ,ruby-jwt)
2144 ("ruby-multi-json" ,ruby-multi-json)
2145 ("ruby-multi-xml" ,ruby-multi-xml)
2146 ("ruby-rack" ,ruby-rack)))
2147 (synopsis "Ruby wrapper for the OAuth 2.0")
2148 (description
2149 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2150 with a similar style to the original OAuth spec.")
2151 (home-page "https://github.com/oauth-xx/oauth2")
2152 (license license:expat)))
2153
2154 (define-public ruby-omniauth
2155 (package
2156 (name "ruby-omniauth")
2157 (version "1.9.1")
2158 (source
2159 (origin
2160 (method url-fetch)
2161 (uri (rubygems-uri "omniauth" version))
2162 (sha256
2163 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2164 (build-system ruby-build-system)
2165 (arguments
2166 '(#:tests? #f)) ; No included tests
2167 (propagated-inputs
2168 `(("ruby-hashie" ,ruby-hashie)
2169 ("ruby-rack" ,ruby-rack)))
2170 (synopsis "Generalized Rack framework for multiple-provider authentication")
2171 (description
2172 "This package provides a generalized Rack framework for multiple-provider
2173 authentication.")
2174 (home-page "https://github.com/omniauth/omniauth")
2175 (license license:expat)))
2176
2177 (define-public ruby-omniauth-oauth2
2178 (package
2179 (name "ruby-omniauth-oauth2")
2180 (version "1.6.0")
2181 (source
2182 (origin
2183 (method url-fetch)
2184 (uri (rubygems-uri "omniauth-oauth2" version))
2185 (sha256
2186 (base32
2187 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2188 (build-system ruby-build-system)
2189 (arguments
2190 '(#:phases
2191 (modify-phases %standard-phases
2192 (add-after 'unpack 'remove-unnecessary-dependencies
2193 (lambda _
2194 ;; The coveralls gem submits coverage information to an online
2195 ;; service, and is unnecessary when running the tests
2196 (substitute* "Gemfile"
2197 ((".*coveralls\"") ""))
2198 (substitute* "spec/helper.rb"
2199 (("require \"coveralls\"") "")
2200 (("Coveralls::SimpleCov::Formatter") ""))
2201 #t)))))
2202 (propagated-inputs
2203 `(("ruby-oauth2" ,ruby-oauth2)
2204 ("ruby-omniauth" ,ruby-omniauth)))
2205 (native-inputs
2206 `(("bundler" ,bundler)
2207 ("ruby-rspec" ,ruby-rspec)
2208 ("ruby-simplecov" ,ruby-simplecov)
2209 ("ruby-rack-test" ,ruby-rack-test)
2210 ("ruby-webmock" ,ruby-webmock-2)))
2211 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2212 (description
2213 "This library provides a generic OAuth2 strategy for OmniAuth. It
2214 doesn't provide a way to gather user information, so should be used as a
2215 building block for authentication strategies.")
2216 (home-page "https://github.com/omniauth/omniauth-oauth2")
2217 (license license:expat)))
2218
2219 (define-public ruby-open4
2220 (package
2221 (name "ruby-open4")
2222 (version "1.3.4")
2223 (source
2224 (origin
2225 (method url-fetch)
2226 (uri (rubygems-uri "open4" version))
2227 (sha256
2228 (base32
2229 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2230 (build-system ruby-build-system)
2231 (arguments
2232 '(#:phases
2233 (modify-phases %standard-phases
2234 (add-after 'unpack 'patch
2235 (lambda _
2236 (substitute* "rakefile"
2237 ;; Update the Rakefile so it works
2238 (("-rubygems") "-rrubygems")
2239 (("Config") "RbConfig"))
2240 #t))
2241 (add-before 'check 'set-LIB
2242 (lambda _
2243 ;; This is used in the rakefile when running the tests
2244 (setenv "LIB" "open4")
2245 #t)))))
2246 (synopsis "Open child processes from Ruby and manage them easily")
2247 (description
2248 "@code{Open4} is a Ruby library to run child processes and manage their
2249 input and output.")
2250 (home-page "https://github.com/ahoward/open4")
2251 (license license:ruby)))
2252
2253 (define-public ruby-options
2254 (package
2255 (name "ruby-options")
2256 (version "2.3.2")
2257 (source
2258 (origin
2259 (method url-fetch)
2260 (uri (rubygems-uri "options" version))
2261 (sha256
2262 (base32
2263 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2264 (build-system ruby-build-system)
2265 (arguments
2266 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2267 #:phases
2268 (modify-phases %standard-phases
2269 (add-before 'check 'set-LIB
2270 (lambda _
2271 ;; This is used in the Rakefile, and setting it avoids an issue
2272 ;; with running the tests.
2273 (setenv "LIB" "options")
2274 #t)))))
2275 (synopsis "Ruby library to parse options from *args cleanly")
2276 (description
2277 "The @code{options} library helps with parsing keyword options in Ruby
2278 functions.")
2279 (home-page "https://github.com/ahoward/options")
2280 (license license:ruby)))
2281
2282 (define-public ruby-erubi
2283 (package
2284 (name "ruby-erubi")
2285 (version "1.8.0")
2286 (source
2287 (origin
2288 (method url-fetch)
2289 (uri (rubygems-uri "erubi" version))
2290 (sha256
2291 (base32
2292 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2293 (build-system ruby-build-system)
2294 (synopsis "ERB template engine for Ruby")
2295 (description
2296 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2297 Erubis")
2298 (home-page "https://github.com/jeremyevans/erubi")
2299 (license license:expat)))
2300
2301 (define-public ruby-erubis
2302 (package
2303 (name "ruby-erubis")
2304 (version "2.7.0")
2305 (source
2306 (origin
2307 (method url-fetch)
2308 (uri (rubygems-uri "erubis" version))
2309 (sha256
2310 (base32
2311 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2312 (build-system ruby-build-system)
2313 (arguments
2314 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2315 (synopsis "Implementation of embedded Ruby (eRuby)")
2316 (description
2317 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2318 features such as multi-language support, auto escaping, auto trimming spaces
2319 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2320 support.")
2321 (home-page "http://www.kuwata-lab.com/erubis/")
2322 (license license:expat)))
2323
2324 (define-public ruby-execjs
2325 (package
2326 (name "ruby-execjs")
2327 (version "2.7.0")
2328 (source
2329 (origin
2330 ;; fetch from github as the gem does not contain testing code
2331 (method git-fetch)
2332 (uri (git-reference
2333 (url "https://github.com/rails/execjs")
2334 (commit (string-append "v" version))))
2335 (file-name (git-file-name name version))
2336 (sha256
2337 (base32
2338 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2339 (build-system ruby-build-system)
2340 (native-inputs
2341 `(("bundler" ,bundler)
2342 ;; The test suite tests all the available backends. Currenly, this just
2343 ;; means the node backend.
2344 ;;
2345 ;; PASSED: test:node
2346 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2347 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2348 ("node" ,node)))
2349 (synopsis "Run JavaScript code from Ruby")
2350 (description
2351 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2352 runtime to evaluate your JavaScript program, then returns the result to you as
2353 a Ruby object.")
2354 (home-page "https://github.com/rails/execjs")
2355 (license license:expat)))
2356
2357 (define-public ruby-fakefs
2358 (package
2359 (name "ruby-fakefs")
2360 (version "1.2.2")
2361 (home-page "https://github.com/fakefs/fakefs")
2362 (source (origin
2363 ;; The Rubygems release does not contain tests.
2364 (method git-fetch)
2365 (uri (git-reference
2366 (url home-page)
2367 (commit (string-append "v" version))))
2368 (file-name (git-file-name name version))
2369 (sha256
2370 (base32
2371 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2372 (build-system ruby-build-system)
2373 (arguments
2374 '(#:phases (modify-phases %standard-phases
2375 (replace 'replace-git-ls-files
2376 (lambda _
2377 (substitute* "fakefs.gemspec"
2378 (("`git ls-files lib README.md LICENSE`")
2379 "`find lib README.md LICENSE -type f | sort`"))
2380 #t))
2381 (add-before 'check 'remove-version-constraints
2382 (lambda _
2383 ;; Drop hard version requirements for test dependencies.
2384 (substitute* "fakefs.gemspec"
2385 (("(.*add_development_dependency .*), .*" _ dep)
2386 (string-append dep "\n")))
2387 #t)))))
2388 (native-inputs
2389 `(("ruby-bump" ,ruby-bump)
2390 ("ruby-maxitest" ,ruby-maxitest)
2391 ("ruby-rubocop" ,ruby-rubocop)
2392 ("ruby-rspec" ,ruby-rspec)))
2393 (synopsis "Fake file system for Ruby")
2394 (description
2395 "This package provides a fake file system for use in test suites. It
2396 avoids the need for manually creating temporary directories, or dealing
2397 with platform intricacies in @code{File} and @code{FileUtils}.")
2398 (license license:expat)))
2399
2400 (define-public ruby-orderedhash
2401 (package
2402 (name "ruby-orderedhash")
2403 (version "0.0.6")
2404 (source (origin
2405 (method url-fetch)
2406 (uri (rubygems-uri "orderedhash" version))
2407 (sha256
2408 (base32
2409 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2410 (build-system ruby-build-system)
2411 (arguments
2412 '(#:tests? #f)) ; no test suite
2413 (synopsis "Ruby library providing an order-preserving hash")
2414 (description "Orderedhash is a Ruby library providing a hash
2415 implementation that preserves the order of items and features some array-like
2416 extensions.")
2417 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2418 (license license:public-domain)))
2419
2420 (define-public ruby-libxml
2421 (package
2422 (name "ruby-libxml")
2423 (version "3.0.0")
2424 (source
2425 (origin
2426 (method url-fetch)
2427 (uri (rubygems-uri "libxml-ruby" version))
2428 (sha256
2429 (base32
2430 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2431 (build-system ruby-build-system)
2432 (inputs
2433 `(("zlib" ,zlib)
2434 ("libxml2" ,libxml2)))
2435 (arguments
2436 '(#:tests? #f ; test suite hangs for unknown reason
2437 #:gem-flags
2438 (list "--no-document" ; TODO: Re-enable when documentation
2439 ; generation works
2440 "--"
2441 (string-append "--with-xml2-include="
2442 (assoc-ref %build-inputs "libxml2")
2443 "/include/libxml2" ))))
2444 (synopsis "Ruby bindings for GNOME Libxml2")
2445 (description "The Libxml-Ruby project provides Ruby language bindings for
2446 the GNOME Libxml2 XML toolkit.")
2447 (home-page "https://xml4r.github.com/libxml-ruby")
2448 (license license:expat)))
2449
2450 (define-public ruby-lino
2451 (package
2452 (name "ruby-lino")
2453 (version "1.1.0")
2454 (source
2455 (origin
2456 (method url-fetch)
2457 (uri (rubygems-uri "lino" version))
2458 (sha256
2459 (base32
2460 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2461 (build-system ruby-build-system)
2462 (arguments
2463 '(#:tests? #f)) ; No included tests
2464 (propagated-inputs
2465 `(("ruby-hamster" ,ruby-hamster)
2466 ("ruby-open4" ,ruby-open4)))
2467 (synopsis "Build and execute commands in Ruby")
2468 (description
2469 "@code{Lino} provides an interface to run external commands. It provides
2470 an interface to add options as well as managing the standard input, output and
2471 error streams.")
2472 (home-page "https://github.com/tobyclemson/lino")
2473 (license license:expat)))
2474
2475 (define-public ruby-xml-simple
2476 (package
2477 (name "ruby-xml-simple")
2478 (version "1.1.5")
2479 (source (origin
2480 (method url-fetch)
2481 (uri (rubygems-uri "xml-simple" version))
2482 (sha256
2483 (base32
2484 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2485 (build-system ruby-build-system)
2486 (arguments
2487 '(#:tests? #f)) ; no test suite
2488 (synopsis "Simple Ruby library for XML processing")
2489 (description "This library provides a simple API for XML processing in
2490 Ruby.")
2491 (home-page "https://github.com/maik/xml-simple")
2492 (license license:ruby)))
2493
2494 (define-public ruby-thor
2495 (package
2496 (name "ruby-thor")
2497 (version "1.0.1")
2498 (source (origin
2499 ;; Pull from git because the gem has no tests.
2500 (method git-fetch)
2501 (uri (git-reference
2502 (url "https://github.com/erikhuda/thor")
2503 (commit (string-append "v" version))))
2504 (file-name (git-file-name name version))
2505 (sha256
2506 (base32
2507 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2508 (build-system ruby-build-system)
2509 (arguments
2510 '(#:phases (modify-phases %standard-phases
2511 (add-after 'unpack 'fix-readline-tests
2512 (lambda _
2513 ;; Ensure Readline is initialized before running the
2514 ;; test to avoid a type clash with the mock ::Readline.
2515 ;; See <https://github.com/erikhuda/thor/pull/717>.
2516 (substitute* "spec/line_editor/readline_spec.rb"
2517 (("unless defined\\? ::Readline" all)
2518 (string-append "Thor::LineEditor::Readline.available?\n"
2519 all)))
2520 #t))
2521 (add-after 'unpack 'remove-coveralls-dependency
2522 (lambda _
2523 ;; Do not hook the test suite into the online
2524 ;; coveralls service.
2525 (substitute* "Gemfile"
2526 ((".*coveralls.*") ""))
2527 (substitute* "spec/helper.rb"
2528 (("require \"coveralls\"") "")
2529 (("Coveralls::SimpleCov::Formatter") "")
2530 ;; Also drop the WebMock dependency which is only
2531 ;; present to allow a coveralls.io connection, and
2532 ;; would otherwise introduce a circular dependency.
2533 (("require \"webmock/rspec\"") "")
2534 (("WebMock\\.disable_net_connect.*") ""))
2535 #t))
2536 (add-after 'unpack 'disable-network-tests
2537 (lambda _
2538 ;; These tests attempt to look up example.com.
2539 (substitute* "spec/actions/file_manipulation_spec.rb"
2540 (("it \"accepts (https?) remote sources" _ proto)
2541 (string-append "xit \"accepts " proto " remote sources")))
2542 #t))
2543 (add-after 'unpack 'disable-quality-tests
2544 (lambda _
2545 ;; These tests attempt to check the git repository for
2546 ;; tabs vs spaces, double vs single quotes, etc, and
2547 ;; depend on the git checkout.
2548 (delete-file "spec/quality_spec.rb")
2549 #t))
2550 (add-before 'check 'make-files-writable
2551 (lambda _
2552 ;; The tests needs rw access to the test suite.
2553 (for-each make-file-writable (find-files "spec"))
2554 #t))
2555 (replace 'check
2556 (lambda _
2557 (invoke "rspec" "spec"))))))
2558 (native-inputs
2559 `(("ruby-rspec" ,ruby-rspec)
2560 ("ruby-simplecov" ,ruby-simplecov)))
2561 (synopsis "Ruby toolkit for building command-line interfaces")
2562 (description "Thor is a toolkit for building powerful command-line
2563 interfaces.")
2564 (home-page "http://whatisthor.com/")
2565 (license license:expat)))
2566
2567 (define-public ruby-lumberjack
2568 (package
2569 (name "ruby-lumberjack")
2570 (version "1.0.13")
2571 (source (origin
2572 (method url-fetch)
2573 (uri (rubygems-uri "lumberjack" version))
2574 (sha256
2575 (base32
2576 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2577 (build-system ruby-build-system)
2578 (native-inputs
2579 `(("ruby-rspec" ,ruby-rspec)
2580 ("ruby-timecop" ,ruby-timecop)))
2581 (synopsis "Logging utility library for Ruby")
2582 (description "Lumberjack is a simple logging utility that can be a drop in
2583 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2584 for automatically rolling log files even with multiple processes writing the
2585 same log file.")
2586 (home-page "https://github.com/bdurand/lumberjack")
2587 (license license:expat)))
2588
2589 (define-public ruby-rbnacl
2590 (package
2591 (name "ruby-rbnacl")
2592 (version "6.0.1")
2593 (source
2594 (origin
2595 (method url-fetch)
2596 (uri (rubygems-uri "rbnacl" version))
2597 (sha256
2598 (base32
2599 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2600 (build-system ruby-build-system)
2601 (arguments
2602 `(#:phases
2603 (modify-phases %standard-phases
2604 (add-after 'unpack 'remove-unnecessary-dependencies
2605 (lambda _
2606 ;; Coveralls relates to a network service, and Rubocop to code
2607 ;; linting and both are unnecessary to run the tests
2608 (substitute* "Gemfile"
2609 ((".*rubocop.*") "\n")
2610 ((".*guard-rspec.*") "\n")
2611 ((".*coveralls.*") "\n"))
2612 (substitute* "spec/spec_helper.rb"
2613 (("require \"coveralls\"") "")
2614 (("Coveralls.wear!") ""))
2615 #t))
2616 (add-after 'unpack 'use-libsodium-from-store
2617 (lambda* (#:key inputs #:allow-other-keys)
2618 (substitute* '("lib/rbnacl/init.rb"
2619 "lib/rbnacl/sodium.rb")
2620 (("ffi_lib \\[.+\\]")
2621 (string-append "ffi_lib [\""
2622 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2623 "\"]")))
2624 #t))
2625 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2626 (replace 'check
2627 (lambda* (#:key tests? #:allow-other-keys)
2628 (when tests?
2629 (invoke "rspec"))
2630 #t)))))
2631 (propagated-inputs
2632 `(("ruby-ffi" ,ruby-ffi)))
2633 (inputs
2634 `(("libsodium" ,libsodium)))
2635 (native-inputs
2636 `(("bundler" ,bundler)
2637 ("ruby-rspec" ,ruby-rspec)))
2638 (synopsis "Ruby FFI binding to libsodium")
2639 (description
2640 "This package provides Ruby FFI bindings to the Networking and
2641 Cryptography (NaCl) library, also known as libsodium. This provides a
2642 high-level toolkit for building cryptographic systems and protocols.")
2643 (home-page "https://github.com/crypto-rb/rbnacl")
2644 (license license:expat)))
2645
2646 (define-public ruby-nenv
2647 (package
2648 (name "ruby-nenv")
2649 (version "0.3.0")
2650 (source (origin
2651 (method url-fetch)
2652 (uri (rubygems-uri "nenv" version))
2653 (sha256
2654 (base32
2655 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2656 (build-system ruby-build-system)
2657 (arguments
2658 `(#:tests? #f)) ; no tests included
2659 (native-inputs
2660 `(("ruby-rspec" ,ruby-rspec)
2661 ("bundler" ,bundler)))
2662 (synopsis "Ruby interface for modifying the environment")
2663 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2664 and inspect the environment.")
2665 (home-page "https://github.com/e2/nenv")
2666 (license license:expat)))
2667
2668 (define-public ruby-ptools
2669 (package
2670 (name "ruby-ptools")
2671 (version "1.3.5")
2672 (source (origin
2673 (method url-fetch)
2674 (uri (rubygems-uri "ptools" version))
2675 (sha256
2676 (base32
2677 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2678 (build-system ruby-build-system)
2679 (arguments
2680 '(#:phases (modify-phases %standard-phases
2681 (add-after 'unpack 'patch-/bin/ls
2682 (lambda _
2683 (substitute* "test/test_binary.rb"
2684 (("/bin/ls")
2685 (which "ls")))
2686 #t))
2687 (add-before 'install 'create-gem
2688 (lambda _
2689 ;; Do not attempt to sign the gem.
2690 (substitute* "Rakefile"
2691 (("spec\\.signing_key = .*")
2692 ""))
2693 (invoke "rake" "gem:create"))))))
2694 (synopsis "Extra methods for Ruby's @code{File} class")
2695 (description
2696 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2697 class with many additional methods modelled after common POSIX tools, such as
2698 @code{File.which} for finding executables, @code{File.tail} to print the last
2699 lines of a file, @code{File.wc} to count words, and so on.")
2700 (home-page "https://github.com/djberg96/ptools")
2701 (license license:artistic2.0)))
2702
2703 (define-public ruby-permutation
2704 (package
2705 (name "ruby-permutation")
2706 (version "0.1.8")
2707 (source (origin
2708 (method url-fetch)
2709 (uri (rubygems-uri "permutation" version))
2710 (sha256
2711 (base32
2712 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2713 (build-system ruby-build-system)
2714 (arguments
2715 `(#:phases
2716 (modify-phases %standard-phases
2717 (add-after 'unpack 'fix-rakefile
2718 (lambda _
2719 (substitute* "Rakefile"
2720 (("require 'rake/gempackagetask'")
2721 "require 'rubygems/package_task'")
2722 (("include Config") ""))
2723 #t))
2724 (replace 'check
2725 (lambda _
2726 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2727 (synopsis "Library to perform operations with sequence permutations")
2728 (description "This package provides a Ruby library to perform different
2729 operations with permutations of sequences, such as strings and arrays.")
2730 (home-page "https://flori.github.io/permutation")
2731 (license license:gpl2))) ; GPL 2 only
2732
2733 (define-public ruby-shellany
2734 (package
2735 (name "ruby-shellany")
2736 (version "0.0.1")
2737 (source (origin
2738 (method url-fetch)
2739 (uri (rubygems-uri "shellany" version))
2740 (sha256
2741 (base32
2742 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2743 (build-system ruby-build-system)
2744 (arguments
2745 `(#:test-target "default"
2746 #:phases
2747 (modify-phases %standard-phases
2748 (add-after 'unpack 'fix-version-test
2749 (lambda _
2750 (substitute* "spec/shellany_spec.rb"
2751 (("^RSpec") "require \"shellany\"\nRSpec"))
2752 #t)))))
2753 (native-inputs
2754 `(("ruby-rspec" ,ruby-rspec)
2755 ("ruby-nenv" ,ruby-nenv)
2756 ("bundler" ,bundler)))
2757 (synopsis "Capture command output")
2758 (description "Shellany is a Ruby library providing functions to capture
2759 the output produced by running shell commands.")
2760 (home-page "https://rubygems.org/gems/shellany")
2761 (license license:expat)))
2762
2763 (define-public ruby-notiffany
2764 (package
2765 (name "ruby-notiffany")
2766 (version "0.1.3")
2767 (source (origin
2768 (method url-fetch)
2769 (uri (rubygems-uri "notiffany" version))
2770 (sha256
2771 (base32
2772 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2773 (build-system ruby-build-system)
2774 ;; Tests are not included in the gem.
2775 (arguments `(#:tests? #f))
2776 (propagated-inputs
2777 `(("ruby-shellany" ,ruby-shellany)
2778 ("ruby-nenv" ,ruby-nenv)))
2779 (native-inputs
2780 `(("bundler" ,bundler)))
2781 (synopsis "Wrapper library for notification libraries")
2782 (description "Notiffany is a Ruby wrapper library for notification
2783 libraries such as Libnotify.")
2784 (home-page "https://github.com/guard/notiffany")
2785 (license license:expat)))
2786
2787 (define-public ruby-forking-test-runner
2788 (package
2789 (name "ruby-forking-test-runner")
2790 (version "1.6.0")
2791 (home-page "https://github.com/grosser/forking_test_runner")
2792 (source (origin
2793 (method git-fetch)
2794 (uri (git-reference (url home-page)
2795 (commit (string-append "v" version))))
2796 (file-name (git-file-name name version))
2797 (sha256
2798 (base32
2799 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2800 (build-system ruby-build-system)
2801 (arguments
2802 '(#:test-target "spec"
2803 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2804 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2805 #:tests? #f
2806 #:phases (modify-phases %standard-phases
2807 (replace 'replace-git-ls-files
2808 (lambda _
2809 (substitute* "forking_test_runner.gemspec"
2810 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2811 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2812 #t))
2813 (add-before 'check 'remove-version-constraints
2814 (lambda _
2815 ;; Ignore hard coded version constraints for the tests.
2816 (delete-file "Gemfile.lock")
2817 #t))
2818 (add-before 'check 'set-HOME
2819 (lambda _
2820 ;; Many tests invoke Bundler, and fails when Bundler
2821 ;; warns that /homeless-shelter does not exist.
2822 (setenv "HOME" "/tmp")
2823 #t)))))
2824 (native-inputs
2825 `(("ruby-activerecord" ,ruby-activerecord)
2826 ("ruby-bump" ,ruby-bump)
2827 ("ruby-rspec" ,ruby-rspec)
2828 ("ruby-sqlite3" ,ruby-sqlite3)
2829 ("ruby-wwtd" ,ruby-wwtd)))
2830 (propagated-inputs
2831 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2832 (synopsis "Run every test in a fork")
2833 (description
2834 "This package is a wrapper around @code{parallel_tests} that runs every
2835 test in a fork to avoid pollution and get clean output per test.")
2836 (license license:expat)))
2837
2838 (define-public ruby-formatador
2839 (package
2840 (name "ruby-formatador")
2841 (version "0.2.5")
2842 (source (origin
2843 (method url-fetch)
2844 (uri (rubygems-uri "formatador" version))
2845 (sha256
2846 (base32
2847 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2848 (build-system ruby-build-system)
2849 ;; Circular dependency: Tests require ruby-shindo, which requires
2850 ;; ruby-formatador at runtime.
2851 (arguments `(#:tests? #f))
2852 (synopsis "Ruby library to format text on stdout")
2853 (description "Formatador is a Ruby library to format text printed to the
2854 standard output stream.")
2855 (home-page "https://github.com/geemus/formatador")
2856 (license license:expat)))
2857
2858 (define-public ruby-fuubar
2859 (package
2860 (name "ruby-fuubar")
2861 (version "2.3.2")
2862 (source
2863 (origin
2864 ;; Fetch from the git repository, as the gem package doesn't include
2865 ;; the tests.
2866 (method git-fetch)
2867 (uri (git-reference
2868 (url "https://github.com/thekompanee/fuubar")
2869 (commit (string-append "releases/v" version))))
2870 (file-name (git-file-name name version))
2871 (sha256
2872 (base32
2873 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2874 (build-system ruby-build-system)
2875 (arguments
2876 '(;; TODO: Some tests fail, unsure why.
2877 ;; 21 examples, 7 failures
2878 #:tests? #f
2879 #:phases
2880 (modify-phases %standard-phases
2881 (add-before 'build 'delete-certificate
2882 (lambda _
2883 ;; Remove 's.cert_chain' as we do not build with a private key
2884 (substitute* "fuubar.gemspec"
2885 ((".*cert_chain.*") "")
2886 ((".*signing_key.*") ""))
2887 #t))
2888 (replace 'check
2889 (lambda* (#:key tests? #:allow-other-keys)
2890 (when tests?
2891 (invoke "rspec"))
2892 #t)))))
2893 (native-inputs
2894 `(("bundler" ,bundler)))
2895 (propagated-inputs
2896 `(("ruby-rspec-core" ,ruby-rspec-core)
2897 ("ruby-progressbar" ,ruby-progressbar)))
2898 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2899 (description
2900 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2901 string of letters and dots as feedback. It also stops on the first test
2902 failure.")
2903 (home-page "https://github.com/thekompanee/fuubar")
2904 (license license:expat)))
2905
2906 (define-public ruby-haml
2907 (package
2908 (name "ruby-haml")
2909 (version "5.0.4")
2910 (source
2911 (origin
2912 (method url-fetch)
2913 (uri (rubygems-uri "haml" version))
2914 (sha256
2915 (base32
2916 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2917 (build-system ruby-build-system)
2918 (arguments
2919 '(#:tests? #f)) ; No included tests
2920 (propagated-inputs
2921 `(("ruby-tilt" ,ruby-tilt)
2922 ("ruby-temple" ,ruby-temple)))
2923 (synopsis "Haml is a Ruby library to generate HTML documents")
2924 (description
2925 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2926 HTML or XML that is designed to express the structure of documents using
2927 indentation rather than closing tags. It was originally envisioned as a
2928 plugin for Ruby on Rails, but it can function as a stand-alone templating
2929 engine.")
2930 (home-page "http://haml.info/")
2931 (license license:expat)))
2932
2933 (define-public ruby-hamster
2934 (package
2935 (name "ruby-hamster")
2936 (version "3.0.0")
2937 (source
2938 (origin
2939 (method url-fetch)
2940 (uri (rubygems-uri "hamster" version))
2941 (sha256
2942 (base32
2943 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2944 (build-system ruby-build-system)
2945 (arguments
2946 '(#:phases
2947 (modify-phases %standard-phases
2948 (add-after 'unpack 'remove-unnecessary-dependencies
2949 (lambda _
2950 ;; pry is a debugging tool, and is unnecessary when running the
2951 ;; tests
2952 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2953 (("require 'pry'") ""))
2954 (substitute* "spec/spec_helper.rb"
2955 (("require \"pry\"") "")
2956 ;; CodeClimate is an online service, and is unnecessary for
2957 ;; running the tests
2958 (("require \"codeclimate-test-reporter\"") "")
2959 (("CodeClimate.*\n") ""))
2960 #t))
2961 ;; No Rakefile is included, so run rspec directly.
2962 (replace 'check
2963 (lambda* (#:key tests? #:allow-other-keys)
2964 (when tests?
2965 (invoke "rspec"))
2966 #t)))))
2967 (propagated-inputs
2968 `(("ruby-concurrent" ,ruby-concurrent)))
2969 (native-inputs
2970 `(("ruby-rspec" ,ruby-rspec)))
2971 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2972 (description
2973 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2974 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2975 immutable queue or stack).")
2976 (home-page "https://github.com/hamstergem/hamster")
2977 (license license:expat)))
2978
2979 (define-public ruby-hashdiff
2980 (package
2981 (name "ruby-hashdiff")
2982 (version "0.3.8")
2983 (source
2984 (origin
2985 (method url-fetch)
2986 (uri (rubygems-uri "hashdiff" version))
2987 (sha256
2988 (base32
2989 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2990 (build-system ruby-build-system)
2991 (arguments
2992 '(#:phases
2993 (modify-phases %standard-phases
2994 ;; Run tests directly via rspec to avoid Rake issue:
2995 ;; NoMethodError: undefined method `last_comment'
2996 (replace 'check
2997 (lambda* (#:key tests? #:allow-other-keys)
2998 (when tests?
2999 (invoke "rspec"))
3000 #t)))))
3001 (native-inputs
3002 `(("bundler" ,bundler)
3003 ("ruby-rspec" ,ruby-rspec-2)))
3004 (synopsis "HashDiff computes the smallest difference between two hashes")
3005 (description
3006 "HashDiff is a Ruby library to compute the smallest difference between
3007 two hashes.")
3008 (home-page "https://github.com/liufengyun/hashdiff")
3009 (license license:expat)))
3010
3011 (define-public ruby-hydra
3012 ;; No releases yet.
3013 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
3014 (revision "0"))
3015 (package
3016 (name "ruby-hydra")
3017 (version (git-version "0.0" revision commit))
3018 (home-page "https://github.com/hyphenation/hydra")
3019 (source (origin
3020 (method git-fetch)
3021 (uri (git-reference (url home-page) (commit commit)))
3022 (file-name (git-file-name name version))
3023 (sha256
3024 (base32
3025 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3026 (build-system ruby-build-system)
3027 (arguments
3028 '(#:phases (modify-phases %standard-phases
3029 (add-after 'unpack 'make-files-writable
3030 (lambda _
3031 (for-each make-file-writable (find-files "."))
3032 #t))
3033 (replace 'check
3034 (lambda _
3035 (invoke "rspec"))))))
3036 (native-inputs
3037 `(("ruby-rspec" ,ruby-rspec)))
3038 (propagated-inputs
3039 `(("ruby-byebug" ,ruby-byebug)))
3040 (synopsis "Ruby hyphenation patterns")
3041 (description
3042 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3043 (license license:expat))))
3044
3045 (define-public ruby-shindo
3046 (package
3047 (name "ruby-shindo")
3048 (version "0.3.8")
3049 (source (origin
3050 (method url-fetch)
3051 (uri (rubygems-uri "shindo" version))
3052 (sha256
3053 (base32
3054 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3055 (build-system ruby-build-system)
3056 (arguments
3057 `(#:test-target "shindo_tests"
3058 #:phases
3059 (modify-phases %standard-phases
3060 (add-after 'unpack 'fix-tests
3061 (lambda _
3062 (substitute* "tests/tests_helper.rb"
3063 (("-rubygems") ""))
3064 (substitute* "Rakefile"
3065 (("system \"shindo") "system \"./bin/shindo")
3066 ;; This test doesn't work, so we disable it.
3067 (("fail \"The build_error test should fail") "#")
3068 ((" -rubygems") ""))
3069 #t)))))
3070 (propagated-inputs
3071 `(("ruby-formatador" ,ruby-formatador)))
3072 (synopsis "Simple depth first Ruby testing")
3073 (description "Shindo is a simple depth first testing library for Ruby.")
3074 (home-page "https://github.com/geemus/shindo")
3075 (license license:expat)))
3076
3077 (define-public ruby-rubygems-tasks
3078 (package
3079 (name "ruby-rubygems-tasks")
3080 (version "0.2.5")
3081 (source (origin
3082 (method url-fetch)
3083 (uri (rubygems-uri "rubygems-tasks" version))
3084 (sha256
3085 (base32
3086 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3087 (build-system ruby-build-system)
3088 ;; Tests need Internet access.
3089 (arguments `(#:tests? #f))
3090 (native-inputs
3091 `(("ruby-rspec" ,ruby-rspec)
3092 ("ruby-yard" ,ruby-yard)))
3093 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3094 (description "Rubygems-task provides Rake tasks for managing and releasing
3095 Ruby Gems.")
3096 (home-page "https://github.com/postmodern/rubygems-tasks")
3097 (license license:expat)))
3098
3099 (define-public ruby-rubyzip
3100 (package
3101 (name "ruby-rubyzip")
3102 (version "1.2.1")
3103 (source
3104 (origin
3105 (method url-fetch)
3106 (uri (rubygems-uri "rubyzip" version))
3107 (sha256
3108 (base32
3109 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3110 (build-system ruby-build-system)
3111 (arguments
3112 '(#:phases
3113 (modify-phases %standard-phases
3114 (add-before 'check 'patch-tests
3115 (lambda* (#:key inputs #:allow-other-keys)
3116 (substitute* "test/gentestfiles.rb"
3117 (("/usr/bin/zip")
3118 (string-append
3119 (assoc-ref inputs "zip") "/bin/zip")))
3120 (substitute* "test/input_stream_test.rb"
3121 (("/usr/bin/env ruby") (which "ruby")))
3122 #t)))))
3123 (native-inputs
3124 `(("bundler" ,bundler)
3125 ("ruby-simplecov" ,ruby-simplecov)
3126 ("zip" ,zip)
3127 ("unzip" ,unzip)))
3128 (synopsis "Ruby module is for reading and writing zip files")
3129 (description
3130 "The rubyzip module provides ways to read from and create zip files.")
3131 (home-page "https://github.com/rubyzip/rubyzip")
3132 (license license:bsd-2)))
3133
3134 (define-public ruby-simplecov-html
3135 (package
3136 (name "ruby-simplecov-html")
3137 (version "0.10.2")
3138 (source (origin
3139 (method url-fetch)
3140 (uri (rubygems-uri "simplecov-html" version))
3141 (sha256
3142 (base32
3143 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3144 (build-system ruby-build-system)
3145 (arguments `(#:tests? #f)) ; there are no tests
3146 (native-inputs
3147 `(("bundler" ,bundler)))
3148 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3149 (description "This package provides the default HTML formatter for
3150 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3151 (home-page "https://github.com/colszowka/simplecov-html")
3152 (license license:expat)))
3153
3154 (define-public ruby-simplecov
3155 (package
3156 (name "ruby-simplecov")
3157 (version "0.17.1")
3158 (source (origin
3159 (method url-fetch)
3160 (uri (rubygems-uri "simplecov" version))
3161 (sha256
3162 (base32
3163 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3164 (build-system ruby-build-system)
3165 ;; Simplecov depends on rubocop for code style checking at build time.
3166 ;; Rubocop needs simplecov at build time.
3167 (arguments `(#:tests? #f))
3168 (propagated-inputs
3169 `(("ruby-json" ,ruby-json)
3170 ("ruby-docile" ,ruby-docile)
3171 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3172 (native-inputs
3173 `(("bundler" ,bundler)))
3174 (synopsis "Code coverage framework for Ruby")
3175 (description "SimpleCov is a code coverage framework for Ruby with a
3176 powerful configuration library and automatic merging of coverage across test
3177 suites.")
3178 (home-page "https://github.com/colszowka/simplecov")
3179 (license license:expat)))
3180
3181 (define-public ruby-useragent
3182 (package
3183 (name "ruby-useragent")
3184 (version "0.16.10")
3185 (source (origin
3186 (method url-fetch)
3187 (uri (rubygems-uri "useragent" version))
3188 (sha256
3189 (base32
3190 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3191 (build-system ruby-build-system)
3192 (arguments
3193 '(#:tests? #f)) ; no test suite
3194 (synopsis "HTTP user agent parser for Ruby")
3195 (description "UserAgent is a Ruby library that parses and compares HTTP
3196 User Agents.")
3197 (home-page "https://github.com/gshutler/useragent")
3198 (license license:expat)))
3199
3200 (define-public ruby-backports
3201 (package
3202 (name "ruby-backports")
3203 (version "3.11.4")
3204 (source
3205 (origin
3206 (method url-fetch)
3207 (uri (rubygems-uri "backports" version))
3208 (sha256
3209 (base32
3210 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3211 (build-system ruby-build-system)
3212 (arguments
3213 '(;; TODO: This should be default, but there is one test failure
3214 #:test-target "all_spec"))
3215 (native-inputs
3216 `(("ruby-mspec" ,ruby-mspec)
3217 ("ruby-activesupport" ,ruby-activesupport)))
3218 (synopsis "Backports of the features in newer Ruby versions")
3219 (description
3220 "Backports enables more compatibility across Ruby versions by providing
3221 backports of some features.")
3222 (home-page "https://github.com/marcandre/backports")
3223 (license license:expat)))
3224
3225 (define-public ruby-bacon
3226 (package
3227 (name "ruby-bacon")
3228 (version "1.2.0")
3229 (source (origin
3230 (method url-fetch)
3231 (uri (rubygems-uri "bacon" version))
3232 (sha256
3233 (base32
3234 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3235 (build-system ruby-build-system)
3236 (synopsis "Small RSpec clone")
3237 (description "Bacon is a small RSpec clone providing all essential
3238 features.")
3239 (home-page "https://github.com/chneukirchen/bacon")
3240 (license license:expat)))
3241
3242 (define-public ruby-bacon-bits
3243 (package
3244 (name "ruby-bacon-bits")
3245 (version "0.1.0")
3246 (source
3247 (origin
3248 (method url-fetch)
3249 (uri (rubygems-uri "bacon-bits" version))
3250 (sha256
3251 (base32
3252 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3253 (build-system ruby-build-system)
3254 (arguments
3255 ;; No tests
3256 '(#:tests? #f))
3257 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3258 (synopsis "Extensions to Bacon, for disabling tests, before and after
3259 blocks and more")
3260 (description
3261 "This extends the bacon testing framework with useful extensions to
3262 disable tests, have before and after blocks that run once and more.")
3263 (home-page "https://github.com/cldwalker/bacon-bits")
3264 (license license:expat)))
3265
3266 (define-public ruby-bacon-colored-output
3267 (package
3268 (name "ruby-bacon-colored-output")
3269 (version "1.1.1")
3270 (source
3271 (origin
3272 (method url-fetch)
3273 (uri (rubygems-uri "bacon-colored_output" version))
3274 (sha256
3275 (base32
3276 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3277 (build-system ruby-build-system)
3278 (arguments
3279 '(;; No included tests
3280 #:tests? #f))
3281 (propagated-inputs
3282 `(("ruby-bacon" ,ruby-bacon)))
3283 (synopsis "Colored output for Bacon test framework")
3284 (description
3285 "This package adds color through ANSI escape codes to Bacon test
3286 output.")
3287 (home-page "https://github.com/whitequark/bacon-colored_output")
3288 (license license:expat)))
3289
3290 (define-public ruby-connection-pool
3291 (package
3292 (name "ruby-connection-pool")
3293 (version "2.2.2")
3294 (source (origin
3295 (method url-fetch)
3296 (uri (rubygems-uri "connection_pool" version))
3297 (sha256
3298 (base32
3299 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3300 (build-system ruby-build-system)
3301 (native-inputs
3302 `(("bundler" ,bundler)))
3303 (synopsis "Generic connection pool for Ruby")
3304 (description "Connection_pool provides a generic connection pooling
3305 interface for Ruby programs.")
3306 (home-page "https://github.com/mperham/connection_pool")
3307 (license license:expat)))
3308
3309 (define-public ruby-fast-gettext
3310 (package
3311 (name "ruby-fast-gettext")
3312 (version "2.0.3")
3313 (home-page "https://github.com/grosser/fast_gettext")
3314 (source (origin
3315 (method git-fetch)
3316 (uri (git-reference (url home-page)
3317 (commit (string-append "v" version))))
3318 (file-name (git-file-name name version))
3319 (sha256
3320 (base32
3321 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3322 (build-system ruby-build-system)
3323 (arguments
3324 '(#:test-target "spec"
3325 #:phases (modify-phases %standard-phases
3326 (add-before 'check 'remove-version-constraints
3327 (lambda _
3328 (delete-file "Gemfile.lock")
3329 #t))
3330 (add-before 'check 'remove-activerecord-test
3331 (lambda _
3332 ;; FIXME: This test fails because ActiveRecord depends on
3333 ;; a different version of ruby-sqlite than the currently
3334 ;; available one.
3335 (delete-file
3336 "spec/fast_gettext/translation_repository/db_spec.rb")
3337 #t))
3338 (add-before 'check 'disable-i18n-test
3339 (lambda _
3340 ;; XXX: This test checks i18n intricasies with Rails 3 and
3341 ;; automatically disables itself for Rails 4.0, but does
3342 ;; not know about newer versions as it has not been updated
3343 ;; since 2014. Disable for later versions of Rails too.
3344 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3345 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3346 "ActiveRecord::VERSION::MINOR == 0"))
3347 "ActiveRecord::VERSION::MAJOR >= 4"))
3348 #t)))))
3349 (native-inputs
3350 `(;; For tests.
3351 ("ruby-activerecord" ,ruby-activerecord)
3352 ("ruby-activesupport" ,ruby-activesupport)
3353 ("ruby-bump" ,ruby-bump)
3354 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3355 ("ruby-i18n" ,ruby-i18n)
3356 ("ruby-rubocop" ,ruby-rubocop)
3357 ("ruby-rspec" ,ruby-rspec)
3358 ("ruby-single-cov" ,ruby-single-cov)
3359 ("ruby-sqlite3" ,ruby-sqlite3)
3360 ("ruby-wwtd" ,ruby-wwtd)))
3361 (synopsis "Fast implementation of @code{GetText}")
3362 (description
3363 "This package provides an alternative implementation of the Ruby
3364 @code{GetText} library that is approximately 12x faster yet thread safe.")
3365 ;; Some parts are covered by the Ruby license, see file headers.
3366 (license (list license:expat license:ruby))))
3367
3368 (define-public ruby-net-http-persistent
3369 (package
3370 (name "ruby-net-http-persistent")
3371 (version "3.0.0")
3372 (source (origin
3373 (method url-fetch)
3374 (uri (rubygems-uri "net-http-persistent" version))
3375 (sha256
3376 (base32
3377 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3378 (build-system ruby-build-system)
3379 (native-inputs
3380 `(("ruby-connection-pool" ,ruby-connection-pool)
3381 ("ruby-hoe" ,ruby-hoe)))
3382 (synopsis "Persistent HTTP connection manager")
3383 (description "Net::HTTP::Persistent manages persistent HTTP connections
3384 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3385 (home-page "https://github.com/drbrain/net-http-persistent")
3386 (license license:expat)))
3387
3388 (define-public ruby-power-assert
3389 (package
3390 (name "ruby-power-assert")
3391 (version "1.1.5")
3392 (source (origin
3393 (method url-fetch)
3394 (uri (rubygems-uri "power_assert" version))
3395 (sha256
3396 (base32
3397 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3398 (build-system ruby-build-system)
3399 (arguments
3400 '(#:tests? #f)) ; No included tests
3401 (native-inputs
3402 `(("bundler" ,bundler)))
3403 (synopsis "Assert library with descriptive assertion messages")
3404 (description "Power-assert is an assertion library providing descriptive
3405 assertion messages for tests.")
3406 (home-page "https://github.com/k-tsj/power_assert")
3407 (license (list license:bsd-2 license:ruby))))
3408
3409 (define-public ruby-powerpack
3410 (package
3411 (name "ruby-powerpack")
3412 (version "0.1.2")
3413 (source
3414 (origin
3415 (method url-fetch)
3416 (uri (rubygems-uri "powerpack" version))
3417 (sha256
3418 (base32
3419 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3420 (build-system ruby-build-system)
3421 (arguments
3422 '(#:test-target "spec"))
3423 (native-inputs
3424 `(("bundler" ,bundler)
3425 ("ruby-rspec" ,ruby-rspec)
3426 ("ruby-yard" ,ruby-yard)))
3427 (synopsis "Useful extensions to core Ruby classes")
3428 (description
3429 "This package provides a few useful extensions to core Ruby classes,
3430 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3431 @code{String}.")
3432 (home-page "https://github.com/bbatsov/powerpack")
3433 (license license:expat)))
3434
3435 (define-public ruby-locale
3436 (package
3437 (name "ruby-locale")
3438 (version "2.1.2")
3439 (source (origin
3440 (method url-fetch)
3441 (uri (rubygems-uri "locale" version))
3442 (sha256
3443 (base32
3444 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3445 (build-system ruby-build-system)
3446 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3447 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3448 ;; dependency cycle we disable tests.
3449 (arguments `(#:tests? #f))
3450 (native-inputs
3451 `(("bundler" ,bundler)
3452 ("ruby-yard" ,ruby-yard)))
3453 (synopsis "Ruby library providing basic localization APIs")
3454 (description
3455 "Ruby-Locale is the pure ruby library which provides basic APIs for
3456 localization.")
3457 (home-page "https://github.com/ruby-gettext/locale")
3458 (license (list license:lgpl3+ license:ruby))))
3459
3460 (define-public ruby-temple
3461 (package
3462 (name "ruby-temple")
3463 (version "0.8.2")
3464 (source
3465 (origin
3466 (method url-fetch)
3467 (uri (rubygems-uri "temple" version))
3468 (sha256
3469 (base32
3470 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3471 (build-system ruby-build-system)
3472 (native-inputs
3473 `(("ruby-tilt" ,ruby-tilt)
3474 ("ruby-bacon" ,ruby-bacon)
3475 ("ruby-erubis" ,ruby-erubis)))
3476 (synopsis "Template compilation framework in Ruby")
3477 (description
3478 "Temple is an abstraction and framework for compiling templates to pure
3479 Ruby.")
3480 (home-page "https://github.com/judofyr/temple")
3481 (license license:expat)))
3482
3483 (define-public ruby-text
3484 (package
3485 (name "ruby-text")
3486 (version "1.3.1")
3487 (source (origin
3488 (method url-fetch)
3489 (uri (rubygems-uri "text" version))
3490 (sha256
3491 (base32
3492 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3493 (build-system ruby-build-system)
3494 (synopsis "Collection of text algorithms for Ruby")
3495 (description
3496 "This package provides a collection of text algorithms: Levenshtein,
3497 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3498 (home-page "https://github.com/threedaymonk/text")
3499 (license license:expat)))
3500
3501 (define-public ruby-gettext
3502 (package
3503 (name "ruby-gettext")
3504 (version "3.1.7")
3505 (source (origin
3506 (method url-fetch)
3507 (uri (rubygems-uri "gettext" version))
3508 (sha256
3509 (base32
3510 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3511 (build-system ruby-build-system)
3512 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3513 ;; which needs ruby-gettext. To break the dependency cycle we disable
3514 ;; tests.
3515 (arguments `(#:tests? #f))
3516 (propagated-inputs
3517 `(("ruby-locale" ,ruby-locale)
3518 ("ruby-text" ,ruby-text)))
3519 (native-inputs
3520 `(("bundler" ,bundler)
3521 ("ruby-yard" ,ruby-yard)))
3522 (synopsis "GNU gettext-like program for Ruby")
3523 (description
3524 "Gettext is a GNU gettext-like program for Ruby. The catalog
3525 file (po-file) used is the same as that used by GNU gettext, allowing you to
3526 use GNU gettext tools for maintenance.")
3527 (home-page "https://ruby-gettext.github.com/")
3528 (license (list license:lgpl3+ license:ruby))))
3529
3530 (define-public ruby-packnga
3531 (package
3532 (name "ruby-packnga")
3533 (version "1.0.4")
3534 (source (origin
3535 (method url-fetch)
3536 (uri (rubygems-uri "packnga" version))
3537 (sha256
3538 (base32
3539 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3540 (build-system ruby-build-system)
3541 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3542 ;; To break the dependency cycle we disable tests.
3543 (arguments `(#:tests? #f))
3544 (propagated-inputs
3545 `(("ruby-gettext" ,ruby-gettext)
3546 ("ruby-yard" ,ruby-yard)))
3547 (native-inputs
3548 `(("bundler" ,bundler)))
3549 (synopsis "Utility library to package internationalized libraries")
3550 (description
3551 "Packnga is a library to translate to many languages using YARD.")
3552 (home-page "http://ranguba.org/packnga/")
3553 (license license:lgpl2.0+)))
3554
3555 (define-public ruby-test-construct
3556 (package
3557 (name "ruby-test-construct")
3558 (version "2.0.1")
3559 (source
3560 (origin
3561 (method url-fetch)
3562 (uri (rubygems-uri "test_construct" version))
3563 (sha256
3564 (base32
3565 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3566 (build-system ruby-build-system)
3567 (native-inputs
3568 `(("bundler" ,bundler)
3569 ("ruby-mocha" ,ruby-mocha)
3570 ("ruby-rspec" ,ruby-rspec)))
3571 (synopsis "Creates temporary files and directories for testing")
3572 (description
3573 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3574 temporary files and directories during tests.")
3575 (home-page "https://github.com/bhb/test_construct")
3576 (license license:expat)))
3577
3578 (define-public ruby-test-unit
3579 (package
3580 (name "ruby-test-unit")
3581 (version "3.2.5")
3582 (source (origin
3583 (method url-fetch)
3584 (uri (rubygems-uri "test-unit" version))
3585 (sha256
3586 (base32
3587 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3588 (build-system ruby-build-system)
3589 (propagated-inputs
3590 `(("ruby-power-assert" ,ruby-power-assert)))
3591 (native-inputs
3592 `(("bundler" ,bundler)
3593 ("ruby-packnga" ,ruby-packnga)
3594 ("ruby-yard" ,ruby-yard)))
3595 (synopsis "Unit testing framework for Ruby")
3596 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3597 on xUnit principles. These were originally designed by Kent Beck, creator of
3598 extreme programming software development methodology, for Smalltalk's SUnit.
3599 It allows writing tests, checking results and automated testing in Ruby.")
3600 (home-page "https://test-unit.github.io/")
3601 (license (list license:psfl license:ruby))))
3602
3603 (define-public ruby-markaby
3604 (package
3605 (name "ruby-markaby")
3606 (version "0.9.0")
3607 (source
3608 (origin
3609 (method url-fetch)
3610 (uri (rubygems-uri "markaby" version))
3611 (sha256
3612 (base32
3613 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3614 (build-system ruby-build-system)
3615 (arguments
3616 '(#:phases
3617 (modify-phases %standard-phases
3618 ;; Run rspec manually without using the Rakefile, as the versions of
3619 ;; Rake and RSpec 2 are incompatible:
3620 ;;
3621 ;; NoMethodError: undefined method `last_comment'
3622 (replace 'check
3623 (lambda* (#:key tests? #:allow-other-keys)
3624 (when tests?
3625 (invoke "rspec"))
3626 #t)))))
3627 (propagated-inputs
3628 `(("ruby-builder" ,ruby-builder)))
3629 (native-inputs
3630 `(("bundler" ,bundler)
3631 ("ruby-rspec" ,ruby-rspec-2)))
3632 (synopsis "Write HTML pages in pure Ruby")
3633 (description
3634 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3635 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3636 mixture of HTML and additional ERB syntax.")
3637 (home-page "https://markaby.github.io/")
3638 (license license:expat)))
3639
3640 (define-public ruby-maruku
3641 (package
3642 (name "ruby-maruku")
3643 (version "0.7.3")
3644 (source
3645 (origin
3646 (method url-fetch)
3647 (uri (rubygems-uri "maruku" version))
3648 (sha256
3649 (base32
3650 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3651 (build-system ruby-build-system)
3652 (arguments
3653 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3654 #:tests? #f
3655 #:phases
3656 (modify-phases %standard-phases
3657 (replace 'check
3658 (lambda* (#:key tests? #:allow-other-keys)
3659 (when tests?
3660 (invoke "rspec"))
3661 #t)))))
3662 (native-inputs
3663 `(("ruby-rspec" ,ruby-rspec)
3664 ("ruby-simplecov" ,ruby-simplecov)
3665 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3666 (synopsis "Markdown interpreter in Ruby")
3667 (description
3668 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3669 HTML, and PDF through LaTeX.")
3670 (home-page "https://github.com/bhollis/maruku")
3671 (license license:expat)))
3672
3673 (define-public ruby-metaclass
3674 (package
3675 (name "ruby-metaclass")
3676 (version "0.0.4")
3677 (source (origin
3678 (method url-fetch)
3679 (uri (rubygems-uri "metaclass" version))
3680 (sha256
3681 (base32
3682 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3683 (build-system ruby-build-system)
3684 (arguments
3685 `(#:phases
3686 (modify-phases %standard-phases
3687 (add-after 'unpack 'add-test-unit-to-search-path
3688 (lambda* (#:key inputs #:allow-other-keys)
3689 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3690 (substitute* "Rakefile"
3691 (("t\\.libs << \"test\"" line)
3692 (string-append line "; t.libs << \""
3693 test-unit "/lib/ruby/vendor_ruby"
3694 "/gems/test-unit-"
3695 ,(package-version ruby-test-unit)
3696 "/lib\""))))
3697 #t)))))
3698 (native-inputs
3699 `(("bundler" ,bundler)
3700 ("ruby-test-unit" ,ruby-test-unit)))
3701 (synopsis "Ruby library adding metaclass method to all objects")
3702 (description
3703 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3704 objects.")
3705 (home-page "https://github.com/floehopper/metaclass")
3706 (license license:expat)))
3707
3708 (define-public ruby-mkmf-lite
3709 (package
3710 (name "ruby-mkmf-lite")
3711 (version "0.3.2")
3712 (source (origin
3713 (method url-fetch)
3714 (uri (rubygems-uri "mkmf-lite" version))
3715 (sha256
3716 (base32
3717 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3718 (build-system ruby-build-system)
3719 (propagated-inputs
3720 `(("ruby-ptools" ,ruby-ptools)))
3721 (synopsis "Lightweight alternative to @code{mkmf}")
3722 (description
3723 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3724 for use as a library. It does not create packages, builds, or log files of
3725 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3726 to check for the presence of header files, constants, and so on.")
3727 (home-page "https://github.com/djberg96/mkmf-lite")
3728 (license license:asl2.0)))
3729
3730 (define-public ruby-mspec
3731 (package
3732 (name "ruby-mspec")
3733 (version "1.9.1")
3734 (source
3735 (origin
3736 (method url-fetch)
3737 (uri (rubygems-uri "mspec" version))
3738 (sha256
3739 (base32
3740 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3741 (build-system ruby-build-system)
3742 (arguments
3743 '(;; TODO: 3 test failures
3744 ;; ./spec/mocks/mock_spec.rb:82
3745 ;; ./spec/utils/name_map_spec.rb:151
3746 ;; ./spec/utils/name_map_spec.rb:155
3747 #:tests? #f
3748 #:phases
3749 (modify-phases %standard-phases
3750 (add-after 'extract-gemspec 'change-dependency-constraints
3751 (lambda _
3752 (substitute* "mspec.gemspec"
3753 (("rake.*") "rake>)\n")
3754 (("rspec.*") "rspec>)\n"))
3755 #t))
3756 (replace 'check
3757 (lambda* (#:key tests? #:allow-other-keys)
3758 (when tests?
3759 (invoke "rspec" "spec"))
3760 #t)))))
3761 (native-inputs
3762 `(("bundler" ,bundler)
3763 ("ruby-rake" ,ruby-rake)
3764 ("ruby-rspec" ,ruby-rspec)))
3765 (synopsis "MSpec is a specialized framework for RubySpec")
3766 (description
3767 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3768 for basic features. MSpec contains additional features that assist in writing
3769 specs for Ruby implementations in ruby/spec.")
3770 (home-page "http://rubyspec.org")
3771 (license license:expat)))
3772
3773 (define-public ruby-mysql2
3774 (package
3775 (name "ruby-mysql2")
3776 (version "0.5.2")
3777 (source
3778 (origin
3779 (method git-fetch)
3780 (uri (git-reference
3781 (url "https://github.com/brianmario/mysql2")
3782 (commit version)))
3783 (file-name (git-file-name name version))
3784 (sha256
3785 (base32
3786 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3787 (build-system ruby-build-system)
3788 (arguments
3789 '(;; TODO: Tests require a running MySQL/MariaDB service
3790 #:tests? #f
3791 #:phases
3792 (modify-phases %standard-phases
3793 (replace 'replace-git-ls-files
3794 (lambda _
3795 (substitute* "mysql2.gemspec"
3796 (("git ls-files .*`") "find . -type f |sort`"))
3797 #t))
3798 (add-before 'install 'set-MAKEFLAGS
3799 (lambda* (#:key outputs #:allow-other-keys)
3800 (setenv "MAKEFLAGS"
3801 (string-append
3802 "V=1 "
3803 "prefix=" (assoc-ref outputs "out")))
3804 #t))
3805 ;; Move the 'check phase to after 'install, as then you can test
3806 ;; using the installed mysql2 gem in the store.
3807 (delete 'check)
3808 (add-after 'install 'check
3809 (lambda* (#:key outputs tests? #:allow-other-keys)
3810 (setenv "GEM_PATH"
3811 (string-append
3812 (getenv "GEM_PATH")
3813 ":"
3814 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3815 (when tests?
3816 (invoke "rspec"))
3817 #t)))))
3818 (inputs
3819 `(("mariadb-dev" ,mariadb "dev")
3820 ("zlib" ,zlib)))
3821 (native-inputs
3822 `(("ruby-rspec" ,ruby-rspec)
3823 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3824 (synopsis "MySQL library for Ruby, binding to libmysql")
3825 (description
3826 "This package provides a simple, fast MySQL library for Ruby, binding to
3827 libmysql.")
3828 (home-page "https://github.com/brianmario/mysql2")
3829 (license license:expat)))
3830
3831 (define-public ruby-blankslate
3832 (package
3833 (name "ruby-blankslate")
3834 (version "3.1.3")
3835 (source (origin
3836 (method url-fetch)
3837 (uri (rubygems-uri "blankslate" version))
3838 (sha256
3839 (base32
3840 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3841 (build-system ruby-build-system)
3842 (arguments
3843 `(#:phases
3844 (modify-phases %standard-phases
3845 (replace 'check
3846 (lambda _ (invoke "rspec" "spec/"))))))
3847 (native-inputs
3848 `(("bundler" ,bundler)
3849 ("ruby-rspec" ,ruby-rspec)))
3850 (synopsis "Abstract base class with no predefined methods")
3851 (description
3852 "BlankSlate provides an abstract base class with no predefined
3853 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3854 as a base class when writing classes that depend upon
3855 @code{method_missing} (e.g. dynamic proxies).")
3856 (home-page "https://github.com/masover/blankslate")
3857 (license license:expat)))
3858
3859 (define-public ruby-bond
3860 (package
3861 (name "ruby-bond")
3862 (version "0.5.1")
3863 (source
3864 (origin
3865 (method url-fetch)
3866 (uri (rubygems-uri "bond" version))
3867 (sha256
3868 (base32
3869 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3870 (build-system ruby-build-system)
3871 (arguments
3872 ;; The test suite fails (see:
3873 ;; https://github.com/cldwalker/bond/issues/46).
3874 `(#:tests? #f))
3875 (native-inputs
3876 `(("ruby-bacon" ,ruby-bacon)
3877 ("ruby-bacon-bits" ,ruby-bacon-bits)
3878 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3879 (synopsis "Bond can provide custom autocompletion for arguments, methods
3880 and more")
3881 (description
3882 "Bond can autocomplete argument(s) to methods, uniquely completing per
3883 module, per method and per argument. Bond provides a configuration system and
3884 a DSL for creating custom completions and completion rules. Bond can also
3885 load completions that ship with gems. Bond is able to offer more than irb's
3886 completion since it uses the full line of input when completing as opposed to
3887 irb's last-word approach.")
3888 (home-page "http://tagaholic.me/bond/")
3889 (license license:expat)))
3890
3891 (define-public ruby-idn-ruby
3892 (package
3893 (name "ruby-idn-ruby")
3894 (version "0.1.0")
3895 (source
3896 (origin
3897 (method url-fetch)
3898 (uri (rubygems-uri "idn-ruby" version))
3899 (sha256
3900 (base32
3901 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3902 (build-system ruby-build-system)
3903 (arguments
3904 '(#:phases
3905 (modify-phases %standard-phases
3906 (delete 'check)
3907 (add-after 'install 'check
3908 (lambda* (#:key tests? outputs #:allow-other-keys)
3909 (when tests?
3910 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3911 (name-and-version (basename gem-file ".gem")))
3912 (apply invoke
3913 "ruby" "--verbose"
3914 (string-append "-I"
3915 (assoc-ref outputs "out")
3916 "/lib/ruby/vendor_ruby/gems/"
3917 name-and-version
3918 "/lib")
3919 (find-files "./test" ".*\\.rb"))))
3920 #t)))))
3921 (inputs
3922 `(("libidn" ,libidn)))
3923 (synopsis "Ruby Bindings for the GNU LibIDN library")
3924 (description
3925 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3926 Stringprep, Punycode and IDNA specifications. These are used to encode and
3927 decode internationalized domain + names according to the IDNA2003
3928 specifications.
3929
3930 Included are the most important parts of the Stringprep, Punycode and IDNA
3931 APIs like performing Stringprep processings, encoding to and decoding from
3932 Punycode strings and converting entire domain names to and from the ACE
3933 encoded form.")
3934 (home-page "https://github.com/deepfryed/idn-ruby")
3935 (license license:asl2.0)))
3936
3937 (define-public ruby-instantiator
3938 (package
3939 (name "ruby-instantiator")
3940 (version "0.0.7")
3941 (source (origin
3942 (method url-fetch)
3943 (uri (rubygems-uri "instantiator" version))
3944 (sha256
3945 (base32
3946 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3947 (build-system ruby-build-system)
3948 (arguments
3949 `(#:phases
3950 (modify-phases %standard-phases
3951 (add-after 'unpack 'add-test-unit-to-search-path
3952 (lambda* (#:key inputs #:allow-other-keys)
3953 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3954 (substitute* "Rakefile"
3955 (("t\\.libs << \"test\"" line)
3956 (string-append line "; t.libs << \""
3957 test-unit "/lib/ruby/vendor_ruby"
3958 "/gems/test-unit-"
3959 ,(package-version ruby-test-unit)
3960 "/lib\""))))
3961 #t)))))
3962 (propagated-inputs
3963 `(("ruby-blankslate" ,ruby-blankslate)))
3964 (native-inputs
3965 `(("bundler" ,bundler)
3966 ("ruby-test-unit" ,ruby-test-unit)))
3967 (synopsis "Instantiate an arbitrary Ruby class")
3968 (description
3969 "Instantiator lets you instantiate an arbitrary Ruby class without
3970 knowing anything about the constructor.")
3971 (home-page "https://github.com/floehopper/instantiator")
3972 (license license:expat)))
3973
3974 (define-public ruby-introspection
3975 (package
3976 (name "ruby-introspection")
3977 (version "0.0.4")
3978 (source (origin
3979 (method url-fetch)
3980 (uri (rubygems-uri "introspection" version))
3981 (sha256
3982 (base32
3983 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3984 (build-system ruby-build-system)
3985 (arguments
3986 `(#:phases
3987 (modify-phases %standard-phases
3988 (add-after 'unpack 'add-test-unit-to-search-path
3989 (lambda* (#:key inputs #:allow-other-keys)
3990 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3991 (substitute* "Rakefile"
3992 (("t\\.libs << \"test\"" line)
3993 (string-append line "; t.libs << \""
3994 test-unit "/lib/ruby/vendor_ruby"
3995 "/gems/test-unit-"
3996 ,(package-version ruby-test-unit)
3997 "/lib\""))))
3998 #t)))))
3999 (propagated-inputs
4000 `(("ruby-instantiator" ,ruby-instantiator)
4001 ("ruby-metaclass" ,ruby-metaclass)))
4002 (native-inputs
4003 `(("bundler" ,bundler)
4004 ("ruby-blankslate" ,ruby-blankslate)
4005 ("ruby-test-unit" ,ruby-test-unit)))
4006 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
4007 (description
4008 "Introspection provides tools to inspect the hierarchy of method
4009 definitions on a Ruby object.")
4010 (home-page "https://github.com/floehopper/introspection")
4011 (license license:expat)))
4012
4013 (define-public ruby-redcarpet
4014 (package
4015 (name "ruby-redcarpet")
4016 (version "3.5.0")
4017 (source (origin
4018 (method url-fetch)
4019 (uri (rubygems-uri "redcarpet" version))
4020 (sha256
4021 (base32
4022 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4023 (build-system ruby-build-system)
4024 (arguments
4025 `(#:phases
4026 (modify-phases %standard-phases
4027 ;; The gem archive does not include the conformance tests.
4028 (add-after 'unpack 'disable-conformance-tests
4029 (lambda _
4030 (substitute* "Rakefile"
4031 (("task :test => %w\\[test:unit test:conformance\\]")
4032 "task :test => %w[test:unit]"))
4033 #t)))))
4034 (native-inputs
4035 `(("bundler" ,bundler)
4036 ("ruby-test-unit" ,ruby-test-unit)
4037 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4038 (synopsis "Extensible Markdown to (X)HTML converter")
4039 (description
4040 "Redcarpet is an extensible Ruby library for Markdown processing and
4041 conversion to (X)HTML.")
4042 (home-page "https://github.com/vmg/redcarpet")
4043 (license license:expat)))
4044
4045 (define-public ruby-rerun
4046 (package
4047 (name "ruby-rerun")
4048 (version "0.13.0")
4049 (source
4050 (origin
4051 (method url-fetch)
4052 (uri (rubygems-uri "rerun" version))
4053 (sha256
4054 (base32
4055 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4056 (build-system ruby-build-system)
4057 (arguments
4058 '(#:tests? #f)) ; No included tests
4059 (propagated-inputs
4060 `(("ruby-listen" ,ruby-listen)))
4061 (synopsis "Run a process, and restart when some monitored files change")
4062 (description
4063 "Rerun is a tool to launch programs, then monitor the file system, and
4064 restart the program when any of the monitored files change. It's written in
4065 Ruby, but can be used for all programs.")
4066 (home-page "https://github.com/alexch/rerun/")
4067 (license license:expat)))
4068
4069 (define-public ruby-maxitest
4070 (package
4071 (name "ruby-maxitest")
4072 (version "3.6.0")
4073 (home-page "https://github.com/grosser/maxitest")
4074 (source (origin
4075 ;; Pull from git because the gem does not contain tests.
4076 (method git-fetch)
4077 (uri (git-reference
4078 (url home-page)
4079 (commit (string-append "v" version))))
4080 (file-name (git-file-name name version))
4081 (sha256
4082 (base32
4083 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4084 (build-system ruby-build-system)
4085 (arguments
4086 '(#:test-target "default"
4087 #:phases (modify-phases %standard-phases
4088 (replace 'replace-git-ls-files
4089 (lambda _
4090 (substitute* "maxitest.gemspec"
4091 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4092 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4093 #t))
4094 (add-before 'check 'remove-version-constraints
4095 (lambda _
4096 ;; Don't use specific versions of dependencies, instead
4097 ;; take whatever is available in Guix.
4098 (delete-file "Gemfile.lock")
4099 #t))
4100 (add-before 'check 'add-mtest-on-PATH
4101 (lambda _
4102 ;; Tests use 'mtest' which is not automatically added on
4103 ;; PATH.
4104 (setenv "PATH" (string-append (getcwd) "/bin:"
4105 (getenv "PATH")))
4106 #t)))))
4107 (native-inputs
4108 `(("ps" ,procps)
4109 ("ruby-bump" ,ruby-bump)
4110 ("ruby-byebug" ,ruby-byebug)
4111 ("ruby-rspec" ,ruby-rspec)
4112 ("ruby-wwtd" ,ruby-wwtd)))
4113 (propagated-inputs
4114 `(("ruby-minitest" ,ruby-minitest)))
4115 (synopsis "Minitest with extra features")
4116 (description
4117 "Maxitest is a wrapper around Minitest with extra functionality such
4118 as timeouts, an @command{mtest} executable that can run tests by line
4119 number, support for interrupted tests, better backtraces, and more.")
4120 (license license:expat)))
4121
4122 (define-public ruby-mocha
4123 (package
4124 (name "ruby-mocha")
4125 (version "1.11.2")
4126 (source (origin
4127 (method url-fetch)
4128 (uri (rubygems-uri "mocha" version))
4129 (sha256
4130 (base32
4131 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4132 (build-system ruby-build-system)
4133 (arguments
4134 `(#:phases
4135 (modify-phases %standard-phases
4136 (add-before 'check 'remove-rubocop-dependency
4137 (lambda _
4138 ;; Disable dependency on Rubocop, which is just a linter,
4139 ;; and would introduce a circular dependency.
4140 (substitute* "mocha.gemspec"
4141 ((".*rubocop.*")
4142 "true\n"))
4143 #t)))))
4144 (native-inputs
4145 `(("ruby-introspection" ,ruby-introspection)))
4146 (synopsis "Mocking and stubbing library for Ruby")
4147 (description
4148 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4149 allows mocking and stubbing of methods on real (non-mock) classes.")
4150 (home-page "http://gofreerange.com/mocha/docs")
4151 ;; Mocha can be used with either license at the users choice.
4152 (license (list license:expat license:ruby))))
4153
4154 (define-public ruby-mocha-on-bacon
4155 (package
4156 (name "ruby-mocha-on-bacon")
4157 (version "0.2.3")
4158 (source
4159 (origin
4160 (method url-fetch)
4161 (uri (rubygems-uri "mocha-on-bacon" version))
4162 (sha256
4163 (base32
4164 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4165 (build-system ruby-build-system)
4166 (arguments
4167 ;; rubygems.org release missing tests
4168 '(#:tests? #f))
4169 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4170 (synopsis "Mocha adapter for Bacon")
4171 (description
4172 "This package provides a Mocha adapter for Bacon, allowing you to use the
4173 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4174 (home-page
4175 "https://github.com/alloy/mocha-on-bacon")
4176 (license license:expat)))
4177
4178 (define-public ruby-net-ssh
4179 (package
4180 (name "ruby-net-ssh")
4181 (version "4.2.0")
4182 (source (origin
4183 (method url-fetch)
4184 (uri (rubygems-uri "net-ssh" version))
4185 (sha256
4186 (base32
4187 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4188 (build-system ruby-build-system)
4189 (native-inputs
4190 `(("bundler" ,bundler)
4191 ("ruby-mocha" ,ruby-mocha)
4192 ("ruby-test-unit" ,ruby-test-unit)))
4193 (synopsis "Ruby implementation of the SSH2 client protocol")
4194 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4195 client protocol. It allows you to write programs that invoke and interact
4196 with processes on remote servers, via SSH2.")
4197 (home-page "https://github.com/net-ssh/net-ssh")
4198 (license license:expat)))
4199
4200 (define-public ruby-net-scp
4201 (package
4202 (name "ruby-net-scp")
4203 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4204 (version "1.2.2.rc2")
4205 (source
4206 (origin
4207 (method git-fetch)
4208 (uri (git-reference
4209 (url "https://github.com/net-ssh/net-scp")
4210 (commit (string-append "v" version))))
4211 (file-name (git-file-name name version))
4212 (sha256
4213 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4214 (build-system ruby-build-system)
4215 (native-inputs
4216 `(("bundler" ,bundler)
4217 ("ruby-test-unit" ,ruby-test-unit)
4218 ("ruby-mocha" ,ruby-mocha)))
4219 (propagated-inputs
4220 `(("ruby-net-ssh" ,ruby-net-ssh)))
4221 (synopsis "Pure-Ruby SCP client library")
4222 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4223 client protocol.")
4224 (home-page "https://github.com/net-ssh/net-scp")
4225 (license license:expat)))
4226
4227 (define-public ruby-minitest
4228 (package
4229 (name "ruby-minitest")
4230 (version "5.11.3")
4231 (source (origin
4232 (method url-fetch)
4233 (uri (rubygems-uri "minitest" version))
4234 (sha256
4235 (base32
4236 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4237 (build-system ruby-build-system)
4238 (native-inputs
4239 `(("ruby-hoe" ,ruby-hoe)))
4240 (synopsis "Small test suite library for Ruby")
4241 (description "Minitest provides a complete suite of Ruby testing
4242 facilities supporting TDD, BDD, mocking, and benchmarking.")
4243 (home-page "https://github.com/seattlerb/minitest")
4244 (license license:expat)))
4245
4246 ;; This is the last release of Minitest 4, which is used by some packages.
4247 (define-public ruby-minitest-4
4248 (package (inherit ruby-minitest)
4249 (version "4.7.5")
4250 (source (origin
4251 (method url-fetch)
4252 (uri (rubygems-uri "minitest" version))
4253 (sha256
4254 (base32
4255 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4256 (arguments
4257 `(#:phases
4258 (modify-phases %standard-phases
4259 (add-after 'unpack 'remove-unsupported-method
4260 (lambda _
4261 (substitute* "Rakefile"
4262 (("self\\.rubyforge_name = .*") ""))
4263 #t))
4264 (add-after 'build 'exclude-failing-tests
4265 (lambda _
4266 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4267 ;; Fixnum.
4268 (delete-file "test/minitest/test_minitest_spec.rb")
4269 #t)))))))
4270
4271 (define-public ruby-minitest-around
4272 (package
4273 (name "ruby-minitest-around")
4274 (version "0.5.0")
4275 (source
4276 (origin
4277 (method url-fetch)
4278 (uri (rubygems-uri "minitest-around" version))
4279 (sha256
4280 (base32
4281 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4282 (build-system ruby-build-system)
4283 (arguments
4284 '(#:phases
4285 (modify-phases %standard-phases
4286 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4287 (lambda _
4288 (substitute* "minitest-around.gemspec"
4289 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4290 #t)))))
4291 (propagated-inputs
4292 `(("ruby-minitest" ,ruby-minitest)))
4293 (native-inputs
4294 `(("bundler" ,bundler)
4295 ("ruby-cucumber" ,ruby-cucumber)
4296 ("ruby-bump" ,ruby-bump)
4297 ("ruby-test-construct" ,ruby-test-construct)))
4298 (synopsis "Run code around tests in Minitest")
4299 (description
4300 "This library provides a way to run code around tests in Minitest,
4301 written using either the unit test or spec style.")
4302 (home-page "https://github.com/splattael/minitest-around")
4303 (license license:expat)))
4304
4305 (define-public ruby-minitest-sprint
4306 (package
4307 (name "ruby-minitest-sprint")
4308 (version "1.1.0")
4309 (source (origin
4310 (method url-fetch)
4311 (uri (rubygems-uri "minitest-sprint" version))
4312 (sha256
4313 (base32
4314 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4315 (build-system ruby-build-system)
4316 (native-inputs
4317 `(("ruby-hoe" ,ruby-hoe)
4318 ("ruby-minitest" ,ruby-minitest)))
4319 (synopsis "Fast test suite runner for minitest")
4320 (description "Minitest-sprint is a test runner for minitest that makes it
4321 easier to re-run individual failing tests.")
4322 (home-page "https://github.com/seattlerb/minitest-sprint")
4323 (license license:expat)))
4324
4325 (define-public ruby-minitest-bacon
4326 (package
4327 (name "ruby-minitest-bacon")
4328 (version "1.0.3")
4329 (source (origin
4330 (method url-fetch)
4331 (uri (rubygems-uri "minitest-bacon" version))
4332 (sha256
4333 (base32
4334 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4335 (build-system ruby-build-system)
4336 (native-inputs
4337 `(("ruby-hoe" ,ruby-hoe)))
4338 (inputs
4339 `(("ruby-minitest" ,ruby-minitest)))
4340 (synopsis "Bacon compatibility library for minitest")
4341 (description "Minitest-bacon extends minitest with bacon-like
4342 functionality, making it easier to migrate test suites from bacon to minitest.")
4343 (home-page "https://github.com/seattlerb/minitest-bacon")
4344 (license license:expat)))
4345
4346 (define-public ruby-minitest-focus
4347 (package
4348 (name "ruby-minitest-focus")
4349 (version "1.1.2")
4350 (source
4351 (origin
4352 (method url-fetch)
4353 (uri (rubygems-uri "minitest-focus" version))
4354 (sha256
4355 (base32
4356 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4357 (build-system ruby-build-system)
4358 (propagated-inputs
4359 `(("ruby-minitest" ,ruby-minitest)))
4360 (native-inputs
4361 `(("ruby-hoe" ,ruby-hoe)))
4362 (synopsis "Allows a few specific tests to be focused on")
4363 (description
4364 "@code{minitest-focus} gives the ability focus on a few tests with ease
4365 without having to use command-line arguments. It introduces a @code{focus}
4366 class method for use in testing classes, specifying that the next defined test
4367 is to be run.")
4368 (home-page "https://github.com/seattlerb/minitest-focus")
4369 (license license:expat)))
4370
4371 (define-public ruby-minitest-pretty-diff
4372 ;; Use git reference because gem is out of date and does not contain testing
4373 ;; script. There are no releases on GitHub.
4374 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4375 (package
4376 (name "ruby-minitest-pretty-diff")
4377 (version (string-append "0.1-1." (string-take commit 8)))
4378 (source (origin
4379 (method git-fetch)
4380 (uri (git-reference
4381 (url "https://github.com/adammck/minitest-pretty_diff")
4382 (commit commit)))
4383 (file-name (string-append name "-" version "-checkout"))
4384 (sha256
4385 (base32
4386 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4387 (build-system ruby-build-system)
4388 (arguments
4389 `(#:phases
4390 (modify-phases %standard-phases
4391 (replace 'check
4392 (lambda _
4393 (invoke "script/test"))))))
4394 (native-inputs
4395 `(("bundler" ,bundler)
4396 ("ruby-turn" ,ruby-turn)))
4397 (synopsis "Pretty-print hashes and arrays in MiniTest")
4398 (description
4399 "@code{minitest-pretty_diff} monkey-patches
4400 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4401 diffing them. This makes it easier to spot differences between nested
4402 structures when tests fail.")
4403 (home-page "https://github.com/adammck/minitest-pretty_diff")
4404 (license license:expat))))
4405
4406 (define-public ruby-minitest-moar
4407 (package
4408 (name "ruby-minitest-moar")
4409 (version "0.0.4")
4410 (source
4411 (origin
4412 (method url-fetch)
4413 (uri (rubygems-uri "minitest-moar" version))
4414 (sha256
4415 (base32
4416 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4417 (build-system ruby-build-system)
4418 (arguments
4419 `(#:phases
4420 (modify-phases %standard-phases
4421 (add-before 'check 'clean-dependencies
4422 (lambda _
4423 ;; Remove all gems defined in the Gemfile because these are not
4424 ;; truly needed.
4425 (substitute* "Gemfile"
4426 (("gem .*") ""))
4427 ;; Remove byebug as not needed to run tests.
4428 (substitute* "test/test_helper.rb"
4429 (("require 'byebug'") ""))
4430 #t)))))
4431 (native-inputs
4432 `(("bundler" ,bundler)
4433 ("ruby-minitest" ,ruby-minitest)))
4434 (synopsis "Extra features and changes to MiniTest")
4435 (description "@code{MiniTest Moar} add some additional features and
4436 changes some default behaviours in MiniTest. For instance, Moar replaces the
4437 MiniTest @code{Object#stub} with a global @code{stub} method.")
4438 (home-page "https://github.com/dockyard/minitest-moar")
4439 (license license:expat)))
4440
4441 (define-public ruby-minitest-bonus-assertions
4442 (package
4443 (name "ruby-minitest-bonus-assertions")
4444 (version "3.0")
4445 (source
4446 (origin
4447 (method url-fetch)
4448 (uri (rubygems-uri "minitest-bonus-assertions" version))
4449 (sha256
4450 (base32
4451 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4452 (build-system ruby-build-system)
4453 (arguments
4454 `(#:phases
4455 (modify-phases %standard-phases
4456 (add-before 'check 'clean-dependencies
4457 (lambda _
4458 ;; Remove unneeded require statement that would entail another
4459 ;; dependency.
4460 (substitute* "test/minitest_config.rb"
4461 (("require 'minitest/bisect'") ""))
4462 #t)))))
4463 (native-inputs
4464 `(("ruby-hoe" ,ruby-hoe)
4465 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4466 ("ruby-minitest-focus" ,ruby-minitest-focus)
4467 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4468 (synopsis "Bonus assertions for @code{Minitest}")
4469 (description
4470 "Minitest bonus assertions provides extra MiniTest assertions. For
4471 instance, it provides @code{assert_true}, @code{assert_false} and
4472 @code{assert_set_equal}.")
4473 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4474 (license license:expat)))
4475
4476 (define-public ruby-minitest-reporters
4477 (package
4478 (name "ruby-minitest-reporters")
4479 (version "1.3.6")
4480 (source
4481 (origin
4482 (method url-fetch)
4483 (uri (rubygems-uri "minitest-reporters" version))
4484 (sha256
4485 (base32
4486 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4487 (build-system ruby-build-system)
4488 (arguments
4489 '(#:phases
4490 (modify-phases %standard-phases
4491 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4492 ;; including it as an input can lead to circular dependencies.
4493 (add-after 'unpack 'remove-rubocop-from-Rakefile
4494 (lambda _
4495 (substitute* "Rakefile"
4496 (("require 'rubocop/rake\\_task'") "")
4497 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4498 #t))
4499 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4500 (lambda _
4501 (substitute* "minitest-reporters.gemspec"
4502 ((".*%q<rubocop>.*") "\n"))
4503 #t)))))
4504 (propagated-inputs
4505 `(("ruby-ansi" ,ruby-ansi)
4506 ("ruby-builder" ,ruby-builder)
4507 ("ruby-minitest" ,ruby-minitest)
4508 ("ruby-progressbar" ,ruby-progressbar)))
4509 (native-inputs
4510 `(("bundler" ,bundler)
4511 ("ruby-maruku" ,ruby-maruku)))
4512 (synopsis "Enhanced reporting for Minitest tests")
4513 (description
4514 "@code{minitest/reporters} provides a custom Minitest runner to improve
4515 how the test state is reported. A number of different reporters are
4516 available, including a spec reporter, progress bar reporter, a HTML
4517 reporter.")
4518 (home-page "https://github.com/kern/minitest-reporters")
4519 (license license:expat)))
4520
4521 (define-public ruby-minitest-rg
4522 (package
4523 (name "ruby-minitest-rg")
4524 (version "5.2.0")
4525 (source
4526 (origin
4527 (method url-fetch)
4528 (uri (rubygems-uri "minitest-rg" version))
4529 (sha256
4530 (base32
4531 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4532 (build-system ruby-build-system)
4533 (arguments
4534 ;; Some tests fail even outside Guix, so disable tests.
4535 ;; https://github.com/blowmage/minitest-rg/issues/12
4536 ;; https://github.com/blowmage/minitest-rg/pull/13
4537 `(#:tests? #f))
4538 (propagated-inputs
4539 `(("ruby-minitest" ,ruby-minitest)))
4540 (synopsis "Coloured output for Minitest")
4541 (description
4542 "@code{minitest-rg} changes the colour of the output from Minitest.")
4543 (home-page "https://blowmage.com/minitest-rg/")
4544 (license license:expat)))
4545
4546 (define-public ruby-minitest-global-expectations
4547 (package
4548 (name "ruby-minitest-global-expectations")
4549 (version "1.0.1")
4550 (source
4551 (origin
4552 (method url-fetch)
4553 (uri (rubygems-uri "minitest-global_expectations"
4554 version))
4555 (sha256
4556 (base32
4557 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4558 (build-system ruby-build-system)
4559 (propagated-inputs
4560 `(("ruby-minitest" ,ruby-minitest)))
4561 (synopsis "Adjust minitest behaviour for calling expectation methods")
4562 (description
4563 "Minitest-global_expectations allows continued use of expectation methods
4564 on all objects. Calling expectation methods on all objects was deprecated in
4565 minitest 5.12, and is planned to be removed from minitest 6.")
4566 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4567 (license license:expat)))
4568
4569 (define-public ruby-minitest-hooks
4570 (package
4571 (name "ruby-minitest-hooks")
4572 (version "1.4.2")
4573 (source
4574 (origin
4575 (method url-fetch)
4576 (uri (rubygems-uri "minitest-hooks" version))
4577 (sha256
4578 (base32
4579 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4580 (build-system ruby-build-system)
4581 (arguments
4582 '(#:test-target "spec"))
4583 (native-inputs
4584 `(("ruby-sequel" ,ruby-sequel)
4585 ("ruby-sqlite3" ,ruby-sqlite3)))
4586 (synopsis "Hooks for the minitest framework")
4587 (description
4588 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4589 @code{around_all} hooks for Minitest. This allows, for instance, running each
4590 suite of specs inside a database transaction, running each spec inside its own
4591 savepoint inside that transaction. This can significantly speed up testing
4592 for specs that share expensive database setup code.")
4593 (home-page "https://github.com/jeremyevans/minitest-hooks")
4594 (license license:expat)))
4595
4596 (define-public ruby-daemons
4597 (package
4598 (name "ruby-daemons")
4599 (version "1.2.5")
4600 (source (origin
4601 (method url-fetch)
4602 (uri (rubygems-uri "daemons" version))
4603 (sha256
4604 (base32
4605 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4606 (build-system ruby-build-system)
4607 (arguments
4608 `(#:tests? #f)) ; no test suite
4609 (synopsis "Daemonize Ruby programs")
4610 (description "Daemons provides a way to wrap existing Ruby scripts to be
4611 run as a daemon and to be controlled by simple start/stop/restart commands.")
4612 (home-page "https://github.com/thuehlinger/daemons")
4613 (license license:expat)))
4614
4615 (define-public ruby-data_uri
4616 (package
4617 (name "ruby-data_uri")
4618 (version "0.1.0")
4619 (source
4620 (origin
4621 (method url-fetch)
4622 (uri (rubygems-uri "data_uri" version))
4623 (sha256
4624 (base32
4625 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4626 (build-system ruby-build-system)
4627 (synopsis "URI class for parsing data URIs")
4628 (description
4629 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4630 embedded inside a URI. The URI::Data class provides support for parsing these
4631 URIs using the normal URI.parse method.")
4632 (home-page "https://github.com/dball/data_uri")
4633 (license license:expat)))
4634
4635 (define-public ruby-deep-merge
4636 (package
4637 (name "ruby-deep-merge")
4638 (version "1.2.1")
4639 (home-page "https://github.com/danielsdeleo/deep_merge")
4640 ;; The Rubygem source does not contain the gemspec required for tests.
4641 (source (origin
4642 (method git-fetch)
4643 (uri (git-reference (url home-page) (commit version)))
4644 (file-name (git-file-name name version))
4645 (sha256
4646 (base32
4647 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4648 (build-system ruby-build-system)
4649 (native-inputs
4650 `(("ruby-minitest" ,ruby-minitest)))
4651 (synopsis "Recursively merge hashes")
4652 (description
4653 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4654 you to merge elements inside a hash together recursively.")
4655 (license license:expat)))
4656
4657 (define-public ruby-git
4658 (package
4659 (name "ruby-git")
4660 (version "1.3.0")
4661 (source (origin
4662 (method url-fetch)
4663 (uri (rubygems-uri "git" version))
4664 (sha256
4665 (base32
4666 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4667 (build-system ruby-build-system)
4668 (arguments
4669 `(#:tests? #f ; no tests
4670 #:phases (modify-phases %standard-phases
4671 (add-after 'install 'patch-git-binary
4672 (lambda* (#:key inputs outputs #:allow-other-keys)
4673 ;; Make the default git binary an absolute path to the
4674 ;; store.
4675 (let ((git (string-append (assoc-ref inputs "git")
4676 "/bin/git"))
4677 (config (string-append
4678 (assoc-ref outputs "out")
4679 "/lib/ruby/vendor_ruby/gems/git-"
4680 ,version "/lib/git/config.rb")))
4681 (substitute* (list config)
4682 (("'git'")
4683 (string-append "'" git "'")))
4684 #t))))))
4685 (inputs
4686 `(("git" ,git)))
4687 (synopsis "Ruby wrappers for Git")
4688 (description "Ruby/Git is a Ruby library that can be used to create, read
4689 and manipulate Git repositories by wrapping system calls to the git binary.")
4690 (home-page "https://github.com/schacon/ruby-git")
4691 (license license:expat)))
4692
4693 (define-public ruby-hocon
4694 (package
4695 (name "ruby-hocon")
4696 (version "1.3.1")
4697 (home-page "https://github.com/puppetlabs/ruby-hocon")
4698 (source (origin
4699 (method git-fetch)
4700 (uri (git-reference (url home-page) (commit version)))
4701 (file-name (git-file-name name version))
4702 (sha256
4703 (base32
4704 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4705 (build-system ruby-build-system)
4706 (arguments
4707 '(#:phases (modify-phases %standard-phases
4708 (replace 'check
4709 (lambda* (#:key tests? #:allow-other-keys)
4710 (if tests?
4711 (invoke "rspec")
4712 (format #t "test suite not run~%"))
4713 #t)))))
4714 (native-inputs
4715 `(("bundler" ,bundler)
4716 ("ruby-rspec" ,ruby-rspec)))
4717 (synopsis "HOCON config library")
4718 (description
4719 "This package provides Ruby support for the @acronym{HOCON,
4720 Human-Optimized Config Object Notation} configuration file format. It
4721 supports parsing and modifying HOCON and JSON files, and rendering parsed
4722 objects back to a @code{String}.")
4723 (license license:asl2.0)))
4724
4725 (define-public ruby-slop
4726 (package
4727 (name "ruby-slop")
4728 (version "4.5.0")
4729 (source (origin
4730 (method url-fetch)
4731 (uri (rubygems-uri "slop" version))
4732 (sha256
4733 (base32
4734 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4735 (build-system ruby-build-system)
4736 (native-inputs
4737 `(("ruby-minitest" ,ruby-minitest)))
4738 (synopsis "Ruby command line option parser")
4739 (description "Slop provides a Ruby domain specific language for gathering
4740 options and parsing command line flags.")
4741 (home-page "https://github.com/leejarvis/slop")
4742 (license license:expat)))
4743
4744 (define-public ruby-slop-3
4745 (package (inherit ruby-slop)
4746 (version "3.6.0")
4747 (source (origin
4748 (method url-fetch)
4749 (uri (rubygems-uri "slop" version))
4750 (sha256
4751 (base32
4752 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4753
4754 (define-public ruby-multi-xml
4755 (package
4756 (name "ruby-multi-xml")
4757 (version "0.6.0")
4758 (source
4759 (origin
4760 (method url-fetch)
4761 (uri (rubygems-uri "multi_xml" version))
4762 (sha256
4763 (base32
4764 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4765 (build-system ruby-build-system)
4766 (arguments
4767 '(#:tests? #f)) ; No included tests
4768 (synopsis "Swappable XML backends for Ruby")
4769 (description
4770 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4771 Nokogiri, Ox, or REXML.")
4772 (home-page "https://github.com/sferik/multi_xml")
4773 (license license:expat)))
4774
4775 (define-public ruby-multipart-post
4776 (package
4777 (name "ruby-multipart-post")
4778 (version "2.0.0")
4779 (source (origin
4780 (method url-fetch)
4781 (uri (rubygems-uri "multipart-post" version))
4782 (sha256
4783 (base32
4784 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4785 (build-system ruby-build-system)
4786 (native-inputs
4787 `(("bundler" ,bundler)))
4788 (synopsis "Multipart POST library for Ruby")
4789 (description "Multipart-Post Adds multipart POST capability to Ruby's
4790 net/http library.")
4791 (home-page "https://github.com/nicksieger/multipart-post")
4792 (license license:expat)))
4793
4794 (define-public ruby-multi-json
4795 (package
4796 (name "ruby-multi-json")
4797 (version "1.13.1")
4798 (source
4799 (origin
4800 (method git-fetch)
4801 ;; Tests are not distributed at rubygems.org so download from GitHub
4802 ;; instead.
4803 (uri (git-reference
4804 (url "https://github.com/intridea/multi_json")
4805 (commit (string-append "v" version))))
4806 (file-name (git-file-name name version))
4807 (sha256
4808 (base32
4809 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4810 (build-system ruby-build-system)
4811 (arguments
4812 `(#:phases
4813 (modify-phases %standard-phases
4814 (add-after 'unpack 'remove-signing-key-reference
4815 (lambda _
4816 (substitute* "multi_json.gemspec"
4817 ((".*spec.signing_key.*") ""))
4818 #t)))))
4819 (native-inputs
4820 `(("bundler" ,bundler)
4821 ("ruby-rspec" ,ruby-rspec)
4822 ("ruby-yard" ,ruby-yard)
4823 ("ruby-json-pure" ,ruby-json-pure)
4824 ("ruby-oj" ,ruby-oj)
4825 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4826 (synopsis "Common interface to multiple JSON libraries for Ruby")
4827 (description
4828 "This package provides a common interface to multiple JSON libraries,
4829 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4830 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4831 (home-page "https://github.com/intridea/multi_json")
4832 (license license:expat)))
4833
4834 (define-public ruby-multi-test
4835 (package
4836 (name "ruby-multi-test")
4837 (version "0.1.2")
4838 (source
4839 (origin
4840 (method url-fetch)
4841 (uri (rubygems-uri "multi_test" version))
4842 (sha256
4843 (base32
4844 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4845 (build-system ruby-build-system)
4846 (arguments
4847 '(;; Tests require different sets of specific gem versions to be available,
4848 ;; and there is no gemfile that specifies the newest versions of
4849 ;; dependencies to be tested.
4850 #:tests? #f))
4851 (synopsis
4852 "Interface to testing libraries loaded into a running Ruby process")
4853 (description
4854 "@code{multi_test} provides a uniform interface onto whatever testing
4855 libraries that have been loaded into a running Ruby process to help control
4856 rogue test/unit/autorun requires.")
4857 (home-page "https://github.com/cucumber/multi_test")
4858 (license license:expat)))
4859
4860 (define-public ruby-arel
4861 (package
4862 (name "ruby-arel")
4863 (version "9.0.0")
4864 (source (origin
4865 (method url-fetch)
4866 (uri (rubygems-uri "arel" version))
4867 (sha256
4868 (base32
4869 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4870 (build-system ruby-build-system)
4871 (arguments '(#:tests? #f)) ; no tests
4872 (home-page "https://github.com/rails/arel")
4873 (synopsis "SQL AST manager for Ruby")
4874 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4875 Ruby. It simplifies the generation of complex SQL queries and adapts to
4876 various relational database implementations.")
4877 (license license:expat)))
4878
4879 (define-public ruby-marcel
4880 (package
4881 (name "ruby-marcel")
4882 (version "0.3.3")
4883 (source
4884 (origin
4885 (method url-fetch)
4886 (uri (rubygems-uri "marcel" version))
4887 (sha256
4888 (base32
4889 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4890 (build-system ruby-build-system)
4891 (arguments
4892 '(;; No included tests
4893 #:tests? #f))
4894 (propagated-inputs
4895 `(("ruby-mimemagic" ,ruby-mimemagic)))
4896 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4897 (description
4898 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4899 Extensions} type detection using magic numbers, filenames, and extensions")
4900 (home-page "https://github.com/basecamp/marcel")
4901 (license license:expat)))
4902
4903 (define-public ruby-minitar
4904 ;; We package from the GitHub source to fix the security issue reported at
4905 ;; https://github.com/halostatue/minitar/issues/16.
4906 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4907 (package
4908 (name "ruby-minitar")
4909 (version (string-append "0.5.4-1." (string-take commit 8)))
4910 (source
4911 (origin
4912 (method git-fetch)
4913 (uri (git-reference
4914 (url "https://github.com/halostatue/minitar")
4915 (commit commit)))
4916 (file-name (string-append name "-" version "-checkout"))
4917 (sha256
4918 (base32
4919 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4920 (build-system ruby-build-system)
4921 (arguments
4922 '(#:tests? #f)) ; missing a gemspec
4923 (synopsis "Ruby library and utility for handling tar archives")
4924 (description
4925 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4926 that provides the ability to deal with POSIX tar archive files.")
4927 (home-page "http://www.github.com/atoulme/minitar")
4928 (license (list license:gpl2+ license:ruby)))))
4929
4930 (define-public ruby-mini-portile
4931 (package
4932 (name "ruby-mini-portile")
4933 (version "0.6.2")
4934 (source
4935 (origin
4936 (method url-fetch)
4937 (uri (rubygems-uri "mini_portile" version))
4938 (sha256
4939 (base32
4940 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4941 (build-system ruby-build-system)
4942 (arguments
4943 '(#:tests? #f)) ; tests require network access
4944 (synopsis "Ports system for Ruby developers")
4945 (description "Mini-portile is a port/recipe system for Ruby developers.
4946 It provides a standard way to compile against specific versions of libraries
4947 to reproduce user environments.")
4948 (home-page "https://github.com/flavorjones/mini_portile")
4949 (license license:expat)))
4950
4951 (define-public ruby-mini-portile-2
4952 (package (inherit ruby-mini-portile)
4953 (version "2.4.0")
4954 (source (origin
4955 (method url-fetch)
4956 (uri (rubygems-uri "mini_portile2" version))
4957 (sha256
4958 (base32
4959 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4960
4961 (define-public ruby-nokogiri
4962 (package
4963 (name "ruby-nokogiri")
4964 (version "1.10.9")
4965 (source (origin
4966 (method url-fetch)
4967 (uri (rubygems-uri "nokogiri" version))
4968 (sha256
4969 (base32
4970 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4971 (build-system ruby-build-system)
4972 (arguments
4973 ;; Tests fail because Nokogiri can only test with an installed extension,
4974 ;; and also because many test framework dependencies are missing.
4975 `(#:tests? #f
4976 #:gem-flags (list "--" "--use-system-libraries"
4977 (string-append "--with-xml2-include="
4978 (assoc-ref %build-inputs "libxml2")
4979 "/include/libxml2" ))
4980 #:phases
4981 (modify-phases %standard-phases
4982 (add-before 'build 'patch-extconf
4983 ;; 'pkg-config' is not included in the GEM_PATH during
4984 ;; installation, so we add it directly to the load path.
4985 (lambda* (#:key inputs #:allow-other-keys)
4986 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4987 (substitute* "ext/nokogiri/extconf.rb"
4988 (("gem 'pkg-config'.*")
4989 (string-append "$:.unshift '"
4990 pkg-config "/lib/ruby/vendor_ruby"
4991 "/gems/pkg-config-"
4992 ,(package-version ruby-pkg-config)
4993 "/lib'\n"))))
4994 #t)))))
4995 (native-inputs
4996 `(("ruby-hoe" ,ruby-hoe)))
4997 (inputs
4998 `(("zlib" ,zlib)
4999 ("libxml2" ,libxml2)
5000 ("libxslt" ,libxslt)))
5001 (propagated-inputs
5002 `(("ruby-mini-portile" ,ruby-mini-portile-2)
5003 ("ruby-pkg-config" ,ruby-pkg-config)))
5004 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
5005 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
5006 both CSS3 selector and XPath 1.0 support.")
5007 (home-page "http://www.nokogiri.org/")
5008 (license license:expat)))
5009
5010 (define-public ruby-method-source
5011 (package
5012 (name "ruby-method-source")
5013 (version "1.0.0")
5014 (source
5015 (origin
5016 (method url-fetch)
5017 (uri (rubygems-uri "method_source" version))
5018 (sha256
5019 (base32
5020 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5021 (build-system ruby-build-system)
5022 (arguments
5023 `(#:test-target "spec"
5024 #:phases
5025 (modify-phases %standard-phases
5026 (add-after 'unpack 'remove-git-ls-files
5027 (lambda* (#:key outputs #:allow-other-keys)
5028 (substitute* "Rakefile"
5029 (("git ls-files") "find . -type f"))
5030 #t)))))
5031 (native-inputs
5032 `(("ruby-rspec" ,ruby-rspec)))
5033 (synopsis "Retrieve the source code for Ruby methods")
5034 (description "Method_source retrieves the source code for Ruby methods.
5035 Additionally, it can extract source code from Proc and Lambda objects or just
5036 extract comments.")
5037 (home-page "https://github.com/banister/method_source")
5038 (license license:expat)))
5039
5040 (define-public ruby-coderay
5041 (package
5042 (name "ruby-coderay")
5043 (version "1.1.2")
5044 (source
5045 (origin
5046 (method url-fetch)
5047 (uri (rubygems-uri "coderay" version))
5048 (sha256
5049 (base32
5050 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5051 (build-system ruby-build-system)
5052 (arguments
5053 '(#:tests? #f)) ; missing test files
5054 (synopsis "Ruby syntax highlighting library")
5055 (description "Coderay is a Ruby library that provides syntax highlighting
5056 for select languages.")
5057 (home-page "http://coderay.rubychan.de")
5058 (license license:expat)))
5059
5060 (define-public ruby-cuke-modeler
5061 (package
5062 (name "ruby-cuke-modeler")
5063 (version "3.1.0")
5064 (source
5065 (origin
5066 (method url-fetch)
5067 (uri (rubygems-uri "cuke_modeler" version))
5068 (sha256
5069 (base32
5070 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5071 (build-system ruby-build-system)
5072 (arguments `(#:tests? #f)) ;no test suite in gem
5073 (propagated-inputs
5074 `(("ruby-gherkin" ,ruby-gherkin)))
5075 (synopsis "Gherkin test suite analysis tool")
5076 (description "CukeModeler facilitates modeling a test suite that is
5077 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5078 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5079 the @code{cucumber-gherkin} generates when parsing features, as well as
5080 providing models for feature files and directories in order to be able to have
5081 a fully traversable model tree of a test suite's structure. These models can
5082 then be analyzed or manipulated more easily than the underlying AST layer.")
5083 (home-page "https://github.com/enkessler/cuke_modeler")
5084 (license license:expat)))
5085
5086 (define-public ruby-parallel-tests
5087 (package
5088 (name "ruby-parallel-tests")
5089 (version "3.0.0")
5090 (home-page "https://github.com/grosser/parallel_tests")
5091 (source (origin
5092 (method git-fetch)
5093 (uri (git-reference
5094 (url home-page)
5095 (commit (string-append "v" version))))
5096 (file-name (string-append name version))
5097 (sha256
5098 (base32
5099 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5100 (build-system ruby-build-system)
5101 (arguments
5102 '(#:test-target "default"
5103 #:phases (modify-phases %standard-phases
5104 (add-after 'patch-source-shebangs 'patch-shell-invokations
5105 (lambda _
5106 (substitute* '("lib/parallel_tests/tasks.rb"
5107 "spec/parallel_tests/tasks_spec.rb")
5108 (("/bin/sh") (which "sh"))
5109 (("/bin/bash") (which "bash")))
5110 #t))
5111 (add-before 'check 'remove-version-constraints
5112 (lambda _
5113 ;; Remove hard coded version constraints, instead just
5114 ;; use whatever versions are available in Guix.
5115 (delete-file "Gemfile.lock")
5116 (substitute* "Gemfile"
5117 (("'minitest',.*")
5118 "'minitest'\n")
5119 (("'cucumber',.*")
5120 "'cucumber'\n"))
5121 #t))
5122 (add-before 'check 'disable-rails-test
5123 (lambda _
5124 ;; XXX: This test attempts to download and run the test
5125 ;; suites of multiple Rails versions(!) directly.
5126 (delete-file "spec/rails_spec.rb")
5127 #t))
5128 (add-before 'check 'set-HOME
5129 (lambda _
5130 ;; Some tests check the output of Bundler, and fail when
5131 ;; Bundler warns that /homeless-shelter does not exist.
5132 (setenv "HOME" "/tmp")
5133 #t)))))
5134 (native-inputs
5135 `(("ruby-bump" ,ruby-bump)
5136 ("ruby-cucumber" ,ruby-cucumber)
5137 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5138 ("ruby-minitest" ,ruby-minitest)
5139 ("ruby-rake" ,ruby-rake)
5140 ("ruby-rspec" ,ruby-rspec)
5141 ("ruby-spinach" ,ruby-spinach)))
5142 (propagated-inputs
5143 `(("ruby-parallel" ,ruby-parallel)))
5144 (synopsis "Run tests in parallel")
5145 (description
5146 "This package can speed up @code{Test::Unit}, @code{RSpec},
5147 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5148 across multiple CPU cores.")
5149 (license license:expat)))
5150
5151 (define-public ruby-parser
5152 (package
5153 (name "ruby-parser")
5154 (version "2.7.2.0")
5155 (source
5156 (origin
5157 (method url-fetch)
5158 (uri (rubygems-uri "parser" version))
5159 (sha256
5160 (base32
5161 "1f7gmm60yla325wlnd3qkxs59qm2y0aan8ljpg6k18rwzrrfil6z"))))
5162 (build-system ruby-build-system)
5163 (arguments
5164 '(#:tests? #f)) ; tests not included in gem
5165 (native-inputs
5166 `(("bundler" ,bundler)
5167 ("ruby-cliver" ,ruby-cliver)
5168 ("ruby-simplecov" ,ruby-simplecov)
5169 ("ruby-racc" ,ruby-racc)))
5170 (inputs
5171 `(("ragel" ,ragel)))
5172 (propagated-inputs
5173 `(("ruby-ast" ,ruby-ast)))
5174 (synopsis "Ruby parser written in pure Ruby")
5175 (description
5176 "This package provides a Ruby parser written in pure Ruby.")
5177 (home-page "https://github.com/whitequark/parser")
5178 (license license:expat)))
5179
5180 (define-public ruby-sexp-processor
5181 (package
5182 (name "ruby-sexp-processor")
5183 (version "4.15.0")
5184 (source
5185 (origin
5186 (method url-fetch)
5187 (uri (rubygems-uri "sexp_processor" version))
5188 (sha256
5189 (base32
5190 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5191 (build-system ruby-build-system)
5192 (native-inputs
5193 ;; TODO: Add ruby-minitest-proveit once available.
5194 `(("hoe" ,ruby-hoe)))
5195 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5196 (description "The sexp_processor package is derived from ParseTree, but
5197 contrary to ParseTree, it includes all the generic S-exp processing tools.
5198 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5199 @code{Environment}")
5200 (home-page "https://github.com/seattlerb/sexp_processor")
5201 (license license:expat)))
5202
5203 (define-public ruby-ruby-parser
5204 (package
5205 (name "ruby-ruby-parser")
5206 (version "3.14.2")
5207 (source
5208 (origin
5209 (method url-fetch)
5210 (uri (rubygems-uri "ruby_parser" version))
5211 (sha256
5212 (base32
5213 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5214 (build-system ruby-build-system)
5215 (native-inputs
5216 `(("hoe" ,ruby-hoe)
5217 ("racc" ,ruby-racc)
5218 ("unifdef" ,unifdef)))
5219 (propagated-inputs
5220 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5221 (home-page "https://github.com/seattlerb/ruby_parser/")
5222 (synopsis "Ruby parser written in pure Ruby")
5223 (description "The ruby_parser (RP) package provides a Ruby parser written
5224 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5225 back to Ruby via the @code{ruby2ruby} library.")
5226 (license license:expat)))
5227
5228 (define-public ruby-prawn-manual-builder
5229 (package
5230 (name "ruby-prawn-manual-builder")
5231 (version "0.3.1")
5232 (source
5233 (origin
5234 (method url-fetch)
5235 (uri (rubygems-uri "prawn-manual_builder" version))
5236 (sha256
5237 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5238 (build-system ruby-build-system)
5239 (arguments
5240 '(#:tests? #f ; no included tests
5241 #:phases
5242 (modify-phases %standard-phases
5243 (add-after 'extract-gemspec 'patch-gemspec
5244 (lambda _
5245 (substitute* ".gemspec"
5246 ;; Loosen the requirement for pdf-inspector
5247 (("~> 1\\.0\\.7") ">= 0")))))))
5248 (propagated-inputs
5249 `(("ruby-coderay" ,ruby-coderay)))
5250 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5251 (description
5252 "This package provides a tool for writing manuals for Prawn and Prawn
5253 accessories")
5254 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5255 (license %prawn-project-licenses)))
5256
5257 (define-public ruby-progress_bar
5258 (package
5259 (name "ruby-progress_bar")
5260 (version "1.1.0")
5261 (source
5262 (origin
5263 (method url-fetch)
5264 (uri (rubygems-uri "progress_bar" version))
5265 (sha256
5266 (base32
5267 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5268 (build-system ruby-build-system)
5269 (arguments
5270 '(#:test-target "spec"))
5271 (propagated-inputs
5272 `(("ruby-highline" ,ruby-highline)
5273 ("ruby-options" ,ruby-options)))
5274 (native-inputs
5275 `(("bundler" ,bundler)
5276 ("ruby-rspec" ,ruby-rspec)
5277 ("ruby-timecop" ,ruby-timecop)))
5278 (synopsis
5279 "Ruby library for displaying progress bars")
5280 (description
5281 "ProgressBar is a simple library for displaying progress bars. The
5282 maximum value is configurable, and additional information can be displayed
5283 like the percentage completion, estimated time remaining, elapsed time and
5284 rate.")
5285 (home-page "https://github.com/paul/progress_bar")
5286 (license license:wtfpl2)))
5287
5288 (define-public ruby-dep
5289 (package
5290 (name "ruby-dep")
5291 (version "1.5.0")
5292 (source
5293 (origin
5294 (method url-fetch)
5295 (uri (rubygems-uri "ruby_dep" version))
5296 (sha256
5297 (base32
5298 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5299 (build-system ruby-build-system)
5300 (arguments
5301 '(#:tests? #f)) ; No included tests
5302 (synopsis "Creates a version constraint of supported Rubies")
5303 (description
5304 "This package helps create a version constraint of supported Rubies,
5305 suitable for a gemspec file.")
5306 (home-page "https://github.com/e2/ruby_dep")
5307 (license license:expat)))
5308
5309 (define-public ruby-progressbar
5310 (package
5311 (name "ruby-progressbar")
5312 (version "1.10.1")
5313 (source
5314 (origin
5315 (method url-fetch)
5316 (uri (rubygems-uri "ruby-progressbar" version))
5317 (sha256
5318 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5319 (build-system ruby-build-system)
5320 (arguments
5321 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5322 #:tests? #f))
5323 (synopsis "Text progress bar library for Ruby")
5324 (description
5325 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5326 The output can be customized with a formatting system.")
5327 (home-page "https://github.com/jfelchner/ruby-progressbar")
5328 (license license:expat)))
5329
5330 (define-public ruby-pry
5331 (package
5332 (name "ruby-pry")
5333 (version "0.13.1")
5334 (source
5335 (origin
5336 (method url-fetch)
5337 (uri (rubygems-uri "pry" version))
5338 (sha256
5339 (base32
5340 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5341 (build-system ruby-build-system)
5342 (arguments
5343 '(#:tests? #f)) ; no tests
5344 (propagated-inputs
5345 `(("ruby-coderay" ,ruby-coderay)
5346 ("ruby-method-source" ,ruby-method-source)))
5347 (synopsis "Ruby REPL")
5348 (description "Pry is an IRB alternative and runtime developer console for
5349 Ruby. It features syntax highlighting, a plugin architecture, runtime
5350 invocation, and source and documentation browsing.")
5351 (home-page "https://cobaltbluemedia.com/pryrepl/")
5352 (license license:expat)))
5353
5354 (define-public ruby-single-cov
5355 (package
5356 (name "ruby-single-cov")
5357 (version "1.3.2")
5358 (home-page "https://github.com/grosser/single_cov")
5359 (source (origin
5360 (method git-fetch)
5361 (uri (git-reference (url home-page)
5362 (commit (string-append "v" version))))
5363 (file-name (git-file-name name version))
5364 (sha256
5365 (base32
5366 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5367 (build-system ruby-build-system)
5368 (arguments
5369 '(#:test-target "default"
5370 #:phases (modify-phases %standard-phases
5371 (replace 'replace-git-ls-files
5372 (lambda _
5373 (substitute* "single_cov.gemspec"
5374 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5375 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5376 #t))
5377 (add-before 'check 'remove-version-constraints
5378 (lambda _
5379 (delete-file "Gemfile.lock")
5380 #t))
5381 (add-before 'check 'make-files-writable
5382 (lambda _
5383 ;; Tests need to create local directories and open files
5384 ;; with write permissions.
5385 (for-each make-file-writable
5386 (find-files "specs" #:directories? #t))
5387 #t))
5388 (add-before 'check 'disable-failing-test
5389 (lambda _
5390 ;; XXX: This test copies assets from minitest, but can
5391 ;; not cope with the files being read-only. Just skip
5392 ;; it for now.
5393 (substitute* "specs/single_cov_spec.rb"
5394 (("it \"complains when coverage is bad\"")
5395 "xit \"complains when coverage is bad\""))
5396 #t)))))
5397 (native-inputs
5398 `(("ruby-bump" ,ruby-bump)
5399 ("ruby-minitest" ,ruby-minitest)
5400 ("ruby-rspec" ,ruby-rspec)
5401 ("ruby-simplecov" ,ruby-simplecov)))
5402 (synopsis "Code coverage reporting tool")
5403 (description
5404 "This package provides actionable code coverage reports for Ruby
5405 projects. It has very little overhead and can be easily integrated with
5406 development tools to catch coverage problems early.")
5407 (license license:expat)))
5408
5409 (define-public ruby-guard
5410 (package
5411 (name "ruby-guard")
5412 (version "2.13.0")
5413 (source (origin
5414 (method git-fetch)
5415 ;; The gem does not include a Rakefile, nor does it contain a
5416 ;; gemspec file, nor does it come with the tests. This is why
5417 ;; we fetch the tarball from Github.
5418 (uri (git-reference
5419 (url "https://github.com/guard/guard")
5420 (commit (string-append "v" version))))
5421 (file-name (git-file-name name version))
5422 (sha256
5423 (base32
5424 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5425 (build-system ruby-build-system)
5426 (arguments
5427 `(#:tests? #f ; tests require cucumber
5428 #:phases
5429 (modify-phases %standard-phases
5430 (add-after 'unpack 'remove-git-ls-files
5431 (lambda* (#:key outputs #:allow-other-keys)
5432 (substitute* "guard.gemspec"
5433 (("git ls-files -z") "find . -type f -print0"))
5434 #t))
5435 (replace 'build
5436 (lambda _
5437 (invoke "gem" "build" "guard.gemspec"))))))
5438 (propagated-inputs
5439 `(("ruby-formatador" ,ruby-formatador)
5440 ("ruby-listen" ,ruby-listen)
5441 ("ruby-lumberjack" ,ruby-lumberjack)
5442 ("ruby-nenv" ,ruby-nenv)
5443 ("ruby-notiffany" ,ruby-notiffany)
5444 ("ruby-pry" ,ruby-pry)
5445 ("ruby-shellany" ,ruby-shellany)
5446 ("ruby-thor" ,ruby-thor)))
5447 (native-inputs
5448 `(("bundler" ,bundler)
5449 ("ruby-rspec" ,ruby-rspec)))
5450 (synopsis "Tool to handle events on file system modifications")
5451 (description
5452 "Guard is a command line tool to easily handle events on file system
5453 modifications. Guard automates various tasks by running custom rules whenever
5454 file or directories are modified.")
5455 (home-page "https://guardgem.org/")
5456 (license license:expat)))
5457
5458 (define-public ruby-spinach
5459 (package
5460 (name "ruby-spinach")
5461 (version "0.11.0")
5462 (home-page "https://github.com/codegram/spinach")
5463 (source (origin
5464 (method url-fetch)
5465 (uri (rubygems-uri "spinach" version))
5466 (sha256
5467 (base32
5468 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5469 (build-system ruby-build-system)
5470 (arguments
5471 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5472 ;; which in turn depends on many other unpackaged gems. Enable once
5473 ;; capybara is available.
5474 '(#:tests? #f))
5475 (propagated-inputs
5476 `(("ruby-colorize" ,ruby-colorize)
5477 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5478 ("ruby-json" ,ruby-json)))
5479 (synopsis "Gherkin-based BDD framework")
5480 (description
5481 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5482 framework that leverages the expressive @code{Gherkin} language to help you
5483 define executable specifications of your code.")
5484 (license license:expat)))
5485
5486 (define-public ruby-tilt
5487 (package
5488 (name "ruby-tilt")
5489 (version "2.0.10")
5490 (source
5491 (origin
5492 (method git-fetch) ;the distributed gem lacks tests
5493 (uri (git-reference
5494 (url "https://github.com/rtomayko/tilt")
5495 (commit (string-append "v" version))))
5496 (file-name (git-file-name name version))
5497 (sha256
5498 (base32
5499 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5500 (build-system ruby-build-system)
5501 (arguments
5502 '(#:phases
5503 (modify-phases %standard-phases
5504 (add-after 'unpack 'remove-some-dependencies
5505 (lambda _
5506 (substitute* "Gemfile"
5507 ;; TODO ronn is used for generating the manual
5508 (("gem 'ronn'.*") "\n")
5509 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5510 ;; pass it in as a native-input
5511 (("gem 'haml'.*") "\n")
5512 ;; TODO Not all of these gems are packaged for Guix yet:
5513 ;; less, coffee-script, livescript, babel-transpiler,
5514 ;; typescript-node
5515 (("if can_execjs") "if false")
5516 ;; Disable the secondary group to reduce the number of
5517 ;; dependencies. None of the normal approaches work, so patch
5518 ;; the Gemfile instead.
5519 (("group :secondary") "[].each"))
5520 #t)))))
5521 (propagated-inputs
5522 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5523 ("ruby-sassc" ,ruby-sassc)))
5524 (native-inputs
5525 `(("bundler" ,bundler)
5526 ("ruby-yard" ,ruby-yard)
5527 ("ruby-builder" ,ruby-builder)
5528 ("ruby-erubis" ,ruby-erubis)
5529 ("ruby-markaby" ,ruby-markaby)))
5530 (synopsis "Generic interface to multiple Ruby template engines")
5531 (description
5532 "Tilt is a thin interface over a number of different Ruby template
5533 engines in an attempt to make their usage as generic as possible.")
5534 (home-page "https://github.com/rtomayko/tilt/")
5535 (license license:expat)))
5536
5537 (define-public ruby-thread-safe
5538 (package
5539 (name "ruby-thread-safe")
5540 (version "0.3.6")
5541 (source
5542 (origin
5543 (method url-fetch)
5544 (uri (rubygems-uri "thread_safe" version))
5545 (sha256
5546 (base32
5547 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5548 (build-system ruby-build-system)
5549 (arguments
5550 '(#:tests? #f)) ; needs simplecov, among others
5551 (synopsis "Thread-safe utilities for Ruby")
5552 (description "The thread_safe library provides thread-safe collections and
5553 utilities for Ruby.")
5554 (home-page "https://github.com/ruby-concurrency/thread_safe")
5555 (license license:asl2.0)))
5556
5557 (define-public ruby-tzinfo
5558 (package
5559 (name "ruby-tzinfo")
5560 (version "1.2.4")
5561 (source
5562 (origin
5563 (method url-fetch)
5564 (uri (rubygems-uri "tzinfo" version))
5565 (sha256
5566 (base32
5567 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5568 (build-system ruby-build-system)
5569 (arguments
5570 '(#:phases
5571 (modify-phases %standard-phases
5572 (add-after 'unpack 'skip-safe-tests
5573 (lambda _
5574 (substitute* "test/test_utils.rb"
5575 (("def safe_test\\(options = \\{\\}\\)")
5576 "def safe_test(options = {})
5577 skip('The Guix build environment has an unsafe load path')"))
5578 #t)))))
5579 (propagated-inputs
5580 `(("ruby-thread-safe" ,ruby-thread-safe)))
5581 (synopsis "Time zone library for Ruby")
5582 (description "TZInfo is a Ruby library that provides daylight savings
5583 aware transformations between times in different time zones.")
5584 (home-page "https://tzinfo.github.io")
5585 (license license:expat)))
5586
5587 (define-public ruby-tzinfo-data
5588 (package
5589 (name "ruby-tzinfo-data")
5590 (version "1.2017.3")
5591 (source
5592 (origin
5593 (method git-fetch)
5594 ;; Download from GitHub because the rubygems version does not contain
5595 ;; Rakefile or tests.
5596 (uri (git-reference
5597 (url "https://github.com/tzinfo/tzinfo-data")
5598 (commit (string-append "v" version))))
5599 (file-name (git-file-name name version))
5600 (sha256
5601 (base32
5602 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5603 ;; Remove the known test failure.
5604 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5605 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5606 (patches (search-patches
5607 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5608 (build-system ruby-build-system)
5609 (propagated-inputs
5610 `(("ruby-tzinfo" ,ruby-tzinfo)))
5611 (synopsis "Data from the IANA Time Zone database")
5612 (description
5613 "This library provides @code{TZInfo::Data}, which contains data from the
5614 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5615 (home-page "https://tzinfo.github.io")
5616 (license license:expat)))
5617
5618 (define-public ruby-rb-inotify
5619 (package
5620 (name "ruby-rb-inotify")
5621 (version "0.9.10")
5622 (source
5623 (origin
5624 (method url-fetch)
5625 (uri (rubygems-uri "rb-inotify" version))
5626 (sha256
5627 (base32
5628 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5629 (build-system ruby-build-system)
5630 (arguments
5631 '(#:tests? #f ; there are no tests
5632 #:phases
5633 (modify-phases %standard-phases
5634 ;; Building the gemspec with rake is not working here since it is
5635 ;; generated with Jeweler. It is also unnecessary because the
5636 ;; existing gemspec does not use any development tools to generate a
5637 ;; list of files.
5638 (replace 'build
5639 (lambda _
5640 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5641 (propagated-inputs
5642 `(("ruby-ffi" ,ruby-ffi)))
5643 (native-inputs
5644 `(("ruby-yard" ,ruby-yard)))
5645 (synopsis "Ruby wrapper for Linux's inotify")
5646 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5647 kernel subsystem for monitoring changes to files and directories.")
5648 (home-page "https://github.com/nex3/rb-inotify")
5649 (license license:expat)))
5650
5651 (define-public ruby-pry-editline
5652 (package
5653 (name "ruby-pry-editline")
5654 (version "1.1.2")
5655 (source (origin
5656 (method url-fetch)
5657 (uri (rubygems-uri "pry-editline" version))
5658 (sha256
5659 (base32
5660 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5661 (build-system ruby-build-system)
5662 (arguments `(#:tests? #f)) ; no tests included
5663 (native-inputs
5664 `(("bundler" ,bundler)))
5665 (synopsis "Open the current REPL line in an editor")
5666 (description
5667 "This gem provides a plugin for the Ruby REPL to enable opening the
5668 current line in an external editor.")
5669 (home-page "https://github.com/tpope/pry-editline")
5670 (license license:expat)))
5671
5672 (define-public ruby-sdoc
5673 (package
5674 (name "ruby-sdoc")
5675 (version "1.1.0")
5676 (source (origin
5677 (method url-fetch)
5678 (uri (rubygems-uri "sdoc" version))
5679 (sha256
5680 (base32
5681 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5682 (build-system ruby-build-system)
5683 (arguments
5684 `(#:phases
5685 (modify-phases %standard-phases
5686 (add-before 'check 'set-rubylib-and-patch-gemfile
5687 (lambda _
5688 (setenv "RUBYLIB" "lib")
5689 (substitute* "sdoc.gemspec"
5690 (("s.add_runtime_dependency.*") "\n")
5691 (("s.add_dependency.*") "\n"))
5692 (substitute* "Gemfile"
5693 (("gem \"rake\".*")
5694 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5695 #t)))))
5696 (propagated-inputs
5697 `(("ruby-json" ,ruby-json)))
5698 (native-inputs
5699 `(("bundler" ,bundler)
5700 ("ruby-minitest" ,ruby-minitest)
5701 ("ruby-hoe" ,ruby-hoe)))
5702 (synopsis "Generate searchable RDoc documentation")
5703 (description
5704 "SDoc is an RDoc documentation generator to build searchable HTML
5705 documentation for Ruby code.")
5706 (home-page "https://github.com/voloko/sdoc")
5707 (license license:expat)))
5708
5709 (define-public ruby-tins
5710 (package
5711 (name "ruby-tins")
5712 (version "1.15.0")
5713 (source (origin
5714 (method url-fetch)
5715 (uri (rubygems-uri "tins" version))
5716 (sha256
5717 (base32
5718 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5719 (build-system ruby-build-system)
5720 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5721 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5722 ;; the gemspec.
5723 (arguments
5724 `(#:tests? #f ; there are no tests
5725 #:phases
5726 (modify-phases %standard-phases
5727 (replace 'build
5728 (lambda _
5729 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5730 ;; causes an error.
5731 (substitute* "tins.gemspec"
5732 (("\"lib/spruz\", ") ""))
5733 (invoke "gem" "build" "tins.gemspec"))))))
5734 (synopsis "Assorted tools for Ruby")
5735 (description "Tins is a Ruby library providing assorted tools.")
5736 (home-page "https://github.com/flori/tins")
5737 (license license:expat)))
5738
5739 (define-public ruby-gem-hadar
5740 (package
5741 (name "ruby-gem-hadar")
5742 (version "1.9.1")
5743 (source (origin
5744 (method url-fetch)
5745 (uri (rubygems-uri "gem_hadar" version))
5746 (sha256
5747 (base32
5748 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5749 (build-system ruby-build-system)
5750 ;; This gem needs itself at development time. We disable rebuilding of the
5751 ;; gemspec to avoid this loop.
5752 (arguments
5753 `(#:tests? #f ; there are no tests
5754 #:phases
5755 (modify-phases %standard-phases
5756 (replace 'build
5757 (lambda _
5758 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5759 (propagated-inputs
5760 `(("git" ,git)
5761 ("ruby-tins" ,ruby-tins)
5762 ("ruby-yard" ,ruby-yard)))
5763 (synopsis "Library for the development of Ruby gems")
5764 (description
5765 "This library contains some useful functionality to support the
5766 development of Ruby gems.")
5767 (home-page "https://github.com/flori/gem_hadar")
5768 (license license:expat)))
5769
5770 (define-public ruby-minitest-tu-shim
5771 (package
5772 (name "ruby-minitest-tu-shim")
5773 (version "1.3.3")
5774 (source (origin
5775 (method url-fetch)
5776 (uri (rubygems-uri "minitest_tu_shim" version))
5777 (sha256
5778 (base32
5779 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5780 (build-system ruby-build-system)
5781 (arguments
5782 `(#:phases
5783 (modify-phases %standard-phases
5784 (add-after 'unpack 'fix-test-include-path
5785 (lambda* (#:key inputs #:allow-other-keys)
5786 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5787 (substitute* "Rakefile"
5788 (("Hoe\\.add_include_dirs .*")
5789 (string-append "Hoe.add_include_dirs \""
5790 minitest "/lib/ruby/vendor_ruby"
5791 "/gems/minitest-"
5792 ,(package-version ruby-minitest-4)
5793 "/lib" "\""))))
5794 #t))
5795 (add-before 'check 'fix-test-assumptions
5796 (lambda _
5797 ;; The test output includes the file name, so a couple of tests
5798 ;; fail. Changing the regular expressions slightly fixes this
5799 ;; problem.
5800 (substitute* "test/test_mini_test.rb"
5801 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5802 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5803 (("gsub\\(/.*, 'FILE:LINE'\\)")
5804 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5805 #t)))))
5806 (propagated-inputs
5807 `(("ruby-minitest-4" ,ruby-minitest-4)))
5808 (native-inputs
5809 `(("ruby-hoe" ,ruby-hoe)))
5810 (synopsis "Adapter library between minitest and test/unit")
5811 (description
5812 "This library bridges the gap between the small and fast minitest and
5813 Ruby's large and slower test/unit.")
5814 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5815 (license license:expat)))
5816
5817 (define-public ruby-term-ansicolor
5818 (package
5819 (name "ruby-term-ansicolor")
5820 (version "1.6.0")
5821 (source (origin
5822 (method url-fetch)
5823 (uri (rubygems-uri "term-ansicolor" version))
5824 (sha256
5825 (base32
5826 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5827 (build-system ruby-build-system)
5828 ;; Rebuilding the gemspec seems to require git, even though this is not a
5829 ;; git repository, so we just build the gem from the existing gemspec.
5830 (arguments
5831 `(#:phases
5832 (modify-phases %standard-phases
5833 (add-after 'unpack 'fix-test
5834 (lambda -
5835 (substitute* "tests/hsl_triple_test.rb"
5836 (("0\\\\\\.0%")
5837 "0\\.?0?%"))))
5838 (replace 'build
5839 (lambda _
5840 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5841 (propagated-inputs
5842 `(("ruby-tins" ,ruby-tins)))
5843 (native-inputs
5844 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5845 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5846 (synopsis "Ruby library to control the attributes of terminal output")
5847 (description
5848 "This Ruby library uses ANSI escape sequences to control the attributes
5849 of terminal output.")
5850 (home-page "https://flori.github.io/term-ansicolor/")
5851 ;; There is no mention of the "or later" clause.
5852 (license license:gpl2)))
5853
5854 (define-public ruby-terraform
5855 (package
5856 (name "ruby-terraform")
5857 (version "0.22.0")
5858 (source
5859 (origin
5860 (method url-fetch)
5861 (uri (rubygems-uri "ruby-terraform" version))
5862 (sha256
5863 (base32
5864 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5865 (build-system ruby-build-system)
5866 (arguments
5867 '(#:tests? #f)) ; No included tests
5868 (propagated-inputs
5869 `(("ruby-lino" ,ruby-lino)))
5870 (synopsis "Ruby wrapper around the Terraform command line interface")
5871 (description
5872 "This package provides a Ruby wrapper around the Terraform command line
5873 interface so that Terraform can be more easily invoked from Ruby code.")
5874 (home-page "https://github.com/infrablocks/ruby_terraform")
5875 (license license:expat)))
5876
5877 (define-public ruby-pstree
5878 (package
5879 (name "ruby-pstree")
5880 (version "0.1.0")
5881 (source (origin
5882 (method url-fetch)
5883 (uri (rubygems-uri "pstree" version))
5884 (sha256
5885 (base32
5886 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5887 (build-system ruby-build-system)
5888 (native-inputs
5889 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5890 ("bundler" ,bundler)))
5891 (synopsis "Create a process tree data structure")
5892 (description
5893 "This library uses the output of the @code{ps} command to create a
5894 process tree data structure for the current host.")
5895 (home-page "https://github.com/flori/pstree")
5896 ;; There is no mention of the "or later" clause.
5897 (license license:gpl2)))
5898
5899 (define-public ruby-utils
5900 (package
5901 (name "ruby-utils")
5902 (version "0.9.0")
5903 (source (origin
5904 (method url-fetch)
5905 (uri (rubygems-uri "utils" version))
5906 (sha256
5907 (base32
5908 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5909 (build-system ruby-build-system)
5910 (propagated-inputs
5911 `(("ruby-tins" ,ruby-tins)
5912 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5913 ("ruby-pstree" ,ruby-pstree)
5914 ("ruby-pry-editline" ,ruby-pry-editline)))
5915 (native-inputs
5916 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5917 ("bundler" ,bundler)))
5918 (synopsis "Command line tools for working with Ruby")
5919 (description
5920 "This package provides assorted command line tools that may be useful
5921 when working with Ruby code.")
5922 (home-page "https://github.com/flori/utils")
5923 ;; There is no mention of the "or later" clause.
5924 (license license:gpl2)))
5925
5926 (define-public ruby-jaro-winkler
5927 (package
5928 (name "ruby-jaro-winkler")
5929 (version "1.5.4")
5930 (source
5931 (origin
5932 (method url-fetch)
5933 (uri (rubygems-uri "jaro_winkler" version))
5934 (sha256
5935 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5936 (build-system ruby-build-system)
5937 (arguments
5938 '(#:tests? #f)) ; no included tests
5939 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5940 (description
5941 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5942 algorithm. It is written as a C extension and will fallback to a pure Ruby
5943 implementation on platforms where this is unsupported.")
5944 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5945 (license license:expat)))
5946
5947 (define-public ruby-json
5948 (package
5949 (name "ruby-json")
5950 (version "2.1.0")
5951 (source
5952 (origin
5953 (method url-fetch)
5954 (uri (rubygems-uri "json" version))
5955 (sha256
5956 (base32
5957 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5958 (build-system ruby-build-system)
5959 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5960 (synopsis "JSON library for Ruby")
5961 (description "This Ruby library provides a JSON implementation written as
5962 a native C extension.")
5963 (home-page "http://json-jruby.rubyforge.org/")
5964 (license (list license:ruby license:gpl2)))) ; GPL2 only
5965
5966 (define-public ruby-json-pure
5967 (package
5968 (name "ruby-json-pure")
5969 (version "2.2.0")
5970 (source (origin
5971 (method url-fetch)
5972 (uri (rubygems-uri "json_pure" version))
5973 (sha256
5974 (base32
5975 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5976 (build-system ruby-build-system)
5977 (arguments
5978 `(#:phases
5979 (modify-phases %standard-phases
5980 (add-after 'unpack 'fix-rakefile
5981 (lambda _
5982 (substitute* "Rakefile"
5983 ;; Since this is not a git repository, do not call 'git'.
5984 (("`git ls-files`") "`find . -type f |sort`")
5985 ;; Loosen dependency constraint.
5986 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5987 #t))
5988 (add-after 'replace-git-ls-files 'regenerate-gemspec
5989 (lambda _
5990 ;; Regenerate gemspec so loosened dependency constraints are
5991 ;; propagated.
5992 (invoke "rake" "gemspec")))
5993 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5994 (lambda _
5995 ;; This gemspec doesn't look to be generated by the above
5996 ;; command, so patch it separately.
5997 (substitute* "json-java.gemspec"
5998 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5999 "%q<test-unit>.freeze, [\">= 2.0\"]"))
6000 #t)))))
6001 (native-inputs
6002 `(("bundler" ,bundler)
6003 ("ragel" ,ragel)
6004 ("ruby-simplecov" ,ruby-simplecov)
6005 ("ruby-test-unit" ,ruby-test-unit)))
6006 (synopsis "JSON implementation in pure Ruby")
6007 (description
6008 "This package provides a JSON implementation written in pure Ruby.")
6009 (home-page "https://flori.github.com/json/")
6010 (license license:ruby)))
6011
6012 (define-public ruby-jwt
6013 (package
6014 (name "ruby-jwt")
6015 (version "2.1.0")
6016 (source
6017 (origin
6018 (method url-fetch)
6019 (uri (rubygems-uri "jwt" version))
6020 (sha256
6021 (base32
6022 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
6023 (build-system ruby-build-system)
6024 (arguments
6025 '(#:test-target "test"
6026 #:phases
6027 (modify-phases %standard-phases
6028 (add-after 'unpack 'remove-unnecessary-dependencies
6029 (lambda _
6030 (substitute* "spec/spec_helper.rb"
6031 (("require 'simplecov.*") "\n")
6032 ;; Use [].each to disable running the SimpleCov configuration
6033 ;; block
6034 (("SimpleCov\\.configure") "[].each")
6035 (("require 'codeclimate-test-reporter'") "")
6036 (("require 'codacy-coverage'") "")
6037 (("Codacy::Reporter\\.start") ""))
6038 #t)))))
6039 (native-inputs
6040 `(("bundler" ,bundler)
6041 ("ruby-rspec" ,ruby-rspec)
6042 ("ruby-rbnacl" ,ruby-rbnacl)))
6043 (synopsis "Ruby implementation of the JSON Web Token standard")
6044 (description
6045 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6046 @acronym{JWT, JSON Web Token} standard.")
6047 (home-page "https://github.com/jwt/ruby-jwt")
6048 (license license:expat)))
6049
6050 ;; Even though this package only provides bindings for a Mac OSX API it is
6051 ;; required by "ruby-listen" at runtime.
6052 (define-public ruby-rb-fsevent
6053 (package
6054 (name "ruby-rb-fsevent")
6055 (version "0.10.3")
6056 (source (origin
6057 (method url-fetch)
6058 (uri (rubygems-uri "rb-fsevent" version))
6059 (sha256
6060 (base32
6061 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6062 (build-system ruby-build-system)
6063 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6064 ;; "listen", which needs "rb-fsevent" at runtime.
6065 (arguments `(#:tests? #f))
6066 (synopsis "FSEvents API with signals catching")
6067 (description
6068 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6069 (home-page "https://rubygems.org/gems/rb-fsevent")
6070 (license license:expat)))
6071
6072 (define-public ruby-listen
6073 (package
6074 (name "ruby-listen")
6075 (version "3.2.0")
6076 (source
6077 (origin
6078 ;; The gem does not include a Rakefile, so fetch from the Git
6079 ;; repository.
6080 (method git-fetch)
6081 (uri (git-reference
6082 (url "https://github.com/guard/listen")
6083 (commit (string-append "v" version))))
6084 (file-name (git-file-name name version))
6085 (sha256
6086 (base32
6087 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6088 (build-system ruby-build-system)
6089 (arguments
6090 `(#:test-target "spec"
6091 #:phases
6092 (modify-phases %standard-phases
6093 (add-after 'unpack 'fix-files-in-gemspec
6094 (lambda _
6095 (substitute* "listen.gemspec"
6096 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6097 #t))
6098 (add-before 'check 'remove-unnecessary-dependencies'
6099 (lambda _
6100 (substitute* "Rakefile"
6101 ;; Rubocop is for code linting, and is unnecessary for running
6102 ;; the tests.
6103 ((".*rubocop.*") ""))
6104 #t)))))
6105 (native-inputs
6106 `(("bundler" ,bundler)
6107 ("ruby-rspec" ,ruby-rspec)))
6108 (inputs
6109 `(;; ruby-thor is used for the command line interface, and is referenced
6110 ;; in the wrapper, and therefore just needs to be an input.
6111 ("ruby-thor" ,ruby-thor)))
6112 (propagated-inputs
6113 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6114 ("ruby-rb-inotify" ,ruby-rb-inotify)
6115 ("ruby-dep" ,ruby-dep)))
6116 (synopsis "Listen to file modifications")
6117 (description "The Listen gem listens to file modifications and notifies
6118 you about the changes.")
6119 (home-page "https://github.com/guard/listen")
6120 (license license:expat)))
6121
6122 (define-public ruby-loofah
6123 (package
6124 (name "ruby-loofah")
6125 (version "2.2.3")
6126 (source
6127 (origin
6128 (method url-fetch)
6129 (uri (rubygems-uri "loofah" version))
6130 (sha256
6131 (base32
6132 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6133 (build-system ruby-build-system)
6134 (arguments
6135 '(#:phases
6136 (modify-phases %standard-phases
6137 (add-after 'unpack 'remove-unnecessary-dependencies
6138 (lambda _
6139 ;; concourse is a development tool which is unused, so remove it
6140 ;; so it's not required.
6141 (substitute* "Gemfile"
6142 ((".*\"concourse\".*") "\n"))
6143 (substitute* "Rakefile"
6144 (("require 'concourse'") "")
6145 (("Concourse\\.new.*") "\n"))
6146 #t)))))
6147 (native-inputs
6148 `(("ruby-hoe" ,ruby-hoe)
6149 ("ruby-rr" ,ruby-rr)))
6150 (propagated-inputs
6151 `(("ruby-nokogiri" ,ruby-nokogiri)
6152 ("ruby-crass" ,ruby-crass)))
6153 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6154 (description
6155 "Loofah is a general library for manipulating and transforming HTML/XML
6156 documents and fragments. It's built on top of Nokogiri and libxml2.")
6157 (home-page "https://github.com/flavorjones/loofah")
6158 (license license:expat)))
6159
6160 (define-public ruby-activesupport
6161 (package
6162 (name "ruby-activesupport")
6163 (version "5.2.2.1")
6164 (source
6165 (origin
6166 (method url-fetch)
6167 (uri (rubygems-uri "activesupport" version))
6168 (sha256
6169 (base32
6170 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6171 (build-system ruby-build-system)
6172 (arguments
6173 `(#:phases
6174 (modify-phases %standard-phases
6175 (replace 'check
6176 (lambda _
6177 ;; There are no tests, instead attempt to load the library.
6178 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6179 (propagated-inputs
6180 `(("ruby-concurrent" ,ruby-concurrent)
6181 ("ruby-i18n" ,ruby-i18n)
6182 ("ruby-minitest" ,ruby-minitest)
6183 ("ruby-tzinfo" ,ruby-tzinfo)
6184 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6185 (synopsis "Ruby on Rails utility library")
6186 (description "ActiveSupport is a toolkit of support libraries and Ruby
6187 core extensions extracted from the Rails framework. It includes support for
6188 multibyte strings, internationalization, time zones, and testing.")
6189 (home-page "http://www.rubyonrails.org")
6190 (license license:expat)))
6191
6192 (define-public ruby-crass
6193 (package
6194 (name "ruby-crass")
6195 (version "1.0.6")
6196 (home-page "https://github.com/rgrove/crass")
6197 (source (origin
6198 ;; The gem does not contain tests, so pull from git.
6199 (method git-fetch)
6200 (uri (git-reference
6201 (url home-page)
6202 (commit (string-append "v" version))))
6203 (file-name (git-file-name name version))
6204 (sha256
6205 (base32
6206 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6207 (build-system ruby-build-system)
6208 (synopsis "Pure Ruby CSS parser")
6209 (description
6210 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6211 (license license:expat)))
6212
6213 (define-public ruby-nokogumbo
6214 (package
6215 (name "ruby-nokogumbo")
6216 (version "2.0.2")
6217 (source (origin
6218 ;; We use the git reference, because there's no Rakefile in the
6219 ;; published gem and the tarball on Github is outdated.
6220 (method git-fetch)
6221 (uri (git-reference
6222 (url "https://github.com/rubys/nokogumbo")
6223 (commit (string-append "v" version))))
6224 (file-name (string-append name "-" version "-checkout"))
6225 (sha256
6226 (base32
6227 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6228 (build-system ruby-build-system)
6229 (native-inputs
6230 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6231 (inputs
6232 `(("gumbo-parser" ,gumbo-parser)))
6233 (propagated-inputs
6234 `(("ruby-nokogiri" ,ruby-nokogiri)))
6235 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6236 (description
6237 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6238 access the result as a Nokogiri parsed document.")
6239 (home-page "https://github.com/rubys/nokogumbo/")
6240 (license license:asl2.0)))
6241
6242 (define-public ruby-sanitize
6243 (package
6244 (name "ruby-sanitize")
6245 (version "5.1.0")
6246 (home-page "https://github.com/rgrove/sanitize")
6247 (source (origin
6248 (method git-fetch)
6249 ;; The gem does not include the Rakefile, so we download the
6250 ;; source from Github.
6251 (uri (git-reference
6252 (url home-page)
6253 (commit (string-append "v" version))))
6254 (file-name (git-file-name name version))
6255 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6256 (sha256
6257 (base32
6258 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6259 (build-system ruby-build-system)
6260 (propagated-inputs
6261 `(("ruby-crass" ,ruby-crass)
6262 ("ruby-nokogiri" ,ruby-nokogiri)
6263 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6264 (native-inputs
6265 `(("ruby-minitest" ,ruby-minitest)))
6266 (synopsis "Whitelist-based HTML and CSS sanitizer")
6267 (description
6268 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6269 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6270 unacceptable HTML and/or CSS from a string.")
6271 (license license:expat)))
6272
6273 (define-public ruby-oj
6274 (package
6275 (name "ruby-oj")
6276 (version "3.10.1")
6277 (source
6278 (origin
6279 (method git-fetch)
6280 ;; Version on rubygems.org does not contain Rakefile, so download from
6281 ;; GitHub instead.
6282 (uri (git-reference
6283 (url "https://github.com/ohler55/oj")
6284 (commit (string-append "v" version))))
6285 (file-name (git-file-name name version))
6286 (sha256
6287 (base32
6288 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6289 (build-system ruby-build-system)
6290 (arguments
6291 '(#:test-target "test_all"
6292 #:phases
6293 (modify-phases %standard-phases
6294 (add-before 'check 'disable-bundler
6295 (lambda _
6296 (substitute* "Rakefile"
6297 (("Bundler\\.with_clean_env") "1.times")
6298 (("bundle exec ") "")))))))
6299 (native-inputs
6300 `(("bundler" ,bundler)
6301 ("ruby-rspec" ,ruby-rspec)
6302 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6303 (synopsis "JSON parser for Ruby optimized for speed")
6304 (description
6305 "Oj is a JSON parser and generator for Ruby, where the encoding and
6306 decoding of JSON is implemented as a C extension to Ruby.")
6307 (home-page "http://www.ohler.com/oj/")
6308 (license (list license:expat ; Ruby code
6309 license:bsd-3)))) ; extension code
6310
6311 (define-public ruby-ox
6312 (package
6313 (name "ruby-ox")
6314 (version "2.6.0")
6315 (source
6316 (origin
6317 (method url-fetch)
6318 (uri (rubygems-uri "ox" version))
6319 (sha256
6320 (base32
6321 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6322 (build-system ruby-build-system)
6323 (arguments
6324 '(#:tests? #f)) ; no tests
6325 (synopsis "Optimized XML library for Ruby")
6326 (description
6327 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6328 written as a native C extension. It was designed to be an alternative to
6329 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6330 alternative to Marshal for Object serialization. ")
6331 (home-page "http://www.ohler.com/ox")
6332 (license license:expat)))
6333
6334 (define-public ruby-redcloth
6335 (package
6336 (name "ruby-redcloth")
6337 (version "4.3.2")
6338 (source (origin
6339 (method url-fetch)
6340 (uri (rubygems-uri "RedCloth" version))
6341 (sha256
6342 (base32
6343 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6344 (build-system ruby-build-system)
6345 (arguments
6346 `(#:tests? #f ; no tests
6347 #:phases
6348 (modify-phases %standard-phases
6349 ;; Redcloth has complicated rake tasks to build various versions for
6350 ;; multiple targets using RVM. We don't want this so we just use the
6351 ;; existing gemspec.
6352 (replace 'build
6353 (lambda _
6354 (invoke "gem" "build" "redcloth.gemspec"))))))
6355 (native-inputs
6356 `(("bundler" ,bundler)
6357 ("ruby-diff-lcs" ,ruby-diff-lcs)
6358 ("ruby-rspec-2" ,ruby-rspec-2)))
6359 (synopsis "Textile markup language parser for Ruby")
6360 (description
6361 "RedCloth is a Ruby parser for the Textile markup language.")
6362 (home-page "http://redcloth.org")
6363 (license license:expat)))
6364
6365 (define-public ruby-pg
6366 (package
6367 (name "ruby-pg")
6368 (version "1.2.3")
6369 (source
6370 (origin
6371 (method url-fetch)
6372 (uri (rubygems-uri "pg" version))
6373 (sha256
6374 (base32
6375 "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj"))))
6376 (build-system ruby-build-system)
6377 (arguments
6378 '(#:test-target "spec"))
6379 (native-inputs
6380 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6381 ("ruby-hoe" ,ruby-hoe)
6382 ("ruby-rspec" ,ruby-rspec)))
6383 (inputs
6384 `(("postgresql" ,postgresql)))
6385 (synopsis "Ruby interface to PostgreSQL")
6386 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6387 with PostgreSQL 9.0 and later.")
6388 (home-page "https://bitbucket.org/ged/ruby-pg")
6389 (license license:ruby)))
6390
6391 (define-public ruby-byebug
6392 (package
6393 (name "ruby-byebug")
6394 (version "9.0.6")
6395 (source
6396 (origin
6397 (method url-fetch)
6398 (uri (rubygems-uri "byebug" version))
6399 (sha256
6400 (base32
6401 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6402 (build-system ruby-build-system)
6403 (arguments
6404 '(#:tests? #f)) ; no tests
6405 (synopsis "Debugger for Ruby 2")
6406 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6407 TracePoint C API for execution control and the Debug Inspector C API for call
6408 stack navigation. The core component provides support that front-ends can
6409 build on. It provides breakpoint handling and bindings for stack frames among
6410 other things and it comes with a command line interface.")
6411 (home-page "https://github.com/deivid-rodriguez/byebug")
6412 (license license:bsd-2)))
6413
6414 ;;; TODO: Make it the default byebug in core-updates.
6415 (define-public ruby-byebug-11
6416 (package
6417 (inherit ruby-byebug)
6418 (name "ruby-byebug")
6419 (version "11.1.3")
6420 (source
6421 (origin
6422 (method git-fetch)
6423 (uri (git-reference
6424 (url "https://github.com/deivid-rodriguez/byebug")
6425 (commit (string-append "v" version))))
6426 (file-name (git-file-name name version))
6427 (sha256
6428 (base32
6429 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6430 (modules '((guix build utils)))
6431 (snippet
6432 '(begin
6433 ;; Remove wrappers that try to setup a bundle environment.
6434 (with-directory-excursion "bin"
6435 (for-each delete-file '("bundle" "rake" "rubocop"))
6436 ;; ruby-minitest doesn't come with a launcher, so fix the one
6437 ;; provided.
6438 (substitute* "minitest"
6439 (("load File\\.expand_path\\(\"bundle\".*") "")
6440 (("require \"bundler/setup\".*") "")))
6441 #t))))
6442 (arguments
6443 `(#:tests? #t
6444 #:phases
6445 (modify-phases %standard-phases
6446 (add-after 'unpack 'skip-tmp-path-sensitive-test
6447 (lambda _
6448 (substitute* "test/commands/where_test.rb"
6449 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6450 "unless true\n"))
6451 #t))
6452 (add-before 'build 'compile
6453 (lambda _
6454 (invoke "rake" "compile")))
6455 (add-before 'check 'set-home
6456 (lambda _
6457 (setenv "HOME" (getcwd))
6458 #t)))))
6459 (native-inputs
6460 `(("bundler" ,bundler)
6461 ("ruby-chandler" ,ruby-chandler)
6462 ("ruby-minitest" ,ruby-minitest)
6463 ("ruby-pry" ,ruby-pry)
6464 ("ruby-rake-compiler" ,ruby-rake-compiler)
6465 ("ruby-rubocop" ,ruby-rubocop)
6466 ("ruby-yard" ,ruby-yard)))))
6467
6468 (define-public ruby-netrc
6469 (package
6470 (name "ruby-netrc")
6471 (version "0.11.0")
6472 (source (origin
6473 (method url-fetch)
6474 (uri (rubygems-uri "netrc" version))
6475 (sha256
6476 (base32
6477 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6478 (build-system ruby-build-system)
6479 (arguments
6480 `(#:phases
6481 (modify-phases %standard-phases
6482 (replace 'check
6483 ;; There is no Rakefile and minitest can only run one file at once,
6484 ;; so we have to iterate over all test files.
6485 (lambda _
6486 (for-each (lambda (file)
6487 (invoke "ruby" "-Itest" file))
6488 (find-files "./test" "test_.*\\.rb"))
6489 #t)))))
6490 (native-inputs
6491 `(("ruby-minitest" ,ruby-minitest)))
6492 (synopsis "Library to read and update netrc files")
6493 (description
6494 "This library can read and update netrc files, preserving formatting
6495 including comments and whitespace.")
6496 (home-page "https://github.com/geemus/netrc")
6497 (license license:expat)))
6498
6499 (define-public ruby-unf-ext
6500 (package
6501 (name "ruby-unf-ext")
6502 (version "0.0.7.6")
6503 (source (origin
6504 (method url-fetch)
6505 (uri (rubygems-uri "unf_ext" version))
6506 (sha256
6507 (base32
6508 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6509 (build-system ruby-build-system)
6510 (arguments
6511 `(#:phases
6512 (modify-phases %standard-phases
6513 (add-after 'build 'build-ext
6514 (lambda _ (invoke "rake" "compile:unf_ext")))
6515 (add-before 'check 'lose-rake-compiler-dock-dependency
6516 (lambda _
6517 ;; rake-compiler-dock is listed in the gemspec, but only
6518 ;; required when cross-compiling.
6519 (substitute* "unf_ext.gemspec"
6520 ((".*rake-compiler-dock.*") ""))
6521 #t)))))
6522 (native-inputs
6523 `(("bundler" ,bundler)
6524 ("ruby-rake-compiler" ,ruby-rake-compiler)
6525 ("ruby-test-unit" ,ruby-test-unit)))
6526 (synopsis "Unicode normalization form support library")
6527 (description
6528 "This package provides unicode normalization form support for Ruby.")
6529 (home-page "https://github.com/knu/ruby-unf_ext")
6530 (license license:expat)))
6531
6532 (define-public ruby-tdiff
6533 ;; Use a newer than released snapshot so that rspec-2 is not required.
6534 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6535 (package
6536 (name "ruby-tdiff")
6537 (version (string-append "0.3.3-1." (string-take commit 8)))
6538 (source (origin
6539 (method git-fetch)
6540 (uri (git-reference
6541 (url "https://github.com/postmodern/tdiff")
6542 (commit commit)))
6543 (file-name (string-append name "-" version "-checkout"))
6544 (sha256
6545 (base32
6546 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6547 (build-system ruby-build-system)
6548 (native-inputs
6549 `(("ruby-rspec" ,ruby-rspec)
6550 ("ruby-yard" ,ruby-yard)
6551 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6552 (synopsis "Calculate the differences between two tree-like structures")
6553 (description
6554 "This library provides functions to calculate the differences between two
6555 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6556 (home-page "https://github.com/postmodern/tdiff")
6557 (license license:expat))))
6558
6559 (define-public ruby-nokogiri-diff
6560 ;; Use a newer than released snapshot so that rspec-2 is not required.
6561 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6562 (package
6563 (name "ruby-nokogiri-diff")
6564 (version (string-append "0.2.0-1." (string-take commit 8)))
6565 (source (origin
6566 (method git-fetch)
6567 (uri (git-reference
6568 (url "https://github.com/postmodern/nokogiri-diff")
6569 (commit commit)))
6570 (file-name (string-append name "-" version "-checkout"))
6571 (sha256
6572 (base32
6573 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6574 (build-system ruby-build-system)
6575 (propagated-inputs
6576 `(("ruby-tdiff" ,ruby-tdiff)
6577 ("ruby-nokogiri" ,ruby-nokogiri)))
6578 (native-inputs
6579 `(("ruby-rspec" ,ruby-rspec)
6580 ("ruby-yard" ,ruby-yard)
6581 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6582 (synopsis "Calculate the differences between two XML/HTML documents")
6583 (description
6584 "@code{Nokogiri::Diff} adds the ability to calculate the
6585 differences (added or removed nodes) between two XML/HTML documents.")
6586 (home-page "https://github.com/postmodern/nokogiri-diff")
6587 (license license:expat))))
6588
6589 (define-public ruby-racc
6590 (package
6591 (name "ruby-racc")
6592 (version "1.4.14")
6593 (source
6594 (origin
6595 (method url-fetch)
6596 (uri (rubygems-uri "racc" version))
6597 (sha256
6598 (base32
6599 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6600 (build-system ruby-build-system)
6601 (native-inputs
6602 `(("ruby-hoe" ,ruby-hoe)
6603 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6604 (synopsis "LALR(1) parser generator for Ruby")
6605 (description
6606 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6607 generates Ruby program.")
6608 (home-page "http://i.loveruby.net/en/projects/racc/")
6609 (license (list
6610 ;; Generally licensed under the LGPL2.1, and some files also
6611 ;; available under the same license as Ruby.
6612 license:lgpl2.1
6613 license:ruby))))
6614
6615 (define-public ruby-rack
6616 (package
6617 (name "ruby-rack")
6618 (version "2.0.6")
6619 (source
6620 (origin
6621 (method git-fetch)
6622 ;; Download from GitHub so that the patch can be applied.
6623 (uri (git-reference
6624 (url "https://github.com/rack/rack")
6625 (commit version)))
6626 (file-name (git-file-name name version))
6627 (sha256
6628 (base32
6629 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6630 ;; Ignore test which fails inside the build environment but works
6631 ;; outside.
6632 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6633 (build-system ruby-build-system)
6634 (arguments
6635 '(#:phases
6636 (modify-phases %standard-phases
6637 (add-before 'check 'fix-tests
6638 (lambda _
6639 ;; A few of the tests use the length of a file on disk for
6640 ;; Content-Length and Content-Range headers. However, this file
6641 ;; has a shebang in it which an earlier phase patches, growing
6642 ;; the file size from 193 to 239 bytes when the store prefix is
6643 ;; "/gnu/store".
6644 (let ((size-diff (- (string-length (which "ruby"))
6645 (string-length "/usr/bin/env ruby"))))
6646 (substitute* '("test/spec_file.rb")
6647 (("193")
6648 (number->string (+ 193 size-diff)))
6649 (("bytes(.)22-33" all delimiter)
6650 (string-append "bytes"
6651 delimiter
6652 (number->string (+ 22 size-diff))
6653 "-"
6654 (number->string (+ 33 size-diff))))))
6655 #t))
6656 (add-before 'reset-gzip-timestamps 'make-files-writable
6657 (lambda* (#:key outputs #:allow-other-keys)
6658 ;; Make sure .gz files are writable so that the
6659 ;; 'reset-gzip-timestamps' phase can do its work.
6660 (let ((out (assoc-ref outputs "out")))
6661 (for-each make-file-writable
6662 (find-files out "\\.gz$"))
6663 #t))))))
6664 (native-inputs
6665 `(("ruby-minitest" ,ruby-minitest)
6666 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6667 ("which" ,which)))
6668 (propagated-inputs
6669 `(("ruby-concurrent" ,ruby-concurrent)))
6670 (synopsis "Unified web application interface for Ruby")
6671 (description "Rack provides a minimal, modular and adaptable interface for
6672 developing web applications in Ruby. By wrapping HTTP requests and responses,
6673 it unifies the API for web servers, web frameworks, and software in between
6674 into a single method call.")
6675 (home-page "https://rack.github.io/")
6676 (license license:expat)))
6677
6678 (define-public ruby-rack-test
6679 (package
6680 (name "ruby-rack-test")
6681 (version "0.8.3")
6682 (source
6683 (origin
6684 (method url-fetch)
6685 (uri (rubygems-uri "rack-test" version))
6686 (sha256
6687 (base32
6688 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6689 (build-system ruby-build-system)
6690 (arguments
6691 ;; Disable tests because of circular dependencies: requires sinatra,
6692 ;; which requires rack-protection, which requires rack-test. Instead
6693 ;; simply require the library.
6694 `(#:phases
6695 (modify-phases %standard-phases
6696 (replace 'check
6697 (lambda _
6698 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6699 (propagated-inputs
6700 `(("ruby-rack" ,ruby-rack)))
6701 (synopsis "Testing API for Rack applications")
6702 (description
6703 "Rack::Test is a small, simple testing API for Rack applications. It can
6704 be used on its own or as a reusable starting point for Web frameworks and
6705 testing libraries to build on.")
6706 (home-page "https://github.com/rack-test/rack-test")
6707 (license license:expat)))
6708
6709 (define-public ruby-rack-protection
6710 (package
6711 (name "ruby-rack-protection")
6712 (version "2.0.5")
6713 (source
6714 (origin
6715 (method url-fetch)
6716 (uri (rubygems-uri "rack-protection" version))
6717 (sha256
6718 (base32
6719 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6720 (build-system ruby-build-system)
6721 (arguments
6722 '(;; Tests missing from the gem.
6723 #:tests? #f))
6724 (propagated-inputs
6725 `(("ruby-rack" ,ruby-rack)))
6726 (native-inputs
6727 `(("bundler" ,bundler)
6728 ("ruby-rspec" ,ruby-rspec-2)
6729 ("ruby-rack-test" ,ruby-rack-test)))
6730 (synopsis "Rack middleware that protects against typical web attacks")
6731 (description "Rack middleware that can be used to protect against typical
6732 web attacks. It can protect all Rack apps, including Rails. For instance, it
6733 protects against cross site request forgery, cross site scripting,
6734 clickjacking, directory traversal, session hijacking and IP spoofing.")
6735 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6736 (license license:expat)))
6737
6738 (define-public ruby-rainbow
6739 (package
6740 (name "ruby-rainbow")
6741 (version "3.0.0")
6742 (source
6743 (origin
6744 (method url-fetch)
6745 (uri (rubygems-uri "rainbow" version))
6746 (sha256
6747 (base32
6748 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6749 (build-system ruby-build-system)
6750 (arguments
6751 '(#:phases
6752 (modify-phases %standard-phases
6753 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6754 ;; the Rakefile.
6755 (replace 'check
6756 (lambda* (#:key tests? #:allow-other-keys)
6757 (when tests?
6758 (invoke "rspec"))
6759 #t)))))
6760 (native-inputs
6761 `(("bundler" ,bundler)
6762 ("ruby-rspec" ,ruby-rspec)))
6763 (synopsis "Colorize printed text on ANSI terminals")
6764 (description
6765 "@code{rainbow} provides a string presenter object to colorize strings by
6766 wrapping them in ANSI escape codes.")
6767 (home-page "https://github.com/sickill/rainbow")
6768 (license license:expat)))
6769
6770 (define-public ruby-rr
6771 (package
6772 (name "ruby-rr")
6773 (version "1.2.1")
6774 (source
6775 (origin
6776 (method url-fetch)
6777 (uri (rubygems-uri "rr" version))
6778 (sha256
6779 (base32
6780 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6781 (build-system ruby-build-system)
6782 (arguments
6783 '(#:tests? #f)) ; test files not included
6784 (native-inputs
6785 `(("bundler" ,bundler)
6786 ("ruby-rspec" ,ruby-rspec)))
6787 (synopsis "Ruby test double framework")
6788 (description
6789 "RR is a test double framework that features a rich selection of double
6790 techniques and a terse syntax.")
6791 (home-page "https://rr.github.io/rr/")
6792 (license license:expat)))
6793
6794 (define-public ruby-rest-client
6795 (package
6796 (name "ruby-rest-client")
6797 (version "2.0.2")
6798 (source
6799 (origin
6800 (method url-fetch)
6801 (uri (rubygems-uri "rest-client" version))
6802 (sha256
6803 (base32
6804 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6805 (build-system ruby-build-system)
6806 (arguments
6807 '(#:phases
6808 (modify-phases %standard-phases
6809 (add-before 'check 'remove-unnecessary-development-dependencies
6810 (lambda _
6811 (substitute* "rest-client.gemspec"
6812 ;; Remove rubocop as it's unused. Rubocop also indirectly
6813 ;; depends on this package through ruby-parser and ruby-ast so
6814 ;; this avoids a dependency loop.
6815 ((".*rubocop.*") "\n")
6816 ;; Remove pry as it's unused, it's a debugging tool
6817 ((".*pry.*") "\n")
6818 ;; Remove an unnecessarily strict rdoc dependency
6819 ((".*rdoc.*") "\n"))
6820 #t))
6821 (add-before 'check 'delete-network-dependent-tests
6822 (lambda _
6823 (delete-file "spec/integration/request_spec.rb")
6824 (delete-file "spec/integration/httpbin_spec.rb")
6825 #t)))))
6826 (propagated-inputs
6827 `(("ruby-http-cookie" ,ruby-http-cookie)
6828 ("ruby-mime-types" ,ruby-mime-types)
6829 ("ruby-netrc" ,ruby-netrc)))
6830 (native-inputs
6831 `(("bundler" ,bundler)
6832 ("ruby-webmock" ,ruby-webmock-2)
6833 ("ruby-rspec" ,ruby-rspec)))
6834 (synopsis "Simple HTTP and REST client for Ruby")
6835 (description
6836 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6837 inspired by the Sinatra microframework style of specifying actions:
6838 @code{get}, @code{put}, @code{post}, @code{delete}.")
6839 (home-page "https://github.com/rest-client/rest-client")
6840 (license license:expat)))
6841
6842 (define-public ruby-rubocop-ast
6843 (package
6844 (name "ruby-rubocop-ast")
6845 (version "0.3.0")
6846 (source
6847 (origin
6848 (method git-fetch) ;no test suite in distributed gem
6849 (uri (git-reference
6850 (url "https://github.com/rubocop-hq/rubocop-ast")
6851 (commit (string-append "v" version))))
6852 (file-name (git-file-name name version))
6853 (sha256
6854 (base32
6855 "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04"))))
6856 (build-system ruby-build-system)
6857 (arguments
6858 `(#:test-target "spec"
6859 #:phases (modify-phases %standard-phases
6860 (add-after 'unpack 'disable-bundler
6861 (lambda _
6862 (substitute* "Rakefile"
6863 (("Bundler\\.setup.*") "nil\n"))
6864 #t))
6865 (replace 'replace-git-ls-files
6866 (lambda _
6867 (substitute* "rubocop-ast.gemspec"
6868 (("`git ls-files(.*)`" _ files)
6869 (format #f "`find ~a -type f| sort`" files)))
6870 #t)))))
6871 (native-inputs
6872 `(("ruby-bump" ,ruby-bump)
6873 ("ruby-rspec" ,ruby-rspec)))
6874 (propagated-inputs
6875 `(("ruby-parser" ,ruby-parser)))
6876 (synopsis "RuboCop's AST extensions and NodePattern functionality")
6877 (description "Rubocop::AST extends @code{ruby-parser} with classes used
6878 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
6879 @itemize
6880 @item @code{RuboCop::AST::Node}
6881 @item @code{RuboCop::AST::NodePattern}
6882 @end itemize")
6883 (home-page "https://rubocop.org/")
6884 (license license:expat)))
6885
6886 (define-public ruby-rexml
6887 (package
6888 (name "ruby-rexml")
6889 (version "3.2.4")
6890 (source
6891 (origin
6892 (method git-fetch) ;no tests in distributed gem
6893 (uri (git-reference
6894 (url "https://github.com/ruby/rexml")
6895 (commit (string-append "v" version))))
6896 (file-name (git-file-name name version))
6897 (sha256
6898 (base32
6899 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
6900 (build-system ruby-build-system)
6901 (synopsis "XML toolkit for Ruby")
6902 (description "Inspired by Electric XML library for Java, REXML aims to be
6903 easy-to-use API, small and fast. It supports both tree and stream document
6904 parsing.")
6905 (home-page "https://github.com/ruby/rexml")
6906 (license license:bsd-2)))
6907
6908 (define-public ruby-character-set
6909 (package
6910 (name "ruby-character-set")
6911 (version "1.4.0")
6912 (source
6913 (origin
6914 (method url-fetch)
6915 (uri (rubygems-uri "character_set" version))
6916 (sha256
6917 (base32
6918 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
6919 (build-system ruby-build-system)
6920 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
6921 (synopsis "Ruby library to manipulate Unicode")
6922 (description "CharacterSet is a C-extended Ruby library to work with sets
6923 of Unicode code points. It can read and write these sets in various formats
6924 and implements the @code{stdlib} @code{Set} interface for them. It also
6925 offers an alternate paradigm of @code{String} processing which grants much
6926 better performance than @code{Regexp} and @code{String} methods from the
6927 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
6928 @itemize
6929 @item @code{CharacterSet::Character}
6930 @item @code{CharacterSet::Parser}
6931 @item @code{CharacterSet::Writer}
6932 @item @code{RangeCompressor}
6933 @end itemize")
6934 (home-page "https://github.com/jaynetics/character_set")
6935 (license license:expat)))
6936
6937 (define-public ruby-range-compressor
6938 (package
6939 (name "ruby-range-compressor")
6940 (version "1.0.0")
6941 (source
6942 (origin
6943 (method git-fetch)
6944 (uri (git-reference
6945 (url "https://github.com/janosch-x/range_compressor")
6946 (commit (string-append "v" version))))
6947 (file-name (git-file-name name version))
6948 (sha256
6949 (base32
6950 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
6951 (build-system ruby-build-system)
6952 (arguments
6953 `(#:test-target "spec"
6954 #:phases (modify-phases %standard-phases
6955 (add-after 'extract-gemspec 'strip-version-requirements
6956 (lambda _
6957 (substitute* "range_compressor.gemspec"
6958 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6959 (string-append stripped "\n")))
6960 #t)))))
6961 (native-inputs
6962 `(("ruby-rspec" ,ruby-rspec)))
6963 (synopsis "Simple arrays of objects to arrays of ranges compressor")
6964 (description "RangeCompresses is a tiny library that allows compressing
6965 arrays of objects into arrays of ranges. For example, it can turn the
6966 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
6967 (home-page "https://github.com/janosch-x/range_compressor")
6968 (license license:expat)))
6969
6970 (define-public ruby-regexp-property-values
6971 (package
6972 (name "ruby-regexp-property-values")
6973 (version "1.0.0")
6974 (source
6975 (origin
6976 (method git-fetch)
6977 (uri (git-reference ;no test suite in distributed gem
6978 (url "https://github.com/jaynetics/regexp_property_values")
6979 (commit (string-append "v" version))))
6980 (file-name (git-file-name name version))
6981 (sha256
6982 (base32
6983 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
6984 (build-system ruby-build-system)
6985 (arguments
6986 '(#:test-target "default"))
6987 (native-inputs
6988 `(("ruby-character-set" ,ruby-character-set)
6989 ("ruby-rake-compiler" ,ruby-rake-compiler)
6990 ("ruby-range-compressor" ,ruby-range-compressor)
6991 ("ruby-rspec" ,ruby-rspec)))
6992 (synopsis "Inspect Ruby's regex engine property values")
6993 (description "This small library lets you see which property values are
6994 supported by the regular expression engine of the Ruby version you are running
6995 and can directly read out their code point ranges. In other words, it
6996 determines all supported values for @code{\\p{value}} expressions and what
6997 they match.")
6998 (home-page "https://github.com/jaynetics/regexp_property_values")
6999 (license license:expat)))
7000
7001 (define-public ruby-regexp-parser
7002 (package
7003 (name "ruby-regexp-parser")
7004 (version "2.0.0")
7005 (source
7006 (origin
7007 (method git-fetch) ;bin/test missing from gem
7008 (uri (git-reference
7009 (url "https://github.com/ammar/regexp_parser")
7010 (commit (string-append "v" version))))
7011 (file-name (git-file-name name version))
7012 (sha256
7013 (base32
7014 "09ddxdwlml30q6j4rqf06bbjj1mwx00rs0bksnyblhv85anrqz3k"))))
7015 (build-system ruby-build-system)
7016 (arguments
7017 '(#:test-target "default"
7018 #:phases (modify-phases %standard-phases
7019 (add-before 'build 'compile-scanner.rb
7020 (lambda _
7021 (invoke "rake" "build")
7022 ;; XXX: This is needed otherwise the install
7023 ;; phase fails to delete the installed cached
7024 ;; gem file.
7025 (delete-file-recursively "pkg")
7026 #t)))))
7027 (native-inputs
7028 `(("ragel" ,ragel)
7029 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7030 ("ruby-rspec" ,ruby-rspec)))
7031 (synopsis "A regular expression parser library for Ruby ")
7032 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7033 expressions. It comprises the following components:
7034 @itemize
7035 @item A scanner/tokenizer based on Ragel,
7036 @item A lexer that produces a stream of token objects,
7037 @item A parser that produces a tree of Expression objects.
7038 @end itemize")
7039 (home-page "https://github.com/ammar/regexp_parser")
7040 (license license:expat)))
7041
7042 (define-public ruby-test-queue
7043 (package
7044 (name "ruby-test-queue")
7045 (version "0.4.2")
7046 (source
7047 (origin
7048 (method url-fetch)
7049 (uri (rubygems-uri "test-queue" version))
7050 (sha256
7051 (base32
7052 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7053 (build-system ruby-build-system)
7054 (arguments
7055 '(#:phases
7056 (modify-phases %standard-phases
7057 (replace 'check
7058 (lambda* (#:key tests? #:allow-other-keys)
7059 (when tests?
7060 (invoke "rspec"))
7061 #t)))))
7062 (native-inputs
7063 `(("ruby-rspec" ,ruby-rspec)))
7064 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7065 (description "The test-queue module is a parallel test runner,
7066 built using a centralized queue to ensure optimal distribution of
7067 tests between workers. It is specifically optimized for Continuous
7068 Integration (CI) environments: build statistics from each run are
7069 stored locally and used to sort the queue at the beginning of the next
7070 run.")
7071 (home-page "https://github.com/tmm1/test-queue")
7072 (license license:expat)))
7073
7074 (define-public ruby-rubocop
7075 (package
7076 (name "ruby-rubocop")
7077 (version "0.88.0")
7078 (source
7079 (origin
7080 (method git-fetch) ;no tests in distributed gem
7081 (uri (git-reference
7082 (url "https://github.com/rubocop-hq/rubocop")
7083 (commit (string-append "v" version))))
7084 (file-name (git-file-name name version))
7085 (sha256
7086 (base32
7087 "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r"))
7088 (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch"))))
7089 (build-system ruby-build-system)
7090 (arguments
7091 '(#:test-target "default"
7092 #:phases
7093 (modify-phases %standard-phases
7094 (add-after 'unpack 'remove-problematic-tests
7095 ;; These tests depend on Rubocop extensions, which cannot be
7096 ;; included as they cause a dependency cycle with Rubocop itself.
7097 (lambda _
7098 (delete-file "spec/rubocop/config_loader_spec.rb")
7099 (substitute* "Gemfile"
7100 ((".*'rubocop-performance'.*") "")
7101 ((".*'rubocop-rspec'.*") ""))
7102 ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)"
7103 ;; errors.
7104 (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$")
7105 (("# (rubocop:(enable|disable) RSpec.*)" _ what)
7106 (string-append "# Disabled: " what)))
7107 #t))
7108 (add-after 'unpack 'disable-bundler
7109 (lambda _
7110 (substitute* "Rakefile"
7111 (("Bundler\\.setup.*") "nil\n"))
7112 #t))
7113 (replace 'replace-git-ls-files
7114 (lambda _
7115 (substitute* "rubocop.gemspec"
7116 (("`git ls-files(.*)`" _ files)
7117 (format #f "`find ~a -type f| sort`" files)))
7118 #t))
7119 (add-before 'check 'set-home
7120 (lambda _
7121 (setenv "HOME" (getcwd))
7122 #t))
7123 (add-before 'check 'make-adoc-files-writable
7124 (lambda _
7125 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7126 "\\.adoc$")))
7127 (for-each make-file-writable adoc-files))
7128 #t)))))
7129 (native-inputs
7130 `(("ruby-bump" ,ruby-bump)
7131 ("ruby-pry" ,ruby-pry)
7132 ("ruby-rspec" ,ruby-rspec)
7133 ("ruby-test-queue" ,ruby-test-queue)
7134 ("ruby-webmock" ,ruby-webmock-2)
7135 ("ruby-yard" ,ruby-yard)))
7136 (propagated-inputs
7137 `(("ruby-parallel" ,ruby-parallel)
7138 ("ruby-parser" ,ruby-parser)
7139 ("ruby-rainbow" ,ruby-rainbow)
7140 ("ruby-regexp-parser" ,ruby-regexp-parser)
7141 ("ruby-rexml" ,ruby-rexml)
7142 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7143 ("ruby-progressbar" ,ruby-progressbar)
7144 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7145 (synopsis "Ruby code style checking tool")
7146 (description
7147 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7148 the community-driven Ruby Style Guide.")
7149 (home-page "https://github.com/rubocop-hq/rubocop")
7150 (license license:expat)))
7151
7152 (define-public ruby-contest
7153 (package
7154 (name "ruby-contest")
7155 (version "0.1.3")
7156 (source
7157 (origin
7158 (method url-fetch)
7159 (uri (rubygems-uri "contest" version))
7160 (sha256
7161 (base32
7162 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7163 (build-system ruby-build-system)
7164 (synopsis "Write declarative tests using nested contexts")
7165 (description
7166 "Contest allows writing declarative @code{Test::Unit} tests using nested
7167 contexts without performance penalties.")
7168 (home-page "https://github.com/citrusbyte/contest")
7169 (license license:expat)))
7170
7171 (define-public ruby-creole
7172 (package
7173 (name "ruby-creole")
7174 (version "0.5.0")
7175 (source
7176 (origin
7177 (method url-fetch)
7178 (uri (rubygems-uri "creole" version))
7179 (sha256
7180 (base32
7181 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7182 (build-system ruby-build-system)
7183 (native-inputs
7184 `(("ruby-bacon" ,ruby-bacon)))
7185 (synopsis "Creole markup language converter")
7186 (description
7187 "Creole is a lightweight markup language and this library for converting
7188 creole to @code{HTML}.")
7189 (home-page "https://github.com/minad/creole")
7190 (license license:ruby)))
7191
7192 (define-public ruby-docile
7193 (package
7194 (name "ruby-docile")
7195 (version "1.1.5")
7196 (source
7197 (origin
7198 (method url-fetch)
7199 (uri (rubygems-uri "docile" version))
7200 (sha256
7201 (base32
7202 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7203 (build-system ruby-build-system)
7204 (arguments
7205 '(#:tests? #f)) ; needs github-markup, among others
7206 (synopsis "Ruby EDSL helper library")
7207 (description "Docile is a Ruby library that provides an interface for
7208 creating embedded domain specific languages (EDSLs) that manipulate existing
7209 Ruby classes.")
7210 (home-page "https://ms-ati.github.io/docile/")
7211 (license license:expat)))
7212
7213 (define-public ruby-middleware
7214 (package
7215 (name "ruby-middleware")
7216 (version "0.1.0")
7217 (source
7218 (origin
7219 (method url-fetch)
7220 (uri (rubygems-uri "middleware" version))
7221 (sha256
7222 (base32
7223 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7224 (build-system ruby-build-system)
7225 (arguments '(#:tests? #f)) ;no test suite
7226 (synopsis "Implementation of a middleware abstraction for Ruby")
7227 (description "Middleware is a generalized implementation of a middleware
7228 abstraction for Ruby.")
7229 (home-page "https://github.com/mitchellh/middleware")
7230 (license license:expat)))
7231
7232 (define-public ruby-benchmark-ips
7233 (package
7234 (name "ruby-benchmark-ips")
7235 (version "2.8.2")
7236 (source
7237 (origin
7238 (method url-fetch)
7239 (uri (rubygems-uri "benchmark-ips" version))
7240 (sha256
7241 (base32
7242 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7243 (build-system ruby-build-system)
7244 (native-inputs
7245 `(("ruby-hoe" ,ruby-hoe)))
7246 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7247 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7248 iterations per second count. For short snippets of code, it can automatically
7249 figure out how many times to run the code to get interesting data.")
7250 (home-page "https://github.com/evanphx/benchmark-ips")
7251 (license license:expat)))
7252
7253 (define-public ruby-ffi-rzmq-core
7254 (package
7255 (name "ruby-ffi-rzmq-core")
7256 (version "1.0.7")
7257 (source
7258 (origin
7259 (method url-fetch)
7260 (uri (rubygems-uri "ffi-rzmq-core" version))
7261 (sha256
7262 (base32
7263 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7264 (build-system ruby-build-system)
7265 (arguments
7266 `(#:phases
7267 (modify-phases %standard-phases
7268 (add-after 'unpack 'patch-libzmq-search-path
7269 (lambda* (#:key inputs #:allow-other-keys)
7270 (let ((zeromq (assoc-ref inputs "zeromq")))
7271 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7272 (("/usr/local/lib")
7273 (string-append zeromq "/lib")))
7274 #t)))
7275 (replace 'check
7276 (lambda _
7277 (invoke "rspec"))))))
7278 (native-inputs
7279 `(("ruby-rspec" ,ruby-rspec)))
7280 (inputs
7281 `(("zeromq" ,zeromq)))
7282 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7283 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7284 (description "This library only provides the FFI wrapper for the ZeroMQ
7285 networking library. It can be used to implement a Ruby API for the ZeroMQ
7286 library.")
7287 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7288 (license license:expat)))
7289
7290 (define-public ruby-ffi-rzmq
7291 (package
7292 (name "ruby-ffi-rzmq")
7293 (version "2.0.7")
7294 (source
7295 (origin
7296 (method url-fetch)
7297 (uri (rubygems-uri "ffi-rzmq" version))
7298 (sha256
7299 (base32
7300 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7301 (build-system ruby-build-system)
7302 (arguments '(#:tests? #t
7303 #:phases (modify-phases %standard-phases
7304 (replace 'check
7305 (lambda _
7306 (invoke "rspec"))))))
7307 (native-inputs
7308 `(("ruby-rspec" ,ruby-rspec)))
7309 (propagated-inputs
7310 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7311 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7312 (description "This library provides a high-level API that wraps the ZeroMQ
7313 networking library using the Ruby foreign function interface (FFI). It is a
7314 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7315 for FFI.")
7316 (home-page "https://github.com/chuckremes/ffi-rzmq")
7317 (license license:expat)))
7318
7319 (define-public ruby-sawyer
7320 (package
7321 (name "ruby-sawyer")
7322 (version "0.8.2")
7323 (source
7324 (origin
7325 (method url-fetch)
7326 (uri (rubygems-uri "sawyer" version))
7327 (sha256
7328 (base32
7329 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7330 (build-system ruby-build-system)
7331 (propagated-inputs
7332 `(("ruby-addressable" ,ruby-addressable)
7333 ("ruby-faraday" ,ruby-faraday)))
7334 (synopsis "Experimental hypermedia agent for Ruby")
7335 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7336 top of Faraday.")
7337 (home-page "https://github.com/lostisland/sawyer")
7338 (license license:expat)))
7339
7340 (define-public ruby-octokit
7341 (package
7342 (name "ruby-octokit")
7343 (version "4.18.0")
7344 (source
7345 (origin
7346 (method url-fetch)
7347 (uri (rubygems-uri "octokit" version))
7348 (sha256
7349 (base32
7350 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7351 (build-system ruby-build-system)
7352 (arguments '(#:tests? #f)) ;no test suite in the gem release
7353 (propagated-inputs
7354 `(("ruby-faraday" ,ruby-faraday)
7355 ("ruby-sawyer" ,ruby-sawyer)))
7356 (synopsis "Ruby toolkit for the GitHub API")
7357 (description "Octokit wraps the GitHub API in a flat API client that
7358 follows Ruby conventions and requires little knowledge of REST.")
7359 (home-page "https://github.com/octokit/octokit.rb")
7360 (license license:expat)))
7361
7362 (define-public ruby-chandler
7363 (package
7364 (name "ruby-chandler")
7365 (version "0.9.0")
7366 (source
7367 (origin
7368 (method url-fetch)
7369 (uri (rubygems-uri "chandler" version))
7370 (sha256
7371 (base32
7372 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7373 (build-system ruby-build-system)
7374 (native-inputs
7375 `(("ruby-rubocop" ,ruby-rubocop)))
7376 (propagated-inputs
7377 `(("ruby-netrc" ,ruby-netrc)
7378 ("ruby-octokit" ,ruby-octokit)))
7379 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7380 (description "Chandler syncs a project's CHANGELOG file entries to
7381 GitHub's release notes to remove the need of manually entering release
7382 notes.")
7383 (home-page "https://github.com/mattbrictson/chandler")
7384 (license license:expat)))
7385
7386 (define-public ruby-pry-byebug
7387 (package
7388 (name "ruby-pry-byebug")
7389 (version "3.9.0")
7390 (source
7391 (origin
7392 (method git-fetch)
7393 (uri (git-reference
7394 (url "https://github.com/deivid-rodriguez/pry-byebug")
7395 (commit (string-append "v" version))))
7396 (file-name (git-file-name name version))
7397 (sha256
7398 (base32
7399 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7400 (build-system ruby-build-system)
7401 (arguments
7402 `(#:phases (modify-phases %standard-phases
7403 (add-before 'check 'set-home
7404 (lambda _
7405 (setenv "HOME" (getcwd))
7406 #t)))))
7407 (native-inputs
7408 `(("ruby-chandler" ,ruby-chandler)
7409 ("ruby-rubocop" ,ruby-rubocop)
7410 ("ruby-simplecov" ,ruby-simplecov)))
7411 (propagated-inputs
7412 `(("ruby-byebug" ,ruby-byebug-11)
7413 ("ruby-pry" ,ruby-pry)))
7414 (synopsis "Step-by-step debugging and stack navigation in Pry")
7415 (description "This package adds step-by-step debugging and stack
7416 navigation capabilities to @code{pry}, using @code{byebug}.")
7417 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7418 (license license:expat)))
7419
7420 (define-public ruby-binding-of-caller
7421 (package
7422 (name "ruby-binding-of-caller")
7423 (version "0.8.0")
7424 (source
7425 (origin
7426 (method url-fetch)
7427 (uri (rubygems-uri "binding_of_caller" version))
7428 (sha256
7429 (base32
7430 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7431 (build-system ruby-build-system)
7432 ;; Attempting to run the test suite fails with a rake deprecation error
7433 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7434 (arguments '(#:tests? #f))
7435 (propagated-inputs
7436 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7437 (synopsis "Retrieve the binding of a method's caller")
7438 (description "The @code{binding_of_caller} module provides the
7439 @code{Binding#of_caller} method. It allows accessing bindings from upper
7440 frames in the call stack and can evaluate code in that context.")
7441 (home-page "https://github.com/banister/binding_of_caller")
7442 (license license:expat)))
7443
7444 (define-public ruby-pry-stack-explorer
7445 (package
7446 (name "ruby-pry-stack-explorer")
7447 (version "0.5.1")
7448 (source
7449 (origin
7450 (method url-fetch)
7451 (uri (rubygems-uri "pry-stack_explorer" version))
7452 (sha256
7453 (base32
7454 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7455 (build-system ruby-build-system)
7456 (arguments '(#:tests? #f)) ;no test suite in gem release
7457 (propagated-inputs
7458 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7459 ("ruby-pry" ,ruby-pry)))
7460 (synopsis "Call-stack navigation plugin for the Pry REPL")
7461 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7462 add support to navigate the call-stack.")
7463 (home-page "https://github.com/pry/pry-stack_explorer")
7464 (license license:expat)))
7465
7466 (define-public ruby-varint
7467 (package
7468 (name "ruby-varint")
7469 (version "0.1.1")
7470 (source
7471 (origin
7472 (method url-fetch)
7473 (uri (rubygems-uri "varint" version))
7474 (sha256
7475 (base32
7476 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7477 (build-system ruby-build-system)
7478 (arguments '(#:tests? #f)) ;no test suite
7479 (synopsis "Variable length integers (varint) C extension for Ruby")
7480 (description "This package provides a small C extension to speed up
7481 variable length integers (varint) in Ruby Protocol Buffers.")
7482 (home-page "https://github.com/liquidm/varint")
7483 (license license:bsd-3)))
7484
7485 (define-public ruby-ruby-prof
7486 (package
7487 (name "ruby-ruby-prof")
7488 (version "1.4.1")
7489 (source
7490 (origin
7491 (method url-fetch)
7492 (uri (rubygems-uri "ruby-prof" version))
7493 (sha256
7494 (base32
7495 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7496 (build-system ruby-build-system)
7497 (arguments
7498 `(#:phases
7499 (modify-phases %standard-phases
7500 (add-after 'unpack 'patch-rakefile
7501 ;; This fixes the following error: "NameError: uninitialized
7502 ;; constant Bundler::GemHelper" (see:
7503 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7504 (lambda _
7505 (substitute* "Rakefile"
7506 ((".*require \"bundler/setup\".*" all)
7507 (string-append all " require 'bundler/gem_tasks'\n")))
7508 #t))
7509 ;; The LineNumbersTest test fails non-deterministically (see:
7510 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7511 (add-after 'extract-gemspec 'delete-flaky-test
7512 (lambda _
7513 (delete-file "test/line_number_test.rb")
7514 (substitute* "ruby-prof.gemspec"
7515 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7516 #t))
7517 (add-before 'check 'compile
7518 (lambda _
7519 (invoke "rake" "compile"))))))
7520 (native-inputs
7521 `(("bundler" ,bundler)
7522 ("ruby-minitest" ,ruby-minitest)
7523 ("ruby-rake-compiler" ,ruby-rake-compiler)
7524 ("ruby-rdoc" ,ruby-rdoc)))
7525 (synopsis "Fast code profiler for Ruby")
7526 (description "RubyProf is a fast code profiler for Ruby. Its features
7527 include:
7528 @table @asis
7529 @item Speed
7530 Being a C extension, it is many times faster than the standard Ruby profiler.
7531 @item Measurement Modes
7532 It can measure program wall time, process time, object allocations and memory
7533 usage.
7534 @item Reports
7535 A variety of text and cross-referenced HTML reports can be generated.
7536 @item Threads
7537 Profiling multiple threads simultaneously is supported.
7538 @end table")
7539 (home-page "https://github.com/ruby-prof/ruby-prof")
7540 (license license:bsd-2)))
7541
7542 (define-public ruby-cucumber-messages
7543 (package
7544 (name "ruby-cucumber-messages")
7545 (version "12.2.0")
7546 (source (origin
7547 (method git-fetch)
7548 (uri (git-reference
7549 (url "https://github.com/cucumber/messages-ruby")
7550 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7551 (file-name (git-file-name name version))
7552 (sha256
7553 (base32
7554 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7555 (build-system ruby-build-system)
7556 (arguments
7557 `(#:phases (modify-phases %standard-phases
7558 (add-after 'unpack 'patch-protobuf.rb
7559 (lambda _
7560 (substitute* "rake/protobuf.rb"
7561 (("load 'protobuf/tasks/compile.rake'")
7562 "require 'protobuf/tasks'"))
7563 #t))
7564 (add-before 'build 'compile
7565 (lambda _
7566 (substitute* "Makefile"
7567 (("bundle exec ") "")
7568 (("include default.mk.*" all)
7569 (string-append "#" all)))
7570 (invoke "make")))
7571 (replace 'check
7572 (lambda _
7573 (invoke "rspec"))))))
7574 (propagated-inputs
7575 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7576 (native-inputs
7577 `(("ruby-rspec" ,ruby-rspec)))
7578 (home-page "https://github.com/cucumber/messages-ruby")
7579 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7580 (description "Cucumber Messages for Ruby is a library which allows
7581 serialization and deserialization of the protocol buffer messages used in
7582 Cucumber.")
7583 (license license:expat)))
7584
7585 (define-public ruby-gherkin
7586 (package
7587 (name "ruby-gherkin")
7588 (version "14.0.1")
7589 (source (origin
7590 (method git-fetch)
7591 (uri (git-reference
7592 (url "https://github.com/cucumber/gherkin-ruby")
7593 (commit (string-append "v" version))))
7594 (file-name (git-file-name name version))
7595 (sha256
7596 (base32
7597 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7598 (build-system ruby-build-system)
7599 (native-inputs
7600 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7601 ("ruby-rspec" ,ruby-rspec)))
7602 (arguments
7603 `(#:test-target "spec"))
7604 (synopsis "Gherkin parser for Ruby")
7605 (description "Gherkin is a parser and compiler for the Gherkin language.
7606 It is intended be used by all Cucumber implementations to parse
7607 @file{.feature} files.")
7608 (home-page "https://github.com/cucumber/gherkin-ruby")
7609 (license license:expat)))
7610
7611 (define-public ruby-gherkin-ruby
7612 (package
7613 (name "ruby-gherkin-ruby")
7614 (version "0.3.2")
7615 (home-page "https://github.com/codegram/gherkin-ruby")
7616 (source (origin
7617 (method url-fetch)
7618 (uri (rubygems-uri "gherkin-ruby" version))
7619 (sha256
7620 (base32
7621 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7622 (build-system ruby-build-system)
7623 (synopsis "Pure Ruby Gherkin parser")
7624 (description
7625 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7626 200 lines of code.")
7627 ;; XXX: No license information anywhere but Readme.md.
7628 (license license:expat)))
7629
7630 (define-public ruby-aruba
7631 (package
7632 (name "ruby-aruba")
7633 (version "0.14.14")
7634 (source
7635 (origin
7636 (method url-fetch)
7637 (uri (rubygems-uri "aruba" version))
7638 (sha256
7639 (base32
7640 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7641 (build-system ruby-build-system)
7642 (arguments
7643 '(#:test-target "spec"
7644 #:phases
7645 (modify-phases %standard-phases
7646 (add-after 'unpack 'patch
7647 (lambda _
7648 (substitute* "spec/aruba/api_spec.rb"
7649 ;; This resolves some errors in the specs
7650 ;;
7651 ;; undefined method `parse' for Time:Class
7652 (("require 'spec_helper'")
7653 "require 'spec_helper'\nrequire 'time'"))
7654 ;; Avoid shebang issues in this spec file
7655 (substitute* "spec/aruba/matchers/command_spec.rb"
7656 (("/usr/bin/env bash")
7657 (which "bash")))
7658 #t))
7659 (add-before 'check 'remove-unnecessary-dependencies
7660 (lambda _
7661 (substitute* "Gemfile"
7662 ((".*byebug.*") "\n")
7663 ((".*pry.*") "\n")
7664 ((".*yaml.*") "\n")
7665 ((".*bcat.*") "\n")
7666 ((".*kramdown.*") "\n")
7667 ((".*rubocop.*") "\n")
7668 ((".*cucumber-pro.*") "\n")
7669 ((".*cucumber.*") "\n")
7670 ((".*license_finder.*") "\n")
7671 ((".*rake.*") "gem 'rake'\n")
7672 ((".*relish.*") "\n"))
7673 (substitute* "aruba.gemspec"
7674 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7675 "spec.add_runtime_dependency 'cucumber'"))
7676 #t))
7677 (add-before 'check 'set-home
7678 (lambda _ (setenv "HOME" "/tmp") #t)))))
7679 (native-inputs
7680 `(("bundler" ,bundler)
7681 ("ruby-rspec" ,ruby-rspec)
7682 ("ruby-fuubar" ,ruby-fuubar)
7683 ("ruby-simplecov" ,ruby-simplecov)))
7684 (propagated-inputs
7685 `(("ruby-childprocess" ,ruby-childprocess)
7686 ("ruby-contracts" ,ruby-contracts)
7687 ("ruby-cucumber" ,ruby-cucumber)
7688 ("ruby-ffi" ,ruby-ffi)
7689 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7690 ("ruby-thor" ,ruby-thor)
7691 ("ruby-yard" ,ruby-yard)))
7692 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7693 (description
7694 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7695 command-line applications. It supports applications written in any
7696 language.")
7697 (home-page "https://github.com/cucumber/aruba")
7698 (license license:expat)))
7699
7700 ;; A version of ruby-aruba without tests run so that circular dependencies can
7701 ;; be avoided.
7702 (define ruby-aruba-without-tests
7703 (package
7704 (inherit ruby-aruba)
7705 (arguments '(#:tests? #f))
7706 (propagated-inputs
7707 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7708 ,@(alist-delete "ruby-cucumber"
7709 (package-propagated-inputs ruby-aruba))))
7710 (native-inputs '())))
7711
7712 (define-public ruby-sys-uname
7713 (package
7714 (name "ruby-sys-uname")
7715 (version "1.2.1")
7716 (source
7717 (origin
7718 (method url-fetch)
7719 (uri (rubygems-uri "sys-uname" version))
7720 (sha256
7721 (base32
7722 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7723 (build-system ruby-build-system)
7724 (arguments
7725 `(#:test-target "spec"))
7726 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7727 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7728 (synopsis "Ruby interface for gathering system information")
7729 (description "The sys-uname library provides an interface for gathering
7730 information about your current platform. It allows retrieving information
7731 such as the OS name, OS version, system name, etc.")
7732 (home-page "https://github.com/djberg96/sys-uname")
7733 (license license:asl2.0)))
7734
7735 (define-public ruby-cucumber-create-meta
7736 (package
7737 (name "ruby-cucumber-create-meta")
7738 (version "1.0.0")
7739 (source
7740 (origin
7741 (method url-fetch)
7742 (uri (rubygems-uri "cucumber-create-meta" version))
7743 (sha256
7744 (base32
7745 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
7746 (build-system ruby-build-system)
7747 (arguments
7748 `(#:phases (modify-phases %standard-phases
7749 (add-after 'extract-gemspec 'relax-version-requirements
7750 (lambda _
7751 (substitute* ".gemspec"
7752 ((" 12\\.2")
7753 " 12.1"))
7754 #t))
7755 (replace 'check
7756 (lambda _
7757 (invoke "rspec"))))))
7758 (native-inputs
7759 `(("ruby-rspec" ,ruby-rspec)))
7760 (propagated-inputs
7761 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7762 ("ruby-sys-uname" ,ruby-sys-uname)))
7763 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
7764 (description "The @code{createMeta} utility function allows generating
7765 system-specific @code{Meta} messages for Cucumber Ruby.")
7766 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
7767 (license license:expat)))
7768
7769 (define-public ruby-cucumber-html-formatter
7770 (package
7771 (name "ruby-cucumber-html-formatter")
7772 (version "7.0.0")
7773 (source
7774 (origin
7775 (method url-fetch)
7776 (uri (rubygems-uri "cucumber-html-formatter" version))
7777 (sha256
7778 (base32
7779 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
7780 (build-system ruby-build-system)
7781 (arguments
7782 `(#:phases (modify-phases %standard-phases
7783 (replace 'check
7784 (lambda _
7785 (invoke "rspec"))))))
7786 (native-inputs
7787 `(("ruby-rspec" ,ruby-rspec)))
7788 (propagated-inputs
7789 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7790 (synopsis "HTML formatter for Cucumber")
7791 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
7792 runs. It is built on top of cucumber-react and works with any Cucumber
7793 implementation with a protocol buffer formatter that outputs Cucumber
7794 messages.")
7795 (home-page "https://github.com/cucumber/cucumber/tree/\
7796 master/html-formatter/ruby")
7797 (license license:expat)))
7798
7799 (define-public ruby-cucumber
7800 (package
7801 (name "ruby-cucumber")
7802 (version "4.1.0")
7803 (source
7804 (origin
7805 (method git-fetch)
7806 (uri (git-reference
7807 (url "https://github.com/cucumber/cucumber-ruby")
7808 (commit (string-append "v" version))))
7809 (file-name (git-file-name name version))
7810 (sha256
7811 (base32
7812 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
7813 (build-system ruby-build-system)
7814 (arguments
7815 '(#:test-target "default"
7816 #:phases
7817 (modify-phases %standard-phases
7818 (add-after 'unpack 'disable-rubocop
7819 ;; Rubocop lint check fails with our more recent version.
7820 (lambda _
7821 (substitute* "Rakefile"
7822 (("spec cucumber rubocop")
7823 "spec cucumber"))
7824 #t))
7825 (add-after 'extract-gemspec 'strip-version-requirements
7826 (lambda _
7827 (delete-file "Gemfile") ;do not use Bundler
7828 (substitute* "cucumber.gemspec"
7829 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7830 (string-append stripped "\n")))
7831 #t))
7832 (add-before 'check 'set-home
7833 (lambda _
7834 (setenv "HOME" (getcwd))
7835 #t)))))
7836 (propagated-inputs
7837 `(("ruby-builder" ,ruby-builder)
7838 ("ruby-cucumber-core" ,ruby-cucumber-core)
7839 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
7840 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
7841 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
7842 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
7843 ("ruby-diff-lcs" ,ruby-diff-lcs)
7844 ("ruby-gherkin" ,ruby-gherkin)
7845 ("ruby-multi-json" ,ruby-multi-json)
7846 ("ruby-multi-test" ,ruby-multi-test)))
7847 (native-inputs
7848 `(;; Use a untested version of aruba, to avoid a circular dependency, as
7849 ;; ruby-aruba depends on ruby-cucumber.
7850 ("ruby-aruba" ,ruby-aruba-without-tests)
7851 ("ruby-rspec" ,ruby-rspec)
7852 ("ruby-pry" ,ruby-pry)
7853 ("ruby-nokogiri" ,ruby-nokogiri)
7854 ("ruby-rubocop" ,ruby-rubocop)))
7855 (synopsis "Describe automated tests in plain language")
7856 (description "Cucumber is a tool for running automated tests written in
7857 plain language. It's designed to support a Behaviour Driven Development (BDD)
7858 software development workflow.")
7859 (home-page "https://cucumber.io/")
7860 (license license:expat)))
7861
7862 (define ruby-cucumber-without-tests
7863 (package (inherit ruby-cucumber)
7864 (arguments
7865 '(#:tests? #f))
7866 (native-inputs
7867 '())))
7868
7869 (define-public ruby-coveralls
7870 (package
7871 (name "ruby-coveralls")
7872 (version "0.8.23")
7873 (source
7874 (origin
7875 (method url-fetch)
7876 (uri (rubygems-uri "coveralls" version))
7877 (sha256
7878 (base32
7879 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
7880 (build-system ruby-build-system)
7881 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
7882 ;; because of its nonfree, Hippocratic-derived license.
7883 (arguments
7884 `(#:tests? #f
7885 #:phases (modify-phases %standard-phases
7886 (add-after 'extract-gemspec 'strip-version-requirements
7887 ;; Keeping strict version requirements can cause problems
7888 ;; to users of the library, such as: Gem::ConflictError:
7889 ;; Unable to activate coveralls-0.8.23, because
7890 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
7891 (lambda _
7892 (substitute* "coveralls-ruby.gemspec"
7893 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
7894 (string-append stripped ")\n")))
7895 #t)))))
7896 (propagated-inputs
7897 `(("ruby-json" ,ruby-json)
7898 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
7899 ("ruby-thor" ,ruby-thor)
7900 ("ruby-tins" ,ruby-tins)))
7901 (synopsis "Ruby implementation of the Coveralls API")
7902 (description "This package provides a Ruby implementation of the Coveralls
7903 API.")
7904 (home-page "https://coveralls.io")
7905 (license license:expat)))
7906
7907 (define-public ruby-unindent
7908 (package
7909 (name "ruby-unindent")
7910 (version "1.0")
7911 (source
7912 (origin
7913 (method url-fetch)
7914 (uri (rubygems-uri "unindent" version))
7915 (sha256
7916 (base32
7917 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
7918 (build-system ruby-build-system)
7919 (synopsis "Ruby method to unindent strings")
7920 (description "This module provides a @code{String#unindent} Ruby method to
7921 unindent strings, which can be useful to unindent multiline strings embedded
7922 in already-indented code.")
7923 (home-page "https://github.com/mynyml/unindent")
7924 (license license:expat)))
7925
7926 (define-public ruby-cucumber-core
7927 (package
7928 (name "ruby-cucumber-core")
7929 (version "7.1.0")
7930 (source
7931 (origin
7932 (method git-fetch)
7933 (uri (git-reference
7934 (url "https://github.com/cucumber/cucumber-ruby-core")
7935 (commit (string-append "v" version))))
7936 (file-name (git-file-name name version))
7937 (sha256
7938 (base32
7939 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
7940 (build-system ruby-build-system)
7941 (arguments
7942 `(#:test-target "spec"
7943 #:phases
7944 (modify-phases %standard-phases
7945 (add-after 'extract-gemspec 'relax-version-requirements
7946 (lambda _
7947 (substitute* "cucumber-core.gemspec"
7948 (("'cucumber-tag-expressions',.*")
7949 "'cucumber-tag-expressions', '>=2.0.0'\n"))
7950 #t)))))
7951 (native-inputs
7952 `(("ruby-rspec" ,ruby-rspec)
7953 ("ruby-coveralls" ,ruby-coveralls)
7954 ("ruby-rubocop" ,ruby-rubocop)
7955 ("ruby-simplecov" ,ruby-simplecov)
7956 ("ruby-unindent" ,ruby-unindent)))
7957 (propagated-inputs
7958 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7959 ("ruby-gherkin" ,ruby-gherkin)
7960 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
7961 (synopsis "Core library for the Cucumber BDD app")
7962 (description "Cucumber is a tool for running automated tests
7963 written in plain language. Because they're written in plain language,
7964 they can be read by anyone on your team. Because they can be read by
7965 anyone, you can use them to help improve communication, collaboration
7966 and trust on your team.")
7967 (home-page "https://cucumber.io/")
7968 (license license:expat)))
7969
7970 (define-public ruby-cucumber-expressions
7971 (package
7972 (name "ruby-cucumber-expressions")
7973 (version "10.2.0")
7974 (source
7975 (origin
7976 (method git-fetch)
7977 (uri (git-reference
7978 (url "https://github.com/cucumber/cucumber-expressions-ruby")
7979 (commit (string-append "v" version))))
7980 (file-name (git-file-name name version))
7981 (sha256
7982 (base32
7983 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
7984 (build-system ruby-build-system)
7985 (arguments
7986 '(#:test-target "spec"))
7987 (native-inputs
7988 `(("ruby-rspec" ,ruby-rspec)
7989 ("ruby-simplecov" ,ruby-simplecov)))
7990 (synopsis "Simpler alternative to Regular Expressions")
7991 (description "Cucumber Expressions offer similar functionality to Regular
7992 Expressions, with a syntax that is easier to read and write. Cucumber
7993 Expressions are extensible with parameter types.")
7994 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7995 (license license:expat)))
7996
7997 (define-public ruby-cucumber-wire
7998 (package
7999 (name "ruby-cucumber-wire")
8000 (version "3.1.0")
8001 (source
8002 (origin
8003 (method url-fetch)
8004 (uri (rubygems-uri "cucumber-wire" version))
8005 (sha256
8006 (base32
8007 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
8008 (build-system ruby-build-system)
8009 (arguments
8010 '(#:tests? #f ;tests use cucumber, causing a cycle
8011 #:phases
8012 (modify-phases %standard-phases
8013 (add-after 'extract-gemspec 'relax-version-requirements
8014 (lambda _
8015 (substitute* ".gemspec"
8016 ((" 10\\.1") " 10.2"))
8017 #t)))))
8018 (propagated-inputs
8019 `(("ruby-cucumber-core" ,ruby-cucumber-core)
8020 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
8021 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8022 (synopsis "Cucumber wire protocol plugin")
8023 (description "Cucumber's wire protocol allows step definitions to be
8024 implemented and invoked on any platform.")
8025 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8026 (license license:expat)))
8027
8028 (define-public ruby-cucumber-tag-expressions
8029 (package
8030 (name "ruby-cucumber-tag-expressions")
8031 (version "3.0.0")
8032 (source
8033 (origin
8034 (method git-fetch)
8035 (uri (git-reference
8036 (url "https://github.com/cucumber/tag-expressions-ruby")
8037 (commit (string-append "v" version))))
8038 (file-name (git-file-name name version))
8039 (sha256
8040 (base32
8041 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8042 (build-system ruby-build-system)
8043 (arguments
8044 `(#:test-target "spec"))
8045 (native-inputs
8046 `(("ruby-rspec" ,ruby-rspec)))
8047 (synopsis "Cucumber tag expressions for Ruby")
8048 (description "Cucumber tag expression parser for Ruby. A tag expression
8049 is an infix boolean expression used by Cucumber.")
8050 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8051 (license license:expat)))
8052
8053 (define-public ruby-bindex
8054 (package
8055 (name "ruby-bindex")
8056 (version "0.5.0")
8057 (source
8058 (origin
8059 (method url-fetch)
8060 (uri (rubygems-uri "bindex" version))
8061 (sha256
8062 (base32
8063 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8064 (build-system ruby-build-system)
8065 (arguments
8066 '(#:test-target "default"))
8067 (native-inputs
8068 `(("bundler" ,bundler)
8069 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8070 (synopsis "Provides access for bindings relating to Ruby exceptions")
8071 (description
8072 "@code{bindex} provides a way to access the bindings that relate to
8073 exceptions in Ruby, providing more information about the context in which the
8074 exception occurred.")
8075 (home-page "https://github.com/gsamokovarov/bindex")
8076 (license license:expat)))
8077
8078 (define-public ruby-bio-logger
8079 (package
8080 (name "ruby-bio-logger")
8081 (version "1.0.1")
8082 (source
8083 (origin
8084 (method url-fetch)
8085 (uri (rubygems-uri "bio-logger" version))
8086 (sha256
8087 (base32
8088 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8089 (build-system ruby-build-system)
8090 (arguments
8091 `(#:tests? #f)) ; rake errors, missing shoulda
8092 (propagated-inputs
8093 `(("ruby-log4r" ,ruby-log4r)))
8094 (synopsis "Log4r wrapper for Ruby")
8095 (description "Bio-logger is a wrapper around Log4r adding extra logging
8096 features such as filtering and fine grained logging.")
8097 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8098 (license license:expat)))
8099
8100 (define-public ruby-yajl-ruby
8101 (package
8102 (name "ruby-yajl-ruby")
8103 (version "1.4.1")
8104 (source
8105 (origin
8106 (method url-fetch)
8107 (uri (rubygems-uri "yajl-ruby" version))
8108 (sha256
8109 (base32
8110 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8111 (build-system ruby-build-system)
8112 (arguments
8113 '(#:test-target "spec"
8114 #:phases
8115 (modify-phases %standard-phases
8116 (add-before 'check 'patch-test-to-update-load-path
8117 (lambda _
8118 (substitute* "spec/parsing/large_number_spec.rb"
8119 (("require \"yajl\"")
8120 "$LOAD_PATH << 'lib'; require 'yajl'"))
8121 #t)))))
8122 (native-inputs
8123 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8124 ("ruby-rspec" ,ruby-rspec)))
8125 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8126 (description
8127 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8128 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8129 replacement.
8130
8131 A modified copy of yajl is used, and included in the package.")
8132 (home-page "https://github.com/brianmario/yajl-ruby")
8133 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8134 license:bsd-3)))) ; Included, modified copy of yajl
8135
8136 (define-public ruby-yard
8137 (package
8138 (name "ruby-yard")
8139 (version "0.9.25")
8140 (source
8141 (origin
8142 (method git-fetch)
8143 ;; Tests do not pass if we build from the distributed gem.
8144 (uri (git-reference
8145 (url "https://github.com/lsegal/yard")
8146 (commit (string-append "v" version))))
8147 (file-name (git-file-name name version))
8148 (sha256
8149 (base32
8150 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8151 (build-system ruby-build-system)
8152 (arguments
8153 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8154 ;; problems.
8155 `(#:tests? #f
8156 #:phases (modify-phases %standard-phases
8157 (add-after 'unpack 'do-not-set-date-in-gemspec
8158 ;; Fix a reproducibility issue (see:
8159 ;; https://github.com/lsegal/yard/issues/1343).
8160 (lambda _
8161 (substitute* "yard.gemspec"
8162 ((".*s\\.date.*") ""))
8163 #t)))))
8164 (synopsis "Documentation generation tool for Ruby")
8165 (description "YARD is a documentation generation tool for the Ruby
8166 programming language. It enables the user to generate consistent, usable
8167 documentation that can be exported to a number of formats very easily, and
8168 also supports extending for custom Ruby constructs such as custom class level
8169 definitions.")
8170 (home-page "https://yardoc.org")
8171 (license license:expat)))
8172
8173 (define-public ruby-yard-with-tests
8174 (package
8175 (inherit ruby-yard)
8176 (name "ruby-yard-with-tests")
8177 (arguments
8178 (substitute-keyword-arguments (package-arguments ruby-yard)
8179 ((#:tests? _ #t) #t)
8180 ((#:test-target _ "default") "default")
8181 ((#:phases phases '%standard-phases)
8182 `(modify-phases ,phases
8183 (add-before 'check 'prepare-for-tests
8184 (lambda* (#:key tests? #:allow-other-keys)
8185 (when tests?
8186 (substitute* "Rakefile"
8187 ((".*[Ss]amus.*") ""))
8188 ;; Delete the Gemfile to avoid errors relating to it.
8189 (delete-file "Gemfile")
8190 ;; $HOME needs to be set to somewhere writeable for tests to
8191 ;; run.
8192 (setenv "HOME" "/tmp"))
8193 #t))))))
8194 (native-inputs
8195 `(("ruby-rspec" ,ruby-rspec)
8196 ("ruby-rack" ,ruby-rack)
8197 ("ruby-redcloth" ,ruby-redcloth)
8198 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8199
8200 (define-public ruby-spectroscope
8201 (package
8202 (name "ruby-spectroscope")
8203 (version "0.1.0")
8204 (source
8205 (origin
8206 (method url-fetch)
8207 (uri (rubygems-uri "spectroscope" version))
8208 (sha256
8209 (base32
8210 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8211 (build-system ruby-build-system)
8212 (arguments
8213 `(#:phases
8214 (modify-phases %standard-phases
8215 (replace 'check
8216 (lambda _
8217 (with-output-to-file ".test"
8218 (lambda _
8219 (display
8220 "\
8221 require 'ae/should'
8222 require 'rspec'
8223
8224 include RSpec
8225
8226 Test.run :default do |run|
8227 run.files << 'spec/*_spec.rb'
8228 end")))
8229 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8230 (native-inputs
8231 `(("ruby-ae" ,ruby-ae)
8232 ("ruby-rspec" ,ruby-rspec)))
8233 (propagated-inputs
8234 `(("ruby-rubytest" ,ruby-rubytest)))
8235 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8236 (description "Spectroscope is a Behavior-Driven Development (BDD)
8237 framework built on RubyTest, designed to emulate RSpec in most respects. It
8238 is assertion framework independent so any number of assertion systems can be
8239 used, such as Assay or AE.")
8240 (home-page "http://rubyworks.github.com/spectroscope/")
8241 (license license:bsd-2)))
8242
8243 (define-public ruby-tomparse
8244 (package
8245 (name "ruby-tomparse")
8246 (version "0.4.2")
8247 (source
8248 (origin
8249 (method url-fetch)
8250 (uri (rubygems-uri "tomparse" version))
8251 (sha256
8252 (base32
8253 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8254 (build-system ruby-build-system)
8255 ;; TODO: Tests require citron and rulebow, not yet packaged.
8256 (arguments '(#:tests? #f))
8257 (synopsis "TomDoc parser for Ruby")
8258 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8259 comment as input and parses it into a convenient object-oriented structure in
8260 accordance with the TomDoc standard. See
8261 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8262 TomDoc format.")
8263 (home-page "http://rubyworks.github.com/tomparse/")
8264 (license license:bsd-2)))
8265
8266 (define-public ruby-yard-tomdoc
8267 (package
8268 (name "ruby-yard-tomdoc")
8269 (version "0.7.1")
8270 (source
8271 (origin
8272 (method url-fetch)
8273 (uri (rubygems-uri "yard-tomdoc" version))
8274 (sha256
8275 (base32
8276 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8277 (build-system ruby-build-system)
8278 (arguments
8279 `(#:phases (modify-phases %standard-phases
8280 (replace 'check
8281 (lambda _
8282 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8283 (native-inputs
8284 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8285 ("ruby-spectroscope" ,ruby-spectroscope)
8286 ("ruby-ae" ,ruby-ae)))
8287 (propagated-inputs
8288 `(("ruby-tomparse" ,ruby-tomparse)
8289 ("ruby-yard" ,ruby-yard)))
8290 (synopsis "TomDoc syntax for YARD")
8291 (description "This module adds support for the TomDoc documentation format
8292 to YARD, a documentation generation tool for Ruby.")
8293 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8294 (license license:expat)))
8295
8296 (define-public ruby-clap
8297 (package
8298 (name "ruby-clap")
8299 (version "1.0.0")
8300 (source (origin
8301 (method url-fetch)
8302 (uri (rubygems-uri "clap" version))
8303 (sha256
8304 (base32
8305 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8306 (build-system ruby-build-system)
8307 ;; Clap needs cutest for running tests, but cutest needs clap.
8308 (arguments `(#:tests? #f))
8309 (synopsis "Command line argument parsing for simple applications")
8310 (description
8311 "Clap provides command line argument parsing features. It covers the
8312 simple case of executing code based on the flags or parameters passed.")
8313 (home-page "https://github.com/djanowski/cutest")
8314 (license license:expat)))
8315
8316 (define-public ruby-cutest
8317 (package
8318 (name "ruby-cutest")
8319 (version "1.2.2")
8320 (source (origin
8321 (method url-fetch)
8322 (uri (rubygems-uri "cutest" version))
8323 (sha256
8324 (base32
8325 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8326 (build-system ruby-build-system)
8327 (propagated-inputs
8328 `(("ruby-clap" ,ruby-clap)))
8329 (synopsis "Run tests in separate processes")
8330 (description
8331 "Cutest runs tests in separate processes to avoid shared state.")
8332 (home-page "https://github.com/djanowski/cutest")
8333 (license license:expat)))
8334
8335 (define-public ruby-pygmentize
8336 (package
8337 (name "ruby-pygmentize")
8338 (version "0.0.3")
8339 (source (origin
8340 (method url-fetch)
8341 (uri (rubygems-uri "pygmentize" version))
8342 (sha256
8343 (base32
8344 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8345 (build-system ruby-build-system)
8346 (arguments
8347 `(#:phases
8348 (modify-phases %standard-phases
8349 (add-after 'unpack 'fix-pygmentize-path
8350 (lambda _
8351 (substitute* "lib/pygmentize.rb"
8352 (("\"/usr/bin/env python.*")
8353 (string-append "\"" (which "pygmentize") "\"\n")))
8354 #t))
8355 (add-after 'build 'do-not-use-vendor-directory
8356 (lambda _
8357 ;; Remove bundled pygments sources
8358 ;; FIXME: ruby-build-system does not support snippets.
8359 (delete-file-recursively "vendor")
8360 (substitute* "pygmentize.gemspec"
8361 (("\"vendor/\\*\\*/\\*\",") ""))
8362 #t)))))
8363 (inputs
8364 `(("pygments" ,python-pygments)))
8365 (native-inputs
8366 `(("ruby-cutest" ,ruby-cutest)
8367 ("ruby-nokogiri" ,ruby-nokogiri)))
8368 (synopsis "Thin Ruby wrapper around pygmentize")
8369 (description
8370 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8371 application.")
8372 (home-page "https://github.com/djanowski/pygmentize")
8373 (license license:expat)))
8374
8375 (define-public ruby-eventmachine
8376 (package
8377 (name "ruby-eventmachine")
8378 (version "1.2.7")
8379 (source
8380 (origin
8381 (method url-fetch)
8382 (uri (rubygems-uri "eventmachine" version))
8383 (sha256
8384 (base32
8385 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8386 (build-system ruby-build-system)
8387 (arguments
8388 '(#:tests? #f)) ; test suite tries to connect to google.com
8389 (native-inputs
8390 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8391 (synopsis "Single-threaded network event framework for Ruby")
8392 (description
8393 "EventMachine implements a single-threaded engine for arbitrary network
8394 communications. EventMachine wraps all interactions with sockets, allowing
8395 programs to concentrate on the implementation of network protocols. It can be
8396 used to create both network servers and clients.")
8397 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8398 (home-page "https://github.com/eventmachine/eventmachine")
8399 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8400
8401 (define-public ruby-ruby-engine
8402 (package
8403 (name "ruby-ruby-engine")
8404 (version "2.0.0")
8405 (source
8406 (origin
8407 (method url-fetch)
8408 (uri (rubygems-uri "ruby_engine" version))
8409 (sha256
8410 (base32
8411 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8412 (build-system ruby-build-system)
8413 (arguments
8414 `(#:phases
8415 (modify-phases %standard-phases
8416 (add-after 'extract-gemspec 'clean-up
8417 (lambda _
8418 (delete-file "Gemfile.lock")
8419 (substitute* "ruby_engine.gemspec"
8420 ;; Remove unnecessary imports that would entail further
8421 ;; dependencies.
8422 ((".*<rdoc.*") "")
8423 ((".*<rubygems-tasks.*") "")
8424 ;; Remove extraneous .gem file
8425 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8426 (("\"Gemfile.lock\".freeze, ") "")
8427 ;; Soften rake dependency
8428 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8429 "%q<rake>.freeze, [\">= 10.0\"]")
8430 ;; Soften the rspec dependency
8431 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8432 "%q<rspec>.freeze, [\">= 2.4\"]"))
8433 (substitute* "Rakefile"
8434 (("require 'rubygems/tasks'") "")
8435 (("Gem::Tasks.new") ""))
8436 ;; Remove extraneous .gem file that otherwise gets installed.
8437 (delete-file-recursively "pkg")
8438 #t)))))
8439 (native-inputs
8440 `(("bundler" ,bundler)
8441 ("ruby-rake" ,ruby-rake)
8442 ("ruby-rspec" ,ruby-rspec)))
8443 (synopsis "Simplifies checking for Ruby implementation")
8444 (description
8445 "@code{ruby_engine} provides an RubyEngine class that can be used to
8446 check which implementation of Ruby is in use. It can provide the interpreter
8447 name and provides query methods such as @{RubyEngine.mri?}.")
8448 (home-page "https://github.com/janlelis/ruby_engine")
8449 (license license:expat)))
8450
8451 (define-public ruby-turn
8452 (package
8453 (name "ruby-turn")
8454 (version "0.9.7")
8455 (source
8456 (origin
8457 (method url-fetch)
8458 (uri (rubygems-uri "turn" version))
8459 (sha256
8460 (base32
8461 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8462 (build-system ruby-build-system)
8463 (arguments
8464 `(#:phases
8465 (modify-phases %standard-phases
8466 ;; Tests fail because turn changes its environment so can no longer
8467 ;; find test/unit. Instead simply test if the executable runs
8468 ;; without issue.
8469 (replace 'check
8470 (lambda _
8471 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8472 (propagated-inputs
8473 `(("ruby-ansi" ,ruby-ansi)
8474 ("ruby-minitest" ,ruby-minitest-4)))
8475 (synopsis "Alternate set of alternative runners for MiniTest")
8476 (description
8477 "TURN provides a set of alternative runners for MiniTest which are both
8478 colorful and informative. TURN displays each test on a separate line with
8479 failures being displayed immediately instead of at the end of the tests. Note
8480 that TURN is no longer being maintained.")
8481 (home-page "https://rubygems.org/gems/turn")
8482 (license license:expat)))
8483
8484 (define-public ruby-mimemagic
8485 (package
8486 (name "ruby-mimemagic")
8487 (version "0.3.3")
8488 (source
8489 (origin
8490 (method url-fetch)
8491 (uri (rubygems-uri "mimemagic" version))
8492 (sha256
8493 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8494 (build-system ruby-build-system)
8495 (arguments
8496 '(#:phases
8497 (modify-phases %standard-phases
8498 ;; This phase breaks the tests, as it patches some of the test data.
8499 (delete 'patch-source-shebangs))))
8500 (native-inputs
8501 `(("ruby-bacon" ,ruby-bacon)))
8502 (synopsis "Ruby library for MIME detection by extension or content")
8503 (description
8504 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8505 extension or content, using the freedesktop.org.xml shared-mime-info
8506 database.")
8507 (home-page "https://github.com/minad/mimemagic")
8508 (license license:expat)))
8509
8510 (define-public ruby-mime-types-data
8511 (package
8512 (name "ruby-mime-types-data")
8513 (version "3.2016.0521")
8514 (source
8515 (origin
8516 (method url-fetch)
8517 (uri (rubygems-uri "mime-types-data" version))
8518 (sha256
8519 (base32
8520 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8521 (build-system ruby-build-system)
8522 (native-inputs
8523 `(("ruby-hoe" ,ruby-hoe)))
8524 (synopsis "Registry for information about MIME media type definitions")
8525 (description
8526 "@code{mime-types-data} provides a registry for information about
8527 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8528 be used with the Ruby mime-types library or other software to determine
8529 defined filename extensions for MIME types, or to use filename extensions to
8530 look up the likely MIME type definitions.")
8531 (home-page "https://github.com/mime-types/mime-types-data/")
8532 (license license:expat)))
8533
8534 (define-public ruby-mime-types
8535 (package
8536 (name "ruby-mime-types")
8537 (version "3.1")
8538 (source
8539 (origin
8540 (method url-fetch)
8541 (uri (rubygems-uri "mime-types" version))
8542 (sha256
8543 (base32
8544 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8545 (build-system ruby-build-system)
8546 (propagated-inputs
8547 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8548 (native-inputs
8549 `(("ruby-hoe" ,ruby-hoe)
8550 ("ruby-fivemat" ,ruby-fivemat)
8551 ("ruby-minitest-focus" ,ruby-minitest-focus)
8552 ("ruby-minitest-rg" ,ruby-minitest-rg)
8553 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8554 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8555 (synopsis "Library and registry for MIME content type definitions")
8556 (description "The mime-types library provides a library and registry for
8557 information about Multipurpose Internet Mail Extensions (MIME) content type
8558 definitions. It can be used to determine defined filename extensions for MIME
8559 types, or to use filename extensions to look up the likely MIME type
8560 definitions.")
8561 (home-page "https://github.com/mime-types/ruby-mime-types")
8562 (license license:expat)))
8563
8564 (define-public ruby-fivemat
8565 (package
8566 (name "ruby-fivemat")
8567 (version "1.3.7")
8568 (source
8569 (origin
8570 (method url-fetch)
8571 (uri (rubygems-uri "fivemat" version))
8572 (sha256
8573 (base32
8574 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8575 (build-system ruby-build-system)
8576 (arguments
8577 `(#:tests? #f)) ; no tests
8578 (synopsis "Each test file given its own line of dots")
8579 (description
8580 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8581 its own line of dots during testing. It aims to provide test output that is
8582 neither too verbose nor too minimal.")
8583 (home-page "https://github.com/tpope/fivemat")
8584 (license license:expat)))
8585
8586 (define-public ruby-sqlite3
8587 (package
8588 (name "ruby-sqlite3")
8589 (version "1.4.2")
8590 (source
8591 (origin
8592 (method url-fetch)
8593 (uri (rubygems-uri "sqlite3" version))
8594 (sha256
8595 (base32
8596 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8597 (build-system ruby-build-system)
8598 (arguments
8599 `(#:phases
8600 (modify-phases %standard-phases
8601 (add-before 'check 'add-gemtest-file
8602 ;; This file exists in the repository but is not distributed.
8603 (lambda _ (invoke "touch" ".gemtest"))))))
8604 (inputs
8605 `(("sqlite" ,sqlite)))
8606 (native-inputs
8607 `(("ruby-hoe" ,ruby-hoe)
8608 ("ruby-rake-compiler" ,ruby-rake-compiler)
8609 ("ruby-mini-portile" ,ruby-mini-portile)))
8610 (synopsis "Interface with SQLite3 databases")
8611 (description
8612 "This module allows Ruby programs to interface with the SQLite3 database
8613 engine.")
8614 (home-page
8615 "https://github.com/sparklemotion/sqlite3-ruby")
8616 (license license:bsd-3)))
8617
8618 (define-public ruby-shoulda-context
8619 (package
8620 (name "ruby-shoulda-context")
8621 (version "1.2.2")
8622 (source
8623 (origin
8624 (method url-fetch)
8625 (uri (rubygems-uri "shoulda-context" version))
8626 (sha256
8627 (base32
8628 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8629 (build-system ruby-build-system)
8630 (arguments
8631 `(#:phases
8632 (modify-phases %standard-phases
8633 (replace 'check
8634 (lambda _
8635 ;; Do not run tests to avoid circular dependence with rails.
8636 ;; Instead just import the library to test.
8637 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8638 (synopsis "Test::Unit context framework extracted from Shoulda")
8639 (description
8640 "@code{shoulda-context} is the context framework extracted from Shoulda.
8641 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8642 context, setup, and should blocks combine to produce natural test method
8643 names.")
8644 (home-page "https://github.com/thoughtbot/shoulda-context")
8645 (license license:expat)))
8646
8647 (define-public ruby-shoulda-matchers
8648 (package
8649 (name "ruby-shoulda-matchers")
8650 (version "3.1.2")
8651 (source
8652 (origin
8653 (method url-fetch)
8654 (uri (rubygems-uri "shoulda-matchers" version))
8655 (sha256
8656 (base32
8657 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8658 (build-system ruby-build-system)
8659 (arguments
8660 `(#:phases
8661 (modify-phases %standard-phases
8662 (replace 'check
8663 (lambda _
8664 ;; Do not run tests to avoid circular dependence with rails. Instead
8665 ;; just import the library to test.
8666 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8667 (propagated-inputs
8668 `(("ruby-activesupport" ,ruby-activesupport)))
8669 (synopsis "Collection of testing matchers extracted from Shoulda")
8670 (description
8671 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8672 test common Rails functionality. These tests would otherwise be much longer,
8673 more complex, and error-prone.")
8674 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8675 (license license:expat)))
8676
8677 (define-public ruby-shoulda-matchers-2
8678 (package
8679 (inherit ruby-shoulda-matchers)
8680 (version "2.8.0")
8681 (source (origin
8682 (method url-fetch)
8683 (uri (rubygems-uri "shoulda-matchers" version))
8684 (sha256
8685 (base32
8686 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8687
8688 (define-public ruby-shoulda
8689 (package
8690 (name "ruby-shoulda")
8691 (version "3.5.0")
8692 (source
8693 (origin
8694 (method url-fetch)
8695 (uri (rubygems-uri "shoulda" version))
8696 (sha256
8697 (base32
8698 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8699 (build-system ruby-build-system)
8700 (arguments
8701 `(#:phases
8702 (modify-phases %standard-phases
8703 (replace 'check
8704 ;; Don't run tests to avoid circular dependence with rails. Instead
8705 ;; just import the library to test.
8706 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8707 (propagated-inputs
8708 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8709 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8710 (synopsis "Context framework and matchers for testing")
8711 (description
8712 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8713 @code{shoulda-matchers} providing tools for writing tests.")
8714 (home-page "https://github.com/thoughtbot/shoulda")
8715 (license license:expat)))
8716
8717 (define-public ruby-unf
8718 (package
8719 (name "ruby-unf")
8720 (version "0.1.4")
8721 (source
8722 (origin
8723 (method url-fetch)
8724 (uri (rubygems-uri "unf" version))
8725 (sha256
8726 (base32
8727 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8728 (build-system ruby-build-system)
8729 (arguments
8730 `(#:phases
8731 (modify-phases %standard-phases
8732 (add-before 'check 'add-dependency-to-bundler
8733 (lambda _
8734 ;; test-unit is required but not provided by the bundler
8735 ;; environment. This is fixed in the upstream repository but fix
8736 ;; has not been released.
8737 (substitute* "Gemfile"
8738 (("^gemspec") "gem 'test-unit'\ngemspec"))
8739 #t)))))
8740 (propagated-inputs
8741 `(("ruby-unf-ext" ,ruby-unf-ext)))
8742 (native-inputs
8743 `(("ruby-shoulda" ,ruby-shoulda)
8744 ("bundler" ,bundler)
8745 ("ruby-test-unit" ,ruby-test-unit)))
8746 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
8747 (description
8748 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
8749 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
8750 @code{java.text.Normalizer} on JRuby.")
8751 (home-page "https://github.com/knu/ruby-unf")
8752 (license license:bsd-2)))
8753
8754 (define-public ruby-warden
8755 (package
8756 (name "ruby-warden")
8757 (version "1.2.8")
8758 (source
8759 (origin
8760 (method url-fetch)
8761 (uri (rubygems-uri "warden" version))
8762 (sha256
8763 (base32
8764 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
8765 (build-system ruby-build-system)
8766 (arguments
8767 '(#:tests? #f)) ; No included tests
8768 (propagated-inputs
8769 `(("ruby-rack" ,ruby-rack)))
8770 (synopsis "Rack middleware providing authentication")
8771 (description
8772 "Warden is a Rack-based middleware that provides a mechanism for
8773 authentication in Ruby web applications.")
8774 (home-page "https://github.com/wardencommunity/warden")
8775 (license license:expat)))
8776
8777 (define-public ruby-warden-oauth2
8778 (package
8779 (name "ruby-warden-oauth2")
8780 (version "0.0.1")
8781 (source
8782 (origin
8783 (method url-fetch)
8784 (uri (rubygems-uri "warden-oauth2" version))
8785 (sha256
8786 (base32
8787 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
8788 (build-system ruby-build-system)
8789 (arguments
8790 '(#:test-target "spec"
8791 #:phases
8792 (modify-phases %standard-phases
8793 (add-after 'unpack 'remove-unnecessary-dependencies
8794 (lambda _
8795 (substitute* "Gemfile"
8796 ;; All of these gems relate to development, and are unnecessary
8797 ;; when running the tests
8798 (("gem 'guard-bundler'") "")
8799 (("gem 'guard'") "")
8800 (("gem 'guard-rspec'") "")
8801 (("gem 'rb-fsevent'") "")
8802 (("gem 'pry'") "")
8803 (("gem 'growl'") ""))
8804 #t))
8805 ;; The test suite doesn't work with rspec@2, and this is incompatible
8806 ;; with the current version of Rake, so invoke Rspec directly
8807 (replace 'check
8808 (lambda* (#:key tests? #:allow-other-keys)
8809 (when tests?
8810 (invoke "bundle" "exec" "rspec"))
8811 #t)))))
8812 (propagated-inputs
8813 `(("ruby-warden" ,ruby-warden)))
8814 (native-inputs
8815 `(("bundler" ,bundler)
8816 ("ruby-rspec" ,ruby-rspec-2)
8817 ("ruby-rack-test" ,ruby-rack-test)))
8818 (synopsis "OAuth 2.0 strategies for Warden")
8819 (description
8820 "This library extends Warden to support OAuth 2.0 authorized API
8821 requests.")
8822 (home-page "https://github.com/opperator/warden-oauth2")
8823 (license license:expat)))
8824
8825 (define-public ruby-webmock-2
8826 (package
8827 (name "ruby-webmock")
8828 (version "2.3.2")
8829 (source
8830 (origin
8831 (method url-fetch)
8832 (uri (rubygems-uri "webmock" version))
8833 (sha256
8834 (base32
8835 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
8836 (build-system ruby-build-system)
8837 (native-inputs
8838 `(("bundler" ,bundler)
8839 ("ruby-rspec" ,ruby-rspec)))
8840 (propagated-inputs
8841 `(("ruby-addressable" ,ruby-addressable)
8842 ("ruby-crack" ,ruby-crack)
8843 ("ruby-hashdiff" ,ruby-hashdiff)))
8844 (synopsis "Allows stubbing and setting expectations on HTTP requests")
8845 (description
8846 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
8847 requests. This is useful when testing software.")
8848 (home-page "https://github.com/bblimke/webmock")
8849 (license license:expat)))
8850
8851 (define-public ruby-unicode-display-width
8852 (package
8853 (name "ruby-unicode-display-width")
8854 (version "1.6.0")
8855 (source
8856 (origin
8857 (method url-fetch)
8858 (uri (rubygems-uri "unicode-display_width" version))
8859 (sha256
8860 (base32
8861 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
8862 (build-system ruby-build-system)
8863 (arguments
8864 '(;; Test data not included.
8865 #:tests? #f))
8866 (synopsis "Determine the monospace display width of Ruby strings")
8867 (description
8868 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
8869 display width of strings in Ruby.")
8870 (home-page "https://github.com/janlelis/unicode-display_width")
8871 (license license:expat)))
8872
8873 ;; There is another gem called 'ruby-version' so we use an underscore in this
8874 ;; name
8875 (define-public ruby_version
8876 (package
8877 (name "ruby_version")
8878 (version "1.0.2")
8879 (source
8880 (origin
8881 (method url-fetch)
8882 (uri (rubygems-uri "ruby_version" version))
8883 (sha256
8884 (base32
8885 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
8886 (build-system ruby-build-system)
8887 (arguments
8888 `(#:phases
8889 (modify-phases %standard-phases
8890 (add-before 'check 'fix-dependencies
8891 (lambda _
8892 ;; Remove the Gemfile.lock, as we want to use Guix packages at
8893 ;; whatever versions.
8894 (delete-file "Gemfile.lock")
8895 ;; Remove the included gem files as they unnecessary.
8896 (delete-file-recursively "pkg/")
8897 ;; Accept any version of rake, rdoc and rspec
8898 (substitute* "ruby_version.gemspec"
8899 (("%q<rake.*") "%q<rake>)\n")
8900 (("%q<rdoc.*") "%q<rdoc>)\n")
8901 (("%q<rspec.*") "%q<rspec>)\n"))
8902 ;; Do not use bundler.
8903 (substitute* "Rakefile"
8904 (("Bundler\\.setup.*") "nil\n"))
8905 #t)))))
8906 (native-inputs
8907 `(("ruby-rdoc" ,ruby-rdoc)
8908 ("ruby-rspec" ,ruby-rspec)
8909 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
8910 (synopsis "Ruby library to help check the Ruby version")
8911 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
8912 checking for the right Ruby version in software.")
8913 (home-page "https://github.com/janlelis/ruby_version")
8914 (license license:expat)))
8915
8916 (define-public ruby-websocket-driver
8917 (package
8918 (name "ruby-websocket-driver")
8919 (version "0.7.1")
8920 (source
8921 (origin
8922 (method url-fetch)
8923 (uri (rubygems-uri "websocket-driver" version))
8924 (sha256
8925 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
8926 (build-system ruby-build-system)
8927 (arguments
8928 '(#:tests? #f)) ; no included tests
8929 (propagated-inputs
8930 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
8931 (synopsis "WebSocket protocol handler with pluggable I/O")
8932 (description
8933 "@code{websocket-driver} provides a complete implementation of the
8934 WebSocket protocols that can be hooked up to any TCP library")
8935 (home-page "https://github.com/faye/websocket-driver-ruby")
8936 (license license:expat)))
8937
8938 (define-public ruby-websocket-extensions
8939 (package
8940 (name "ruby-websocket-extensions")
8941 (version "0.1.3")
8942 (source
8943 (origin
8944 (method url-fetch)
8945 (uri (rubygems-uri "websocket-extensions" version))
8946 (sha256
8947 (base32
8948 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
8949 (build-system ruby-build-system)
8950 (arguments
8951 '(;; No included tests
8952 #:tests? #f))
8953 (synopsis "Generic extension manager for WebSocket connections")
8954 (description
8955 "@code{websocket-extensions} provides a container for registering
8956 extension plugins.")
8957 (home-page "https://github.com/faye/websocket-extensions-ruby")
8958 (license license:expat)))
8959
8960 (define-public ruby-domain-name
8961 (package
8962 (name "ruby-domain-name")
8963 (version "0.5.20190701")
8964 (source
8965 (origin
8966 (method url-fetch)
8967 (uri (rubygems-uri "domain_name" version))
8968 (sha256
8969 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
8970 (build-system ruby-build-system)
8971 (arguments
8972 `(#:phases
8973 (modify-phases %standard-phases
8974 (add-before 'check 'fix-versions
8975 (lambda _
8976 ;; Fix NameError that appears to already be fixed upstream.
8977 (substitute* "Rakefile"
8978 (("DomainName::VERSION")
8979 "Bundler::GemHelper.gemspec.version"))
8980 ;; Loosen unnecessarily strict test-unit version specification.
8981 (substitute* "domain_name.gemspec"
8982 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
8983 #t)))))
8984 (propagated-inputs
8985 `(("ruby-unf" ,ruby-unf)))
8986 (native-inputs
8987 `(("ruby-shoulda" ,ruby-shoulda)
8988 ("bundler" ,bundler)
8989 ("ruby-test-unit" ,ruby-test-unit)))
8990 (synopsis "Domain name manipulation library")
8991 (description
8992 "@code{domain_name} is a Domain name manipulation library. It parses a
8993 domain name ready for extracting the registered domain and TLD (Top Level
8994 Domain). It can also be used for cookie domain validation based on the Public
8995 Suffix List.")
8996 (home-page "https://github.com/knu/ruby-domain_name")
8997 (license license:bsd-2)))
8998
8999 (define-public ruby-http-cookie
9000 (package
9001 (name "ruby-http-cookie")
9002 (version "1.0.3")
9003 (source
9004 (origin
9005 (method url-fetch)
9006 (uri (rubygems-uri "http-cookie" version))
9007 (sha256
9008 (base32
9009 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
9010 (build-system ruby-build-system)
9011 (arguments
9012 `(#:phases
9013 (modify-phases %standard-phases
9014 (add-before 'check 'add-dependency-to-bundler
9015 (lambda _
9016 ;; Fix NameError
9017 (substitute* "Rakefile"
9018 (("HTTP::Cookie::VERSION")
9019 "Bundler::GemHelper.gemspec.version"))
9020 #t)))))
9021 (propagated-inputs
9022 `(("ruby-domain-name" ,ruby-domain-name)))
9023 (native-inputs
9024 `(("rubysimplecov" ,ruby-simplecov)
9025 ("bundler" ,bundler)
9026 ("ruby-sqlite3" ,ruby-sqlite3)
9027 ("ruby-test-unit" ,ruby-test-unit)))
9028 (synopsis "Handle HTTP Cookies based on RFC 6265")
9029 (description
9030 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9031 RFC 6265. It has been designed with security, standards compliance and
9032 compatibility in mind, to behave just the same as today's major web browsers.
9033 It has built-in support for the legacy @code{cookies.txt} and
9034 @code{cookies.sqlite} formats of Mozilla Firefox.")
9035 (home-page "https://github.com/sparklemotion/http-cookie")
9036 (license license:expat)))
9037
9038 (define-public ruby-httpclient
9039 (package
9040 (name "ruby-httpclient")
9041 (version "2.8.3")
9042 (source
9043 (origin
9044 (method url-fetch)
9045 (uri (rubygems-uri "httpclient" version))
9046 (sha256
9047 (base32
9048 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9049 (build-system ruby-build-system)
9050 (arguments
9051 '(;; TODO: Some tests currently fail
9052 ;; ------
9053 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9054 ;; 2 omissions, 0 notifications
9055 ;; 91.866% passed
9056 ;; ------
9057 ;; 6.49 tests/s, 22.41 assertions/s
9058 #:tests? #f
9059 #:phases
9060 (modify-phases %standard-phases
9061 (replace 'check
9062 (lambda* (#:key tests? #:allow-other-keys)
9063 (if tests?
9064 (invoke "ruby"
9065 "-Ilib"
9066 "test/runner.rb")
9067 #t))))))
9068 (native-inputs
9069 `(("ruby-rack" ,ruby-rack)))
9070 (synopsis
9071 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9072 (description
9073 "The @code{httpclient} ruby library provides functionality related to
9074 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9075 Cookie, multithreading and authentication (digest, NTLM) support.
9076
9077 Also provided is a @command{httpclient} command, which can perform HTTP
9078 requests either using arguments or with an interactive prompt.")
9079 (home-page "https://github.com/nahi/httpclient")
9080 (license license:ruby)))
9081
9082 (define-public ruby-ansi
9083 (package
9084 (name "ruby-ansi")
9085 (version "1.5.0")
9086 (source
9087 (origin
9088 (method git-fetch)
9089 ;; Fetch from GitHub as the gem does not contain testing code.
9090 (uri (git-reference
9091 (url "https://github.com/rubyworks/ansi")
9092 (commit version)))
9093 (file-name (git-file-name name version))
9094 (sha256
9095 (base32
9096 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9097 (build-system ruby-build-system)
9098 (arguments
9099 `(#:phases
9100 (modify-phases %standard-phases
9101 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9102 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9103 ;; be require'd.
9104 (replace 'check
9105 (lambda _
9106 (invoke "ruby" "-Ilib" "-r" "ansi")))
9107 (add-before 'validate-runpath 'replace-broken-symlink
9108 (lambda* (#:key outputs #:allow-other-keys)
9109 (let* ((out (assoc-ref outputs "out"))
9110 (file (string-append
9111 out "/lib/ruby/vendor_ruby/gems/ansi-"
9112 ,version "/lib/ansi.yml")))
9113 ;; XXX: This symlink is broken since ruby 2.4.
9114 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9115 (delete-file file)
9116 (symlink "../.index" file)
9117 #t))))))
9118 (synopsis "ANSI escape code related libraries")
9119 (description
9120 "This package is a collection of ANSI escape code related libraries
9121 enabling ANSI colorization and stylization of console output. Included in the
9122 library are the @code{Code} module, which defines ANSI codes as constants and
9123 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9124 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9125 @code{Terminal} module which provides information about the current output
9126 device.")
9127 (home-page "https://rubyworks.github.io/ansi/")
9128 (license license:bsd-2)))
9129
9130 (define-public ruby-systemu
9131 (package
9132 (name "ruby-systemu")
9133 (version "2.6.5")
9134 (source
9135 (origin
9136 (method url-fetch)
9137 (uri (rubygems-uri "systemu" version))
9138 (sha256
9139 (base32
9140 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9141 (build-system ruby-build-system)
9142 (arguments
9143 `(#:phases
9144 (modify-phases %standard-phases
9145 (add-before 'check 'set-version
9146 (lambda _
9147 (setenv "VERSION" ,version)
9148 #t)))))
9149 (synopsis "Capture of stdout/stderr and handling of child processes")
9150 (description
9151 "Systemu can be used on any platform to return status, stdout, and stderr
9152 of any command. Unlike other methods like @code{open3} and @code{popen4}
9153 there is no danger of full pipes or threading issues hanging your process or
9154 subprocess.")
9155 (home-page "https://github.com/ahoward/systemu")
9156 (license license:ruby)))
9157
9158 (define-public ruby-bio-commandeer
9159 (package
9160 (name "ruby-bio-commandeer")
9161 (version "0.4.0")
9162 (source
9163 (origin
9164 (method url-fetch)
9165 (uri (rubygems-uri "bio-commandeer" version))
9166 (sha256
9167 (base32
9168 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9169 (build-system ruby-build-system)
9170 (arguments
9171 `(#:phases
9172 (modify-phases %standard-phases
9173 (replace 'check
9174 ;; Run test without calling 'rake' so that jeweler is
9175 ;; not required as an input.
9176 (lambda _
9177 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9178 (propagated-inputs
9179 `(("ruby-bio-logger" ,ruby-bio-logger)
9180 ("ruby-systemu" ,ruby-systemu)))
9181 (native-inputs
9182 `(("bundler" ,bundler)
9183 ("ruby-rspec" ,ruby-rspec)))
9184 (synopsis "Simplified running of shell commands from within Ruby")
9185 (description
9186 "Bio-commandeer provides an opinionated method of running shell commands
9187 from within Ruby. The advantage of bio-commandeer over other methods of
9188 running external commands is that when something goes wrong, messages printed
9189 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9190 detail to ease debugging.")
9191 (home-page "https://github.com/wwood/bioruby-commandeer")
9192 (license license:expat)))
9193
9194 (define-public ruby-rubytest
9195 (package
9196 (name "ruby-rubytest")
9197 (version "0.8.1")
9198 (source
9199 (origin
9200 (method url-fetch)
9201 (uri (rubygems-uri "rubytest" version))
9202 (sha256
9203 (base32
9204 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9205 (build-system ruby-build-system)
9206 (arguments
9207 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9208 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9209 ;; simply test that the library can be require'd.
9210 `(#:phases
9211 (modify-phases %standard-phases
9212 (replace 'check
9213 (lambda _
9214 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9215 (propagated-inputs
9216 `(("ruby-ansi" ,ruby-ansi)))
9217 (synopsis "Universal test harness for Ruby")
9218 (description
9219 "Rubytest is a testing meta-framework for Ruby. It can handle any
9220 compliant test framework and can run tests from multiple frameworks in a
9221 single pass.")
9222 (home-page "https://rubyworks.github.io/rubytest")
9223 (license license:bsd-2)))
9224
9225 (define-public ruby-brass
9226 (package
9227 (name "ruby-brass")
9228 (version "1.2.1")
9229 (source
9230 (origin
9231 (method url-fetch)
9232 (uri (rubygems-uri "brass" version))
9233 (sha256
9234 (base32
9235 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9236 (build-system ruby-build-system)
9237 (arguments
9238 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9239 ;; Instead simply test that the library can be require'd.
9240 `(#:phases
9241 (modify-phases %standard-phases
9242 (replace 'check
9243 (lambda _
9244 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9245 (synopsis "Basic foundational assertions framework")
9246 (description
9247 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9248 foundational assertions framework for other assertion and test frameworks to
9249 make use of.")
9250 (home-page "https://rubyworks.github.io/brass")
9251 (license license:bsd-2)))
9252
9253 (define-public ruby-qed
9254 (package
9255 (name "ruby-qed")
9256 (version "2.9.2")
9257 (source
9258 (origin
9259 (method url-fetch)
9260 (uri (rubygems-uri "qed" version))
9261 (sha256
9262 (base32
9263 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9264 (build-system ruby-build-system)
9265 (arguments
9266 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9267 ;; Instead simply test that the executable runs using --copyright.
9268 `(#:phases
9269 (modify-phases %standard-phases
9270 (replace 'check
9271 (lambda _
9272 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9273 (propagated-inputs
9274 `(("ruby-ansi" ,ruby-ansi)
9275 ("ruby-brass" ,ruby-brass)))
9276 (synopsis "Test framework utilizing literate programming techniques")
9277 (description
9278 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9279 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9280 Development} (BDD) utilizing Literate Programming techniques. QED sits
9281 somewhere between lower-level testing tools like @code{Test::Unit} and
9282 requirement specifications systems like Cucumber.")
9283 (home-page "https://rubyworks.github.io/qed")
9284 (license license:bsd-2)))
9285
9286 (define-public ruby-que
9287 (package
9288 (name "ruby-que")
9289 (version "1.0.0.beta3")
9290 (source
9291 (origin
9292 (method url-fetch)
9293 (uri (rubygems-uri "que" version))
9294 (sha256
9295 (base32
9296 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9297 (build-system ruby-build-system)
9298 (arguments
9299 '(#:tests? #f)) ; No included tests
9300 (synopsis "Job queue using PostgreSQL written in Ruby")
9301 (description
9302 "This package provides a job queue that uses PostgreSQL for storing jobs
9303 and locking between worker processes.")
9304 (home-page "https://github.com/chanks/que")
9305 (license license:expat)))
9306
9307 (define-public ruby-ae
9308 (package
9309 (name "ruby-ae")
9310 (version "1.8.2")
9311 (source
9312 (origin
9313 (method git-fetch)
9314 ;; Fetch from github so tests are included.
9315 (uri (git-reference
9316 (url "https://github.com/rubyworks/ae")
9317 (commit version)))
9318 (file-name (git-file-name name version))
9319 (sha256
9320 (base32
9321 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9322 (build-system ruby-build-system)
9323 (arguments
9324 `(#:phases
9325 (modify-phases %standard-phases
9326 (replace 'check
9327 (lambda _ (invoke "qed")))
9328 (add-before 'validate-runpath 'replace-broken-symlink
9329 (lambda* (#:key outputs #:allow-other-keys)
9330 (let* ((out (assoc-ref outputs "out"))
9331 (file (string-append
9332 out "/lib/ruby/vendor_ruby/gems/ae-"
9333 ,version "/lib/ae.yml")))
9334 ;; XXX: This symlink is broken since ruby 2.4.
9335 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9336 (delete-file file)
9337 (symlink "../.index" file)
9338 #t))))))
9339 (propagated-inputs
9340 `(("ruby-ansi" ,ruby-ansi)))
9341 (native-inputs
9342 `(("ruby-qed" ,ruby-qed)))
9343 (synopsis "Assertions library")
9344 (description
9345 "Assertive Expressive (AE) is an assertions library specifically designed
9346 for reuse by other test frameworks.")
9347 (home-page "https://rubyworks.github.io/ae/")
9348 (license license:bsd-2)))
9349
9350 (define-public ruby-lemon
9351 (package
9352 (name "ruby-lemon")
9353 (version "0.9.1")
9354 (source
9355 (origin
9356 (method url-fetch)
9357 (uri (rubygems-uri "lemon" version))
9358 (sha256
9359 (base32
9360 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9361 (build-system ruby-build-system)
9362 (arguments
9363 `(#:phases
9364 (modify-phases %standard-phases
9365 (replace 'check (lambda _ (invoke "qed"))))))
9366 (propagated-inputs
9367 `(("ruby-ae" ,ruby-ae)
9368 ("ruby-ansi" ,ruby-ansi)
9369 ("ruby-rubytest" ,ruby-rubytest)))
9370 (native-inputs
9371 `(("ruby-qed" ,ruby-qed)))
9372 (synopsis "Test framework correlating code structure and test unit")
9373 (description
9374 "Lemon is a unit testing framework that enforces highly formal
9375 case-to-class and unit-to-method test construction. This enforcement can help
9376 focus concern on individual units of behavior.")
9377 (home-page "https://rubyworks.github.io/lemon")
9378 (license license:bsd-2)))
9379
9380 (define-public ruby-rubytest-cli
9381 (package
9382 (name "ruby-rubytest-cli")
9383 (version "0.2.0")
9384 (source
9385 (origin
9386 (method url-fetch)
9387 (uri (rubygems-uri "rubytest-cli" version))
9388 (sha256
9389 (base32
9390 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9391 (build-system ruby-build-system)
9392 (arguments
9393 `(#:tests? #f)) ; no tests
9394 (propagated-inputs
9395 `(("ruby-ansi" ,ruby-ansi)
9396 ("ruby-rubytest" ,ruby-rubytest)))
9397 (synopsis "Command-line interface for rubytest")
9398 (description
9399 "Rubytest CLI is a command-line interface for running tests for
9400 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9401 (home-page "https://rubyworks.github.io/rubytest-cli")
9402 (license license:bsd-2)))
9403
9404 (define-public ruby-hashery
9405 (package
9406 (name "ruby-hashery")
9407 (version "2.1.2")
9408 (source
9409 (origin
9410 (method url-fetch)
9411 (uri (rubygems-uri "hashery" version))
9412 (sha256
9413 (base32
9414 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9415 (build-system ruby-build-system)
9416 (arguments
9417 `(#:phases
9418 (modify-phases %standard-phases
9419 (replace 'check
9420 (lambda _
9421 (invoke "qed")
9422 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9423 (native-inputs
9424 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9425 ("ruby-qed" ,ruby-qed)
9426 ("ruby-lemon" ,ruby-lemon)))
9427 (synopsis "Hash-like classes with extra features")
9428 (description
9429 "The Hashery is a tight collection of @code{Hash}-like classes.
9430 Included are the auto-sorting @code{Dictionary} class, the efficient
9431 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9432 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9433 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9434 standard @code{Hash} making it possible to subclass and augment to fit any
9435 specific use case.")
9436 (home-page "https://rubyworks.github.io/hashery")
9437 (license license:bsd-2)))
9438
9439 (define-public ruby-rc4
9440 (package
9441 (name "ruby-rc4")
9442 (version "0.1.5")
9443 (source
9444 (origin
9445 (method url-fetch)
9446 (uri (rubygems-uri "ruby-rc4" version))
9447 (sha256
9448 (base32
9449 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9450 (build-system ruby-build-system)
9451 (arguments
9452 `(#:phases
9453 (modify-phases %standard-phases
9454 (replace 'check
9455 (lambda _
9456 (invoke "rspec" "spec/rc4_spec.rb"))))))
9457 (native-inputs
9458 `(("ruby-rspec" ,ruby-rspec-2)))
9459 (synopsis "Implementation of the RC4 algorithm")
9460 (description
9461 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9462 (home-page "https://github.com/caiges/Ruby-RC4")
9463 (license license:expat)))
9464
9465 (define-public ruby-afm
9466 (package
9467 (name "ruby-afm")
9468 (version "0.2.2")
9469 (source
9470 (origin
9471 (method url-fetch)
9472 (uri (rubygems-uri "afm" version))
9473 (sha256
9474 (base32
9475 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9476 (build-system ruby-build-system)
9477 (native-inputs
9478 `(("bundler" ,bundler)))
9479 (synopsis "Read Adobe Font Metrics (afm) files")
9480 (description
9481 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9482 files and use the data therein.")
9483 (home-page "https://github.com/halfbyte/afm")
9484 (license license:expat)))
9485
9486 (define-public ruby-ascii85
9487 (package
9488 (name "ruby-ascii85")
9489 (version "1.0.3")
9490 (source
9491 (origin
9492 (method url-fetch)
9493 (uri (rubygems-uri "Ascii85" version))
9494 (sha256
9495 (base32
9496 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9497 (build-system ruby-build-system)
9498 (native-inputs
9499 `(("bundler" ,bundler)))
9500 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9501 (description
9502 "This library provides methods to encode and decode Ascii85
9503 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9504 @dfn{Portable Document Format} (PDF) file formats.")
9505 (home-page "https://github.com/datawraith/ascii85gem")
9506 (license license:expat)))
9507
9508 (define-public ruby-ttfunk
9509 (package
9510 (name "ruby-ttfunk")
9511 (version "1.6.2.1")
9512 (source
9513 (origin
9514 (method git-fetch)
9515 ;; fetch from github as the gem does not contain testing code
9516 (uri (git-reference
9517 (url "https://github.com/prawnpdf/ttfunk")
9518 (commit version)))
9519 (file-name (git-file-name name version))
9520 (sha256
9521 (base32
9522 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9523 (build-system ruby-build-system)
9524 (arguments
9525 `(#:test-target "spec"
9526 #:phases
9527 (modify-phases %standard-phases
9528 (add-before 'build 'remove-ssh
9529 (lambda _
9530 ;; remove dependency on an ssh key pair that doesn't exist
9531 (substitute* "ttfunk.gemspec"
9532 (("spec.signing_key.*") ""))
9533 #t))
9534 (add-before 'check 'remove-rubocop
9535 (lambda _
9536 ;; remove rubocop as a dependency as not needed for testing
9537 (substitute* "ttfunk.gemspec"
9538 (("spec.add_development_dependency\\('rubocop'.*") ""))
9539 (substitute* "Rakefile"
9540 (("require 'rubocop/rake_task'") "")
9541 (("RuboCop::RakeTask.new") ""))
9542 #t)))))
9543 (native-inputs
9544 `(("ruby-rspec" ,ruby-rspec)
9545 ("ruby-yard" ,ruby-yard)
9546 ("bundler" ,bundler)))
9547 (synopsis "Font metrics parser for the Prawn PDF generator")
9548 (description
9549 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9550 part of the Prawn PDF generator.")
9551 (home-page "https://github.com/prawnpdf/ttfunk")
9552 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9553 ;; for details."
9554 (license %prawn-project-licenses)))
9555
9556 (define-public ruby-puma
9557 (package
9558 (name "ruby-puma")
9559 (version "3.9.1")
9560 (source
9561 (origin
9562 (method git-fetch)
9563 ;; Fetch from GitHub because distributed gem does not contain tests.
9564 (uri (git-reference
9565 (url "https://github.com/puma/puma")
9566 (commit (string-append "v" version))))
9567 (file-name (git-file-name name version))
9568 (sha256
9569 (base32
9570 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9571 (build-system ruby-build-system)
9572 (arguments
9573 `(#:tests? #f ; Tests require an out-dated version of minitest.
9574 #:phases
9575 (modify-phases %standard-phases
9576 (add-before 'build 'fix-gemspec
9577 (lambda _
9578 (substitute* "puma.gemspec"
9579 (("git ls-files") "find * |sort"))
9580 #t)))))
9581 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9582 (description
9583 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9584 for Ruby/Rack applications. Puma is intended for use in both development and
9585 production environments. In order to get the best throughput, it is highly
9586 recommended that you use a Ruby implementation with real threads like Rubinius
9587 or JRuby.")
9588 (home-page "https://puma.io/")
9589 (license license:expat)))
9590
9591 (define-public ruby-hoe-git
9592 (package
9593 (name "ruby-hoe-git")
9594 (version "1.6.0")
9595 (source
9596 (origin
9597 (method url-fetch)
9598 (uri (rubygems-uri "hoe-git" version))
9599 (sha256
9600 (base32
9601 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9602 (build-system ruby-build-system)
9603 (propagated-inputs
9604 `(("ruby-hoe" ,ruby-hoe)))
9605 (synopsis "Hoe plugins for tighter Git integration")
9606 (description
9607 "This package provides a set of Hoe plugins for tighter Git integration.
9608 It provides tasks to automate release tagging and pushing and changelog
9609 generation.")
9610 (home-page "https://github.com/jbarnette/hoe-git")
9611 (license license:expat)))
9612
9613 (define-public ruby-sequel
9614 (package
9615 (name "ruby-sequel")
9616 (version "4.49.0")
9617 (source
9618 (origin
9619 (method url-fetch)
9620 (uri (rubygems-uri "sequel" version))
9621 (sha256
9622 (base32
9623 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9624 (build-system ruby-build-system)
9625 (arguments
9626 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9627 (synopsis "Database toolkit for Ruby")
9628 (description "Sequel provides thread safety, connection pooling and a
9629 concise DSL for constructing SQL queries and table schemas. It includes a
9630 comprehensive ORM layer for mapping records to Ruby objects and handling
9631 associated records.")
9632 (home-page "https://sequel.jeremyevans.net")
9633 (license license:expat)))
9634
9635 (define-public ruby-timecop
9636 (package
9637 (name "ruby-timecop")
9638 (version "0.9.1")
9639 (source
9640 (origin
9641 (method url-fetch)
9642 (uri (rubygems-uri "timecop" version))
9643 (sha256
9644 (base32
9645 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9646 (build-system ruby-build-system)
9647 (arguments
9648 `(#:phases
9649 (modify-phases %standard-phases
9650 (add-before 'check 'set-check-rubylib
9651 (lambda _
9652 ;; Set RUBYLIB so timecop tests finds its own lib.
9653 (setenv "RUBYLIB" "lib")
9654 #t)))))
9655 (native-inputs
9656 `(("bundler" ,bundler)
9657 ("ruby-minitest-rg" ,ruby-minitest-rg)
9658 ("ruby-mocha" ,ruby-mocha)
9659 ("ruby-activesupport" ,ruby-activesupport)))
9660 (synopsis "Test mocks for time-dependent functions")
9661 (description
9662 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9663 making it easier to test time-dependent code. It provides a unified method to
9664 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9665 call.")
9666 (home-page "https://github.com/travisjeffery/timecop")
9667 (license license:expat)))
9668
9669 (define-public ruby-concurrent
9670 (package
9671 (name "ruby-concurrent")
9672 (version "1.1.5")
9673 (source
9674 (origin
9675 (method git-fetch)
9676 ;; Download from GitHub because the rubygems version does not contain
9677 ;; Rakefile.
9678 (uri (git-reference
9679 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9680 (commit (string-append "v" version))))
9681 (file-name (git-file-name name version))
9682 (sha256
9683 (base32
9684 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9685 (build-system ruby-build-system)
9686 (arguments
9687 `(#:test-target "ci"
9688 #:phases
9689 (modify-phases %standard-phases
9690 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9691 (lambda _
9692 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9693 ;; correct one.
9694 (delete-file "concurrent-ruby-edge.gemspec")
9695 (delete-file "concurrent-ruby-ext.gemspec")
9696 #t))
9697 (replace 'replace-git-ls-files
9698 (lambda _
9699 ;; XXX: The default substitution made by this phase is not fully
9700 ;; compatible with "git ls-files". The latter produces file names
9701 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9702 ;; which gives "./lib/foo". That difference in turn breaks the
9703 ;; comparison against a glob pattern in this script.
9704 (substitute* "concurrent-ruby.gemspec"
9705 (("git ls-files") "find * -type f | sort"))
9706 #t))
9707 (add-before 'build 'remove-jar-from-gemspec
9708 (lambda _
9709 ;; The gemspec wants to include a JAR file that we do not build
9710 ;; nor need.
9711 (substitute* "concurrent-ruby.gemspec"
9712 (("'lib/concurrent/concurrent_ruby.jar'")
9713 ""))
9714 #t))
9715 (add-before 'build 'remove-rake_compiler_dock-dependency
9716 (lambda _
9717 ;; This library is only used when building for non-MRI targets.
9718 (substitute* "Rakefile"
9719 (("require 'rake_compiler_dock'")
9720 ""))
9721 #t))
9722 (add-before 'check 'remove-timecop-dependency
9723 ;; Remove timecop-dependent tests as having timecop as a depedency
9724 ;; causes circular depedencies.
9725 (lambda _
9726 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
9727 (delete-file "spec/concurrent/scheduled_task_spec.rb")
9728 #t)))))
9729 (native-inputs
9730 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9731 ("ruby-rspec" ,ruby-rspec)))
9732 (synopsis "Concurrency tools for Ruby")
9733 (description
9734 "This library provides modern concurrency tools including agents,
9735 futures, promises, thread pools, actors, supervisors, and more. It is
9736 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
9737 patterns.")
9738 (home-page "http://www.concurrent-ruby.com")
9739 (license license:expat)))
9740
9741 (define-public ruby-pkg-config
9742 (package
9743 (name "ruby-pkg-config")
9744 (version "1.2.5")
9745 (source
9746 (origin
9747 (method url-fetch)
9748 (uri (rubygems-uri "pkg-config" version))
9749 (sha256
9750 (base32
9751 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
9752 (build-system ruby-build-system)
9753 (arguments
9754 ;; Tests require extra files not included in the gem.
9755 `(#:tests? #f))
9756 (synopsis "Detect libraries for compiling Ruby native extensions")
9757 (description
9758 "@code{pkg-config} can be used in your extconf.rb to properly detect need
9759 libraries for compiling Ruby native extensions.")
9760 (home-page "https://github.com/ruby-gnome2/pkg-config")
9761 (license license:lgpl2.0+)))
9762
9763 (define-public ruby-net-http-digest-auth
9764 (package
9765 (name "ruby-net-http-digest-auth")
9766 (version "1.4.1")
9767 (source
9768 (origin
9769 (method url-fetch)
9770 (uri (rubygems-uri "net-http-digest_auth" version))
9771 (sha256
9772 (base32
9773 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
9774 (build-system ruby-build-system)
9775 (native-inputs
9776 `(("ruby-hoe" ,ruby-hoe)))
9777 (synopsis "RFC 2617 HTTP digest authentication library")
9778 (description
9779 "This library implements HTTP's digest authentication scheme based on
9780 RFC 2617. This enables the use of the digest authentication scheme instead
9781 of the more insecure basic authentication scheme.")
9782 (home-page "https://github.com/drbrain/net-http-digest_auth")
9783 (license license:expat)))
9784
9785 (define-public ruby-mail
9786 (package
9787 (name "ruby-mail")
9788 (version "2.6.6")
9789 (source
9790 (origin
9791 (method url-fetch)
9792 (uri (rubygems-uri "mail" version))
9793 (sha256
9794 (base32
9795 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
9796 (build-system ruby-build-system)
9797 (propagated-inputs
9798 `(("ruby-mime-types" ,ruby-mime-types)))
9799 (arguments
9800 ;; Tests require extra gems not included in the Gemfile.
9801 ;; XXX: Try enabling this for the next version with mini_mime.
9802 `(#:tests? #f))
9803 (synopsis "Mail library for Ruby")
9804 (description
9805 "Mail is an internet library for Ruby that is designed to handle email
9806 generation, parsing and sending. The purpose of this library is to provide
9807 a single point of access to handle all email functions, including sending
9808 and receiving emails. All network type actions are done through proxy
9809 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
9810
9811 Mail has been designed with a very simple object oriented system that
9812 really opens up the email messages you are parsing, if you know what you
9813 are doing, you can fiddle with every last bit of your email directly.")
9814 (home-page "https://github.com/mikel/mail")
9815 (license license:expat)))
9816
9817 (define-public ruby-mathn
9818 (package
9819 (name "ruby-mathn")
9820 (version "0.1.0")
9821 (source
9822 (origin
9823 (method url-fetch)
9824 (uri (rubygems-uri "mathn" version))
9825 (sha256
9826 (base32
9827 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
9828 (build-system ruby-build-system)
9829 (native-inputs
9830 `(("bundler" ,bundler)
9831 ("ruby-rake-compiler" ,ruby-rake-compiler)))
9832 (synopsis "Extends math operations for increased precision")
9833 (description
9834 "This gem makes mathematical operations more precise in Ruby and
9835 integrates other mathematical standard libraries. Prior to Ruby 2.5,
9836 @code{mathn} was part of the Ruby standard library.")
9837 (home-page "https://github.com/ruby/mathn")
9838 (license license:bsd-2)))
9839
9840 (define-public ruby-code-statistics
9841 (package
9842 (name "ruby-code-statistics")
9843 (version "0.2.13")
9844 (source
9845 (origin
9846 (method url-fetch)
9847 (uri (rubygems-uri "code_statistics" version))
9848 (sha256
9849 (base32
9850 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
9851 (build-system ruby-build-system)
9852 (arguments
9853 `(#:tests? #f)) ; Not all test code is included in gem.
9854 (synopsis "Port of the rails 'rake stats' method")
9855 (description
9856 "This gem is a port of the rails 'rake stats' method so it can be made
9857 more robust and work for non rails projects.")
9858 (home-page "https://github.com/danmayer/code_statistics")
9859 (license license:expat)))
9860
9861 (define-public ruby-rubypants
9862 (package
9863 (name "ruby-rubypants")
9864 (version "0.6.0")
9865 (source (origin
9866 (method url-fetch)
9867 (uri (rubygems-uri "rubypants" version))
9868 (sha256
9869 (base32
9870 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
9871 (build-system ruby-build-system)
9872 (arguments
9873 '(#:tests? #f)) ; need Codecov
9874 (synopsis "Port of the smart-quotes library SmartyPants")
9875 (description
9876 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
9877 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
9878 and BBEdit that easily translates plain ASCII punctuation characters into
9879 smart typographic punctuation HTML entities.")
9880 (home-page "https://github.com/jmcnevin/rubypants")
9881 (license license:bsd-2)))
9882
9883 (define-public ruby-org-ruby
9884 (package
9885 (name "ruby-org-ruby")
9886 (version "0.9.12")
9887 (source (origin
9888 (method url-fetch)
9889 (uri (rubygems-uri "org-ruby" version))
9890 (sha256
9891 (base32
9892 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
9893 (build-system ruby-build-system)
9894 (arguments
9895 '(#:tests? #f)) ; no rakefile
9896 (propagated-inputs
9897 `(("ruby-rubypants" ,ruby-rubypants)))
9898 (synopsis "Org-mode parser written in Ruby")
9899 (description
9900 "Org-ruby is an org-mode parser written in Ruby. The most significant
9901 thing this library does today is convert org-mode files to HTML or Textile or
9902 Markdown.")
9903 (home-page "https://github.com/wallyqs/org-ruby")
9904 (license license:expat)))
9905
9906 (define-public ruby-rake
9907 (package
9908 (name "ruby-rake")
9909 (version "13.0.1")
9910 (source
9911 (origin
9912 (method url-fetch)
9913 (uri (rubygems-uri "rake" version))
9914 (sha256
9915 (base32
9916 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
9917 (build-system ruby-build-system)
9918 (native-inputs
9919 `(("bundler" ,bundler)))
9920 (synopsis "Rake is a Make-like program implemented in Ruby")
9921 (description
9922 "Rake is a Make-like program where tasks and dependencies are specified
9923 in standard Ruby syntax.")
9924 (home-page "https://github.com/ruby/rake")
9925 (license license:expat)))
9926
9927 (define-public ruby-childprocess
9928 (package
9929 (name "ruby-childprocess")
9930 (version "3.0.0")
9931 (source
9932 (origin
9933 (method url-fetch)
9934 (uri (rubygems-uri "childprocess" version))
9935 (sha256
9936 (base32
9937 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
9938 (build-system ruby-build-system)
9939 (arguments
9940 `(#:tests? #f))
9941 (native-inputs
9942 `(("bundler" ,bundler)
9943 ("ruby-rspec" ,ruby-rspec)))
9944 (propagated-inputs
9945 `(("ruby-ffi" ,ruby-ffi)))
9946 (synopsis "Control external programs running in the background, in Ruby")
9947 (description "@code{childprocess} provides a gem to control external
9948 programs running in the background, in Ruby.")
9949 (home-page "https://github.com/enkessler/childprocess")
9950 (license license:expat)))
9951
9952 (define-public ruby-public-suffix
9953 (package
9954 (name "ruby-public-suffix")
9955 (version "4.0.5")
9956 (source (origin
9957 (method url-fetch)
9958 (uri (rubygems-uri "public_suffix" version))
9959 (sha256
9960 (base32
9961 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
9962 (build-system ruby-build-system)
9963 (arguments
9964 '(#:phases
9965 (modify-phases %standard-phases
9966 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
9967 ;; including it as an input can lead to circular dependencies.
9968 (add-after 'unpack 'remove-rubocop-from-Rakefile
9969 (lambda _
9970 (substitute* "Rakefile"
9971 (("require \"rubocop/rake\\_task\"") "")
9972 (("RuboCop::RakeTask\\.new") ""))
9973 #t)))))
9974 (native-inputs
9975 `(("bundler" ,bundler)
9976 ("ruby-yard" ,ruby-yard)
9977 ("ruby-mocha" ,ruby-mocha)
9978 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
9979 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
9980 (synopsis "Domain name parser")
9981 (description "The gem @code{public_suffix} is a domain name parser,
9982 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
9983 is one under which Internet users can (or historically could) directly
9984 register names. Some examples of public suffixes are @code{.com},
9985 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
9986 all known public suffixes.")
9987 (license license:expat)))
9988
9989 (define-public ruby-addressable
9990 (package
9991 (name "ruby-addressable")
9992 (version "2.7.0")
9993 (source (origin
9994 (method url-fetch)
9995 (uri (rubygems-uri "addressable" version))
9996 (sha256
9997 (base32
9998 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
9999 (build-system ruby-build-system)
10000 (arguments
10001 '(#:test-target "spec"
10002 #:phases
10003 (modify-phases %standard-phases
10004 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
10005 (lambda _
10006 (substitute* "Gemfile"
10007 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
10008 ((".*launchy.*") "")
10009 ((".*rake.*") "gem 'rake'\n")
10010 ((".*redcarpet.*") ""))
10011 #t))
10012 (add-before 'check 'delete-network-dependent-test
10013 (lambda _
10014 (delete-file "spec/addressable/net_http_compat_spec.rb")
10015 #t)))))
10016 (native-inputs
10017 `(("ruby-rspec" ,ruby-rspec)
10018 ("bundler" ,bundler)
10019 ("ruby-idn-ruby" ,ruby-idn-ruby)
10020 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
10021 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
10022 ("ruby-yard" ,ruby-yard)
10023 ("ruby-simplecov" ,ruby-simplecov)))
10024 (propagated-inputs
10025 `(("ruby-public-suffix" ,ruby-public-suffix)))
10026 (home-page "https://github.com/sporkmonger/addressable")
10027 (synopsis "Alternative URI implementation")
10028 (description "Addressable is a replacement for the URI implementation that
10029 is part of Ruby's standard library. It more closely conforms to RFC 3986,
10030 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10031 (license license:asl2.0)))
10032
10033 (define-public ruby-colorize
10034 (package
10035 (name "ruby-colorize")
10036 (version "0.8.1")
10037 (source (origin
10038 (method url-fetch)
10039 (uri (rubygems-uri "colorize" version))
10040 (sha256
10041 (base32
10042 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10043 (build-system ruby-build-system)
10044 (arguments
10045 '(#:phases (modify-phases %standard-phases
10046 (add-before 'check 'remove-codeclimate-dependency
10047 (lambda _
10048 (substitute* "test/test_colorize.rb"
10049 ;; Do not hook the tests into the online CodeClimate
10050 ;; service which is unnecessary for these tests.
10051 (("require 'codeclimate-test-reporter'")
10052 "")
10053 (("CodeClimate.*") ""))
10054 #t)))))
10055 (synopsis "Add color effects to the @code{String} class")
10056 (description
10057 "This package extends the @code{String} class and adds a
10058 @code{ColorizedString} with methods to set text color, background color,
10059 and text effects.")
10060 (home-page "https://github.com/fazibear/colorize")
10061 (license license:gpl2+)))
10062
10063 (define-public ruby-colorator
10064 (package
10065 (name "ruby-colorator")
10066 (version "1.1.0")
10067 (source (origin
10068 (method url-fetch)
10069 (uri (rubygems-uri "colorator" version))
10070 (sha256
10071 (base32
10072 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10073 (build-system ruby-build-system)
10074 (arguments
10075 ;; No test target
10076 `(#:tests? #f))
10077 (home-page "http://octopress.org/colorator/")
10078 (synopsis "Terminal color library")
10079 (description "Colorator is a Ruby gem that helps you colorize your text
10080 for the terminal.")
10081 (license license:expat)))
10082
10083 (define-public ruby-command-line-reporter
10084 (package
10085 (name "ruby-command-line-reporter")
10086 (version "4.0.1")
10087 (source (origin
10088 (method url-fetch)
10089 (uri (rubygems-uri "command_line_reporter" version))
10090 (sha256
10091 (base32
10092 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10093 (build-system ruby-build-system)
10094 (arguments
10095 ;; No Rakefile
10096 `(#:tests? #f
10097 #:phases
10098 (modify-phases %standard-phases
10099 (add-before 'build 'fix-dependencies
10100 (lambda _
10101 (substitute* ".gemspec"
10102 ;; colored is unmaintained
10103 (("colored") "colorator")
10104 ;; colorator version
10105 (("= 1.2") "= 1.1"))
10106 #t)))))
10107 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10108 (home-page "https://github.com/wbailey/command_line_reporter")
10109 (synopsis "Report production while executing Ruby scripts")
10110 (description "This gem provides a DSL that makes it easy to write reports
10111 of various types in ruby. It eliminates the need to litter your source with
10112 puts statements, instead providing a more readable, expressive interface to
10113 your application.")
10114 (license license:asl2.0)))
10115
10116 (define-public ruby-command-line-reporter-3
10117 (package
10118 (inherit ruby-command-line-reporter)
10119 (version "3.3.6")
10120 (source (origin
10121 (method url-fetch)
10122 (uri (rubygems-uri "command_line_reporter" version))
10123 (sha256
10124 (base32
10125 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10126
10127 (define-public ruby-kpeg
10128 (package
10129 (name "ruby-kpeg")
10130 (version "1.1.0")
10131 (source
10132 (origin
10133 (method url-fetch)
10134 (uri (rubygems-uri "kpeg" version))
10135 (sha256
10136 (base32
10137 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10138 (build-system ruby-build-system)
10139 (native-inputs
10140 `(("ruby-hoe" ,ruby-hoe)))
10141 (synopsis "PEG library for Ruby")
10142 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10143 well as native grammar to build the grammar. KPeg supports direct left
10144 recursion of rules via the
10145 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10146 technique.")
10147 (home-page "https://github.com/evanphx/kpeg")
10148 (license license:expat)))
10149
10150 (define-public ruby-rdoc
10151 (package
10152 (name "ruby-rdoc")
10153 (version "6.2.0")
10154 (source
10155 (origin
10156 (method git-fetch)
10157 (uri (git-reference
10158 (url "https://github.com/ruby/rdoc")
10159 (commit (string-append "v" version))))
10160 (file-name (git-file-name name version))
10161 (sha256
10162 (base32
10163 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10164 (build-system ruby-build-system)
10165 (arguments
10166 `(#:phases
10167 (modify-phases %standard-phases
10168 (add-after 'unpack 'patch-gemspec
10169 ;; TODO: Remove after next release is tagged.
10170 (lambda _
10171 (substitute* "rdoc.gemspec"
10172 (("\"lib/rdoc/generator/template/darkfish/js/\
10173 jquery\\.js\", ") ""))
10174 #t))
10175 (add-before 'build 'generate
10176 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10177 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10178 (lambda _
10179 (invoke "rake" "generate"))))))
10180 (native-inputs
10181 `(("bundler" ,bundler)
10182 ("ruby-kpeg" ,ruby-kpeg)
10183 ("ruby-racc" ,ruby-racc)
10184 ("ruby-rubocop" ,ruby-rubocop)))
10185 (home-page "https://ruby.github.io/rdoc/")
10186 (synopsis "HTML and command-line documentation utility")
10187 (description "RDoc produces HTML and command-line documentation for Ruby
10188 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10189 documentation from the command-line.")
10190 (license license:gpl2+)))
10191
10192 (define-public ruby-sass-listen
10193 (package
10194 (name "ruby-sass-listen")
10195 (version "4.0.0")
10196 (source (origin
10197 (method url-fetch)
10198 (uri (rubygems-uri "sass-listen" version))
10199 (sha256
10200 (base32
10201 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10202 (build-system ruby-build-system)
10203 (arguments
10204 ;; No test target
10205 `(#:tests? #f))
10206 (propagated-inputs
10207 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10208 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10209 (home-page "https://github.com/sass/listen")
10210 (synopsis "File modification notification library")
10211 (description "The Listen gem listens to file modifications and notifies you
10212 about the changes.")
10213 (license license:expat)))
10214
10215 (define-public ruby-terminfo
10216 (package
10217 (name "ruby-terminfo")
10218 (version "0.1.1")
10219 (source
10220 (origin
10221 (method url-fetch)
10222 (uri (rubygems-uri "ruby-terminfo" version))
10223 (sha256
10224 (base32
10225 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10226 (build-system ruby-build-system)
10227 (arguments
10228 `(#:test-target "test"
10229 ;; Rakefile requires old packages and would need modification to
10230 ;; work with current software.
10231 #:tests? #f))
10232 (inputs
10233 `(("ncurses" ,ncurses)))
10234 (native-inputs
10235 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10236 ("ruby-rdoc" ,ruby-rdoc)))
10237 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10238 (synopsis "Terminfo binding for Ruby")
10239 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10240 (license license:bsd-3)))
10241
10242 (define-public ruby-diffy
10243 (package
10244 (name "ruby-diffy")
10245 (version "3.2.1")
10246 (source
10247 (origin
10248 (method url-fetch)
10249 (uri (rubygems-uri "diffy" version))
10250 (sha256
10251 (base32
10252 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10253 (build-system ruby-build-system)
10254 (arguments
10255 ;; No tests
10256 `(#:tests? #f))
10257 (native-inputs
10258 `(("ruby-rspec" ,ruby-rspec)))
10259 (home-page "https://github.com/samg/diffy")
10260 (synopsis "Convenient diffing in ruby")
10261 (description "Diffy provides a convenient way to generate a diff from two
10262 strings or files.")
10263 (license license:expat)))
10264
10265 (define-public ruby-sass-spec
10266 (package
10267 (name "ruby-sass-spec")
10268 (version "3.5.4")
10269 (source
10270 (origin
10271 (method git-fetch)
10272 (uri (git-reference
10273 (url "https://github.com/sass/sass-spec")
10274 (commit (string-append "v" version))))
10275 (file-name (git-file-name name version))
10276 (sha256
10277 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10278 (build-system ruby-build-system)
10279 (propagated-inputs
10280 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10281 ("ruby-diffy" ,ruby-diffy)
10282 ("ruby-terminfo" ,ruby-terminfo)))
10283 (arguments
10284 `(;; This package contains tests for a sass implementation, and the to
10285 ;; avoid any circular dependencies, the tests are not run here
10286 #:tests? #f
10287 #:phases
10288 (modify-phases %standard-phases
10289 (add-after 'unpack 'patch-test
10290 (lambda _
10291 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10292 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10293 (("string") "color")))))))
10294 (home-page "https://github.com/sass/sass-spec")
10295 (synopsis "Test suite for Sass")
10296 (description "Sass Spec is a test suite for Sass. Test cases are all in
10297 the @file{spec} directory.")
10298 (license license:expat)))
10299
10300 (define-public ruby-sass
10301 (package
10302 (name "ruby-sass")
10303 (version "3.6.0")
10304 (source (origin
10305 (method url-fetch)
10306 (uri (rubygems-uri "sass" version))
10307 (sha256
10308 (base32
10309 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10310 (build-system ruby-build-system)
10311 (propagated-inputs
10312 `(("ruby-sass-listen" ,ruby-sass-listen)))
10313 (native-inputs
10314 `(("ruby-sass-spec" ,ruby-sass-spec)
10315 ("ruby-mathn" ,ruby-mathn)))
10316 (home-page "https://sass-lang.com/")
10317 (synopsis "CSS extension language")
10318 (description "Sass is a CSS extension language. It extends CSS with
10319 features that don't exist yet like variables, nesting, mixins and inheritance.")
10320 (license license:expat)))
10321
10322 (define-public ruby-sassc
10323 (package
10324 (name "ruby-sassc")
10325 (version "2.2.1")
10326 (source
10327 (origin
10328 (method url-fetch)
10329 (uri (rubygems-uri "sassc" version))
10330 (sha256
10331 (base32
10332 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
10333 (build-system ruby-build-system)
10334 (arguments
10335 '(#:modules ((guix build ruby-build-system)
10336 (guix build utils)
10337 (ice-9 textual-ports))
10338 #:phases
10339 (modify-phases %standard-phases
10340 ;; TODO: This would be better as a snippet, but the ruby-build-system
10341 ;; doesn't seem to support that
10342 (add-after 'unpack 'remove-libsass
10343 (lambda _
10344 (delete-file-recursively "ext")
10345 (with-atomic-file-replacement "sassc.gemspec"
10346 (lambda (in out)
10347 (let* ((gemspec (get-string-all in))
10348 (index (string-contains gemspec "libsass_dir")))
10349 (display (string-append
10350 (string-take gemspec index)
10351 "\nend\n")
10352 out))))
10353 #t))
10354 (add-after 'unpack 'dont-check-the-libsass-version
10355 (lambda _
10356 (substitute* "test/native_test.rb"
10357 (("assert_equal.*Native\\.version") ""))
10358 #t))
10359 (add-after 'unpack 'remove-git-from-gemspec
10360 (lambda _
10361 (substitute* "sassc.gemspec"
10362 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10363 #t))
10364 (add-after 'unpack 'remove-extensions-from-gemspec
10365 (lambda _
10366 (substitute* "sassc.gemspec"
10367 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10368 #t))
10369 (add-after 'unpack 'fix-Rakefile
10370 (lambda _
10371 (substitute* "Rakefile"
10372 (("test: 'compile:libsass'") ":test"))
10373 #t))
10374 (add-after 'unpack 'remove-unnecessary-dependencies
10375 (lambda _
10376 (substitute* "test/test_helper.rb"
10377 (("require \"pry\"") ""))
10378 #t))
10379 (add-before 'build 'patch-native.rb
10380 (lambda* (#:key inputs #:allow-other-keys)
10381 (substitute* "lib/sassc/native.rb"
10382 ((".*gem_root = spec.gem_dir") "")
10383 (("ffi_lib .*\n")
10384 (string-append
10385 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10386 #t))
10387 ;; The gemspec still references the libsass files, so just keep the
10388 ;; one in the gem.
10389 (delete 'extract-gemspec))))
10390 (propagated-inputs
10391 `(("ruby-ffi" ,ruby-ffi)
10392 ("ruby-rake" ,ruby-rake)))
10393 (inputs
10394 `(("libsass" ,libsass)))
10395 (native-inputs
10396 `(("bundler" ,bundler)
10397 ("ruby-rake-compiler" ,ruby-rake-compiler)
10398 ("ruby-minitest-around" ,ruby-minitest-around)
10399 ("ruby-test-construct" ,ruby-test-construct)))
10400 (synopsis "Use libsss from Ruby")
10401 (description
10402 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10403 bindings to the libsass library. This enables rendering
10404 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10405 (home-page "https://github.com/sass/sassc-ruby")
10406 (license license:expat)))
10407
10408 (define-public ruby-jekyll-sass-converter
10409 (package
10410 (name "ruby-jekyll-sass-converter")
10411 (version "1.5.2")
10412 (source (origin
10413 (method url-fetch)
10414 (uri (rubygems-uri "jekyll-sass-converter" version))
10415 (sha256
10416 (base32
10417 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
10418 (build-system ruby-build-system)
10419 (propagated-inputs
10420 `(("ruby-sass" ,ruby-sass)))
10421 (arguments
10422 ;; No rakefile
10423 `(#:tests? #f))
10424 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10425 (synopsis "Sass converter for Jekyll")
10426 (description "This gem provide built-in support for the Sass converter
10427 in Jekyll.")
10428 (license license:expat)))
10429
10430 (define-public ruby-jekyll-watch
10431 (package
10432 (name "ruby-jekyll-watch")
10433 (version "2.1.2")
10434 (source (origin
10435 (method url-fetch)
10436 (uri (rubygems-uri "jekyll-watch" version))
10437 (sha256
10438 (base32
10439 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10440 (build-system ruby-build-system)
10441 (propagated-inputs
10442 `(("ruby-listen" ,ruby-listen)))
10443 (arguments
10444 ;; No rakefile
10445 `(#:tests? #f))
10446 (home-page "https://github.com/jekyll/jekyll-watch")
10447 (synopsis "Jekyll auto-rebuild support")
10448 (description "This gems add the @code{--watch} switch to the jekyll CLI
10449 interface. It allows Jekyll to rebuild your site when a file changes.")
10450 (license license:expat)))
10451
10452 (define-public ruby-parallel
10453 (package
10454 (name "ruby-parallel")
10455 (version "1.13.0")
10456 (source
10457 (origin
10458 (method git-fetch)
10459 (uri (git-reference
10460 (url "https://github.com/grosser/parallel")
10461 (commit (string-append "v" version))))
10462 (file-name (git-file-name name version))
10463 (sha256
10464 (base32
10465 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10466 (build-system ruby-build-system)
10467 (arguments
10468 `(;; TODO 3 test failures
10469 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10470 ;; open unnecessary pipes
10471 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10472 ;; SQLite in processes
10473 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10474 ;; SQLite in threads
10475 #:tests? #f
10476 #:test-target "rspec-rerun:spec"
10477 #:phases
10478 (modify-phases %standard-phases
10479 (add-after 'unpack 'patch-Gemfile
10480 (lambda _
10481 (substitute* "Gemfile"
10482 (("gem 'rspec-legacy_formatters'") "")
10483 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10484 (add-before 'check 'delete-Gemfile.lock
10485 (lambda _
10486 ;; Bundler isn't being used for fetching dependendencies, so
10487 ;; delete the Gemfile.lock
10488 (delete-file "Gemfile.lock")
10489 #t))
10490 (add-before 'build 'patch-gemspec
10491 (lambda _
10492 (substitute* "parallel.gemspec"
10493 (("git ls-files") "find"))
10494 #t)))))
10495 (native-inputs
10496 `(("ruby-rspec" ,ruby-rspec)
10497 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10498 ("bundler" ,bundler)
10499 ("ruby-activerecord" ,ruby-activerecord)
10500 ("ruby-progressbar" ,ruby-progressbar)
10501 ("ruby-bump" ,ruby-bump)
10502 ("procps" ,procps)
10503 ("lsof" ,lsof)
10504 ("ruby-mysql2" ,ruby-mysql2)
10505 ("ruby-sqlite3" ,ruby-sqlite3)
10506 ("ruby-i18n" ,ruby-i18n)))
10507 (home-page "https://github.com/grosser/parallel")
10508 (synopsis "Parallel processing in Ruby")
10509 (description "Parallel allows you to run any code in parallel Processes
10510 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10511 suited for map-reduce or e.g. parallel downloads/uploads.")
10512 (license license:expat)))
10513
10514 (define-public ruby-cane
10515 (package
10516 (name "ruby-cane")
10517 (version "3.0.0")
10518 (source (origin
10519 (method url-fetch)
10520 (uri (rubygems-uri "cane" version))
10521 (sha256
10522 (base32
10523 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10524 (build-system ruby-build-system)
10525 (arguments `(#:tests? #f)); No rakefile
10526 (home-page "https://github.com/square/cane")
10527 (propagated-inputs
10528 `(("ruby-parallel" ,ruby-parallel)))
10529 (synopsis "Code quality threshold checking")
10530 (description "Cane fails your build if code quality thresholds are not met.")
10531 (license license:asl2.0)))
10532
10533 (define-public ruby-morecane
10534 (package
10535 (name "ruby-morecane")
10536 (version "0.2.0")
10537 (source (origin
10538 (method url-fetch)
10539 (uri (rubygems-uri "morecane" version))
10540 (sha256
10541 (base32
10542 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10543 (build-system ruby-build-system)
10544 (home-page "https://github.com/yob/morecane")
10545 (arguments `(#:tests? #f)); No rakefile
10546 (propagated-inputs
10547 `(("ruby-parallel" ,ruby-parallel)))
10548 (synopsis "Extra checks for cane")
10549 (description "The cane gem provides a great framework for running quality
10550 checks over your ruby project as part of continuous integration build. It
10551 comes with a few checks out of the box, but also provides an API for loading
10552 custom checks. This gem provides a set of additional checks.")
10553 (license license:expat)))
10554
10555 (define-public ruby-pdf-reader
10556 (package
10557 (name "ruby-pdf-reader")
10558 (version "2.4.0")
10559 (source (origin
10560 (method git-fetch) ;no test in distributed gem archive
10561 (uri (git-reference
10562 (url "https://github.com/yob/pdf-reader")
10563 (commit (string-append "v" version))))
10564 (file-name (git-file-name name version))
10565 (sha256
10566 (base32
10567 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10568 (build-system ruby-build-system)
10569 (arguments `(#:test-target "spec"
10570 #:phases (modify-phases %standard-phases
10571 (add-after 'unpack 'do-not-use-bundler
10572 (lambda _
10573 (substitute* "spec/spec_helper.rb"
10574 ((".*[Bb]undler.*") ""))
10575 #t)))))
10576 (native-inputs
10577 `(("ruby-rspec" ,ruby-rspec)
10578 ("ruby-cane" ,ruby-cane)
10579 ("ruby-morecane" ,ruby-morecane)))
10580 (propagated-inputs
10581 `(("ruby-afm" ,ruby-afm)
10582 ("ruby-ascii85" ,ruby-ascii85)
10583 ("ruby-hashery" ,ruby-hashery)
10584 ("ruby-rc4" ,ruby-rc4)
10585 ("ruby-ttfunk" ,ruby-ttfunk)))
10586 (home-page "https://github.com/yob/pdf-reader")
10587 (synopsis "PDF parser in Ruby")
10588 (description "The PDF::Reader library implements a PDF parser conforming as
10589 much as possible to the PDF specification from Adobe. It provides programmatic
10590 access to the contents of a PDF file with a high degree of flexibility.")
10591 (license license:gpl3+)))
10592
10593 (define-public ruby-pdf-inspector
10594 (let ((revision "1")
10595 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10596 (package
10597 (name "ruby-pdf-inspector")
10598 (version (git-version "1.3.0" revision commit))
10599 (source (origin
10600 (method git-fetch)
10601 (uri (git-reference
10602 (url "https://github.com/prawnpdf/pdf-inspector")
10603 (commit commit)))
10604 (file-name (git-file-name name version))
10605 (sha256
10606 (base32
10607 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10608 (build-system ruby-build-system)
10609 (arguments
10610 `(#:test-target "spec"
10611 #:phases (modify-phases %standard-phases
10612 (add-before 'build 'drop-signing-key-requirement
10613 (lambda _
10614 (substitute* "pdf-inspector.gemspec"
10615 (("spec.signing_key =.*")
10616 "spec.signing_key = nil"))
10617 #t))
10618 (replace 'check
10619 (lambda _
10620 (substitute* "pdf-inspector.gemspec"
10621 ((".*rubocop.*") "")
10622 ((".*yard.*") ""))
10623 (invoke "rspec"))))))
10624 (native-inputs
10625 `(("ruby-rspec" ,ruby-rspec)))
10626 (propagated-inputs
10627 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10628 (home-page "https://github.com/prawnpdf/pdf-inspector")
10629 (synopsis "Analysis classes for inspecting PDF output")
10630 (description "This library provides a number of PDF::Reader based tools for
10631 use in testing PDF output. Presently, the primary purpose of this tool is to
10632 support the tests found in Prawn, a pure Ruby PDF generation library.")
10633 (license %prawn-project-licenses))))
10634
10635 (define-public ruby-pdf-core
10636 (package
10637 (name "ruby-pdf-core")
10638 (version "0.8.1")
10639 (source (origin
10640 (method url-fetch)
10641 (uri (rubygems-uri "pdf-core" version))
10642 (sha256
10643 (base32
10644 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10645 (build-system ruby-build-system)
10646 (arguments
10647 ; No test target
10648 `(#:tests? #f))
10649 (home-page "https://github.com/prawnpdf/pdf-core")
10650 (synopsis "Low level PDF features for Prawn")
10651 (description "This is an experimental gem that extracts low-level PDF
10652 functionality from Prawn.")
10653 (license license:gpl3+)))
10654
10655 (define-public ruby-prawn
10656 ;; There hasn't been a new release since 2017/03/17.
10657 (let ((revision "1")
10658 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10659 (package
10660 (name "ruby-prawn")
10661 (version (git-version "2.2.2" revision commit))
10662 (source (origin
10663 (method git-fetch)
10664 (uri (git-reference
10665 (url "https://github.com/prawnpdf/prawn")
10666 (commit commit)))
10667 (file-name (git-file-name name version))
10668 (sha256
10669 (base32
10670 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10671 (build-system ruby-build-system)
10672 (arguments
10673 `(#:phases
10674 (modify-phases %standard-phases
10675 (add-before 'build 'drop-signing-key-requirement
10676 (lambda _
10677 (substitute* "prawn.gemspec"
10678 (("spec.signing_key =.*")
10679 "spec.signing_key = nil"))
10680 #t))
10681 (replace 'check
10682 (lambda* (#:key tests? #:allow-other-keys)
10683 (when tests?
10684 ;; The Prawn manual test fails (see:
10685 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10686 ;; it.
10687 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10688 #t)))))
10689 (propagated-inputs
10690 `(("ruby-pdf-core" ,ruby-pdf-core)
10691 ("ruby-ttfunk" ,ruby-ttfunk)))
10692 (native-inputs
10693 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10694 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10695 ("ruby-rspec" ,ruby-rspec)
10696 ("ruby-simplecov" ,ruby-simplecov)
10697 ("ruby-yard" ,ruby-yard)))
10698 (home-page "https://prawnpdf.org/api-docs/2.0/")
10699 (synopsis "PDF generation for Ruby")
10700 (description "Prawn is a pure Ruby PDF generation library.")
10701 (license %prawn-project-licenses))))
10702
10703 (define-public ruby-prawn-table
10704 (package
10705 (name "ruby-prawn-table")
10706 (version "0.2.2")
10707 (source (origin
10708 (method url-fetch)
10709 (uri (rubygems-uri "prawn-table" version))
10710 (sha256
10711 (base32
10712 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10713 (build-system ruby-build-system)
10714 (propagated-inputs
10715 `(("ruby-prawn" ,ruby-prawn)
10716 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10717 (native-inputs
10718 `(("bundler" ,bundler)
10719 ("ruby-yard" ,ruby-yard)
10720 ("ruby-mocha" ,ruby-mocha)
10721 ("ruby-coderay" ,ruby-coderay)
10722 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10723 ("ruby-simplecov" ,ruby-simplecov)
10724 ("ruby-rspec-2" ,ruby-rspec-2)))
10725 (arguments
10726 '(;; TODO: 1 test fails
10727 ;; Failure/Error: pdf.page_count.should == 1
10728 ;; expected: 1
10729 ;; got: 2 (using ==)
10730 ;; # ./spec/table_spec.rb:1308
10731 ;;
10732 ;; 225 examples, 1 failure
10733 #:tests? #f
10734 #:phases
10735 (modify-phases %standard-phases
10736 (add-before 'check 'patch-gemspec
10737 (lambda _
10738 (substitute* "prawn-table.gemspec"
10739 ;; Loosen the requirement for pdf-inspector
10740 (("~> 1\\.1\\.0") ">= 0")
10741 ;; Loosen the requirement for pdf-reader
10742 (("~> 1\\.2") ">= 0"))))
10743 (replace 'check
10744 (lambda* (#:key tests? #:allow-other-keys)
10745 (when tests?
10746 (invoke "rspec"))
10747 #t)))))
10748 (home-page "https://github.com/prawnpdf/prawn-table")
10749 (synopsis "Tables support for Prawn")
10750 (description "This gem provides tables support for Prawn.")
10751 (license license:gpl3+)))
10752
10753 (define-public ruby-kramdown
10754 (package
10755 (name "ruby-kramdown")
10756 (version "2.3.0")
10757 (source (origin
10758 (method url-fetch)
10759 (uri (rubygems-uri "kramdown" version))
10760 (sha256
10761 (base32
10762 "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7"))))
10763 (build-system ruby-build-system)
10764 (arguments `(#:tests? #f)); FIXME: some test failures
10765 (native-inputs
10766 `(("ruby-prawn" ,ruby-prawn)
10767 ("ruby-prawn-table" ,ruby-prawn-table)))
10768 (home-page "https://kramdown.gettalong.org/")
10769 (synopsis "Markdown parsing and converting library")
10770 (description "Kramdown is a library for parsing and converting a superset
10771 of Markdown. It is completely written in Ruby, supports standard Markdown
10772 (with some minor modifications) and various extensions that have been made
10773 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
10774 (license license:expat)))
10775
10776 (define-public ruby-kramdown-parser-gfm
10777 (package
10778 (name "ruby-kramdown-parser-gfm")
10779 (version "1.1.0")
10780 (source
10781 (origin
10782 (method url-fetch)
10783 (uri (rubygems-uri "kramdown-parser-gfm" version))
10784 (sha256
10785 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
10786 (build-system ruby-build-system)
10787 (arguments
10788 `(#:tests? #f)) ;no rakefile
10789 (propagated-inputs
10790 `(("ruby-kramdown" ,ruby-kramdown)))
10791 (synopsis "Kramdown parser for the GFM dialect of Markdown")
10792 (description
10793 "This is a parser for kramdown that converts Markdown documents in the
10794 GFM dialect to HTML.")
10795 (home-page "https://github.com/kramdown/parser-gfm")
10796 (license license:expat)))
10797
10798 (define-public ruby-http-parser.rb
10799 (package
10800 (name "ruby-http-parser.rb")
10801 (version "0.6.0")
10802 (source
10803 (origin
10804 (method url-fetch)
10805 (uri (rubygems-uri "http_parser.rb" version))
10806 (sha256
10807 (base32
10808 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
10809 (build-system ruby-build-system)
10810 (arguments
10811 ;; No tests
10812 `(#:tests? #f))
10813 (native-inputs
10814 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10815 ("ruby-rspec" ,ruby-rspec)))
10816 (home-page "https://github.com/tmm1/http_parser.rb")
10817 (synopsis "HTTP parser un Ruby")
10818 (description "This gem is a simple callback-based HTTP request/response
10819 parser for writing http servers, clients and proxies.")
10820 (license license:expat)))
10821
10822 (define-public ruby-em-websocket
10823 (package
10824 (name "ruby-em-websocket")
10825 (version "0.5.1")
10826 (source
10827 (origin
10828 (method url-fetch)
10829 (uri (rubygems-uri "em-websocket" version))
10830 (sha256
10831 (base32
10832 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
10833 (build-system ruby-build-system)
10834 (arguments
10835 ;; No tests
10836 `(#:tests? #f))
10837 (propagated-inputs
10838 `(("ruby-eventmachine" ,ruby-eventmachine)
10839 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
10840 (native-inputs
10841 `(("bundler" ,bundler)
10842 ("ruby-rspec" ,ruby-rspec)))
10843 (home-page "https://github.com/igrigorik/em-websocket")
10844 (synopsis "EventMachine based WebSocket server")
10845 (description "Em-websocket is an EventMachine based WebSocket server
10846 implementation.")
10847 (license license:expat)))
10848
10849 (define-public ruby-rouge
10850 (package
10851 (name "ruby-rouge")
10852 (version "3.21.0")
10853 (source (origin
10854 (method url-fetch)
10855 (uri (rubygems-uri "rouge" version))
10856 (sha256
10857 (base32
10858 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
10859 (build-system ruby-build-system)
10860 (arguments `(#:tests? #f)); No rakefile
10861 (home-page "http://rouge.jneen.net/")
10862 (synopsis "Code highlighter")
10863 (description "Rouge is a code highlighter written in Ruby. It supports more
10864 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
10865 is compatible with stylesheets designed for pygments.")
10866 (license (list
10867 ;; rouge is licensed under expat
10868 license:expat
10869 ;; pygments is licensed under bsd-2
10870 license:bsd-2))))
10871
10872 (define-public ruby-rouge-2
10873 (package
10874 (inherit ruby-rouge)
10875 (version "2.2.1")
10876 (source (origin
10877 (method url-fetch)
10878 (uri (rubygems-uri "rouge" version))
10879 (sha256
10880 (base32
10881 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
10882
10883 (define-public ruby-hashie
10884 (package
10885 (name "ruby-hashie")
10886 (version "3.6.0")
10887 (source (origin
10888 (method url-fetch)
10889 (uri (rubygems-uri "hashie" version))
10890 (sha256
10891 (base32
10892 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
10893 (build-system ruby-build-system)
10894 (native-inputs
10895 `(("bundler" ,bundler)))
10896 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
10897 (home-page "https://github.com/intridea/hashie")
10898 (synopsis "Extensions to Ruby Hashes")
10899 (description "Hashie is a collection of classes and mixins that make Ruby
10900 hashes more powerful.")
10901 (license license:expat)))
10902
10903 (define-public ruby-heredoc-unindent
10904 (package
10905 (name "ruby-heredoc-unindent")
10906 (version "1.2.0")
10907 (source (origin
10908 (method url-fetch)
10909 (uri (rubygems-uri "heredoc_unindent" version))
10910 (sha256
10911 (base32
10912 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
10913 (build-system ruby-build-system)
10914 (native-inputs
10915 `(("ruby-hoe" ,ruby-hoe)))
10916 (home-page "https://github.com/adrianomitre/heredoc_unindent")
10917 (synopsis "Heredoc indentation cleaner")
10918 (description "This gem removes common margin from indented strings, such
10919 as the ones produced by indented heredocs. In other words, it strips out
10920 leading whitespace chars at the beginning of each line, but only as much as
10921 the line with the smallest margin.
10922
10923 It is acknowledged that many strings defined by heredocs are just code and
10924 fact is that most parsers are insensitive to indentation. If, however, the
10925 strings are to be used otherwise, be it for printing or testing, the extra
10926 indentation will probably be an issue and hence this gem.")
10927 (license license:expat)))
10928
10929 (define-public ruby-safe-yaml
10930 (package
10931 (name "ruby-safe-yaml")
10932 (version "1.0.5")
10933 (source
10934 (origin
10935 (method git-fetch)
10936 (uri (git-reference
10937 (url "https://github.com/dtao/safe_yaml")
10938 (commit version)))
10939 (file-name (git-file-name name version))
10940 (sha256
10941 (base32
10942 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
10943 (build-system ruby-build-system)
10944 (native-inputs
10945 `(("ruby-rspec" ,ruby-rspec)
10946 ("ruby-hashie" ,ruby-hashie)
10947 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
10948 (arguments
10949 '(#:test-target "spec"
10950 #:phases
10951 (modify-phases %standard-phases
10952 (add-before 'check 'set-TZ
10953 (lambda _
10954 ;; This test is dependent on the timezone
10955 ;; spec/transform/to_date_spec.rb:35
10956 ;; # SafeYAML::Transform::ToDate converts times to the local
10957 ;; timezone
10958 (setenv "TZ" "UTC-11")
10959 #t)))))
10960 (home-page "https://github.com/dtao/safe_yaml")
10961 (synopsis "YAML parser")
10962 (description "The SafeYAML gem provides an alternative implementation of
10963 YAML.load suitable for accepting user input in Ruby applications.")
10964 (license license:expat)))
10965
10966 (define-public ruby-mercenary
10967 (package
10968 (name "ruby-mercenary")
10969 (version "0.3.6")
10970 (source (origin
10971 (method url-fetch)
10972 (uri (rubygems-uri "mercenary" version))
10973 (sha256
10974 (base32
10975 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
10976 (build-system ruby-build-system)
10977 (arguments `(#:test-target "spec"))
10978 (native-inputs
10979 `(("bundler" ,bundler)))
10980 (home-page "https://github.com/jekyll/mercenary")
10981 (synopsis "Command-line apps library in Ruby")
10982 (description "Mercenary is a lightweight and flexible library for writing
10983 command-line apps in Ruby.")
10984 (license license:expat)))
10985
10986 (define-public ruby-liquid
10987 (package
10988 (name "ruby-liquid")
10989 (version "4.0.0")
10990 (source (origin
10991 (method url-fetch)
10992 (uri (rubygems-uri "liquid" version))
10993 (sha256
10994 (base32
10995 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
10996 (build-system ruby-build-system)
10997 (arguments `(#:tests? #f)); No rakefile
10998 (home-page "https://shopify.github.io/liquid/")
10999 (synopsis "Template language")
11000 (description "Liquid is a template language written in Ruby. It is used
11001 to load dynamic content on storefronts.")
11002 (license license:expat)))
11003
11004 (define-public ruby-forwardable-extended
11005 (package
11006 (name "ruby-forwardable-extended")
11007 (version "2.6.0")
11008 (source (origin
11009 (method url-fetch)
11010 (uri (rubygems-uri "forwardable-extended" version))
11011 (sha256
11012 (base32
11013 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
11014 (build-system ruby-build-system)
11015 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
11016 (home-page "https://github.com/envygeeks/forwardable-extended")
11017 (synopsis "Delegation to hashes and instance variables in Forwardable")
11018 (description "Forwardable Extended provides more @code{Forwardable}
11019 methods for your source as @code{Forwardable::Extended}.")
11020 (license license:expat)))
11021
11022 (define-public ruby-pathutil
11023 (package
11024 (name "ruby-pathutil")
11025 (version "0.16.2")
11026 (source (origin
11027 (method url-fetch)
11028 (uri (rubygems-uri "pathutil" version))
11029 (sha256
11030 (base32
11031 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11032 (build-system ruby-build-system)
11033 (propagated-inputs
11034 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11035 (native-inputs
11036 `(("bundler" ,bundler)
11037 ("ruby-rspec" ,ruby-rspec)))
11038 ;; Fails with: cannot load such file --
11039 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11040 (arguments `(#:tests? #f))
11041 (home-page "https://github.com/envygeeks/pathutil")
11042 (synopsis "Extended implementation of Pathname")
11043 (description "Pathutil tries to be a faster pure Ruby implementation of
11044 Pathname.")
11045 (license license:expat)))
11046
11047 (define-public jekyll
11048 (package
11049 (name "jekyll")
11050 (version "3.8.6")
11051 (source (origin
11052 (method url-fetch)
11053 (uri (rubygems-uri "jekyll" version))
11054 (sha256
11055 (base32
11056 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
11057 (build-system ruby-build-system)
11058 (arguments
11059 ;; No rakefile, but a test subdirectory.
11060 `(#:tests? #f
11061 #:phases
11062 (modify-phases %standard-phases
11063 (add-before 'build 'fix-i18n
11064 (lambda _
11065 (substitute* ".gemspec"
11066 (("~> 0.7") ">= 0.7")
11067 (("~> 1.14") ">= 1.14"))
11068 #t)))))
11069 (propagated-inputs
11070 `(("ruby-addressable" ,ruby-addressable)
11071 ("ruby-colorator" ,ruby-colorator)
11072 ("ruby-em-websocket" ,ruby-em-websocket)
11073 ("ruby-i18n" ,ruby-i18n)
11074 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11075 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11076 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11077 ("ruby-liquid" ,ruby-liquid)
11078 ("ruby-mercenary" ,ruby-mercenary)
11079 ("ruby-pathutil" ,ruby-pathutil)
11080 ("ruby-rouge" ,ruby-rouge-2)
11081 ("ruby-safe-yaml" ,ruby-safe-yaml)))
11082 (home-page "https://jekyllrb.com/")
11083 (synopsis "Static site generator")
11084 (description "Jekyll is a simple, blog aware, static site generator.")
11085 (license license:expat)))
11086
11087 (define-public ruby-jekyll-paginate-v2
11088 (package
11089 (name "ruby-jekyll-paginate-v2")
11090 (version "3.0.0")
11091 (source (origin
11092 (method url-fetch)
11093 (uri (rubygems-uri "jekyll-paginate-v2" version))
11094 (sha256
11095 (base32
11096 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11097 (build-system ruby-build-system)
11098 (propagated-inputs
11099 `(("jekyll" ,jekyll)))
11100 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11101 (synopsis "Pagination Generator for Jekyll 3")
11102 (description "The Pagination Generator forms the core of the pagination
11103 logic in Jekyll. It calculates and generates the pagination pages.")
11104 (license license:expat)))
11105
11106 (define-public ruby-faraday
11107 (package
11108 (name "ruby-faraday")
11109 (version "0.15.4")
11110 (source
11111 (origin
11112 (method url-fetch)
11113 (uri (rubygems-uri "faraday" version))
11114 (sha256
11115 (base32
11116 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11117 (build-system ruby-build-system)
11118 (arguments
11119 '(#:tests? #f))
11120 (propagated-inputs
11121 `(("ruby-multipart-post" ,ruby-multipart-post)))
11122 (synopsis "Ruby HTTP/REST API client library")
11123 (description
11124 "Faraday is a HTTP/REST API client library which provides a common
11125 interface over different adapters.")
11126 (home-page "https://github.com/lostisland/faraday")
11127 (license license:expat)))
11128
11129 (define-public ruby-nio4r
11130 (package
11131 (name "ruby-nio4r")
11132 (version "2.5.2")
11133 (source
11134 (origin
11135 (method url-fetch)
11136 (uri (rubygems-uri "nio4r" version))
11137 (sha256
11138 (base32
11139 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11140 (build-system ruby-build-system)
11141 (arguments
11142 '(#:phases
11143 (modify-phases %standard-phases
11144 (add-after 'unpack 'remove-unnecessary-dependencies
11145 (lambda _
11146 (substitute* "spec/spec_helper.rb"
11147 ;; Coveralls is for uploading test coverage information to an
11148 ;; online service, and thus unnecessary for building the Guix
11149 ;; package
11150 (("require \"coveralls\"") "")
11151 (("Coveralls\\.wear!") "")
11152 ;; Remove rspec/retry as we are not retrying the tests
11153 (("require \"rspec/retry\"") "")
11154 (("config\\.display_try_failure_messages = true") "")
11155 (("config\\.verbose_retry = true") ""))
11156 #t))
11157 (add-before 'check 'compile
11158 (lambda _
11159 (invoke "rake" "compile")
11160 #t))
11161 (replace 'check
11162 (lambda* (#:key tests? #:allow-other-keys)
11163 (when tests?
11164 (invoke "rspec"))
11165 #t)))))
11166 (native-inputs
11167 `(("bundler" ,bundler)
11168 ("ruby-rake-compiler" ,ruby-rake-compiler)
11169 ("ruby-rspec" ,ruby-rspec)
11170 ("ruby-rubocop" ,ruby-rubocop)))
11171 (synopsis "New I/O for Ruby")
11172 (description
11173 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11174 for scalable network clients and servers.")
11175 (home-page "https://github.com/socketry/nio4r")
11176 (license license:expat)))
11177
11178 (define-public ruby-globalid
11179 (package
11180 (name "ruby-globalid")
11181 (version "0.4.2")
11182 (source
11183 (origin
11184 (method url-fetch)
11185 (uri (rubygems-uri "globalid" version))
11186 (sha256
11187 (base32
11188 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11189 (build-system ruby-build-system)
11190 (arguments
11191 '(;; No included tests
11192 #:tests? #f))
11193 (propagated-inputs
11194 `(("ruby-activesupport" ,ruby-activesupport)))
11195 (synopsis "Generate URIs idenfitying model instances in Ruby")
11196 (description
11197 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11198 uniquely identify it.")
11199 (home-page "https://rubyonrails.org/")
11200 (license license:expat)))
11201
11202 (define-public ruby-sprockets
11203 (package
11204 (name "ruby-sprockets")
11205 (version "3.7.2")
11206 (source
11207 (origin
11208 (method url-fetch)
11209 (uri (rubygems-uri "sprockets" version))
11210 (sha256
11211 (base32
11212 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11213 (build-system ruby-build-system)
11214 (arguments
11215 '(;; No included tests
11216 #:tests? #f))
11217 (propagated-inputs
11218 `(("ruby-concurrent" ,ruby-concurrent)
11219 ("ruby-rack" ,ruby-rack)))
11220 (synopsis "Sprockets is a Rack-based asset packaging system")
11221 (description
11222 "Sprockets is a Rack-based asset packaging system that concatenates and
11223 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11224 (home-page "https://github.com/rails/sprockets")
11225 (license license:expat)))
11226
11227 (define-public ruby-mustache
11228 (package
11229 (name "ruby-mustache")
11230 (version "1.1.1")
11231 (source
11232 (origin
11233 (method url-fetch)
11234 (uri (rubygems-uri "mustache" version))
11235 (sha256
11236 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11237 (build-system ruby-build-system)
11238 (native-inputs
11239 `(("ruby-simplecov" ,ruby-simplecov)))
11240 (synopsis "framework-agnostic way to render logic-free views")
11241 (description
11242 "Mustache is a framework-agnostic way to render logic-free views.
11243 Think of Mustache as a replacement for your views. Instead of views
11244 consisting of ERB or HAML with random helpers and arbitrary logic,
11245 your views are broken into two parts: a Ruby class and an HTML
11246 template.")
11247 (home-page "https://github.com/mustache/mustache")
11248 (license license:expat)))
11249
11250 (define-public ruby-mustermann
11251 (package
11252 (name "ruby-mustermann")
11253 (version "1.0.3")
11254 (source
11255 (origin
11256 (method url-fetch)
11257 (uri (rubygems-uri "mustermann" version))
11258 (sha256
11259 (base32
11260 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11261 (build-system ruby-build-system)
11262 (arguments
11263 ;; No tests.
11264 '(#:tests? #f))
11265 (synopsis "Library implementing patterns that behave like regular expressions")
11266 (description "Given a string pattern, Mustermann will turn it into an
11267 object that behaves like a regular expression and has comparable performance
11268 characteristics.")
11269 (home-page "https://github.com/sinatra/mustermann")
11270 (license license:expat)))
11271
11272 (define-public ruby-htmlentities
11273 (package
11274 (name "ruby-htmlentities")
11275 (version "4.3.4")
11276 (source
11277 (origin
11278 (method url-fetch)
11279 (uri (rubygems-uri "htmlentities" version))
11280 (sha256
11281 (base32
11282 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11283 (build-system ruby-build-system)
11284 (arguments
11285 `(#:phases
11286 (modify-phases %standard-phases
11287 (replace 'check
11288 (lambda _
11289 (map (lambda (file)
11290 (invoke "ruby" "-Itest" file))
11291 (find-files "./test" ".*_test\\.rb")))))))
11292 (synopsis "Encode and decode (X)HTML entities")
11293 (description
11294 "This package provides a module for encoding and decoding (X)HTML
11295 entities.")
11296 (home-page "https://github.com/threedaymonk/htmlentities")
11297 (license license:expat)))
11298
11299 (define-public ruby-sinatra
11300 (package
11301 (name "ruby-sinatra")
11302 (version "2.0.8.1")
11303 (source
11304 (origin
11305 (method url-fetch)
11306 (uri (rubygems-uri "sinatra" version))
11307 (sha256
11308 (base32
11309 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11310 (build-system ruby-build-system)
11311 (arguments
11312 `(#:phases
11313 (modify-phases %standard-phases
11314 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11315 (add-after 'extract-gemspec 'fix-slow-doc-generation
11316 (lambda _
11317 (substitute* "sinatra.gemspec"
11318 (("\"README.rdoc\"\\.freeze," all)
11319 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11320 #t)))))
11321 (propagated-inputs
11322 `(("ruby-mustermann" ,ruby-mustermann)
11323 ("ruby-rack" ,ruby-rack)
11324 ("ruby-rack-protection" ,ruby-rack-protection)
11325 ("ruby-tilt" ,ruby-tilt)))
11326 (synopsis "DSL for quick web applications creation in Ruby")
11327 (description
11328 "Sinatra is a DSL for quickly creating web applications in Ruby with
11329 minimal effort.")
11330 (home-page "http://sinatrarb.com/")
11331 (license license:expat)))
11332
11333 (define-public ruby-thin
11334 (package
11335 (name "ruby-thin")
11336 (version "1.7.2")
11337 (source
11338 (origin
11339 (method url-fetch)
11340 (uri (rubygems-uri "thin" version))
11341 (sha256
11342 (base32
11343 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11344 (build-system ruby-build-system)
11345 (arguments
11346 ;; No tests.
11347 '(#:tests? #f))
11348 (propagated-inputs
11349 `(("ruby-daemons" ,ruby-daemons)
11350 ("ruby-eventmachine" ,ruby-eventmachine)
11351 ("ruby-rack" ,ruby-rack)))
11352 (synopsis "Thin and fast web server for Ruby")
11353 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11354 @itemize
11355 @item the Mongrel parser,
11356 @item Event Machine, a network I/O library with high scalability, performance
11357 and stability,
11358 @item Rack, a minimal interface between webservers and Ruby frameworks.
11359 @end itemize\n")
11360 (home-page "https://github.com/macournoyer/thin")
11361 (license license:ruby)))
11362
11363 (define-public ruby-skinny
11364 (package
11365 (name "ruby-skinny")
11366 (version "0.2.4")
11367 (source
11368 (origin
11369 (method url-fetch)
11370 (uri (rubygems-uri "skinny" version))
11371 (sha256
11372 (base32
11373 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11374 (build-system ruby-build-system)
11375 (arguments
11376 '(#:tests? #f ; No included tests
11377 #:phases
11378 (modify-phases %standard-phases
11379 (add-before 'build 'patch-gemspec
11380 (lambda _
11381 (substitute* ".gemspec"
11382 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11383 "<eventmachine>, [\">= 1.0.0\"")
11384 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11385 #t)))))
11386 (propagated-inputs
11387 `(("ruby-eventmachine" ,ruby-eventmachine)
11388 ("ruby-thin" ,ruby-thin)))
11389 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11390 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11391 the Thin library.")
11392 (home-page "https://github.com/sj26/skinny")
11393 (license license:expat)))
11394
11395 (define-public ruby-sys-filesystem
11396 (package
11397 (name "ruby-sys-filesystem")
11398 (version "1.3.4")
11399 (source (origin
11400 (method url-fetch)
11401 (uri (rubygems-uri "sys-filesystem" version))
11402 (sha256
11403 (base32
11404 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11405 (build-system ruby-build-system)
11406 (arguments
11407 '(#:phases (modify-phases %standard-phases
11408 (add-before 'check 'set-HOME
11409 (lambda _
11410 ;; Some tests attempt to stat $HOME. Let them.
11411 (setenv "HOME" "/tmp")
11412 #t)))))
11413 (propagated-inputs
11414 `(("ruby-ffi" ,ruby-ffi)))
11415 (native-inputs
11416 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11417 (synopsis "Gather file system information")
11418 (description
11419 "The @code{sys-filesystem} library provides a cross-platform interface
11420 for gathering file system information, such as disk space and mount points.")
11421 (home-page "https://github.com/djberg96/sys-filesystem")
11422 (license license:asl2.0)))
11423
11424 (define-public mailcatcher
11425 (package
11426 (name "mailcatcher")
11427 (version "0.7.1")
11428 (source
11429 (origin
11430 (method url-fetch)
11431 (uri (rubygems-uri "mailcatcher" version))
11432 (sha256
11433 (base32
11434 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11435 (build-system ruby-build-system)
11436 (arguments
11437 ;; Tests require web/assets which is not included in the output. We
11438 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11439 ;; of the tests. See ruby-mysql2.
11440 '(#:tests? #f
11441 #:phases
11442 (modify-phases %standard-phases
11443 (add-before 'build 'patch-gemspec
11444 (lambda _
11445 (substitute* ".gemspec"
11446 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11447 "<eventmachine>, [\">= 1.0.9.1")
11448 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11449 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11450 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11451 #t))
11452 (add-before 'build 'loosen-dependency-contraint
11453 (lambda _
11454 (substitute* "lib/mail_catcher.rb"
11455 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11456 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11457 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11458 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11459 #t)))))
11460 (inputs
11461 `(("ruby-eventmachine" ,ruby-eventmachine)
11462 ("ruby-mail" ,ruby-mail)
11463 ("ruby-rack" ,ruby-rack)
11464 ("ruby-sinatra" ,ruby-sinatra)
11465 ("ruby-skinny" ,ruby-skinny)
11466 ("ruby-sqlite3" ,ruby-sqlite3)
11467 ("ruby-thin" ,ruby-thin)))
11468 (synopsis "SMTP server which catches messages to display them a browser")
11469 (description
11470 "MailCatcher runs a super simple SMTP server which catches any message
11471 sent to it to display in a web interface. Run mailcatcher, set your favourite
11472 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11473 then check out http://127.0.0.1:1080 to see the mail.")
11474 (home-page "https://mailcatcher.me")
11475 (license license:expat)))
11476
11477 (define-public ruby-backport
11478 (package
11479 (name "ruby-backport")
11480 (version "1.1.2")
11481 (source
11482 (origin
11483 ;; The gem does not include test code, so fetch from the Git repository.
11484 (method git-fetch)
11485 (uri (git-reference
11486 (url "https://github.com/castwide/backport")
11487 (commit (string-append "v" version))))
11488 (file-name (git-file-name name version))
11489 (sha256
11490 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11491 (build-system ruby-build-system)
11492 (arguments
11493 `(#:test-target "spec"))
11494 (native-inputs
11495 `(("bundler" ,bundler)
11496 ("ruby-rspec" ,ruby-rspec)))
11497 (inputs
11498 `(("ruby-simplecov" ,ruby-simplecov)))
11499 (synopsis "Pure Ruby library for event-driven IO")
11500 (description
11501 "This package provides a pure Ruby library for event-driven IO.")
11502 (home-page "https://github.com/castwide/backport")
11503 (license license:expat)))
11504
11505 (define-public ruby-json-schema
11506 (package
11507 (name "ruby-json-schema")
11508 (version "2.8.1")
11509 (source
11510 (origin
11511 (method url-fetch)
11512 (uri (rubygems-uri "json-schema" version))
11513 (sha256
11514 (base32
11515 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11516 (build-system ruby-build-system)
11517 (arguments
11518 `(#:tests? #f ; no tests
11519 #:phases
11520 (modify-phases %standard-phases
11521 (replace 'build
11522 (lambda _
11523 (invoke "gem" "build" ".gemspec"))))))
11524 (propagated-inputs
11525 `(("ruby-addressable" ,ruby-addressable)))
11526 (synopsis "Ruby JSON Schema Validator")
11527 (description "This library provides Ruby with an interface for validating
11528 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11529 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11530 is also included.")
11531 (home-page "https://github.com/ruby-json-schema/json-schema")
11532 (license license:expat)))
11533
11534 (define-public swagger-diff
11535 (package
11536 (name "swagger-diff")
11537 (version "1.1.2")
11538 (source
11539 (origin
11540 (method url-fetch)
11541 (uri (rubygems-uri "swagger-diff" version))
11542 (sha256
11543 (base32
11544 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11545 (build-system ruby-build-system)
11546 (arguments
11547 `(#:test-target "spec"
11548 #:phases
11549 (modify-phases %standard-phases
11550 ;; Don't run or require rubocop, the code linting tool, as this is a
11551 ;; bit unnecessary.
11552 (add-after 'unpack 'dont-run-rubocop
11553 (lambda _
11554 (substitute* "Rakefile"
11555 ((".*rubocop.*") "")
11556 ((".*RuboCop.*") ""))
11557 #t)))))
11558 (propagated-inputs
11559 `(("ruby-json-schema" ,ruby-json-schema)))
11560 (native-inputs
11561 `(("bundler" ,bundler)
11562 ("ruby-rspec-core" ,ruby-rspec-core)
11563 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11564 (synopsis
11565 "Compare Open API Initiative specification files")
11566 (description
11567 "Swagger::Diff is a utility for comparing two different Open API
11568 Initiative (OAI) specifications (formerly known as Swagger specifications).
11569 It is intended to determine whether a newer API specification is
11570 backwards-compatible with an older API specification.")
11571 (home-page "https://github.com/civisanalytics/swagger-diff")
11572 (license license:bsd-3)))
11573
11574 (define-public ruby-reverse-markdown
11575 (package
11576 (name "ruby-reverse-markdown")
11577 (version "1.1.0")
11578 (source
11579 (origin
11580 (method url-fetch)
11581 (uri (rubygems-uri "reverse_markdown" version))
11582 (sha256
11583 (base32
11584 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11585 (build-system ruby-build-system)
11586 (propagated-inputs
11587 `(("ruby-nokogiri" ,ruby-nokogiri)))
11588 (native-inputs
11589 `(("bundler" ,bundler)
11590 ("ruby-rspec" ,ruby-rspec)
11591 ("ruby-kramdown" ,ruby-kramdown)
11592 ("ruby-simplecov" ,ruby-simplecov)))
11593 (arguments
11594 `(#:phases
11595 (modify-phases %standard-phases
11596 (replace 'check
11597 (lambda* (#:key tests? #:allow-other-keys)
11598 (when tests?
11599 (invoke "rspec"))
11600 #t)))))
11601 (synopsis "Convert HTML into Markdown")
11602 (description
11603 "This Ruby module allows you to map simple HTML back into
11604 Markdown---e.g., if you want to import existing HTML data in your
11605 application.")
11606 (home-page "https://github.com/xijo/reverse_markdown")
11607 (license license:wtfpl2)))
11608
11609 (define-public ruby-solargraph
11610 (package
11611 (name "ruby-solargraph")
11612 (version "0.36.0")
11613 (source
11614 (origin
11615 (method url-fetch)
11616 (uri (rubygems-uri "solargraph" version))
11617 (sha256
11618 (base32
11619 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11620 (build-system ruby-build-system)
11621 (propagated-inputs
11622 `(("ruby-backport" ,ruby-backport)
11623 ("bundler" ,bundler)
11624 ("ruby-htmlentities" ,ruby-htmlentities)
11625 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11626 ("ruby-maruku" ,ruby-maruku)
11627 ("ruby-nokogiri" ,ruby-nokogiri)
11628 ("ruby-parser" ,ruby-parser)
11629 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11630 ("ruby-rubocop" ,ruby-rubocop)
11631 ("ruby-thor" ,ruby-thor)
11632 ("ruby-tilt" ,ruby-tilt)
11633 ("ruby-yard" ,ruby-yard)))
11634 (native-inputs
11635 `(("ruby-rspec" ,ruby-rspec)
11636 ("ruby-pry" ,ruby-pry)
11637 ("ruby-simplecov" ,ruby-simplecov)
11638 ("ruby-webmock" ,ruby-webmock-2)))
11639 ;; FIXME: can't figure out how to run the tests properly:
11640
11641 ;; An error occurred while loading spec_helper.
11642 ;; Failure/Error: return gem_original_require(path)
11643 ;; LoadError:
11644 ;; cannot load such file -- spec_helper
11645 (arguments
11646 '(#:tests? #f
11647 #:phases
11648 (modify-phases %standard-phases
11649 (replace 'check
11650 (lambda* (#:key tests? #:allow-other-keys)
11651 (when tests?
11652 (invoke "rspec"))
11653 #t)))))
11654 (synopsis
11655 "IDE tools for code completion, inline documentation, and static analysis")
11656 (description
11657 "Solargraph provides a comprehensive suite of tools for Ruby
11658 programming: intellisense, diagnostics, inline documentation, and type
11659 checking.")
11660 (home-page "https://solargraph.org/")
11661 (license license:expat)))
11662
11663 (define-public ruby-wayback-machine-downloader
11664 (package
11665 (name "ruby-wayback-machine-downloader")
11666 (version "2.2.1")
11667 (source
11668 (origin
11669 (method url-fetch)
11670 (uri (rubygems-uri
11671 "wayback_machine_downloader"
11672 version))
11673 (sha256
11674 (base32
11675 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
11676 (build-system ruby-build-system)
11677 (arguments
11678 '(#:tests? #f)) ; no tests
11679 (synopsis "Download archived websites from the Wayback Machine")
11680 (description
11681 "Wayback Machine Downloader is a command line tool for downloading
11682 websites from the Internet Archive's Wayback Machine (archive.org).
11683 It allows fine grained control over what to download by specifying
11684 which snapshots to consider and what files to include.")
11685 (home-page
11686 "https://github.com/hartator/wayback-machine-downloader")
11687 (license license:expat)))
11688
11689 (define-public ruby-wwtd
11690 (package
11691 (name "ruby-wwtd")
11692 (version "1.4.1")
11693 (home-page "https://github.com/grosser/wwtd")
11694 (source (origin
11695 (method git-fetch)
11696 (uri (git-reference
11697 (url home-page)
11698 (commit (string-append "v" version))))
11699 (file-name (git-file-name name version))
11700 (sha256
11701 (base32
11702 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
11703 (modules '((guix build utils)))
11704 (snippet
11705 '(begin
11706 ;; Remove bundled library.
11707 (delete-file "spec/rake-12.3.0.gem")
11708 #t))))
11709 (build-system ruby-build-system)
11710 (arguments
11711 '(;; XXX: Tests need multiple versions of ruby, wants to run
11712 ;; `bundle install`, etc.
11713 #:tests? #f
11714 #:phases (modify-phases %standard-phases
11715 (replace 'replace-git-ls-files
11716 (lambda _
11717 (substitute* "wwtd.gemspec"
11718 (("git ls-files lib/ bin/`")
11719 "find lib/ bin/ -type f |sort`"))
11720 #t))
11721 (add-before 'check 'remove-version-constraints
11722 (lambda _
11723 (delete-file "Gemfile.lock")
11724 #t))
11725 (replace 'check
11726 (lambda* (#:key tests? #:allow-other-keys)
11727 (if tests?
11728 (invoke "rspec" "spec/")
11729 (format #t "test suite not run~%"))
11730 #t)))))
11731 (native-inputs
11732 `(("ruby-bump" ,ruby-bump)
11733 ("ruby-rspec" ,ruby-rspec)))
11734 (synopsis "Run @file{.travis.yml} files locally")
11735 (description
11736 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
11737 defined in @file{.travis.yml} on your local machine, using @code{rvm},
11738 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
11739 (license license:expat)))
11740
11741 (define-public ruby-rugged
11742 (package
11743 (name "ruby-rugged")
11744 (version "1.1.0")
11745 (home-page "https://www.rubydoc.info/gems/rugged")
11746 (source
11747 (origin
11748 (method url-fetch)
11749 (uri (rubygems-uri "rugged" version))
11750 (sha256
11751 (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy"))))
11752 (build-system ruby-build-system)
11753 (arguments
11754 `(#:tests? #f
11755 #:gem-flags (list "--" "--use-system-libraries")))
11756 (inputs
11757 `(("libgit2" ,libgit2)))
11758 (native-inputs
11759 `(("ruby-minitest" ,ruby-minitest)
11760 ("ruby-pry" ,ruby-pry)
11761 ("ruby-rake-compiler" ,ruby-rake-compiler)))
11762 (synopsis "Ruby bindings to the libgit2 linkable C Git library")
11763 (description "Rugged is a library for accessing libgit2 in Ruby. It gives
11764 you the speed and portability of libgit2 with the beauty of the Ruby
11765 language.")
11766 (license license:expat)))