gnu: ruby-crack: Update to 0.4.5.
[jackhill/guix/guix.git] / gnu / packages / ruby.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nikita <nikita@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
23 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
25 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
26 ;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de>
27 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
28 ;;; Copyright © 2021 EuAndreh <eu@euandre.org>
29 ;;;
30 ;;; This file is part of GNU Guix.
31 ;;;
32 ;;; GNU Guix is free software; you can redistribute it and/or modify it
33 ;;; under the terms of the GNU General Public License as published by
34 ;;; the Free Software Foundation; either version 3 of the License, or (at
35 ;;; your option) any later version.
36 ;;;
37 ;;; GNU Guix is distributed in the hope that it will be useful, but
38 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
39 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 ;;; GNU General Public License for more details.
41 ;;;
42 ;;; You should have received a copy of the GNU General Public License
43 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44
45 (define-module (gnu packages ruby)
46 #:use-module ((guix licenses) #:prefix license:)
47 #:use-module (gnu packages)
48 #:use-module (gnu packages base)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages c)
51 #:use-module (gnu packages check)
52 #:use-module (gnu packages compression)
53 #:use-module (gnu packages crypto)
54 #:use-module (gnu packages curl)
55 #:use-module (gnu packages databases)
56 #:use-module (gnu packages dbm)
57 #:use-module (gnu packages rails)
58 #:use-module (gnu packages readline)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages haskell-xyz)
61 #:use-module (gnu packages java)
62 #:use-module (gnu packages libffi)
63 #:use-module (gnu packages libidn)
64 #:use-module (gnu packages linux)
65 #:use-module (gnu packages lsof)
66 #:use-module (gnu packages maths)
67 #:use-module (gnu packages ncurses)
68 #:use-module (gnu packages networking)
69 #:use-module (gnu packages node)
70 #:use-module (gnu packages protobuf)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages python-xyz)
73 #:use-module (gnu packages ragel)
74 #:use-module (gnu packages rsync)
75 #:use-module (gnu packages sqlite)
76 #:use-module (gnu packages tls)
77 #:use-module (gnu packages version-control)
78 #:use-module (guix packages)
79 #:use-module (guix download)
80 #:use-module (guix git-download)
81 #:use-module (guix utils)
82 #:use-module (guix build-system gnu)
83 #:use-module (gnu packages xml)
84 #:use-module (gnu packages web)
85 #:use-module (guix build-system ruby)
86 #:use-module ((srfi srfi-1) #:select (alist-delete)))
87
88 (define %prawn-project-licenses
89 ;; This set of licenses applies to most (all?) components of the Prawn
90 ;; project (it is triple licensed).
91 (list license:ruby
92 license:gpl2+
93 license:gpl3+))
94
95 (define-public ruby
96 (package
97 (name "ruby")
98 (version "2.6.5")
99 (source
100 (origin
101 (method url-fetch)
102 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
103 (version-major+minor version)
104 "/ruby-" version ".tar.xz"))
105 (sha256
106 (base32
107 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
108 (modules '((guix build utils)))
109 (snippet `(begin
110 ;; Remove bundled libffi
111 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
112 #t))))
113 (build-system gnu-build-system)
114 (arguments
115 `(#:test-target "test"
116 #:configure-flags '("--enable-shared") ; dynamic linking
117 #:phases
118 (modify-phases %standard-phases
119 (add-before 'configure 'replace-bin-sh-and-remove-libffi
120 (lambda _
121 (substitute* '("Makefile.in"
122 "ext/pty/pty.c"
123 "io.c"
124 "lib/mkmf.rb"
125 "process.c"
126 "test/rubygems/test_gem_ext_configure_builder.rb"
127 "test/rdoc/test_rdoc_parser.rb"
128 "test/ruby/test_rubyoptions.rb"
129 "test/ruby/test_process.rb"
130 "test/ruby/test_system.rb"
131 "tool/rbinstall.rb")
132 (("/bin/sh") (which "sh")))
133 #t)))))
134 (inputs
135 `(("readline" ,readline)
136 ("openssl" ,openssl)
137 ("libffi" ,libffi)
138 ("gdbm" ,gdbm)))
139 (propagated-inputs
140 `(("zlib" ,zlib)))
141 (native-search-paths
142 (list (search-path-specification
143 (variable "GEM_PATH")
144 (files (list (string-append "lib/ruby/vendor_ruby"))))))
145 (synopsis "Programming language interpreter")
146 (description "Ruby is a dynamic object-oriented programming language with
147 a focus on simplicity and productivity.")
148 (home-page "https://www.ruby-lang.org")
149 (license license:ruby)))
150
151 (define-public ruby-2.7
152 (package
153 (inherit ruby)
154 (version "2.7.2")
155 (source
156 (origin
157 (method url-fetch)
158 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
159 (version-major+minor version)
160 "/ruby-" version ".tar.gz"))
161 (sha256
162 (base32
163 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
164 (modules '((guix build utils)))
165 (snippet `(begin
166 ;; Remove bundled libffi
167 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
168 #t))))
169 (arguments
170 `(#:test-target "test"
171 #:configure-flags '("--enable-shared") ; dynamic linking
172 #:phases
173 (modify-phases %standard-phases
174 (add-before 'configure 'replace-bin-sh-and-remove-libffi
175 (lambda _
176 (substitute* '("configure.ac"
177 "template/Makefile.in"
178 "lib/rubygems/installer.rb"
179 "ext/pty/pty.c"
180 "io.c"
181 "lib/mkmf.rb"
182 "process.c"
183 "test/rubygems/test_gem_ext_configure_builder.rb"
184 "test/rdoc/test_rdoc_parser.rb"
185 "test/ruby/test_rubyoptions.rb"
186 "test/ruby/test_process.rb"
187 "test/ruby/test_system.rb"
188 "tool/rbinstall.rb")
189 (("/bin/sh") (which "sh")))
190 #t)))))
191 (native-inputs
192 `(("autoconf" ,autoconf)))))
193
194 (define-public ruby-3.0
195 (package
196 (inherit ruby-2.7)
197 (version "3.0.0")
198 (source
199 (origin
200 (method url-fetch)
201 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
202 (version-major+minor version)
203 "/ruby-" version ".tar.xz"))
204 (sha256
205 (base32
206 "1cbcixwnr0y8q0lg67wjgplp06kjd6p6hjjh680csv3v0bpsxgv8"))))))
207
208 (define-public ruby-2.5
209 (package
210 (inherit ruby)
211 (version "2.5.8")
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
216 (version-major+minor version)
217 "/ruby-" version ".tar.xz"))
218 (sha256
219 (base32
220 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
221 (modules '((guix build utils)))
222 (snippet `(begin
223 ;; Remove bundled libffi
224 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
225 #t))))))
226
227 (define-public ruby-2.4
228 (package
229 (inherit ruby)
230 (version "2.4.10")
231 (source
232 (origin
233 (method url-fetch)
234 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
235 (version-major+minor version)
236 "/ruby-" version ".tar.xz"))
237 (sha256
238 (base32
239 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
240 (modules '((guix build utils)))
241 (snippet `(begin
242 ;; Remove bundled libffi
243 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
244 #t))))))
245
246 (define-public mruby
247 (package
248 (name "mruby")
249 (version "2.1.2")
250 (source
251 (origin
252 (method git-fetch)
253 (uri (git-reference
254 (url "https://github.com/mruby/mruby")
255 (commit version)))
256 (file-name (git-file-name name version))
257 (sha256
258 (base32
259 "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3"))))
260 (build-system gnu-build-system)
261 (arguments
262 `(#:test-target "test"
263 #:phases
264 (modify-phases %standard-phases
265 (delete 'configure)
266 (add-after 'unpack 'enable-verbose-tests
267 (lambda _
268 (substitute* "Makefile"
269 (("ruby ./minirake" m)
270 (string-append m " --verbose")))
271 #t))
272 (add-after 'unpack 'disable-broken-tests
273 (lambda _
274 (substitute* "mrbgems/mruby-io/test/io.rb"
275 (("assert\\('IO.popen.+$" m)
276 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
277 (("assert\\('IO#isatty.+$" m)
278 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
279 ;; This one is really weird. The *expected* output is all wrong.
280 (("assert\\('`cmd`.*" m)
281 (string-append m "skip \"Disable for Guix\"\n"))
282 (("echo foo")
283 (string-append (which "echo") " foo")))
284 #t))
285 ;; There is no install target
286 (replace 'install
287 (lambda* (#:key outputs #:allow-other-keys)
288 (let* ((out (assoc-ref outputs "out"))
289 (bin (string-append out "/bin"))
290 (lib (string-append out "/lib")))
291 (mkdir-p bin)
292 (copy-recursively "build/host/bin" bin)
293 (mkdir-p lib)
294 (copy-recursively "build/host/lib" lib))
295 #t)))))
296 (native-inputs
297 `(("ruby" ,ruby)
298 ("bison" ,bison)))
299 (home-page "https://github.com/mruby/mruby")
300 (synopsis "Lightweight Ruby")
301 (description "mruby is the lightweight implementation of the Ruby
302 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
303 embedded within your application.")
304 (license license:expat)))
305
306 (define-public ruby-commander
307 (package
308 (name "ruby-commander")
309 (version "4.4.7")
310 (source
311 (origin
312 (method url-fetch)
313 (uri (rubygems-uri "commander" version))
314 (sha256
315 (base32
316 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
317 (build-system ruby-build-system)
318 (arguments
319 `(#:test-target "spec"
320 #:phases
321 (modify-phases %standard-phases
322 ;; Don't run or require rubocop, the code linting tool, as this is a
323 ;; bit unnecessary.
324 (add-after 'unpack 'dont-run-rubocop
325 (lambda _
326 (substitute* "Rakefile"
327 ((".*rubocop.*") "")
328 ((".*RuboCop.*") ""))
329 #t)))))
330 (propagated-inputs
331 `(("ruby-highline" ,ruby-highline)))
332 (native-inputs
333 `(("bundler" ,bundler)
334 ("ruby-rspec-core" ,ruby-rspec-core)
335 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
336 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
337 ("ruby-simplecov" ,ruby-simplecov)))
338 (home-page "https://github.com/commander-rb/commander")
339 (synopsis "Library for building Ruby command-line executables")
340 (description
341 "Commander aims to be a complete solution for Ruby command-line
342 executables. Commander bridges the gap between other terminal related
343 libraries (OptionParser, HighLine), while providing many new features, and an
344 elegant API.")
345 (license license:expat)))
346
347 (define-public ruby-highline
348 (package
349 (name "ruby-highline")
350 (version "2.0.1")
351 (source
352 (origin
353 (method url-fetch)
354 (uri (rubygems-uri "highline" version))
355 (sha256
356 (base32
357 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
358 (build-system ruby-build-system)
359 (arguments
360 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
361 (native-inputs
362 `(("bundler" ,bundler)
363 ("ruby-code-statistics" ,ruby-code-statistics)))
364 (synopsis
365 "HighLine helps you build command-line interfaces")
366 (description
367 "HighLine provides a high-level IO library that provides validation,
368 type conversion, and more for command-line interfaces. HighLine also includes
369 a menu system for providing multiple options to the user.")
370 (home-page "https://github.com/JEG2/highline")
371 (license (list license:gpl2 license:ruby))))
372
373 (define-public ruby-hoe
374 (package
375 (name "ruby-hoe")
376 (version "3.21.0")
377 (source (origin
378 (method url-fetch)
379 (uri (rubygems-uri "hoe" version))
380 (sha256
381 (base32
382 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
383 (build-system ruby-build-system)
384 (arguments
385 '(#:phases
386 (modify-phases %standard-phases
387 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
388 ;; variable is set, so unset it for the duration of the tests.
389 ;;
390 ;; TestHoe#test_possibly_better
391 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
392 ;; Expected: 2019-11-12 00:00:00 UTC
393 ;; Actual: 1970-01-01 00:00:00 UTC
394 (add-before 'check 'unset-SOURCE-DATE-EPOCH
395 (lambda _
396 (unsetenv "SOURCE_DATE_EPOCH")
397 #t))
398 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
399 (lambda _
400 (setenv "SOURCE_DATE_EPOCH" "1")
401 #t)))))
402 (synopsis "Ruby project management helper")
403 (description
404 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
405 maintain, and release projects and includes a dynamic plug-in system allowing
406 for easy extensibility. Hoe ships with plug-ins for all the usual project
407 tasks including rdoc generation, testing, packaging, deployment, and
408 announcement.")
409 (home-page "https://www.zenspider.com/projects/hoe.html")
410 (license license:expat)))
411
412 (define-public ruby-rake-compiler
413 (package
414 (name "ruby-rake-compiler")
415 (version "1.1.0")
416 (source (origin
417 (method url-fetch)
418 (uri (rubygems-uri "rake-compiler" version))
419 (sha256
420 (base32
421 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
422 (build-system ruby-build-system)
423 (arguments
424 '(#:tests? #f)) ; needs cucumber
425 (synopsis "Building and packaging helper for Ruby native extensions")
426 (description "Rake-compiler provides a framework for building and
427 packaging native C and Java extensions in Ruby.")
428 (home-page "https://github.com/rake-compiler/rake-compiler")
429 (license license:expat)))
430
431 (define-public ruby-rsync
432 (package
433 (name "ruby-rsync")
434 (version "1.0.9")
435 (source
436 (origin
437 (method url-fetch)
438 (uri (rubygems-uri "rsync" version))
439 (sha256
440 (base32
441 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
442 (build-system ruby-build-system)
443 (arguments
444 '(#:test-target "spec"
445 #:phases
446 (modify-phases %standard-phases
447 (add-after 'unpack 'remove-coveralls-requirement
448 (lambda _
449 (substitute* "spec/spec_helper.rb"
450 (("require 'coveralls'") "")
451 (("Coveralls.wear!") ""))
452 #t)))))
453 (native-inputs
454 `(("bundler" ,bundler)
455 ("rsync" ,rsync)
456 ("ruby-rspec-core" ,ruby-rspec-core)
457 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
458 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
459 (home-page "https://github.com/jbussdieker/ruby-rsync")
460 (synopsis "Ruby wrapper around rsync")
461 (description
462 "Ruby Rsync is a Ruby library that can synchronize files between remote
463 hosts by wrapping the @file{rsync} binary.")
464 (license license:expat)))
465
466 (define-public ruby-i18n
467 (package
468 (name "ruby-i18n")
469 (version "1.7.0")
470 (source (origin
471 (method url-fetch)
472 (uri (rubygems-uri "i18n" version))
473 (sha256
474 (base32
475 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
476 (build-system ruby-build-system)
477 (arguments
478 '(#:tests? #f)) ; no tests
479 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
480 (synopsis "Internationalization library for Ruby")
481 (description "Ruby i18n is an internationalization and localization
482 solution for Ruby programs. It features translation and localization,
483 interpolation of values to translations, pluralization, customizable
484 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
485 translation data, custom key/scope separator, custom exception handlers, and
486 an extensible architecture with a swappable backend.")
487 (home-page "https://github.com/ruby-i18n/i18n")
488 (license license:expat)))
489
490 (define-public ruby-iruby
491 (package
492 (name "ruby-iruby")
493 (version "0.3")
494 (source
495 (origin
496 (method url-fetch)
497 (uri (rubygems-uri "iruby" version))
498 (sha256
499 (base32
500 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
501 (build-system ruby-build-system)
502 (arguments
503 ;; TODO: Tests currently fail.
504 ;;
505 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
506 ;;
507 ;; 1) Failure:
508 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
509 ;; In [ expected
510 ;;
511 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
512 '(#:tests? #f
513 #:phases
514 (modify-phases %standard-phases
515 (add-after 'unpack 'patch-ipython
516 (lambda* (#:key inputs #:allow-other-keys)
517 (substitute* "lib/iruby/command.rb"
518 (("version = `")
519 (string-append
520 "version = `"
521 (assoc-ref inputs "python-ipython")
522 "/bin/"))
523 (("Kernel\\.exec\\('")
524 (string-append
525 "Kernel.exec('"
526 (assoc-ref inputs "python-ipython")
527 "/bin/")))
528 #t)))))
529 (inputs
530 `(("python-ipython" ,python-ipython)))
531 (propagated-inputs
532 `(("ruby-bond" ,ruby-bond)
533 ("ruby-data_uri" ,ruby-data_uri)
534 ("ruby-mimemagic" ,ruby-mimemagic)
535 ("ruby-multi-json" ,ruby-multi-json)
536 ("ruby-cztop" ,ruby-cztop)
537 ;; Optional inputs
538 ("ruby-pry" ,ruby-pry)))
539 (synopsis "Ruby kernel for Jupyter/IPython")
540 (description
541 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
542 notebook).")
543 (home-page "https://github.com/SciRuby/iruby")
544 (license license:expat)))
545
546 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
547 ;; dependencies use RSpec for their test suites! To avoid these circular
548 ;; dependencies, we disable tests for all of the RSpec-related packages.
549 (define-public ruby-rspec-support
550 (package
551 (name "ruby-rspec-support")
552 (version "3.8.0")
553 (source (origin
554 (method url-fetch)
555 (uri (rubygems-uri "rspec-support" version))
556 (sha256
557 (base32
558 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
559 (build-system ruby-build-system)
560 (arguments
561 '(#:tests? #f)) ; avoid dependency cycles
562 (synopsis "RSpec support library")
563 (description "Support utilities for RSpec gems.")
564 (home-page "https://github.com/rspec/rspec-support")
565 (license license:expat)))
566
567 (define-public ruby-rspec-core
568 (package
569 (name "ruby-rspec-core")
570 (version "3.8.0")
571 (source (origin
572 (method url-fetch)
573 (uri (rubygems-uri "rspec-core" version))
574 (sha256
575 (base32
576 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
577 (build-system ruby-build-system)
578 (arguments
579 '(#:tests? #f)) ; avoid dependency cycles
580 (propagated-inputs
581 `(("ruby-rspec-support" ,ruby-rspec-support)))
582 (synopsis "RSpec core library")
583 (description "Rspec-core provides the RSpec test runner and example
584 groups.")
585 (home-page "https://github.com/rspec/rspec-core")
586 (license license:expat)))
587
588 (define-public ruby-rspec-core-2
589 (package (inherit ruby-rspec-core)
590 (version "2.14.8")
591 (source (origin
592 (method url-fetch)
593 (uri (rubygems-uri "rspec-core" version))
594 (sha256
595 (base32
596 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
597 (propagated-inputs `())))
598
599 (define-public ruby-diff-lcs
600 (package
601 (name "ruby-diff-lcs")
602 (version "1.3")
603 (source (origin
604 (method url-fetch)
605 (uri (rubygems-uri "diff-lcs" version))
606 (sha256
607 (base32
608 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
609 (build-system ruby-build-system)
610 (arguments
611 '(#:tests? #f)) ; avoid dependency cycles
612 (synopsis "Compute the difference between two Enumerable sequences")
613 (description "Diff::LCS computes the difference between two Enumerable
614 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
615 It includes utilities to create a simple HTML diff output format and a
616 standard diff-like tool.")
617 (home-page "https://github.com/halostatue/diff-lcs")
618 (license license:expat)))
619
620 (define-public ruby-rspec-expectations
621 (package
622 (name "ruby-rspec-expectations")
623 (version "3.8.2")
624 (source (origin
625 (method url-fetch)
626 (uri (rubygems-uri "rspec-expectations" version))
627 (sha256
628 (base32
629 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
630 (build-system ruby-build-system)
631 (arguments
632 '(#:tests? #f)) ; avoid dependency cycles
633 (propagated-inputs
634 `(("ruby-rspec-support" ,ruby-rspec-support)
635 ("ruby-diff-lcs" ,ruby-diff-lcs)))
636 (synopsis "RSpec expectations library")
637 (description "Rspec-expectations provides a simple API to express expected
638 outcomes of a code example.")
639 (home-page "https://github.com/rspec/rspec-expectations")
640 (license license:expat)))
641
642 (define-public ruby-rspec-expectations-2
643 (package (inherit ruby-rspec-expectations)
644 (version "2.14.5")
645 (source (origin
646 (method url-fetch)
647 (uri (rubygems-uri "rspec-expectations" version))
648 (sha256
649 (base32
650 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
651 (propagated-inputs
652 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
653
654 (define-public ruby-sorcerer
655 (package
656 (name "ruby-sorcerer")
657 (version "2.0.1")
658 (source
659 (origin
660 (method url-fetch)
661 (uri (rubygems-uri "sorcerer" version))
662 (sha256
663 (base32
664 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
665 (build-system ruby-build-system)
666 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
667 (description "Sorcerer generates Ruby code from a Ripper-like abstract
668 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
669 snippets of Ruby code, expressible in a single line. Longer examples may be
670 re-sourced, but they will be rendered in a single-line format.")
671 (home-page "https://github.com/rspec-given/sorcerer")
672 (license license:expat)))
673
674 (define-public ruby-given-core
675 (package
676 (name "ruby-given-core")
677 (version "3.8.0")
678 (source
679 (origin
680 (method url-fetch)
681 (uri (rubygems-uri "given_core" version))
682 (sha256
683 (base32
684 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
685 (build-system ruby-build-system)
686 (arguments '(#:tests? #f)) ;no test suite for the core package
687 (propagated-inputs
688 `(("ruby-sorcerer" ,ruby-sorcerer)))
689 (synopsis "Core abstractions used by rspec-given and minitest-given")
690 (description "Given_core is the basic functionality behind rspec-given and
691 minitest-given, extensions that allow the use of Given/When/Then terminology
692 when defining specifications.")
693 (home-page "https://github.com/rspec-given/rspec-given")
694 (license license:expat)))
695
696 (define-public ruby-rspec-given
697 (package
698 (name "ruby-rspec-given")
699 (version "3.8.0")
700 (source
701 (origin
702 (method url-fetch)
703 (uri (rubygems-uri "rspec-given" version))
704 (sha256
705 (base32
706 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
707 (build-system ruby-build-system)
708 (arguments
709 `(#:test-target "rs"
710 #:phases
711 (modify-phases %standard-phases
712 (add-after 'unpack 'fix-rakefile
713 (lambda _
714 (substitute* '("Rakefile" "rakelib/gemspec.rake")
715 (("require '\\./lib/given/.*") "")
716 (("Given::VERSION") (format #f "~s" ,version))
717 ;; Fix the error: "cannot load such file -- example_helper"
718 (("sh \"rspec")
719 "sh \"rspec -Ilib:examples"))
720 #t))
721 (add-after 'extract-gemspec 'delete-failing-tests
722 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
723 (lambda _
724 (substitute* ".gemspec"
725 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
726 "")
727 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
728 ""))
729 (delete-file "spec/lib/given/natural_assertion_spec.rb")
730 (delete-file "examples/integration/failing_messages_spec.rb")
731 #t)))))
732 (native-inputs
733 `(("ruby-rspec" ,ruby-rspec)
734 ("ruby-minitest" ,ruby-minitest)))
735 (propagated-inputs
736 `(("ruby-given-core" ,ruby-given-core)
737 ("ruby-rspec" ,ruby-rspec)))
738 (synopsis "Given/When/Then for RSpec and Minitest")
739 (description "Given is an RSpec extension that allows the use of
740 Given/When/Then terminology when defining specifications, in a way similar to
741 the Cucumber Gherkin language.")
742 (home-page "https://github.com/rspec-given/rspec-given")
743 (license license:expat)))
744
745 (define-public ruby-rspec-its
746 (package
747 (name "ruby-rspec-its")
748 (version "1.3.0")
749 (source
750 (origin
751 (method git-fetch)
752 (uri (git-reference
753 (url "https://github.com/rspec/rspec-its")
754 (commit (string-append "v" version))))
755 (file-name (git-file-name name version))
756 (sha256
757 (base32
758 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
759 (build-system ruby-build-system)
760 (arguments
761 `(#:test-target "spec"
762 #:phases
763 (modify-phases %standard-phases
764 (add-after 'unpack 'dont-install-gems-from-gemfile
765 (lambda _
766 (substitute* "Gemfile"
767 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
768 ""))
769 #t))
770 (add-before 'build 'loosen-ffi-requirement
771 (lambda _
772 ;; Accept any version of ruby-ffi.
773 (substitute* "Gemfile"
774 ((" gem 'ffi', '~> 1\\.9\\.25'")
775 " gem 'ffi'"))
776 #t))
777 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
778 (lambda _
779 (substitute* "rspec-its.gemspec"
780 (("rake.*") "rake'\n")
781 (("spec.add_development_dependency 'cucumber'.*")
782 "spec.add_development_dependency 'cucumber'\n")
783 (("bundler.*") "bundler'\n")
784 (("\"aruba.*") "'aruba'\n"))
785 #t)))))
786 (propagated-inputs
787 `(("ruby-rspec-core" ,ruby-rspec-core)
788 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
789 (native-inputs
790 `(("bundler" ,bundler)
791 ("ruby-cucumber" ,ruby-cucumber)
792 ("ruby-ffi" ,ruby-ffi)
793 ("ruby-aruba" ,ruby-aruba)))
794 (synopsis "RSpec extension that provides the @code{its} method")
795 (description
796 "RSpec::Its provides the its method as a short-hand to specify the expected
797 value of an attribute. For example, one can use @code{its(:size)\\{should
798 eq(1)\\}}.")
799 (home-page "https://github.com/rspec/rspec-its")
800 (license license:expat)))
801
802 ;;; This variant is used to break a cycle with ruby-protobuf.
803 (define-public ruby-rspec-its-minimal
804 (hidden-package
805 (package
806 (inherit ruby-rspec-its)
807 (arguments
808 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
809 ((#:tests? _ #f) #f)))
810 (native-inputs '()))))
811
812 (define-public ruby-rspec-mocks
813 (package
814 (name "ruby-rspec-mocks")
815 (version "3.8.0")
816 (source (origin
817 (method url-fetch)
818 (uri (rubygems-uri "rspec-mocks" version))
819 (sha256
820 (base32
821 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
822 (build-system ruby-build-system)
823 (arguments
824 '(#:tests? #f)) ; avoid dependency cycles
825 (propagated-inputs
826 `(("ruby-rspec-support" ,ruby-rspec-support)
827 ("ruby-diff-lcs" ,ruby-diff-lcs)))
828 (synopsis "RSpec stubbing and mocking library")
829 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
830 support for stubbing and mocking.")
831 (home-page "https://github.com/rspec/rspec-mocks")
832 (license license:expat)))
833
834 (define-public ruby-rspec-mocks-2
835 (package (inherit ruby-rspec-mocks)
836 (version "2.14.6")
837 (source (origin
838 (method url-fetch)
839 (uri (rubygems-uri "rspec-mocks" version))
840 (sha256
841 (base32
842 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
843 (propagated-inputs
844 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
845
846 (define-public ruby-rspec-rerun
847 (package
848 (name "ruby-rspec-rerun")
849 (version "1.1.0")
850 (source
851 (origin
852 (method url-fetch)
853 (uri (rubygems-uri "rspec-rerun" version))
854 (sha256
855 (base32
856 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
857 (build-system ruby-build-system)
858 (arguments
859 '(;; No included tests
860 #:tests? #f))
861 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
862 (synopsis "Track failed RSpec tests to re-run them")
863 (description
864 "This package provides an automated way to track, and then re-run failed
865 RSpec tests.")
866 (home-page "https://github.com/dblock/rspec-rerun")
867 (license license:expat)))
868
869 (define-public ruby-rspec-wait
870 (package
871 (name "ruby-rspec-wait")
872 (version "0.0.9")
873 (source
874 (origin
875 (method url-fetch)
876 (uri (rubygems-uri "rspec-wait" version))
877 (sha256
878 (base32
879 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
880 (build-system ruby-build-system)
881 (arguments
882 '(#:phases
883 (modify-phases %standard-phases
884 (replace 'check
885 (lambda _
886 (invoke "rake" "spec"))))))
887 (native-inputs
888 `(("bundler" ,bundler)))
889 (propagated-inputs
890 `(("ruby-rspec" ,ruby-rspec)))
891 (home-page "https://github.com/laserlemon/rspec-wait")
892 (synopsis "Wait for conditions in RSpec")
893 (description
894 "RSpec::Wait strives to make it easier to test asynchronous or slow
895 interactions.")
896 (license license:expat)))
897
898 (define-public ruby-rspec
899 (package
900 (name "ruby-rspec")
901 (version "3.8.0")
902 (source (origin
903 (method url-fetch)
904 (uri (rubygems-uri "rspec" version))
905 (sha256
906 (base32
907 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
908 (build-system ruby-build-system)
909 (arguments
910 '(#:tests? #f)) ; avoid dependency cycles
911 (propagated-inputs
912 `(("ruby-rspec-core" ,ruby-rspec-core)
913 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
914 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
915 (synopsis "Behavior-driven development framework for Ruby")
916 (description "RSpec is a behavior-driven development (BDD) framework for
917 Ruby. This meta-package includes the RSpec test runner, along with the
918 expectations and mocks frameworks.")
919 (home-page "https://rspec.info/")
920 (license license:expat)))
921
922 (define-public ruby-rspec-2
923 (package (inherit ruby-rspec)
924 (version "2.14.1")
925 (source (origin
926 (method url-fetch)
927 (uri (rubygems-uri "rspec" version))
928 (sha256
929 (base32
930 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
931 (propagated-inputs
932 `(("ruby-rspec-core" ,ruby-rspec-core-2)
933 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
934 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
935
936 ;; Bundler is yet another source of circular dependencies, so we must disable
937 ;; its test suite as well.
938 (define-public bundler
939 (package
940 (name "bundler")
941 (version "2.1.4")
942 (source (origin
943 (method url-fetch)
944 (uri (rubygems-uri "bundler" version))
945 (sha256
946 (base32
947 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
948 (build-system ruby-build-system)
949 (arguments
950 '(#:tests? #f)) ; avoid dependency cycles
951 (synopsis "Ruby gem bundler")
952 (description "Bundler automatically downloads and installs a list of gems
953 specified in a \"Gemfile\", as well as their dependencies.")
954 (home-page "https://bundler.io/")
955 (license license:expat)))
956
957 (define-public ruby-builder
958 (package
959 (name "ruby-builder")
960 (version "3.2.3")
961 (source (origin
962 (method url-fetch)
963 (uri (rubygems-uri "builder" version))
964 (sha256
965 (base32
966 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
967 (build-system ruby-build-system)
968 (arguments
969 `(#:phases
970 (modify-phases %standard-phases
971 (add-after 'unpack 'do-not-use-rvm
972 (lambda _
973 (substitute* "rakelib/tags.rake"
974 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
975 #t)))))
976 (synopsis "Ruby library to create structured data")
977 (description "Builder provides a number of builder objects that make it
978 easy to create structured data. Currently the following builder objects are
979 supported: XML Markup and XML Events.")
980 (home-page "https://github.com/jimweirich/builder")
981 (license license:expat)))
982
983 (define-public ruby-bump
984 (package
985 (name "ruby-bump")
986 (version "0.7.0")
987 (source
988 (origin
989 (method url-fetch)
990 (uri (rubygems-uri "bump" version))
991 (sha256
992 (base32
993 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
994 (build-system ruby-build-system)
995 (arguments
996 '(;; No included tests
997 #:tests? #f))
998 (synopsis "Tool for working with Rubygems")
999 (description
1000 "Bump provides commands to manage Rubygem versioning, updating to the
1001 next patch version for example.")
1002 (home-page "https://github.com/gregorym/bump")
1003 (license license:expat)))
1004
1005 (define-public ruby-rjb
1006 (package
1007 (name "ruby-rjb")
1008 (version "1.5.5")
1009 (source (origin
1010 (method url-fetch)
1011 (uri (rubygems-uri "rjb" version))
1012 (sha256
1013 (base32
1014 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
1015 (build-system ruby-build-system)
1016 (arguments
1017 `(#:tests? #f ; no rakefile
1018 #:phases
1019 (modify-phases %standard-phases
1020 (add-before 'build 'set-java-home
1021 (lambda* (#:key inputs #:allow-other-keys)
1022 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1023 #t)))))
1024 (native-inputs
1025 `(("jdk" ,icedtea "jdk")))
1026 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1027 (description "RJB is a bridge program that connects Ruby and Java via the
1028 Java Native Interface.")
1029 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1030 (license license:lgpl2.1+)))
1031
1032 (define-public ruby-log4r
1033 (package
1034 (name "ruby-log4r")
1035 (version "1.1.10")
1036 (source
1037 (origin
1038 (method url-fetch)
1039 (uri (rubygems-uri "log4r" version))
1040 (sha256
1041 (base32
1042 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1043 (build-system ruby-build-system)
1044 (arguments
1045 '(#:tests? #f)) ; no Rakefile in gem
1046 (synopsis "Flexible logging library for Ruby")
1047 (description "Comprehensive and flexible logging library written
1048 in Ruby for use in Ruby programs. It features a hierarchical logging
1049 system of any number of levels, custom level names, logger
1050 inheritance, multiple output destinations per log event, execution
1051 tracing, custom formatting, thread safteyness, XML and YAML
1052 configuration, and more.")
1053 (home-page "http://log4r.rubyforge.org/")
1054 (license license:bsd-3)))
1055
1056 (define-public ruby-atoulme-antwrap
1057 (package
1058 (name "ruby-atoulme-antwrap")
1059 (version "0.7.5")
1060 (source (origin
1061 (method url-fetch)
1062 (uri (rubygems-uri "atoulme-Antwrap" version))
1063 (sha256
1064 (base32
1065 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1066 (build-system ruby-build-system)
1067 ;; Test data required for most of the tests are not included.
1068 (arguments `(#:tests? #f))
1069 (native-inputs
1070 `(("ruby-hoe" ,ruby-hoe)))
1071 (inputs
1072 `(("ruby-rjb" ,ruby-rjb)))
1073 (synopsis "Ruby wrapper for the Ant build tool")
1074 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1075 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1076 script.")
1077 (home-page "http://rubyforge.org/projects/antwrap/")
1078 (license license:expat)))
1079
1080 (define-public ruby-atoulme-saikuro
1081 (package
1082 (name "ruby-atoulme-saikuro")
1083 (version "1.2.1")
1084 (source (origin
1085 (method url-fetch)
1086 (uri (rubygems-uri "atoulme-Saikuro" version))
1087 (sha256
1088 (base32
1089 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1090 (build-system ruby-build-system)
1091 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1092 ;; "saikuro" tool.
1093 (arguments `(#:tests? #f))
1094 (synopsis "Cyclomatic complexity analyzer")
1095 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1096 given Ruby source code Saikuro will generate a report listing the cyclomatic
1097 complexity of each method found. In addition, Saikuro counts the number of
1098 lines per method and can generate a listing of the number of tokens on each
1099 line of code.")
1100 (home-page "http://www.github.com/atoulme/Saikuro")
1101 ;; File headers contain the BSD-3 license and the README.rdoc says that
1102 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1103 ;; of the Expat license.
1104 (license license:bsd-3)))
1105
1106 (define-public ruby-awesome-print
1107 (package
1108 (name "ruby-awesome-print")
1109 (version "1.8.0")
1110 (source
1111 (origin
1112 (method url-fetch)
1113 (uri (rubygems-uri "awesome_print" version))
1114 (sha256
1115 (base32
1116 "14arh1ixfsd6j5md0agyzvksm5svfkvchb90fp32nn7y3avcmc2h"))))
1117 (build-system ruby-build-system)
1118 (arguments
1119 `(#:phases
1120 (modify-phases %standard-phases
1121 (replace 'check
1122 (lambda _
1123 ;; Remove failing test.
1124 (for-each delete-file
1125 '("spec/ext/nokogiri_spec.rb"
1126 "spec/colors_spec.rb"
1127 "spec/formats_spec.rb"
1128 "spec/methods_spec.rb"
1129 "spec/misc_spec.rb"
1130 "spec/objects_spec.rb"))
1131 (invoke "rspec" "-c" "spec"))))))
1132 (native-inputs
1133 `(("ruby-nokogiri" ,ruby-nokogiri)
1134 ("ruby-rspec" ,ruby-rspec)
1135 ("ruby-simplecov" ,ruby-simplecov)))
1136 (synopsis "Pretty print Ruby objects to visualize their structure")
1137 (description
1138 "Ruby dubugging companion: pretty print Ruby objects to visualize their
1139 structure. Supports custom object formatting via plugins.")
1140 (home-page "https://github.com/awesome-print/awesome_print")
1141 (license license:expat)))
1142
1143 (define-public ruby-pandoc-ruby
1144 (package
1145 (name "ruby-pandoc-ruby")
1146 (version "2.1.4")
1147 (source
1148 (origin
1149 (method git-fetch) ;the gem lacks many test files
1150 (uri (git-reference
1151 (url "https://github.com/xwmx/pandoc-ruby")
1152 (commit version)))
1153 (file-name (git-file-name name version))
1154 (sha256
1155 (base32
1156 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1157 (build-system ruby-build-system)
1158 (arguments
1159 `(#:phases
1160 (modify-phases %standard-phases
1161 (add-after 'unpack 'disable-failing-tests
1162 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1163 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1164 (lambda _
1165 (substitute* "test/test_conversions.rb"
1166 (("next if from == to.*" all)
1167 (string-append
1168 all
1169 " next if ['plain', 'beamer'].include? to\n")))
1170 #t))
1171 (add-after 'unpack 'patch-pandoc-path
1172 (lambda* (#:key inputs #:allow-other-keys)
1173 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1174 "/bin/pandoc")))
1175 (substitute* "lib/pandoc-ruby.rb"
1176 (("@@pandoc_path = 'pandoc'")
1177 (format #f "@@pandoc_path = '~a'" pandoc)))
1178 (substitute* "test/test_pandoc_ruby.rb"
1179 (("('|\")pandoc" _ quote)
1180 (string-append quote pandoc))
1181 (("\\^pandoc")
1182 ".*pandoc"))
1183 #t)))
1184 (add-after 'extract-gemspec 'remove-Gemfile.lock
1185 (lambda _
1186 (delete-file "Gemfile.lock")
1187 (substitute* "pandoc-ruby.gemspec"
1188 (("Gemfile\\.lock") ""))
1189 #t)))))
1190 (native-inputs
1191 `(("ruby-mocha" ,ruby-mocha)))
1192 (inputs
1193 `(("pandoc" ,pandoc)))
1194 (synopsis "Ruby wrapper for Pandoc")
1195 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1196 command line tools for converting one markup format to another. Pandoc can
1197 convert documents from a variety of formats including markdown,
1198 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1199 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1200 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1201 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1202 more.")
1203 (home-page "https://github.com/xwmx/pandoc-ruby")
1204 (license license:expat)))
1205
1206 (define-public ruby-patron
1207 (package
1208 (name "ruby-patron")
1209 (version "0.13.3")
1210 (source
1211 (origin
1212 (method url-fetch)
1213 (uri (rubygems-uri "patron" version))
1214 (sha256
1215 (base32
1216 "0523gddx88zql2mq6655k60gy2ac8vybpzkcf90lmd9nx7wl3fi9"))))
1217 (build-system ruby-build-system)
1218 (inputs
1219 `(("curl" ,curl)))
1220 (arguments
1221 `(#:tests? #f)) ; no included tests
1222 (synopsis "Ruby HTTP client library based on @code{libcurl}")
1223 (description
1224 "Patron is a Ruby HTTP client library based on @code{libcurl}. It does
1225 not try to expose the full power (read complexity) of @code{libcurl} but
1226 instead tries to provide a sane API while taking advantage of @code{libcurl}
1227 under the hood.")
1228 (home-page "https://github.com/toland/patron")
1229 (license license:expat)))
1230
1231 (define-public ruby-slim
1232 (package
1233 (name "ruby-slim")
1234 (version "4.1.0")
1235 (source
1236 (origin
1237 (method url-fetch)
1238 (uri (rubygems-uri "slim" version))
1239 (sha256
1240 (base32
1241 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1242 (build-system ruby-build-system)
1243 (arguments
1244 `(#:phases
1245 (modify-phases %standard-phases
1246 ;; See: https://github.com/slim-template/slim/issues/857 and
1247 ;; https://github.com/slim-template/slim/issues/858.
1248 (add-after 'unpack 'skip-broken-tests
1249 (lambda _
1250 (substitute* "test/core/test_embedded_engines.rb"
1251 (("def test_render_with_markdown")
1252 "def skipped_test_render_with_markdown"))
1253 (substitute* "test/translator/test_translator.rb"
1254 (("raise (\"Missing test for.*)" _ tail)
1255 (string-append "print " tail)))
1256 #t))
1257 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1258 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1259 (add-after 'unpack 'prevent-bundler-interference
1260 (lambda _
1261 (substitute* "Rakefile"
1262 (("require 'bundler/setup'") "nil")
1263 (("Bundler::GemHelper\\.install_tasks") "nil"))
1264 #t)))))
1265 (native-inputs
1266 `(("ruby-rack-test" ,ruby-rack-test)
1267 ("ruby-sinatra" ,ruby-sinatra)))
1268 (propagated-inputs
1269 `(("ruby-temple" ,ruby-temple)
1270 ("ruby-tilt" ,ruby-tilt)))
1271 (synopsis "Minimalist template language for Ruby")
1272 (description "Slim is a template language for Ruby that aims to reduce the
1273 syntax to the minimum while remaining clear.")
1274 (home-page "http://slim-lang.com/")
1275 (license license:expat)))
1276
1277 (define-public ruby-asciidoctor
1278 (package
1279 (name "ruby-asciidoctor")
1280 (version "2.0.10")
1281 (source
1282 (origin
1283 (method git-fetch) ;the gem release lacks a Rakefile
1284 (uri (git-reference
1285 (url "https://github.com/asciidoctor/asciidoctor")
1286 (commit (string-append "v" version))))
1287 (file-name (git-file-name name version))
1288 (sha256
1289 (base32
1290 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1291 (build-system ruby-build-system)
1292 (arguments
1293 `(#:test-target "test:all"
1294 #:phases
1295 (modify-phases %standard-phases
1296 (replace 'replace-git-ls-files
1297 (lambda _
1298 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1299 ;; git ls-files output is merged in ruby-build-system.
1300 (substitute* "asciidoctor.gemspec"
1301 (("`git ls-files -z`")
1302 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1303 #t))
1304 (add-after 'extract-gemspec 'strip-version-requirements
1305 (lambda _
1306 (delete-file "Gemfile")
1307 (substitute* "asciidoctor.gemspec"
1308 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1309 (string-append stripped "\n")))
1310 #t)))))
1311 (native-inputs
1312 `(("ruby-erubis" ,ruby-erubis)
1313 ("ruby-minitest" ,ruby-minitest)
1314 ("ruby-nokogiri" ,ruby-nokogiri)
1315 ("ruby-asciimath" ,ruby-asciimath)
1316 ("ruby-coderay" ,ruby-coderay)
1317 ("ruby-cucumber" ,ruby-cucumber)
1318 ("ruby-haml" ,ruby-haml)
1319 ("ruby-rouge" ,ruby-rouge)
1320 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1321 ("ruby-simplecov" ,ruby-simplecov)
1322 ("ruby-slim" ,ruby-slim)
1323 ("ruby-tilt" ,ruby-tilt)))
1324 (synopsis "Converter from AsciiDoc content to other formats")
1325 (description "Asciidoctor is a text processor and publishing toolchain for
1326 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1327 formats.")
1328 (home-page "https://asciidoctor.org")
1329 (license license:expat)))
1330
1331 (define-public ruby-prawn-icon
1332 (package
1333 (name "ruby-prawn-icon")
1334 (version "2.5.0")
1335 (source
1336 (origin
1337 (method url-fetch)
1338 (uri (rubygems-uri "prawn-icon" version))
1339 (sha256
1340 (base32
1341 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1342 (build-system ruby-build-system)
1343 (arguments
1344 `(#:test-target "spec"
1345 #:phases (modify-phases %standard-phases
1346 (add-after 'unpack 'remove-unnecessary-dependencies
1347 (lambda _
1348 (substitute* '("Rakefile" "spec/spec_helper.rb")
1349 ((".*[Bb]undler.*") "")
1350 (("^require 'rubocop.*") "")
1351 (("^RuboCop.*") ""))
1352 #t)))))
1353 (native-inputs
1354 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1355 ("ruby-pdf-reader" ,ruby-pdf-reader)
1356 ("ruby-rspec" ,ruby-rspec)
1357 ("ruby-simplecov" ,ruby-simplecov)))
1358 (propagated-inputs
1359 `(("ruby-prawn" ,ruby-prawn)))
1360 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1361 (description "@code{Prawn::Icon} provides various icon fonts including
1362 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1363 toolkit.")
1364 (home-page "https://github.com/jessedoyle/prawn-icon/")
1365 (license %prawn-project-licenses)))
1366
1367 (define-public ruby-css-parser
1368 (package
1369 (name "ruby-css-parser")
1370 (version "1.7.1")
1371 (source
1372 (origin
1373 (method url-fetch)
1374 (uri (rubygems-uri "css_parser" version))
1375 (sha256
1376 (base32
1377 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1378 (build-system ruby-build-system)
1379 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1380 (propagated-inputs
1381 `(("ruby-addressable" ,ruby-addressable)))
1382 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1383 (description "This package allows loading, parsing and cascading Cascading
1384 Style Sheets (CSS) rule sets in Ruby.")
1385 (home-page "https://github.com/premailer/css_parser")
1386 (license license:expat)))
1387
1388 (define-public ruby-prawn-svg
1389 (package
1390 (name "ruby-prawn-svg")
1391 (version "0.30.0")
1392 (source
1393 (origin
1394 (method url-fetch)
1395 (uri (rubygems-uri "prawn-svg" version))
1396 (sha256
1397 (base32
1398 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1399 (build-system ruby-build-system)
1400 (arguments
1401 `(#:phases (modify-phases %standard-phases
1402 (add-after 'unpack 'do-not-use-bundler
1403 (lambda _
1404 (substitute* "spec/spec_helper.rb"
1405 ((".*[Bb]undler.*") ""))
1406 #t))
1407 (replace 'check
1408 (lambda* (#:key tests? #:allow-other-keys)
1409 (when tests?
1410 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1411 #t)))))
1412 (native-inputs
1413 `(("ruby-rspec" ,ruby-rspec)))
1414 (propagated-inputs
1415 `(("ruby-css-parser" ,ruby-css-parser)
1416 ("ruby-prawn" ,ruby-prawn)))
1417 (synopsis "SVG renderer for the Prawn PDF library")
1418 (description "This library allows rendering Scalable Vector Graphics (SVG)
1419 graphics directly into a Portable Document Format (PDF) document using the
1420 Prawn module.")
1421 (home-page "https://github.com/mogest/prawn-svg")
1422 (license license:expat)))
1423
1424 (define-public ruby-prawn-templates
1425 (package
1426 (name "ruby-prawn-templates")
1427 (version "0.1.2")
1428 (source
1429 (origin
1430 (method git-fetch)
1431 (uri (git-reference
1432 (url "https://github.com/prawnpdf/prawn-templates")
1433 (commit version)))
1434 (file-name (git-file-name name version))
1435 (sha256
1436 (base32
1437 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1438 (build-system ruby-build-system)
1439 (arguments
1440 `(#:phases (modify-phases %standard-phases
1441 (add-after 'unpack 'do-not-use-bundler
1442 (lambda _
1443 (substitute* "spec/spec_helper.rb"
1444 ((".*[Bb]undler.*") ""))
1445 #t))
1446 (replace 'check
1447 (lambda* (#:key tests? #:allow-other-keys)
1448 (when tests?
1449 (invoke "rspec"))
1450 #t)))))
1451 (native-inputs
1452 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1453 ("ruby-rspec" ,ruby-rspec)))
1454 (propagated-inputs
1455 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1456 ("ruby-prawn" ,ruby-prawn)))
1457 (synopsis "Prawn extension to include or combine PDF documents")
1458 (description "This @strong{unmaintained} package provides a Prawn
1459 extension that allows including other Portable Document Format (PDF) documents
1460 as background or combining several PDF documents into one. This functionality
1461 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1462 of its many longstanding issues.")
1463 (home-page "https://github.com/prawnpdf/prawn-templates")
1464 (license %prawn-project-licenses)))
1465
1466 (define-public ruby-polyglot
1467 (package
1468 (name "ruby-polyglot")
1469 (version "0.3.5")
1470 (source
1471 (origin
1472 (method url-fetch)
1473 (uri (rubygems-uri "polyglot" version))
1474 (sha256
1475 (base32
1476 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1477 (build-system ruby-build-system)
1478 (arguments `(#:tests? #f)) ;no test suite
1479 (synopsis "Augment @code{require} to load non-Ruby file types")
1480 (description "The Polyglot library allows a Ruby module to register a
1481 loader for the file type associated with a filename extension, and it augments
1482 @code{require} to find and load matching files.")
1483 (home-page "https://github.com/cjheath/polyglot")
1484 (license license:expat)))
1485
1486 (define-public ruby-treetop
1487 (package
1488 (name "ruby-treetop")
1489 (version "1.6.10")
1490 (source
1491 (origin
1492 (method git-fetch) ;no test suite in distributed gem
1493 (uri (git-reference
1494 (url "https://github.com/cjheath/treetop")
1495 (commit (string-append "v" version))))
1496 (file-name (git-file-name name version))
1497 (sha256
1498 (base32
1499 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1500 (build-system ruby-build-system)
1501 (arguments
1502 `(#:test-target "spec"
1503 #:phases
1504 (modify-phases %standard-phases
1505 (replace 'replace-git-ls-files
1506 (lambda _
1507 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1508 ;; git ls-files output is merged in ruby-build-system.
1509 (substitute* "treetop.gemspec"
1510 (("`git ls-files -z`")
1511 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1512 #t)))))
1513 (native-inputs
1514 `(("ruby-activesupport" ,ruby-activesupport)
1515 ("ruby-rr" ,ruby-rr)
1516 ("ruby-rspec" ,ruby-rspec)))
1517 (propagated-inputs
1518 `(("ruby-polyglot" ,ruby-polyglot)))
1519 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1520 (description "This package provides a Ruby-based Parsing Expression
1521 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1522 (home-page "https://github.com/cjheath/treetop")
1523 (license license:expat)))
1524
1525 (define-public ruby-typhoeus
1526 (package
1527 (name "ruby-typhoeus")
1528 (version "1.4.0")
1529 (source
1530 (origin
1531 (method url-fetch)
1532 (uri (rubygems-uri "typhoeus" version))
1533 (sha256
1534 (base32
1535 "1m22yrkmbj81rzhlny81j427qdvz57yk5wbcf3km0nf3bl6qiygz"))))
1536 (build-system ruby-build-system)
1537 (arguments
1538 `(#:tests? #f)) ; no included tests
1539 (propagated-inputs
1540 `(("ruby-ethon" ,ruby-ethon)))
1541 (synopsis "@code{libcurl} wrapper in Ruby")
1542 (description
1543 "Like a modern code version of the mythical beast with 100 serpent heads,
1544 Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling
1545 logic.")
1546 (home-page "https://github.com/typhoeus/typhoeus")
1547 (license license:expat)))
1548
1549 (define-public ruby-rubocop-performance
1550 (package
1551 (name "ruby-rubocop-performance")
1552 (version "1.7.1")
1553 (source
1554 (origin
1555 (method url-fetch)
1556 (uri (rubygems-uri "rubocop-performance" version))
1557 (sha256
1558 (base32
1559 "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
1560 (build-system ruby-build-system)
1561 (arguments
1562 `(#:tests? #f)) ;no test suite in the distributed gem
1563 (propagated-inputs
1564 `(("ruby-rubocop" ,ruby-rubocop)))
1565 (synopsis "Performance optimizations checkers for Ruby code")
1566 (description "This package provides a collection of RuboCop cops to check
1567 for performance optimizations in Ruby code.")
1568 (home-page "https://docs.rubocop.org/rubocop-performance/")
1569 (license license:expat)))
1570
1571 (define-public ruby-gimme
1572 (let ((revision "1")
1573 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1574 (package
1575 (name "ruby-gimme")
1576 (version (git-version "0.5.0" revision commit))
1577 (source
1578 (origin
1579 (method git-fetch)
1580 (uri (git-reference
1581 (url "https://github.com/searls/gimme")
1582 (commit commit)))
1583 (file-name (git-file-name name version))
1584 (sha256
1585 (base32
1586 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1587 (build-system ruby-build-system)
1588 (native-inputs
1589 `(("ruby-coveralls" ,ruby-coveralls)
1590 ("ruby-cucumber" ,ruby-cucumber)
1591 ("ruby-pry" ,ruby-pry)
1592 ("ruby-simplecov" ,ruby-simplecov)
1593 ("ruby-rspec-given" ,ruby-rspec-given)))
1594 (arguments
1595 `(;; The cucumber task fails with error: "index 3 out of matches
1596 ;; (IndexError)", apparently due to our newer Cucumber version.
1597 ;; TODO: Try the "default" task with a future release.
1598 #:test-target "spec"
1599 #:phases
1600 (modify-phases %standard-phases
1601 (add-after 'extract-gemspec 'prepare-for-tests
1602 (lambda _
1603 ;; Delete failing tests (possibly due to our newer rspec
1604 ;; version).
1605 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1606 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1607 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1608 ;; Fix duplicate version requirements and de-register files.
1609 (delete-file "Gemfile")
1610 (delete-file "Gemfile.lock")
1611 (substitute* "gimme.gemspec"
1612 ((".*\"Gemfile\".*") "")
1613 ((".*\"Gemfile\\.lock\",.*") "")
1614 ((".*(rspec|cucumber).*\">= 0\".*") "")
1615 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1616 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1617 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1618 ;; All of these gems relate to development, and are
1619 ;; unnecessary when running the tests.
1620 ((".*(add|gem).*guard-.*") "")
1621 ((".*(add|gem).*jeweler.*") "")
1622 ((".*(add|gem).*pry.*") "")
1623 ((".*(add|gem).*growl.*") "")
1624 ((".*(add|gem).*rb-fsevent.*") ""))
1625 #t)))))
1626 (synopsis "Lightweight test double library for Ruby")
1627 (description "Gimme is a very lightweight test double library for Ruby,
1628 based on Mockito (a mocking framework for Java). It is an opinionated (but
1629 not noisy) means to facilitate test-driving by enabling the authors to specify
1630 only what they care about.")
1631 (home-page "https://github.com/searls/gimme")
1632 (license license:expat))))
1633
1634 (define-public ruby-standard
1635 (package
1636 (name "ruby-standard")
1637 (version "0.4.7")
1638 (source
1639 (origin
1640 (method git-fetch) ;no test suite in distributed gem
1641 (uri (git-reference
1642 (url "https://github.com/testdouble/standard")
1643 (commit (string-append "v" version))))
1644 (file-name (git-file-name name version))
1645 (sha256
1646 (base32
1647 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1648 (build-system ruby-build-system)
1649 (arguments
1650 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1651 `(#:tests? #f
1652 #:phases
1653 (modify-phases %standard-phases
1654 (add-after 'unpack 'relax-version-requiremens
1655 (lambda _
1656 (delete-file "Gemfile")
1657 (delete-file "Gemfile.lock")
1658 #t))
1659 (replace 'replace-git-ls-files
1660 (lambda _
1661 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1662 ;; git ls-files output is merged in ruby-build-system.
1663 (substitute* "standard.gemspec"
1664 (("`git ls-files -z`")
1665 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1666 |sort -z|cut -zc3-`"))
1667 #t)))))
1668 (native-inputs
1669 `(("ruby-gimme" ,ruby-gimme)
1670 ("ruby-pry" ,ruby-pry)
1671 ("ruby-simplecov" ,ruby-simplecov)))
1672 (propagated-inputs
1673 `(("ruby-rubocop" ,ruby-rubocop)
1674 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1675 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1676 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1677 to save time in the following ways:
1678 @itemize
1679 @item No configuration.
1680 @item Automatically format code.
1681 @item Catch style issues and programmer errors early.
1682 @end itemize")
1683 (home-page "https://github.com/testdouble/standard")
1684 (license license:expat)))
1685
1686 (define-public ruby-chunky-png
1687 (package
1688 (name "ruby-chunky-png")
1689 (version "1.3.14")
1690 (source
1691 (origin
1692 (method git-fetch)
1693 (uri (git-reference
1694 (url "https://github.com/wvanbergen/chunky_png")
1695 (commit (string-append "v" version))))
1696 (file-name (git-file-name name version))
1697 (sha256
1698 (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h"))))
1699 (build-system ruby-build-system)
1700 (arguments
1701 `(#:test-target "spec"
1702 #:phases
1703 (modify-phases %standard-phases
1704 (add-after 'unpack 'disable-bundler
1705 (lambda _
1706 (substitute* (find-files "." "\\.rb$")
1707 (("require.*bundler/setup.*") ""))
1708 #t))
1709 (replace 'replace-git-ls-files
1710 (lambda _
1711 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1712 ;; git ls-files output is merged in ruby-build-system.
1713 (substitute* "chunky_png.gemspec"
1714 (("`git ls-files`")
1715 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1716 #t)))))
1717 (native-inputs
1718 `(("bundler" ,bundler)
1719 ("ruby-rspec" ,ruby-rspec)
1720 ("ruby-standard" ,ruby-standard)
1721 ("ruby-yard" ,ruby-yard)))
1722 (synopsis "Ruby library to handle PNG images")
1723 (description "ChunkyPNG is a pure Ruby library that can read and write
1724 Portable Network Graphics (PNG) images without depending on an external image
1725 library. It tries to be memory efficient and reasonably fast. It has
1726 features such as:
1727 @itemize
1728 @item
1729 Decoding support for any image that the PNG standard allows. This includes all
1730 standard color modes, all bit depths, all transparency, and interlacing and
1731 filtering options.
1732 @item
1733 Encoding support for images of all color modes (true color, grayscale, and
1734 indexed) and transparency for all these color modes. The best color mode is
1735 chosen automatically, based on the amount of used colors.
1736 @item Read/write access to the image's pixels.
1737 @item Read/write access to all image metadata that is stored in chunks.
1738 @item
1739 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1740 pixel, depending on the hardware).
1741 @item
1742 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1743 integer math and a highly optimized saving routine.
1744 @item Interoperability with RMagick.
1745 @end itemize
1746
1747 ChunkyPNG is vulnerable to decompression bombs and can run out of memory when
1748 loading a specifically crafted PNG file. This is hard to fix in pure Ruby.
1749 Deal with untrusted images in a separate process, e.g., by using @code{fork}
1750 or a background processing library.")
1751 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1752 (license license:expat)))
1753
1754 (define-public ruby-text-hyphen
1755 (package
1756 (name "ruby-text-hyphen")
1757 (version "1.4.1")
1758 (source
1759 (origin
1760 (method url-fetch)
1761 (uri (rubygems-uri "text-hyphen" version))
1762 (sha256
1763 (base32
1764 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1765 (build-system ruby-build-system)
1766 (native-inputs
1767 `(("ruby-hoe" ,ruby-hoe)))
1768 (synopsis "Ruby library to hyphenate words in various languages")
1769 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1770 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1771 properly hyphenate various words according to the rules of the language the
1772 word is written in. The algorithm is based on that of the TeX typesetting
1773 system by Donald E. Knuth.")
1774 (home-page "https://github.com/halostatue/text-hyphen")
1775 ;; The whole is licensed under the Expat license, but parts use various
1776 ;; versions of the LaTeX Project Public License.
1777 (license license:expat)))
1778
1779 (define-public ruby-open-uri-cached
1780 (package
1781 (name "ruby-open-uri-cached")
1782 (version "0.0.5")
1783 (source
1784 (origin
1785 (method url-fetch)
1786 (uri (rubygems-uri "open-uri-cached" version))
1787 (sha256
1788 (base32
1789 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1790 (build-system ruby-build-system)
1791 (arguments
1792 `(#:tests? #f)) ;no test suite
1793 (synopsis "OpenURI with transparent disk caching")
1794 (description "OpenURI with transparent disk caching, which is
1795 useful to avoid making excessive queries, for example when scraping
1796 web pages.")
1797 (home-page "https://github.com/tigris/open-uri-cached")
1798 (license license:expat)))
1799
1800 (define-public ruby-asciidoctor-pdf
1801 ;; Use the latest commit, as the last tag doesn't build with the
1802 ;; latest Ruby dependencies in Guix.
1803 (let ((revision "1")
1804 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1805 (package
1806 (name "ruby-asciidoctor-pdf")
1807 (version (git-version "1.5.3" revision commit))
1808 (source
1809 (origin
1810 (method git-fetch) ;no test suite in the distributed gem
1811 (uri (git-reference
1812 (url "https://github.com/asciidoctor/asciidoctor-pdf")
1813 (commit commit)))
1814 (file-name (git-file-name name version))
1815 (sha256
1816 (base32
1817 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1818 (build-system ruby-build-system)
1819 (arguments
1820 `(#:test-target "spec"
1821 #:phases
1822 (modify-phases %standard-phases
1823 (add-after 'unpack 'remove-failing-tests
1824 ;; Two tests module fail for unknown reasons, *only* when
1825 ;; ran in the build container (see:
1826 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1827 (lambda _
1828 (delete-file "spec/audio_spec.rb")
1829 (delete-file "spec/video_spec.rb")
1830 #t))
1831 (add-after 'extract-gemspec 'strip-version-requirements
1832 (lambda _
1833 (substitute* "asciidoctor-pdf.gemspec"
1834 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1835 (string-append stripped "\n")))
1836 #t))
1837 (replace 'replace-git-ls-files
1838 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1839 ;; git ls-files output is merged in ruby-build-system.
1840 (lambda _
1841 (substitute* "asciidoctor-pdf.gemspec"
1842 (("`git ls-files -z`")
1843 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1844 |sort -z|cut -zc3-`"))
1845 #t))
1846 ;; The tests rely on the Gem being installed, so move the check phase
1847 ;; after the install phase.
1848 (delete 'check)
1849 (add-after 'install 'check
1850 (lambda* (#:key outputs tests? #:allow-other-keys)
1851 (let ((new-gem (string-append (assoc-ref outputs "out")
1852 "/lib/ruby/vendor_ruby")))
1853 (setenv "GEM_PATH"
1854 (string-append (getenv "GEM_PATH") ":" new-gem))
1855 (when tests?
1856 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1857 #t))))))
1858 (native-inputs
1859 `(("ruby-chunky-png" ,ruby-chunky-png)
1860 ("ruby-coderay" ,ruby-coderay)
1861 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1862 ("ruby-rouge" ,ruby-rouge)
1863 ("ruby-rspec" ,ruby-rspec)))
1864 (propagated-inputs
1865 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1866 ("ruby-concurrent-ruby" ,ruby-concurrent)
1867 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1868 ("ruby-prawn" ,ruby-prawn)
1869 ("ruby-prawn-icon" ,ruby-prawn-icon)
1870 ("ruby-prawn-svg" ,ruby-prawn-svg)
1871 ("ruby-prawn-table" ,ruby-prawn-table)
1872 ("ruby-prawn-templates" ,ruby-prawn-templates)
1873 ("ruby-safe-yaml" ,ruby-safe-yaml)
1874 ("ruby-text-hyphen" ,ruby-text-hyphen)
1875 ("ruby-thread-safe" ,ruby-thread-safe)
1876 ("ruby-treetop" ,ruby-treetop)
1877 ("ruby-ttfunk" ,ruby-ttfunk)))
1878 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1879 (description "Asciidoctor PDF is an extension for Asciidoctor that
1880 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1881 PDF library. It has features such as:
1882 @itemize
1883 @item Direct AsciiDoc to PDF conversion
1884 @item Configuration-driven theme (style and layout)
1885 @item Scalable Vector Graphics (SVG) support
1886 @item PDF document outline (i.e., bookmarks)
1887 @item Table of contents page(s)
1888 @item Document metadata (title, authors, subject, keywords, etc.)
1889 @item Internal cross reference links
1890 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1891 @item Page numbering
1892 @item Customizable running content (header and footer)
1893 @item
1894 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1895 @item Orphaned section titles avoided
1896 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1897 @item Table border settings honored
1898 @item Font-based icons
1899 @item Custom TrueType (TTF) fonts
1900 @item Double-sided printing mode (margins alternate on recto and verso pages)
1901 @end itemize")
1902 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1903 (license license:expat))))
1904
1905 (define-public ruby-ast
1906 (package
1907 (name "ruby-ast")
1908 (version "2.4.1")
1909 (source
1910 (origin
1911 (method git-fetch) ;no test included in gem from v2.4.1
1912 (uri (git-reference
1913 (url "https://github.com/whitequark/ast")
1914 (commit (string-append "v" version))))
1915 (file-name (git-file-name name version))
1916 (sha256
1917 (base32
1918 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1919 (build-system ruby-build-system)
1920 (arguments
1921 '(#:phases
1922 (modify-phases %standard-phases
1923 (add-after 'unpack 'remove-coveralls-requirement
1924 (lambda _
1925 (substitute* "test/helper.rb"
1926 (("require 'coveralls'") "")
1927 (("Coveralls::SimpleCov::Formatter") ""))
1928 #t))
1929 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1930 (lambda _
1931 (substitute* "ast.gemspec"
1932 ((".*coveralls.*") "\n")
1933 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1934 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1935 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1936 #t)))))
1937 (native-inputs
1938 `(("bundler" ,bundler)
1939 ("ruby-simplecov" ,ruby-simplecov)
1940 ("ruby-json-pure" ,ruby-json-pure)
1941 ("ruby-mime-times" ,ruby-mime-types)
1942 ("ruby-yard" ,ruby-yard)
1943 ("ruby-kramdown" ,ruby-kramdown)
1944 ("ruby-rest-client" ,ruby-rest-client)
1945 ("ruby-bacon" ,ruby-bacon)
1946 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1947 ("ruby-racc" ,ruby-racc)))
1948 (synopsis "Library for working with Abstract Syntax Trees")
1949 (description
1950 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1951 It does this through immutable data structures.")
1952 (home-page "https://whitequark.github.io/ast/")
1953 (license license:expat)))
1954
1955 (define-public ruby-sporkmonger-rack-mount
1956 ;; Testing the addressable gem requires a newer commit than that released, so
1957 ;; use an up to date version.
1958 (let ((revision "1")
1959 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1960 (package
1961 (name "ruby-sporkmonger-rack-mount")
1962 (version (git-version "0.8.3" revision commit))
1963 (source (origin
1964 (method git-fetch)
1965 (uri (git-reference
1966 (url "https://github.com/sporkmonger/rack-mount")
1967 (commit commit)))
1968 (file-name (git-file-name name version))
1969 (sha256
1970 (base32
1971 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1972 (build-system ruby-build-system)
1973 (arguments
1974 ;; Tests currently fail so disable them.
1975 ;; https://github.com/sporkmonger/rack-mount/pull/1
1976 `(#:tests? #f))
1977 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1978 (synopsis "Stackable dynamic tree based Rack router")
1979 (description
1980 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1981 continue trying routes if the response returns pass. This allows multiple
1982 routes to be nested or stacked on top of each other.")
1983 (home-page "https://github.com/sporkmonger/rack-mount")
1984 (license license:expat))))
1985
1986 (define-public ruby-ci-reporter
1987 (package
1988 (name "ruby-ci-reporter")
1989 (version "2.0.0")
1990 (source (origin
1991 (method url-fetch)
1992 (uri (rubygems-uri "ci_reporter" version))
1993 (sha256
1994 (base32
1995 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1996 (build-system ruby-build-system)
1997 (arguments
1998 `(#:test-target "rspec"))
1999 (propagated-inputs
2000 `(("ruby-builder" ,ruby-builder)))
2001 (native-inputs
2002 `(("bundler" ,bundler)
2003 ("ruby-rspec" ,ruby-rspec)))
2004 (synopsis "Generate XML reports of runs test")
2005 (description
2006 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
2007 you to generate XML reports of your test runs. The resulting files can be
2008 read by a continuous integration system that understands Ant's JUnit report
2009 format.")
2010 (home-page "https://github.com/nicksieger/ci_reporter")
2011 (license license:expat)))
2012
2013 (define-public ruby-contracts
2014 (package
2015 (name "ruby-contracts")
2016 (version "0.16.0")
2017 (source
2018 (origin
2019 (method url-fetch)
2020 (uri (rubygems-uri "contracts" version))
2021 (sha256
2022 (base32
2023 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
2024 (build-system ruby-build-system)
2025 (arguments
2026 '(#:test-target "spec"
2027 #:phases
2028 (modify-phases %standard-phases
2029 ;; Don't run or require rubocop, the code linting tool, as this is a
2030 ;; bit unnecessary.
2031 (add-after 'unpack 'dont-run-rubocop
2032 (lambda _
2033 (substitute* "Rakefile"
2034 ((".*rubocop.*") "")
2035 ((".*RuboCop.*") ""))
2036 #t)))))
2037 (native-inputs
2038 `(("ruby-rspec" ,ruby-rspec)))
2039 (synopsis "Method contracts for Ruby")
2040 (description
2041 "This library provides contracts for Ruby. A contract describes the
2042 correct inputs and output for a method, and will raise an error if a incorrect
2043 value is found.")
2044 (home-page "https://github.com/egonSchiele/contracts.ruby")
2045 (license license:bsd-2)))
2046
2047 (define-public ruby-crack
2048 (package
2049 (name "ruby-crack")
2050 (version "0.4.5")
2051 (source
2052 (origin
2053 (method url-fetch)
2054 (uri (rubygems-uri "crack" version))
2055 (sha256
2056 (base32
2057 "1cr1kfpw3vkhysvkk3wg7c54m75kd68mbm9rs5azdjdq57xid13r"))))
2058 (build-system ruby-build-system)
2059 (arguments
2060 `(#:phases
2061 (modify-phases %standard-phases
2062 (replace 'check
2063 (lambda* (#:key tests? #:allow-other-keys)
2064 (when tests?
2065 (for-each (lambda (file)
2066 (display file)(display "\n")
2067 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
2068 (find-files "test" ".*rb$")))
2069 #t)))))
2070 (propagated-inputs
2071 `(("ruby-rexml" ,ruby-rexml)))
2072 (synopsis "Simple JSON and XML parsing for Ruby")
2073 (description
2074 "@code{crack} provides really simple JSON and XML parsing, extracted from
2075 code in Merb and Rails.")
2076 (home-page "https://github.com/jnunemaker/crack")
2077 (license license:expat)))
2078
2079 (define-public ruby-cliver
2080 (package
2081 (name "ruby-cliver")
2082 (version "0.3.2")
2083 (source
2084 (origin
2085 (method url-fetch)
2086 (uri (rubygems-uri "cliver" version))
2087 (sha256
2088 (base32
2089 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
2090 (build-system ruby-build-system)
2091 (arguments
2092 '(#:phases
2093 (modify-phases %standard-phases
2094 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
2095 ;; would be nice, but the tests look to be incompatible:
2096 ;;
2097 ;; NoMethodError: undefined method `last_comment'
2098 (replace 'check
2099 (lambda* (#:key tests? #:allow-other-keys)
2100 (when tests?
2101 (invoke "rspec"))
2102 #t)))))
2103 (native-inputs
2104 `(("bundler" ,bundler)
2105 ("ruby-rspec" ,ruby-rspec-2)))
2106 (synopsis "Assertions for command-line dependencies in Ruby")
2107 (description
2108 "@code{cliver} provides a way to detect missing command-line
2109 dependencies, including versions.")
2110 (home-page "https://github.com/yaauie/cliver")
2111 (license license:expat)))
2112
2113 (define-public ruby-czmq-ffi-gen
2114 (package
2115 (name "ruby-czmq-ffi-gen")
2116 (version "0.13.0")
2117 (source
2118 (origin
2119 (method url-fetch)
2120 (uri (rubygems-uri "czmq-ffi-gen" version))
2121 (sha256
2122 (base32
2123 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2124 (build-system ruby-build-system)
2125 (arguments
2126 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2127 #:phases
2128 (modify-phases %standard-phases
2129 (add-after 'unpack 'patch-lib_dirs
2130 (lambda* (#:key inputs #:allow-other-keys)
2131 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2132 (("lib\\_dirs = \\[.*\\]")
2133 (string-append "lib_dirs = ['"
2134 (assoc-ref inputs "czmq") "/lib"
2135 "']")))
2136 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2137 (("lib\\_dirs = \\[.*\\]")
2138 (string-append "lib_dirs = ['"
2139 (assoc-ref inputs "zeromq") "/lib"
2140 "']"))))))))
2141 (inputs
2142 `(("zeromq" ,zeromq)
2143 ("czmq" ,czmq)))
2144 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2145 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2146 (description
2147 "These Ruby bindings are not intended to be directly used, but rather
2148 used by higher level bindings like those provided by CZTop.")
2149 (home-page
2150 "https://github.com/paddor/czmq-ffi-gen")
2151 (license license:isc)))
2152
2153 (define-public ruby-cztop
2154 (package
2155 (name "ruby-cztop")
2156 (version "0.12.2")
2157 (source
2158 (origin
2159 (method url-fetch)
2160 (uri (rubygems-uri "cztop" version))
2161 (sha256
2162 (base32
2163 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2164 (build-system ruby-build-system)
2165 (arguments
2166 '(#:test-target "spec"
2167 #:phases
2168 (modify-phases %standard-phases
2169 (add-after 'unpack 'patch-lib_paths
2170 (lambda* (#:key inputs #:allow-other-keys)
2171 (substitute* "lib/cztop/poller/zmq.rb"
2172 (("lib\\_paths = \\[.*\\]")
2173 (string-append "lib_paths = ['"
2174 (assoc-ref inputs "zeromq") "/lib"
2175 "']"))))))))
2176 (native-inputs
2177 `(("bundler" ,bundler)
2178 ("ruby-rspec" ,ruby-rspec)))
2179 (inputs
2180 `(("zeromq" ,zeromq)))
2181 (propagated-inputs
2182 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2183 (synopsis "CZMQ Ruby bindings")
2184 (description
2185 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2186 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2187 support for security mechanisms.")
2188 (home-page "https://github.com/paddor/cztop")
2189 (license license:isc)))
2190
2191 (define-public ruby-saikuro-treemap
2192 (package
2193 (name "ruby-saikuro-treemap")
2194 (version "0.2.0")
2195 (source (origin
2196 (method url-fetch)
2197 (uri (rubygems-uri "saikuro_treemap" version))
2198 (sha256
2199 (base32
2200 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2201 (build-system ruby-build-system)
2202 ;; Some of the tests fail because the generated JSON has keys in a
2203 ;; different order. This is a problem with the test suite rather than any
2204 ;; of the involved libraries.
2205 (arguments `(#:tests? #f))
2206 (propagated-inputs
2207 `(("ruby-json-pure" ,ruby-json-pure)
2208 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2209 (synopsis "Generate complexity treemap based on saikuro analysis")
2210 (description
2211 "This gem generates a treemap showing the complexity of Ruby code on
2212 which it is run. It uses Saikuro under the covers to analyze Ruby code
2213 complexity.")
2214 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2215 (license license:expat)))
2216
2217 (define-public ruby-oauth2
2218 (package
2219 (name "ruby-oauth2")
2220 (version "1.4.2")
2221 (source
2222 (origin
2223 (method url-fetch)
2224 (uri (rubygems-uri "oauth2" version))
2225 (sha256
2226 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2227 (build-system ruby-build-system)
2228 (arguments
2229 '(#:tests? #f)) ; no included tests
2230 (propagated-inputs
2231 `(("ruby-faraday" ,ruby-faraday)
2232 ("ruby-jwt" ,ruby-jwt)
2233 ("ruby-multi-json" ,ruby-multi-json)
2234 ("ruby-multi-xml" ,ruby-multi-xml)
2235 ("ruby-rack" ,ruby-rack)))
2236 (synopsis "Ruby wrapper for the OAuth 2.0")
2237 (description
2238 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2239 with a similar style to the original OAuth spec.")
2240 (home-page "https://github.com/oauth-xx/oauth2")
2241 (license license:expat)))
2242
2243 (define-public ruby-omniauth
2244 (package
2245 (name "ruby-omniauth")
2246 (version "1.9.1")
2247 (source
2248 (origin
2249 (method url-fetch)
2250 (uri (rubygems-uri "omniauth" version))
2251 (sha256
2252 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2253 (build-system ruby-build-system)
2254 (arguments
2255 '(#:tests? #f)) ; No included tests
2256 (propagated-inputs
2257 `(("ruby-hashie" ,ruby-hashie)
2258 ("ruby-rack" ,ruby-rack)))
2259 (synopsis "Generalized Rack framework for multiple-provider authentication")
2260 (description
2261 "This package provides a generalized Rack framework for multiple-provider
2262 authentication.")
2263 (home-page "https://github.com/omniauth/omniauth")
2264 (license license:expat)))
2265
2266 (define-public ruby-omniauth-oauth2
2267 (package
2268 (name "ruby-omniauth-oauth2")
2269 (version "1.6.0")
2270 (source
2271 (origin
2272 (method url-fetch)
2273 (uri (rubygems-uri "omniauth-oauth2" version))
2274 (sha256
2275 (base32
2276 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2277 (build-system ruby-build-system)
2278 (arguments
2279 '(#:phases
2280 (modify-phases %standard-phases
2281 (add-after 'unpack 'remove-unnecessary-dependencies
2282 (lambda _
2283 ;; The coveralls gem submits coverage information to an online
2284 ;; service, and is unnecessary when running the tests
2285 (substitute* "Gemfile"
2286 ((".*coveralls\"") ""))
2287 (substitute* "spec/helper.rb"
2288 (("require \"coveralls\"") "")
2289 (("Coveralls::SimpleCov::Formatter") ""))
2290 #t)))))
2291 (propagated-inputs
2292 `(("ruby-oauth2" ,ruby-oauth2)
2293 ("ruby-omniauth" ,ruby-omniauth)))
2294 (native-inputs
2295 `(("bundler" ,bundler)
2296 ("ruby-rspec" ,ruby-rspec)
2297 ("ruby-simplecov" ,ruby-simplecov)
2298 ("ruby-rack-test" ,ruby-rack-test)
2299 ("ruby-webmock" ,ruby-webmock-2)))
2300 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2301 (description
2302 "This library provides a generic OAuth2 strategy for OmniAuth. It
2303 doesn't provide a way to gather user information, so should be used as a
2304 building block for authentication strategies.")
2305 (home-page "https://github.com/omniauth/omniauth-oauth2")
2306 (license license:expat)))
2307
2308 (define-public ruby-open4
2309 (package
2310 (name "ruby-open4")
2311 (version "1.3.4")
2312 (source
2313 (origin
2314 (method url-fetch)
2315 (uri (rubygems-uri "open4" version))
2316 (sha256
2317 (base32
2318 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2319 (build-system ruby-build-system)
2320 (arguments
2321 '(#:phases
2322 (modify-phases %standard-phases
2323 (add-after 'unpack 'patch
2324 (lambda _
2325 (substitute* "rakefile"
2326 ;; Update the Rakefile so it works
2327 (("-rubygems") "-rrubygems")
2328 (("Config") "RbConfig"))
2329 #t))
2330 (add-before 'check 'set-LIB
2331 (lambda _
2332 ;; This is used in the rakefile when running the tests
2333 (setenv "LIB" "open4")
2334 #t)))))
2335 (synopsis "Open child processes from Ruby and manage them easily")
2336 (description
2337 "@code{Open4} is a Ruby library to run child processes and manage their
2338 input and output.")
2339 (home-page "https://github.com/ahoward/open4")
2340 (license license:ruby)))
2341
2342 (define-public ruby-options
2343 (package
2344 (name "ruby-options")
2345 (version "2.3.2")
2346 (source
2347 (origin
2348 (method url-fetch)
2349 (uri (rubygems-uri "options" version))
2350 (sha256
2351 (base32
2352 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2353 (build-system ruby-build-system)
2354 (arguments
2355 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2356 #:phases
2357 (modify-phases %standard-phases
2358 (add-before 'check 'set-LIB
2359 (lambda _
2360 ;; This is used in the Rakefile, and setting it avoids an issue
2361 ;; with running the tests.
2362 (setenv "LIB" "options")
2363 #t)))))
2364 (synopsis "Ruby library to parse options from *args cleanly")
2365 (description
2366 "The @code{options} library helps with parsing keyword options in Ruby
2367 functions.")
2368 (home-page "https://github.com/ahoward/options")
2369 (license license:ruby)))
2370
2371 (define-public ruby-erubi
2372 (package
2373 (name "ruby-erubi")
2374 (version "1.8.0")
2375 (source
2376 (origin
2377 (method url-fetch)
2378 (uri (rubygems-uri "erubi" version))
2379 (sha256
2380 (base32
2381 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2382 (build-system ruby-build-system)
2383 (synopsis "ERB template engine for Ruby")
2384 (description
2385 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2386 Erubis")
2387 (home-page "https://github.com/jeremyevans/erubi")
2388 (license license:expat)))
2389
2390 (define-public ruby-erubis
2391 (package
2392 (name "ruby-erubis")
2393 (version "2.7.0")
2394 (source
2395 (origin
2396 (method url-fetch)
2397 (uri (rubygems-uri "erubis" version))
2398 (sha256
2399 (base32
2400 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2401 (build-system ruby-build-system)
2402 (arguments
2403 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2404 (synopsis "Implementation of embedded Ruby (eRuby)")
2405 (description
2406 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2407 features such as multi-language support, auto escaping, auto trimming spaces
2408 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2409 support.")
2410 (home-page "http://www.kuwata-lab.com/erubis/")
2411 (license license:expat)))
2412
2413 (define-public ruby-ethon
2414 (package
2415 (name "ruby-ethon")
2416 (version "0.12.0")
2417 (source
2418 (origin
2419 (method url-fetch)
2420 (uri (rubygems-uri "ethon" version))
2421 (sha256
2422 (base32
2423 "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9"))))
2424 (build-system ruby-build-system)
2425 (arguments
2426 `(#:tests? #f)) ; no included tests
2427 (inputs
2428 `(("curl" ,curl)))
2429 (propagated-inputs
2430 `(("ruby-ffi" ,ruby-ffi)))
2431 (synopsis "Very lightweight @code{libcurl} wrapper")
2432 (description
2433 "Ethon is a very basic @code{libcurl} wrapper using ffi.")
2434 (home-page "https://github.com/typhoeus/ethon")
2435 (license license:expat)))
2436
2437 (define-public ruby-execjs
2438 (package
2439 (name "ruby-execjs")
2440 (version "2.7.0")
2441 (source
2442 (origin
2443 ;; fetch from github as the gem does not contain testing code
2444 (method git-fetch)
2445 (uri (git-reference
2446 (url "https://github.com/rails/execjs")
2447 (commit (string-append "v" version))))
2448 (file-name (git-file-name name version))
2449 (sha256
2450 (base32
2451 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2452 (build-system ruby-build-system)
2453 (native-inputs
2454 `(("bundler" ,bundler)
2455 ;; The test suite tests all the available backends. Currenly, this just
2456 ;; means the node backend.
2457 ;;
2458 ;; PASSED: test:node
2459 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2460 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2461 ("node" ,node)))
2462 (synopsis "Run JavaScript code from Ruby")
2463 (description
2464 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2465 runtime to evaluate your JavaScript program, then returns the result to you as
2466 a Ruby object.")
2467 (home-page "https://github.com/rails/execjs")
2468 (license license:expat)))
2469
2470 (define-public ruby-fakefs
2471 (package
2472 (name "ruby-fakefs")
2473 (version "1.2.2")
2474 (home-page "https://github.com/fakefs/fakefs")
2475 (source (origin
2476 ;; The Rubygems release does not contain tests.
2477 (method git-fetch)
2478 (uri (git-reference
2479 (url home-page)
2480 (commit (string-append "v" version))))
2481 (file-name (git-file-name name version))
2482 (sha256
2483 (base32
2484 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2485 (build-system ruby-build-system)
2486 (arguments
2487 '(#:phases (modify-phases %standard-phases
2488 (replace 'replace-git-ls-files
2489 (lambda _
2490 (substitute* "fakefs.gemspec"
2491 (("`git ls-files lib README.md LICENSE`")
2492 "`find lib README.md LICENSE -type f | sort`"))
2493 #t))
2494 (add-before 'check 'remove-version-constraints
2495 (lambda _
2496 ;; Drop hard version requirements for test dependencies.
2497 (substitute* "fakefs.gemspec"
2498 (("(.*add_development_dependency .*), .*" _ dep)
2499 (string-append dep "\n")))
2500 #t)))))
2501 (native-inputs
2502 `(("ruby-bump" ,ruby-bump)
2503 ("ruby-maxitest" ,ruby-maxitest)
2504 ("ruby-rubocop" ,ruby-rubocop)
2505 ("ruby-rspec" ,ruby-rspec)))
2506 (synopsis "Fake file system for Ruby")
2507 (description
2508 "This package provides a fake file system for use in test suites. It
2509 avoids the need for manually creating temporary directories, or dealing
2510 with platform intricacies in @code{File} and @code{FileUtils}.")
2511 (license license:expat)))
2512
2513 (define-public ruby-orderedhash
2514 (package
2515 (name "ruby-orderedhash")
2516 (version "0.0.6")
2517 (source (origin
2518 (method url-fetch)
2519 (uri (rubygems-uri "orderedhash" version))
2520 (sha256
2521 (base32
2522 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2523 (build-system ruby-build-system)
2524 (arguments
2525 '(#:tests? #f)) ; no test suite
2526 (synopsis "Ruby library providing an order-preserving hash")
2527 (description "Orderedhash is a Ruby library providing a hash
2528 implementation that preserves the order of items and features some array-like
2529 extensions.")
2530 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2531 (license license:public-domain)))
2532
2533 (define-public ruby-libxml
2534 (package
2535 (name "ruby-libxml")
2536 (version "3.0.0")
2537 (source
2538 (origin
2539 (method url-fetch)
2540 (uri (rubygems-uri "libxml-ruby" version))
2541 (sha256
2542 (base32
2543 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2544 (build-system ruby-build-system)
2545 (inputs
2546 `(("zlib" ,zlib)
2547 ("libxml2" ,libxml2)))
2548 (arguments
2549 '(#:tests? #f ; test suite hangs for unknown reason
2550 #:gem-flags
2551 (list "--no-document" ; TODO: Re-enable when documentation
2552 ; generation works
2553 "--"
2554 (string-append "--with-xml2-include="
2555 (assoc-ref %build-inputs "libxml2")
2556 "/include/libxml2" ))))
2557 (synopsis "Ruby bindings for GNOME Libxml2")
2558 (description "The Libxml-Ruby project provides Ruby language bindings for
2559 the GNOME Libxml2 XML toolkit.")
2560 (home-page "https://xml4r.github.com/libxml-ruby")
2561 (license license:expat)))
2562
2563 (define-public ruby-lino
2564 (package
2565 (name "ruby-lino")
2566 (version "1.1.0")
2567 (source
2568 (origin
2569 (method url-fetch)
2570 (uri (rubygems-uri "lino" version))
2571 (sha256
2572 (base32
2573 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2574 (build-system ruby-build-system)
2575 (arguments
2576 '(#:tests? #f)) ; No included tests
2577 (propagated-inputs
2578 `(("ruby-hamster" ,ruby-hamster)
2579 ("ruby-open4" ,ruby-open4)))
2580 (synopsis "Build and execute commands in Ruby")
2581 (description
2582 "@code{Lino} provides an interface to run external commands. It provides
2583 an interface to add options as well as managing the standard input, output and
2584 error streams.")
2585 (home-page "https://github.com/tobyclemson/lino")
2586 (license license:expat)))
2587
2588 (define-public ruby-xml-simple
2589 (package
2590 (name "ruby-xml-simple")
2591 (version "1.1.5")
2592 (source (origin
2593 (method url-fetch)
2594 (uri (rubygems-uri "xml-simple" version))
2595 (sha256
2596 (base32
2597 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2598 (build-system ruby-build-system)
2599 (arguments
2600 '(#:tests? #f)) ; no test suite
2601 (synopsis "Simple Ruby library for XML processing")
2602 (description "This library provides a simple API for XML processing in
2603 Ruby.")
2604 (home-page "https://github.com/maik/xml-simple")
2605 (license license:ruby)))
2606
2607 (define-public ruby-thor
2608 (package
2609 (name "ruby-thor")
2610 (version "1.0.1")
2611 (source (origin
2612 ;; Pull from git because the gem has no tests.
2613 (method git-fetch)
2614 (uri (git-reference
2615 (url "https://github.com/erikhuda/thor")
2616 (commit (string-append "v" version))))
2617 (file-name (git-file-name name version))
2618 (sha256
2619 (base32
2620 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2621 (build-system ruby-build-system)
2622 (arguments
2623 '(#:phases (modify-phases %standard-phases
2624 (add-after 'unpack 'fix-readline-tests
2625 (lambda _
2626 ;; Ensure Readline is initialized before running the
2627 ;; test to avoid a type clash with the mock ::Readline.
2628 ;; See <https://github.com/erikhuda/thor/pull/717>.
2629 (substitute* "spec/line_editor/readline_spec.rb"
2630 (("unless defined\\? ::Readline" all)
2631 (string-append "Thor::LineEditor::Readline.available?\n"
2632 all)))
2633 #t))
2634 (add-after 'unpack 'remove-coveralls-dependency
2635 (lambda _
2636 ;; Do not hook the test suite into the online
2637 ;; coveralls service.
2638 (substitute* "Gemfile"
2639 ((".*coveralls.*") ""))
2640 (substitute* "spec/helper.rb"
2641 (("require \"coveralls\"") "")
2642 (("Coveralls::SimpleCov::Formatter") "")
2643 ;; Also drop the WebMock dependency which is only
2644 ;; present to allow a coveralls.io connection, and
2645 ;; would otherwise introduce a circular dependency.
2646 (("require \"webmock/rspec\"") "")
2647 (("WebMock\\.disable_net_connect.*") ""))
2648 #t))
2649 (add-after 'unpack 'disable-network-tests
2650 (lambda _
2651 ;; These tests attempt to look up example.com.
2652 (substitute* "spec/actions/file_manipulation_spec.rb"
2653 (("it \"accepts (https?) remote sources" _ proto)
2654 (string-append "xit \"accepts " proto " remote sources")))
2655 #t))
2656 (add-after 'unpack 'disable-quality-tests
2657 (lambda _
2658 ;; These tests attempt to check the git repository for
2659 ;; tabs vs spaces, double vs single quotes, etc, and
2660 ;; depend on the git checkout.
2661 (delete-file "spec/quality_spec.rb")
2662 #t))
2663 (add-before 'check 'make-files-writable
2664 (lambda _
2665 ;; The tests needs rw access to the test suite.
2666 (for-each make-file-writable (find-files "spec"))
2667 #t))
2668 (replace 'check
2669 (lambda _
2670 (invoke "rspec" "spec"))))))
2671 (native-inputs
2672 `(("ruby-rspec" ,ruby-rspec)
2673 ("ruby-simplecov" ,ruby-simplecov)))
2674 (synopsis "Ruby toolkit for building command-line interfaces")
2675 (description "Thor is a toolkit for building powerful command-line
2676 interfaces.")
2677 (home-page "http://whatisthor.com/")
2678 (license license:expat)))
2679
2680 (define-public ruby-lumberjack
2681 (package
2682 (name "ruby-lumberjack")
2683 (version "1.0.13")
2684 (source (origin
2685 (method url-fetch)
2686 (uri (rubygems-uri "lumberjack" version))
2687 (sha256
2688 (base32
2689 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2690 (build-system ruby-build-system)
2691 (native-inputs
2692 `(("ruby-rspec" ,ruby-rspec)
2693 ("ruby-timecop" ,ruby-timecop)))
2694 (synopsis "Logging utility library for Ruby")
2695 (description "Lumberjack is a simple logging utility that can be a drop in
2696 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2697 for automatically rolling log files even with multiple processes writing the
2698 same log file.")
2699 (home-page "https://github.com/bdurand/lumberjack")
2700 (license license:expat)))
2701
2702 (define-public ruby-rbnacl
2703 (package
2704 (name "ruby-rbnacl")
2705 (version "6.0.1")
2706 (source
2707 (origin
2708 (method url-fetch)
2709 (uri (rubygems-uri "rbnacl" version))
2710 (sha256
2711 (base32
2712 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2713 (build-system ruby-build-system)
2714 (arguments
2715 `(#:phases
2716 (modify-phases %standard-phases
2717 (add-after 'unpack 'remove-unnecessary-dependencies
2718 (lambda _
2719 ;; Coveralls relates to a network service, and Rubocop to code
2720 ;; linting and both are unnecessary to run the tests
2721 (substitute* "Gemfile"
2722 ((".*rubocop.*") "\n")
2723 ((".*guard-rspec.*") "\n")
2724 ((".*coveralls.*") "\n"))
2725 (substitute* "spec/spec_helper.rb"
2726 (("require \"coveralls\"") "")
2727 (("Coveralls.wear!") ""))
2728 #t))
2729 (add-after 'unpack 'use-libsodium-from-store
2730 (lambda* (#:key inputs #:allow-other-keys)
2731 (substitute* '("lib/rbnacl/init.rb"
2732 "lib/rbnacl/sodium.rb")
2733 (("ffi_lib \\[.+\\]")
2734 (string-append "ffi_lib [\""
2735 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2736 "\"]")))
2737 #t))
2738 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2739 (replace 'check
2740 (lambda* (#:key tests? #:allow-other-keys)
2741 (when tests?
2742 (invoke "rspec"))
2743 #t)))))
2744 (propagated-inputs
2745 `(("ruby-ffi" ,ruby-ffi)))
2746 (inputs
2747 `(("libsodium" ,libsodium)))
2748 (native-inputs
2749 `(("bundler" ,bundler)
2750 ("ruby-rspec" ,ruby-rspec)))
2751 (synopsis "Ruby FFI binding to libsodium")
2752 (description
2753 "This package provides Ruby FFI bindings to the Networking and
2754 Cryptography (NaCl) library, also known as libsodium. This provides a
2755 high-level toolkit for building cryptographic systems and protocols.")
2756 (home-page "https://github.com/crypto-rb/rbnacl")
2757 (license license:expat)))
2758
2759 (define-public ruby-nenv
2760 (package
2761 (name "ruby-nenv")
2762 (version "0.3.0")
2763 (source (origin
2764 (method url-fetch)
2765 (uri (rubygems-uri "nenv" version))
2766 (sha256
2767 (base32
2768 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2769 (build-system ruby-build-system)
2770 (arguments
2771 `(#:tests? #f)) ; no tests included
2772 (native-inputs
2773 `(("ruby-rspec" ,ruby-rspec)
2774 ("bundler" ,bundler)))
2775 (synopsis "Ruby interface for modifying the environment")
2776 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2777 and inspect the environment.")
2778 (home-page "https://github.com/e2/nenv")
2779 (license license:expat)))
2780
2781 (define-public ruby-ptools
2782 (package
2783 (name "ruby-ptools")
2784 (version "1.3.5")
2785 (source (origin
2786 (method url-fetch)
2787 (uri (rubygems-uri "ptools" version))
2788 (sha256
2789 (base32
2790 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2791 (build-system ruby-build-system)
2792 (arguments
2793 '(#:phases (modify-phases %standard-phases
2794 (add-after 'unpack 'patch-/bin/ls
2795 (lambda _
2796 (substitute* "test/test_binary.rb"
2797 (("/bin/ls")
2798 (which "ls")))
2799 #t))
2800 (add-before 'install 'create-gem
2801 (lambda _
2802 ;; Do not attempt to sign the gem.
2803 (substitute* "Rakefile"
2804 (("spec\\.signing_key = .*")
2805 ""))
2806 (invoke "rake" "gem:create"))))))
2807 (synopsis "Extra methods for Ruby's @code{File} class")
2808 (description
2809 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2810 class with many additional methods modelled after common POSIX tools, such as
2811 @code{File.which} for finding executables, @code{File.tail} to print the last
2812 lines of a file, @code{File.wc} to count words, and so on.")
2813 (home-page "https://github.com/djberg96/ptools")
2814 (license license:artistic2.0)))
2815
2816 (define-public ruby-permutation
2817 (package
2818 (name "ruby-permutation")
2819 (version "0.1.8")
2820 (source (origin
2821 (method url-fetch)
2822 (uri (rubygems-uri "permutation" version))
2823 (sha256
2824 (base32
2825 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2826 (build-system ruby-build-system)
2827 (arguments
2828 `(#:phases
2829 (modify-phases %standard-phases
2830 (add-after 'unpack 'fix-rakefile
2831 (lambda _
2832 (substitute* "Rakefile"
2833 (("require 'rake/gempackagetask'")
2834 "require 'rubygems/package_task'")
2835 (("include Config") ""))
2836 #t))
2837 (replace 'check
2838 (lambda _
2839 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2840 (synopsis "Library to perform operations with sequence permutations")
2841 (description "This package provides a Ruby library to perform different
2842 operations with permutations of sequences, such as strings and arrays.")
2843 (home-page "https://flori.github.io/permutation")
2844 (license license:gpl2))) ; GPL 2 only
2845
2846 (define-public ruby-shellany
2847 (package
2848 (name "ruby-shellany")
2849 (version "0.0.1")
2850 (source (origin
2851 (method url-fetch)
2852 (uri (rubygems-uri "shellany" version))
2853 (sha256
2854 (base32
2855 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2856 (build-system ruby-build-system)
2857 (arguments
2858 `(#:test-target "default"
2859 #:phases
2860 (modify-phases %standard-phases
2861 (add-after 'unpack 'fix-version-test
2862 (lambda _
2863 (substitute* "spec/shellany_spec.rb"
2864 (("^RSpec") "require \"shellany\"\nRSpec"))
2865 #t)))))
2866 (native-inputs
2867 `(("ruby-rspec" ,ruby-rspec)
2868 ("ruby-nenv" ,ruby-nenv)
2869 ("bundler" ,bundler)))
2870 (synopsis "Capture command output")
2871 (description "Shellany is a Ruby library providing functions to capture
2872 the output produced by running shell commands.")
2873 (home-page "https://rubygems.org/gems/shellany")
2874 (license license:expat)))
2875
2876 (define-public ruby-notiffany
2877 (package
2878 (name "ruby-notiffany")
2879 (version "0.1.3")
2880 (source (origin
2881 (method url-fetch)
2882 (uri (rubygems-uri "notiffany" version))
2883 (sha256
2884 (base32
2885 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2886 (build-system ruby-build-system)
2887 ;; Tests are not included in the gem.
2888 (arguments `(#:tests? #f))
2889 (propagated-inputs
2890 `(("ruby-shellany" ,ruby-shellany)
2891 ("ruby-nenv" ,ruby-nenv)))
2892 (native-inputs
2893 `(("bundler" ,bundler)))
2894 (synopsis "Wrapper library for notification libraries")
2895 (description "Notiffany is a Ruby wrapper library for notification
2896 libraries such as Libnotify.")
2897 (home-page "https://github.com/guard/notiffany")
2898 (license license:expat)))
2899
2900 (define-public ruby-forking-test-runner
2901 (package
2902 (name "ruby-forking-test-runner")
2903 (version "1.6.0")
2904 (home-page "https://github.com/grosser/forking_test_runner")
2905 (source (origin
2906 (method git-fetch)
2907 (uri (git-reference (url home-page)
2908 (commit (string-append "v" version))))
2909 (file-name (git-file-name name version))
2910 (sha256
2911 (base32
2912 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2913 (build-system ruby-build-system)
2914 (arguments
2915 '(#:test-target "spec"
2916 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2917 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2918 #:tests? #f
2919 #:phases (modify-phases %standard-phases
2920 (replace 'replace-git-ls-files
2921 (lambda _
2922 (substitute* "forking_test_runner.gemspec"
2923 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2924 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2925 #t))
2926 (add-before 'check 'remove-version-constraints
2927 (lambda _
2928 ;; Ignore hard coded version constraints for the tests.
2929 (delete-file "Gemfile.lock")
2930 #t))
2931 (add-before 'check 'set-HOME
2932 (lambda _
2933 ;; Many tests invoke Bundler, and fails when Bundler
2934 ;; warns that /homeless-shelter does not exist.
2935 (setenv "HOME" "/tmp")
2936 #t)))))
2937 (native-inputs
2938 `(("ruby-activerecord" ,ruby-activerecord)
2939 ("ruby-bump" ,ruby-bump)
2940 ("ruby-rspec" ,ruby-rspec)
2941 ("ruby-sqlite3" ,ruby-sqlite3)
2942 ("ruby-wwtd" ,ruby-wwtd)))
2943 (propagated-inputs
2944 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2945 (synopsis "Run every test in a fork")
2946 (description
2947 "This package is a wrapper around @code{parallel_tests} that runs every
2948 test in a fork to avoid pollution and get clean output per test.")
2949 (license license:expat)))
2950
2951 (define-public ruby-formatador
2952 (package
2953 (name "ruby-formatador")
2954 (version "0.2.5")
2955 (source (origin
2956 (method url-fetch)
2957 (uri (rubygems-uri "formatador" version))
2958 (sha256
2959 (base32
2960 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2961 (build-system ruby-build-system)
2962 ;; Circular dependency: Tests require ruby-shindo, which requires
2963 ;; ruby-formatador at runtime.
2964 (arguments `(#:tests? #f))
2965 (synopsis "Ruby library to format text on stdout")
2966 (description "Formatador is a Ruby library to format text printed to the
2967 standard output stream.")
2968 (home-page "https://github.com/geemus/formatador")
2969 (license license:expat)))
2970
2971 (define-public ruby-fuubar
2972 (package
2973 (name "ruby-fuubar")
2974 (version "2.3.2")
2975 (source
2976 (origin
2977 ;; Fetch from the git repository, as the gem package doesn't include
2978 ;; the tests.
2979 (method git-fetch)
2980 (uri (git-reference
2981 (url "https://github.com/thekompanee/fuubar")
2982 (commit (string-append "releases/v" version))))
2983 (file-name (git-file-name name version))
2984 (sha256
2985 (base32
2986 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2987 (build-system ruby-build-system)
2988 (arguments
2989 '(;; TODO: Some tests fail, unsure why.
2990 ;; 21 examples, 7 failures
2991 #:tests? #f
2992 #:phases
2993 (modify-phases %standard-phases
2994 (add-before 'build 'delete-certificate
2995 (lambda _
2996 ;; Remove 's.cert_chain' as we do not build with a private key
2997 (substitute* "fuubar.gemspec"
2998 ((".*cert_chain.*") "")
2999 ((".*signing_key.*") ""))
3000 #t))
3001 (replace 'check
3002 (lambda* (#:key tests? #:allow-other-keys)
3003 (when tests?
3004 (invoke "rspec"))
3005 #t)))))
3006 (native-inputs
3007 `(("bundler" ,bundler)))
3008 (propagated-inputs
3009 `(("ruby-rspec-core" ,ruby-rspec-core)
3010 ("ruby-progressbar" ,ruby-progressbar)))
3011 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
3012 (description
3013 "Fuubar is an RSpec formatter that uses a progress bar instead of a
3014 string of letters and dots as feedback. It also stops on the first test
3015 failure.")
3016 (home-page "https://github.com/thekompanee/fuubar")
3017 (license license:expat)))
3018
3019 (define-public ruby-haml
3020 (package
3021 (name "ruby-haml")
3022 (version "5.0.4")
3023 (source
3024 (origin
3025 (method url-fetch)
3026 (uri (rubygems-uri "haml" version))
3027 (sha256
3028 (base32
3029 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
3030 (build-system ruby-build-system)
3031 (arguments
3032 '(#:tests? #f)) ; No included tests
3033 (propagated-inputs
3034 `(("ruby-tilt" ,ruby-tilt)
3035 ("ruby-temple" ,ruby-temple)))
3036 (synopsis "Haml is a Ruby library to generate HTML documents")
3037 (description
3038 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
3039 HTML or XML that is designed to express the structure of documents using
3040 indentation rather than closing tags. It was originally envisioned as a
3041 plugin for Ruby on Rails, but it can function as a stand-alone templating
3042 engine.")
3043 (home-page "http://haml.info/")
3044 (license license:expat)))
3045
3046 (define-public ruby-hamster
3047 (package
3048 (name "ruby-hamster")
3049 (version "3.0.0")
3050 (source
3051 (origin
3052 (method url-fetch)
3053 (uri (rubygems-uri "hamster" version))
3054 (sha256
3055 (base32
3056 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
3057 (build-system ruby-build-system)
3058 (arguments
3059 '(#:phases
3060 (modify-phases %standard-phases
3061 (add-after 'unpack 'remove-unnecessary-dependencies
3062 (lambda _
3063 ;; pry is a debugging tool, and is unnecessary when running the
3064 ;; tests
3065 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
3066 (("require 'pry'") ""))
3067 (substitute* "spec/spec_helper.rb"
3068 (("require \"pry\"") "")
3069 ;; CodeClimate is an online service, and is unnecessary for
3070 ;; running the tests
3071 (("require \"codeclimate-test-reporter\"") "")
3072 (("CodeClimate.*\n") ""))
3073 #t))
3074 ;; No Rakefile is included, so run rspec directly.
3075 (replace 'check
3076 (lambda* (#:key tests? #:allow-other-keys)
3077 (when tests?
3078 (invoke "rspec"))
3079 #t)))))
3080 (propagated-inputs
3081 `(("ruby-concurrent" ,ruby-concurrent)))
3082 (native-inputs
3083 `(("ruby-rspec" ,ruby-rspec)))
3084 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
3085 (description
3086 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
3087 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
3088 immutable queue or stack).")
3089 (home-page "https://github.com/hamstergem/hamster")
3090 (license license:expat)))
3091
3092 (define-public ruby-hashdiff
3093 (package
3094 (name "ruby-hashdiff")
3095 (version "1.0.1")
3096 (source
3097 (origin
3098 (method url-fetch)
3099 (uri (rubygems-uri "hashdiff" version))
3100 (sha256
3101 (base32
3102 "1nynpl0xbj0nphqx1qlmyggq58ms1phf5i03hk64wcc0a17x1m1c"))))
3103 (build-system ruby-build-system)
3104 (arguments
3105 '(#:phases
3106 (modify-phases %standard-phases
3107 ;; Run tests directly via rspec to avoid depending on rubocop.
3108 (replace 'check
3109 (lambda* (#:key tests? #:allow-other-keys)
3110 (when tests?
3111 (invoke "rspec"))
3112 #t)))))
3113 (native-inputs
3114 `(("bundler" ,bundler)
3115 ("ruby-rspec" ,ruby-rspec-2)))
3116 (synopsis "HashDiff computes the smallest difference between two hashes")
3117 (description
3118 "HashDiff is a Ruby library to compute the smallest difference between
3119 two hashes.")
3120 (home-page "https://github.com/liufengyun/hashdiff")
3121 (license license:expat)))
3122
3123 (define-public ruby-hydra
3124 ;; No releases yet.
3125 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
3126 (revision "0"))
3127 (package
3128 (name "ruby-hydra")
3129 (version (git-version "0.0" revision commit))
3130 (home-page "https://github.com/hyphenation/hydra")
3131 (source (origin
3132 (method git-fetch)
3133 (uri (git-reference (url home-page) (commit commit)))
3134 (file-name (git-file-name name version))
3135 (sha256
3136 (base32
3137 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3138 (build-system ruby-build-system)
3139 (arguments
3140 '(#:phases (modify-phases %standard-phases
3141 (add-after 'unpack 'make-files-writable
3142 (lambda _
3143 (for-each make-file-writable (find-files "."))
3144 #t))
3145 (replace 'check
3146 (lambda _
3147 (invoke "rspec"))))))
3148 (native-inputs
3149 `(("ruby-rspec" ,ruby-rspec)))
3150 (propagated-inputs
3151 `(("ruby-byebug" ,ruby-byebug)))
3152 (synopsis "Ruby hyphenation patterns")
3153 (description
3154 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3155 (license license:expat))))
3156
3157 (define-public ruby-shindo
3158 (package
3159 (name "ruby-shindo")
3160 (version "0.3.8")
3161 (source (origin
3162 (method url-fetch)
3163 (uri (rubygems-uri "shindo" version))
3164 (sha256
3165 (base32
3166 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3167 (build-system ruby-build-system)
3168 (arguments
3169 `(#:test-target "shindo_tests"
3170 #:phases
3171 (modify-phases %standard-phases
3172 (add-after 'unpack 'fix-tests
3173 (lambda _
3174 (substitute* "tests/tests_helper.rb"
3175 (("-rubygems") ""))
3176 (substitute* "Rakefile"
3177 (("system \"shindo") "system \"./bin/shindo")
3178 ;; This test doesn't work, so we disable it.
3179 (("fail \"The build_error test should fail") "#")
3180 ((" -rubygems") ""))
3181 #t)))))
3182 (propagated-inputs
3183 `(("ruby-formatador" ,ruby-formatador)))
3184 (synopsis "Simple depth first Ruby testing")
3185 (description "Shindo is a simple depth first testing library for Ruby.")
3186 (home-page "https://github.com/geemus/shindo")
3187 (license license:expat)))
3188
3189 (define-public ruby-rubygems-tasks
3190 (package
3191 (name "ruby-rubygems-tasks")
3192 (version "0.2.5")
3193 (source (origin
3194 (method url-fetch)
3195 (uri (rubygems-uri "rubygems-tasks" version))
3196 (sha256
3197 (base32
3198 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3199 (build-system ruby-build-system)
3200 ;; Tests need Internet access.
3201 (arguments `(#:tests? #f))
3202 (native-inputs
3203 `(("ruby-rspec" ,ruby-rspec)
3204 ("ruby-yard" ,ruby-yard)))
3205 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3206 (description "Rubygems-task provides Rake tasks for managing and releasing
3207 Ruby Gems.")
3208 (home-page "https://github.com/postmodern/rubygems-tasks")
3209 (license license:expat)))
3210
3211 (define-public ruby-rubyzip
3212 (package
3213 (name "ruby-rubyzip")
3214 (version "1.2.1")
3215 (source
3216 (origin
3217 (method url-fetch)
3218 (uri (rubygems-uri "rubyzip" version))
3219 (sha256
3220 (base32
3221 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3222 (build-system ruby-build-system)
3223 (arguments
3224 '(#:phases
3225 (modify-phases %standard-phases
3226 (add-before 'check 'patch-tests
3227 (lambda* (#:key inputs #:allow-other-keys)
3228 (substitute* "test/gentestfiles.rb"
3229 (("/usr/bin/zip")
3230 (string-append
3231 (assoc-ref inputs "zip") "/bin/zip")))
3232 (substitute* "test/input_stream_test.rb"
3233 (("/usr/bin/env ruby") (which "ruby")))
3234 #t)))))
3235 (native-inputs
3236 `(("bundler" ,bundler)
3237 ("ruby-simplecov" ,ruby-simplecov)
3238 ("zip" ,zip)
3239 ("unzip" ,unzip)))
3240 (synopsis "Ruby module is for reading and writing zip files")
3241 (description
3242 "The rubyzip module provides ways to read from and create zip files.")
3243 (home-page "https://github.com/rubyzip/rubyzip")
3244 (license license:bsd-2)))
3245
3246 (define-public ruby-simplecov-html
3247 (package
3248 (name "ruby-simplecov-html")
3249 (version "0.10.2")
3250 (source (origin
3251 (method url-fetch)
3252 (uri (rubygems-uri "simplecov-html" version))
3253 (sha256
3254 (base32
3255 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3256 (build-system ruby-build-system)
3257 (arguments `(#:tests? #f)) ; there are no tests
3258 (native-inputs
3259 `(("bundler" ,bundler)))
3260 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3261 (description "This package provides the default HTML formatter for
3262 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3263 (home-page "https://github.com/colszowka/simplecov-html")
3264 (license license:expat)))
3265
3266 (define-public ruby-simplecov
3267 (package
3268 (name "ruby-simplecov")
3269 (version "0.17.1")
3270 (source (origin
3271 (method url-fetch)
3272 (uri (rubygems-uri "simplecov" version))
3273 (sha256
3274 (base32
3275 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3276 (build-system ruby-build-system)
3277 ;; Simplecov depends on rubocop for code style checking at build time.
3278 ;; Rubocop needs simplecov at build time.
3279 (arguments `(#:tests? #f))
3280 (propagated-inputs
3281 `(("ruby-json" ,ruby-json)
3282 ("ruby-docile" ,ruby-docile)
3283 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3284 (native-inputs
3285 `(("bundler" ,bundler)))
3286 (synopsis "Code coverage framework for Ruby")
3287 (description "SimpleCov is a code coverage framework for Ruby with a
3288 powerful configuration library and automatic merging of coverage across test
3289 suites.")
3290 (home-page "https://github.com/colszowka/simplecov")
3291 (license license:expat)))
3292
3293 (define-public ruby-useragent
3294 (package
3295 (name "ruby-useragent")
3296 (version "0.16.10")
3297 (source (origin
3298 (method url-fetch)
3299 (uri (rubygems-uri "useragent" version))
3300 (sha256
3301 (base32
3302 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3303 (build-system ruby-build-system)
3304 (arguments
3305 '(#:tests? #f)) ; no test suite
3306 (synopsis "HTTP user agent parser for Ruby")
3307 (description "UserAgent is a Ruby library that parses and compares HTTP
3308 User Agents.")
3309 (home-page "https://github.com/gshutler/useragent")
3310 (license license:expat)))
3311
3312 (define-public ruby-backports
3313 (package
3314 (name "ruby-backports")
3315 (version "3.11.4")
3316 (source
3317 (origin
3318 (method url-fetch)
3319 (uri (rubygems-uri "backports" version))
3320 (sha256
3321 (base32
3322 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3323 (build-system ruby-build-system)
3324 (arguments
3325 '(;; TODO: This should be default, but there is one test failure
3326 #:test-target "all_spec"))
3327 (native-inputs
3328 `(("ruby-mspec" ,ruby-mspec)
3329 ("ruby-activesupport" ,ruby-activesupport)))
3330 (synopsis "Backports of the features in newer Ruby versions")
3331 (description
3332 "Backports enables more compatibility across Ruby versions by providing
3333 backports of some features.")
3334 (home-page "https://github.com/marcandre/backports")
3335 (license license:expat)))
3336
3337 (define-public ruby-bacon
3338 (package
3339 (name "ruby-bacon")
3340 (version "1.2.0")
3341 (source (origin
3342 (method url-fetch)
3343 (uri (rubygems-uri "bacon" version))
3344 (sha256
3345 (base32
3346 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3347 (build-system ruby-build-system)
3348 (synopsis "Small RSpec clone")
3349 (description "Bacon is a small RSpec clone providing all essential
3350 features.")
3351 (home-page "https://github.com/chneukirchen/bacon")
3352 (license license:expat)))
3353
3354 (define-public ruby-bacon-bits
3355 (package
3356 (name "ruby-bacon-bits")
3357 (version "0.1.0")
3358 (source
3359 (origin
3360 (method url-fetch)
3361 (uri (rubygems-uri "bacon-bits" version))
3362 (sha256
3363 (base32
3364 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3365 (build-system ruby-build-system)
3366 (arguments
3367 ;; No tests
3368 '(#:tests? #f))
3369 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3370 (synopsis "Extensions to Bacon, for disabling tests, before and after
3371 blocks and more")
3372 (description
3373 "This extends the bacon testing framework with useful extensions to
3374 disable tests, have before and after blocks that run once and more.")
3375 (home-page "https://github.com/cldwalker/bacon-bits")
3376 (license license:expat)))
3377
3378 (define-public ruby-bacon-colored-output
3379 (package
3380 (name "ruby-bacon-colored-output")
3381 (version "1.1.1")
3382 (source
3383 (origin
3384 (method url-fetch)
3385 (uri (rubygems-uri "bacon-colored_output" version))
3386 (sha256
3387 (base32
3388 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3389 (build-system ruby-build-system)
3390 (arguments
3391 '(;; No included tests
3392 #:tests? #f))
3393 (propagated-inputs
3394 `(("ruby-bacon" ,ruby-bacon)))
3395 (synopsis "Colored output for Bacon test framework")
3396 (description
3397 "This package adds color through ANSI escape codes to Bacon test
3398 output.")
3399 (home-page "https://github.com/whitequark/bacon-colored_output")
3400 (license license:expat)))
3401
3402 (define-public ruby-connection-pool
3403 (package
3404 (name "ruby-connection-pool")
3405 (version "2.2.2")
3406 (source (origin
3407 (method url-fetch)
3408 (uri (rubygems-uri "connection_pool" version))
3409 (sha256
3410 (base32
3411 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3412 (build-system ruby-build-system)
3413 (native-inputs
3414 `(("bundler" ,bundler)))
3415 (synopsis "Generic connection pool for Ruby")
3416 (description "Connection_pool provides a generic connection pooling
3417 interface for Ruby programs.")
3418 (home-page "https://github.com/mperham/connection_pool")
3419 (license license:expat)))
3420
3421 (define-public ruby-fast-gettext
3422 (package
3423 (name "ruby-fast-gettext")
3424 (version "2.0.3")
3425 (home-page "https://github.com/grosser/fast_gettext")
3426 (source (origin
3427 (method git-fetch)
3428 (uri (git-reference (url home-page)
3429 (commit (string-append "v" version))))
3430 (file-name (git-file-name name version))
3431 (sha256
3432 (base32
3433 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3434 (build-system ruby-build-system)
3435 (arguments
3436 '(#:test-target "spec"
3437 #:phases (modify-phases %standard-phases
3438 (add-before 'check 'remove-version-constraints
3439 (lambda _
3440 (delete-file "Gemfile.lock")
3441 #t))
3442 (add-before 'check 'remove-activerecord-test
3443 (lambda _
3444 ;; FIXME: This test fails because ActiveRecord depends on
3445 ;; a different version of ruby-sqlite than the currently
3446 ;; available one.
3447 (delete-file
3448 "spec/fast_gettext/translation_repository/db_spec.rb")
3449 #t))
3450 (add-before 'check 'disable-i18n-test
3451 (lambda _
3452 ;; XXX: This test checks i18n intricasies with Rails 3 and
3453 ;; automatically disables itself for Rails 4.0, but does
3454 ;; not know about newer versions as it has not been updated
3455 ;; since 2014. Disable for later versions of Rails too.
3456 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3457 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3458 "ActiveRecord::VERSION::MINOR == 0"))
3459 "ActiveRecord::VERSION::MAJOR >= 4"))
3460 #t)))))
3461 (native-inputs
3462 `(;; For tests.
3463 ("ruby-activerecord" ,ruby-activerecord)
3464 ("ruby-activesupport" ,ruby-activesupport)
3465 ("ruby-bump" ,ruby-bump)
3466 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3467 ("ruby-i18n" ,ruby-i18n)
3468 ("ruby-rubocop" ,ruby-rubocop)
3469 ("ruby-rspec" ,ruby-rspec)
3470 ("ruby-single-cov" ,ruby-single-cov)
3471 ("ruby-sqlite3" ,ruby-sqlite3)
3472 ("ruby-wwtd" ,ruby-wwtd)))
3473 (synopsis "Fast implementation of @code{GetText}")
3474 (description
3475 "This package provides an alternative implementation of the Ruby
3476 @code{GetText} library that is approximately 12x faster yet thread safe.")
3477 ;; Some parts are covered by the Ruby license, see file headers.
3478 (license (list license:expat license:ruby))))
3479
3480 (define-public ruby-net-http-persistent
3481 (package
3482 (name "ruby-net-http-persistent")
3483 (version "3.0.0")
3484 (source (origin
3485 (method url-fetch)
3486 (uri (rubygems-uri "net-http-persistent" version))
3487 (sha256
3488 (base32
3489 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3490 (build-system ruby-build-system)
3491 (native-inputs
3492 `(("ruby-connection-pool" ,ruby-connection-pool)
3493 ("ruby-hoe" ,ruby-hoe)))
3494 (synopsis "Persistent HTTP connection manager")
3495 (description "Net::HTTP::Persistent manages persistent HTTP connections
3496 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3497 (home-page "https://github.com/drbrain/net-http-persistent")
3498 (license license:expat)))
3499
3500 (define-public ruby-power-assert
3501 (package
3502 (name "ruby-power-assert")
3503 (version "1.1.5")
3504 (source (origin
3505 (method url-fetch)
3506 (uri (rubygems-uri "power_assert" version))
3507 (sha256
3508 (base32
3509 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3510 (build-system ruby-build-system)
3511 (arguments
3512 '(#:tests? #f)) ; No included tests
3513 (native-inputs
3514 `(("bundler" ,bundler)))
3515 (synopsis "Assert library with descriptive assertion messages")
3516 (description "Power-assert is an assertion library providing descriptive
3517 assertion messages for tests.")
3518 (home-page "https://github.com/k-tsj/power_assert")
3519 (license (list license:bsd-2 license:ruby))))
3520
3521 (define-public ruby-powerpack
3522 (package
3523 (name "ruby-powerpack")
3524 (version "0.1.2")
3525 (source
3526 (origin
3527 (method url-fetch)
3528 (uri (rubygems-uri "powerpack" version))
3529 (sha256
3530 (base32
3531 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3532 (build-system ruby-build-system)
3533 (arguments
3534 '(#:test-target "spec"))
3535 (native-inputs
3536 `(("bundler" ,bundler)
3537 ("ruby-rspec" ,ruby-rspec)
3538 ("ruby-yard" ,ruby-yard)))
3539 (synopsis "Useful extensions to core Ruby classes")
3540 (description
3541 "This package provides a few useful extensions to core Ruby classes,
3542 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3543 @code{String}.")
3544 (home-page "https://github.com/bbatsov/powerpack")
3545 (license license:expat)))
3546
3547 (define-public ruby-locale
3548 (package
3549 (name "ruby-locale")
3550 (version "2.1.2")
3551 (source (origin
3552 (method url-fetch)
3553 (uri (rubygems-uri "locale" version))
3554 (sha256
3555 (base32
3556 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3557 (build-system ruby-build-system)
3558 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3559 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3560 ;; dependency cycle we disable tests.
3561 (arguments `(#:tests? #f))
3562 (native-inputs
3563 `(("bundler" ,bundler)
3564 ("ruby-yard" ,ruby-yard)))
3565 (synopsis "Ruby library providing basic localization APIs")
3566 (description
3567 "Ruby-Locale is the pure ruby library which provides basic APIs for
3568 localization.")
3569 (home-page "https://github.com/ruby-gettext/locale")
3570 (license (list license:lgpl3+ license:ruby))))
3571
3572 (define-public ruby-temple
3573 (package
3574 (name "ruby-temple")
3575 (version "0.8.2")
3576 (source
3577 (origin
3578 (method url-fetch)
3579 (uri (rubygems-uri "temple" version))
3580 (sha256
3581 (base32
3582 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3583 (build-system ruby-build-system)
3584 (native-inputs
3585 `(("ruby-tilt" ,ruby-tilt)
3586 ("ruby-bacon" ,ruby-bacon)
3587 ("ruby-erubis" ,ruby-erubis)))
3588 (synopsis "Template compilation framework in Ruby")
3589 (description
3590 "Temple is an abstraction and framework for compiling templates to pure
3591 Ruby.")
3592 (home-page "https://github.com/judofyr/temple")
3593 (license license:expat)))
3594
3595 (define-public ruby-text
3596 (package
3597 (name "ruby-text")
3598 (version "1.3.1")
3599 (source (origin
3600 (method url-fetch)
3601 (uri (rubygems-uri "text" version))
3602 (sha256
3603 (base32
3604 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3605 (build-system ruby-build-system)
3606 (synopsis "Collection of text algorithms for Ruby")
3607 (description
3608 "This package provides a collection of text algorithms: Levenshtein,
3609 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3610 (home-page "https://github.com/threedaymonk/text")
3611 (license license:expat)))
3612
3613 (define-public ruby-gettext
3614 (package
3615 (name "ruby-gettext")
3616 (version "3.1.7")
3617 (source (origin
3618 (method url-fetch)
3619 (uri (rubygems-uri "gettext" version))
3620 (sha256
3621 (base32
3622 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3623 (build-system ruby-build-system)
3624 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3625 ;; which needs ruby-gettext. To break the dependency cycle we disable
3626 ;; tests.
3627 (arguments `(#:tests? #f))
3628 (propagated-inputs
3629 `(("ruby-locale" ,ruby-locale)
3630 ("ruby-text" ,ruby-text)))
3631 (native-inputs
3632 `(("bundler" ,bundler)
3633 ("ruby-yard" ,ruby-yard)))
3634 (synopsis "GNU gettext-like program for Ruby")
3635 (description
3636 "Gettext is a GNU gettext-like program for Ruby. The catalog
3637 file (po-file) used is the same as that used by GNU gettext, allowing you to
3638 use GNU gettext tools for maintenance.")
3639 (home-page "https://ruby-gettext.github.com/")
3640 (license (list license:lgpl3+ license:ruby))))
3641
3642 (define-public ruby-packnga
3643 (package
3644 (name "ruby-packnga")
3645 (version "1.0.4")
3646 (source (origin
3647 (method url-fetch)
3648 (uri (rubygems-uri "packnga" version))
3649 (sha256
3650 (base32
3651 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3652 (build-system ruby-build-system)
3653 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3654 ;; To break the dependency cycle we disable tests.
3655 (arguments `(#:tests? #f))
3656 (propagated-inputs
3657 `(("ruby-gettext" ,ruby-gettext)
3658 ("ruby-yard" ,ruby-yard)))
3659 (native-inputs
3660 `(("bundler" ,bundler)))
3661 (synopsis "Utility library to package internationalized libraries")
3662 (description
3663 "Packnga is a library to translate to many languages using YARD.")
3664 (home-page "http://ranguba.org/packnga/")
3665 (license license:lgpl2.0+)))
3666
3667 (define-public ruby-test-construct
3668 (package
3669 (name "ruby-test-construct")
3670 (version "2.0.1")
3671 (source
3672 (origin
3673 (method url-fetch)
3674 (uri (rubygems-uri "test_construct" version))
3675 (sha256
3676 (base32
3677 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3678 (build-system ruby-build-system)
3679 (native-inputs
3680 `(("bundler" ,bundler)
3681 ("ruby-mocha" ,ruby-mocha)
3682 ("ruby-rspec" ,ruby-rspec)))
3683 (synopsis "Creates temporary files and directories for testing")
3684 (description
3685 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3686 temporary files and directories during tests.")
3687 (home-page "https://github.com/bhb/test_construct")
3688 (license license:expat)))
3689
3690 (define-public ruby-test-unit
3691 (package
3692 (name "ruby-test-unit")
3693 (version "3.2.5")
3694 (source (origin
3695 (method url-fetch)
3696 (uri (rubygems-uri "test-unit" version))
3697 (sha256
3698 (base32
3699 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3700 (build-system ruby-build-system)
3701 (propagated-inputs
3702 `(("ruby-power-assert" ,ruby-power-assert)))
3703 (native-inputs
3704 `(("bundler" ,bundler)
3705 ("ruby-packnga" ,ruby-packnga)
3706 ("ruby-yard" ,ruby-yard)))
3707 (synopsis "Unit testing framework for Ruby")
3708 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3709 on xUnit principles. These were originally designed by Kent Beck, creator of
3710 extreme programming software development methodology, for Smalltalk's SUnit.
3711 It allows writing tests, checking results and automated testing in Ruby.")
3712 (home-page "https://test-unit.github.io/")
3713 (license (list license:psfl license:ruby))))
3714
3715 (define-public ruby-markaby
3716 (package
3717 (name "ruby-markaby")
3718 (version "0.9.0")
3719 (source
3720 (origin
3721 (method url-fetch)
3722 (uri (rubygems-uri "markaby" version))
3723 (sha256
3724 (base32
3725 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3726 (build-system ruby-build-system)
3727 (arguments
3728 '(#:phases
3729 (modify-phases %standard-phases
3730 ;; Run rspec manually without using the Rakefile, as the versions of
3731 ;; Rake and RSpec 2 are incompatible:
3732 ;;
3733 ;; NoMethodError: undefined method `last_comment'
3734 (replace 'check
3735 (lambda* (#:key tests? #:allow-other-keys)
3736 (when tests?
3737 (invoke "rspec"))
3738 #t)))))
3739 (propagated-inputs
3740 `(("ruby-builder" ,ruby-builder)))
3741 (native-inputs
3742 `(("bundler" ,bundler)
3743 ("ruby-rspec" ,ruby-rspec-2)))
3744 (synopsis "Write HTML pages in pure Ruby")
3745 (description
3746 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3747 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3748 mixture of HTML and additional ERB syntax.")
3749 (home-page "https://markaby.github.io/")
3750 (license license:expat)))
3751
3752 (define-public ruby-maruku
3753 (package
3754 (name "ruby-maruku")
3755 (version "0.7.3")
3756 (source
3757 (origin
3758 (method url-fetch)
3759 (uri (rubygems-uri "maruku" version))
3760 (sha256
3761 (base32
3762 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3763 (build-system ruby-build-system)
3764 (arguments
3765 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3766 #:tests? #f
3767 #:phases
3768 (modify-phases %standard-phases
3769 (replace 'check
3770 (lambda* (#:key tests? #:allow-other-keys)
3771 (when tests?
3772 (invoke "rspec"))
3773 #t)))))
3774 (native-inputs
3775 `(("ruby-rspec" ,ruby-rspec)
3776 ("ruby-simplecov" ,ruby-simplecov)
3777 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3778 (synopsis "Markdown interpreter in Ruby")
3779 (description
3780 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3781 HTML, and PDF through LaTeX.")
3782 (home-page "https://github.com/bhollis/maruku")
3783 (license license:expat)))
3784
3785 (define-public ruby-metaclass
3786 (package
3787 (name "ruby-metaclass")
3788 (version "0.0.4")
3789 (source (origin
3790 (method url-fetch)
3791 (uri (rubygems-uri "metaclass" version))
3792 (sha256
3793 (base32
3794 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3795 (build-system ruby-build-system)
3796 (arguments
3797 `(#:phases
3798 (modify-phases %standard-phases
3799 (add-after 'unpack 'add-test-unit-to-search-path
3800 (lambda* (#:key inputs #:allow-other-keys)
3801 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3802 (substitute* "Rakefile"
3803 (("t\\.libs << \"test\"" line)
3804 (string-append line "; t.libs << \""
3805 test-unit "/lib/ruby/vendor_ruby"
3806 "/gems/test-unit-"
3807 ,(package-version ruby-test-unit)
3808 "/lib\""))))
3809 #t)))))
3810 (native-inputs
3811 `(("bundler" ,bundler)
3812 ("ruby-test-unit" ,ruby-test-unit)))
3813 (synopsis "Ruby library adding metaclass method to all objects")
3814 (description
3815 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3816 objects.")
3817 (home-page "https://github.com/floehopper/metaclass")
3818 (license license:expat)))
3819
3820 (define-public ruby-mkmf-lite
3821 (package
3822 (name "ruby-mkmf-lite")
3823 (version "0.3.2")
3824 (source (origin
3825 (method url-fetch)
3826 (uri (rubygems-uri "mkmf-lite" version))
3827 (sha256
3828 (base32
3829 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3830 (build-system ruby-build-system)
3831 (propagated-inputs
3832 `(("ruby-ptools" ,ruby-ptools)))
3833 (synopsis "Lightweight alternative to @code{mkmf}")
3834 (description
3835 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3836 for use as a library. It does not create packages, builds, or log files of
3837 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3838 to check for the presence of header files, constants, and so on.")
3839 (home-page "https://github.com/djberg96/mkmf-lite")
3840 (license license:asl2.0)))
3841
3842 (define-public ruby-mspec
3843 (package
3844 (name "ruby-mspec")
3845 (version "1.9.1")
3846 (source
3847 (origin
3848 (method url-fetch)
3849 (uri (rubygems-uri "mspec" version))
3850 (sha256
3851 (base32
3852 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3853 (build-system ruby-build-system)
3854 (arguments
3855 '(;; TODO: 3 test failures
3856 ;; ./spec/mocks/mock_spec.rb:82
3857 ;; ./spec/utils/name_map_spec.rb:151
3858 ;; ./spec/utils/name_map_spec.rb:155
3859 #:tests? #f
3860 #:phases
3861 (modify-phases %standard-phases
3862 (add-after 'extract-gemspec 'change-dependency-constraints
3863 (lambda _
3864 (substitute* "mspec.gemspec"
3865 (("rake.*") "rake>)\n")
3866 (("rspec.*") "rspec>)\n"))
3867 #t))
3868 (replace 'check
3869 (lambda* (#:key tests? #:allow-other-keys)
3870 (when tests?
3871 (invoke "rspec" "spec"))
3872 #t)))))
3873 (native-inputs
3874 `(("bundler" ,bundler)
3875 ("ruby-rake" ,ruby-rake)
3876 ("ruby-rspec" ,ruby-rspec)))
3877 (synopsis "MSpec is a specialized framework for RubySpec")
3878 (description
3879 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3880 for basic features. MSpec contains additional features that assist in writing
3881 specs for Ruby implementations in ruby/spec.")
3882 (home-page "http://rubyspec.org")
3883 (license license:expat)))
3884
3885 (define-public ruby-mysql2
3886 (package
3887 (name "ruby-mysql2")
3888 (version "0.5.2")
3889 (source
3890 (origin
3891 (method git-fetch)
3892 (uri (git-reference
3893 (url "https://github.com/brianmario/mysql2")
3894 (commit version)))
3895 (file-name (git-file-name name version))
3896 (sha256
3897 (base32
3898 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3899 (build-system ruby-build-system)
3900 (arguments
3901 '(;; TODO: Tests require a running MySQL/MariaDB service
3902 #:tests? #f
3903 #:phases
3904 (modify-phases %standard-phases
3905 (replace 'replace-git-ls-files
3906 (lambda _
3907 (substitute* "mysql2.gemspec"
3908 (("git ls-files .*`") "find . -type f |sort`"))
3909 #t))
3910 (add-before 'install 'set-MAKEFLAGS
3911 (lambda* (#:key outputs #:allow-other-keys)
3912 (setenv "MAKEFLAGS"
3913 (string-append
3914 "V=1 "
3915 "prefix=" (assoc-ref outputs "out")))
3916 #t))
3917 ;; Move the 'check phase to after 'install, as then you can test
3918 ;; using the installed mysql2 gem in the store.
3919 (delete 'check)
3920 (add-after 'install 'check
3921 (lambda* (#:key outputs tests? #:allow-other-keys)
3922 (setenv "GEM_PATH"
3923 (string-append
3924 (getenv "GEM_PATH")
3925 ":"
3926 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3927 (when tests?
3928 (invoke "rspec"))
3929 #t)))))
3930 (inputs
3931 `(("mariadb-dev" ,mariadb "dev")
3932 ("zlib" ,zlib)))
3933 (native-inputs
3934 `(("ruby-rspec" ,ruby-rspec)
3935 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3936 (synopsis "MySQL library for Ruby, binding to libmysql")
3937 (description
3938 "This package provides a simple, fast MySQL library for Ruby, binding to
3939 libmysql.")
3940 (home-page "https://github.com/brianmario/mysql2")
3941 (license license:expat)))
3942
3943 (define-public ruby-blankslate
3944 (package
3945 (name "ruby-blankslate")
3946 (version "3.1.3")
3947 (source (origin
3948 (method url-fetch)
3949 (uri (rubygems-uri "blankslate" version))
3950 (sha256
3951 (base32
3952 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3953 (build-system ruby-build-system)
3954 (arguments
3955 `(#:phases
3956 (modify-phases %standard-phases
3957 (replace 'check
3958 (lambda _ (invoke "rspec" "spec/"))))))
3959 (native-inputs
3960 `(("bundler" ,bundler)
3961 ("ruby-rspec" ,ruby-rspec)))
3962 (synopsis "Abstract base class with no predefined methods")
3963 (description
3964 "BlankSlate provides an abstract base class with no predefined
3965 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3966 as a base class when writing classes that depend upon
3967 @code{method_missing} (e.g. dynamic proxies).")
3968 (home-page "https://github.com/masover/blankslate")
3969 (license license:expat)))
3970
3971 (define-public ruby-bond
3972 (package
3973 (name "ruby-bond")
3974 (version "0.5.1")
3975 (source
3976 (origin
3977 (method url-fetch)
3978 (uri (rubygems-uri "bond" version))
3979 (sha256
3980 (base32
3981 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3982 (build-system ruby-build-system)
3983 (arguments
3984 ;; The test suite fails (see:
3985 ;; https://github.com/cldwalker/bond/issues/46).
3986 `(#:tests? #f))
3987 (native-inputs
3988 `(("ruby-bacon" ,ruby-bacon)
3989 ("ruby-bacon-bits" ,ruby-bacon-bits)
3990 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3991 (synopsis "Bond can provide custom autocompletion for arguments, methods
3992 and more")
3993 (description
3994 "Bond can autocomplete argument(s) to methods, uniquely completing per
3995 module, per method and per argument. Bond provides a configuration system and
3996 a DSL for creating custom completions and completion rules. Bond can also
3997 load completions that ship with gems. Bond is able to offer more than irb's
3998 completion since it uses the full line of input when completing as opposed to
3999 irb's last-word approach.")
4000 (home-page "http://tagaholic.me/bond/")
4001 (license license:expat)))
4002
4003 (define-public ruby-idn-ruby
4004 (package
4005 (name "ruby-idn-ruby")
4006 (version "0.1.0")
4007 (source
4008 (origin
4009 (method url-fetch)
4010 (uri (rubygems-uri "idn-ruby" version))
4011 (sha256
4012 (base32
4013 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
4014 (build-system ruby-build-system)
4015 (arguments
4016 '(#:phases
4017 (modify-phases %standard-phases
4018 (delete 'check)
4019 (add-after 'install 'check
4020 (lambda* (#:key tests? outputs #:allow-other-keys)
4021 (when tests?
4022 (let* ((gem-file (cadr (find-files "." "\\.gem")))
4023 (name-and-version (basename gem-file ".gem")))
4024 (apply invoke
4025 "ruby" "--verbose"
4026 (string-append "-I"
4027 (assoc-ref outputs "out")
4028 "/lib/ruby/vendor_ruby/gems/"
4029 name-and-version
4030 "/lib")
4031 (find-files "./test" ".*\\.rb"))))
4032 #t)))))
4033 (inputs
4034 `(("libidn" ,libidn)))
4035 (synopsis "Ruby Bindings for the GNU LibIDN library")
4036 (description
4037 "Ruby Bindings for the GNU LibIDN library, an implementation of the
4038 Stringprep, Punycode and IDNA specifications. These are used to encode and
4039 decode internationalized domain + names according to the IDNA2003
4040 specifications.
4041
4042 Included are the most important parts of the Stringprep, Punycode and IDNA
4043 APIs like performing Stringprep processings, encoding to and decoding from
4044 Punycode strings and converting entire domain names to and from the ACE
4045 encoded form.")
4046 (home-page "https://github.com/deepfryed/idn-ruby")
4047 (license license:asl2.0)))
4048
4049 (define-public ruby-instantiator
4050 (package
4051 (name "ruby-instantiator")
4052 (version "0.0.7")
4053 (source (origin
4054 (method url-fetch)
4055 (uri (rubygems-uri "instantiator" version))
4056 (sha256
4057 (base32
4058 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
4059 (build-system ruby-build-system)
4060 (arguments
4061 `(#:phases
4062 (modify-phases %standard-phases
4063 (add-after 'unpack 'add-test-unit-to-search-path
4064 (lambda* (#:key inputs #:allow-other-keys)
4065 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
4066 (substitute* "Rakefile"
4067 (("t\\.libs << \"test\"" line)
4068 (string-append line "; t.libs << \""
4069 test-unit "/lib/ruby/vendor_ruby"
4070 "/gems/test-unit-"
4071 ,(package-version ruby-test-unit)
4072 "/lib\""))))
4073 #t)))))
4074 (propagated-inputs
4075 `(("ruby-blankslate" ,ruby-blankslate)))
4076 (native-inputs
4077 `(("bundler" ,bundler)
4078 ("ruby-test-unit" ,ruby-test-unit)))
4079 (synopsis "Instantiate an arbitrary Ruby class")
4080 (description
4081 "Instantiator lets you instantiate an arbitrary Ruby class without
4082 knowing anything about the constructor.")
4083 (home-page "https://github.com/floehopper/instantiator")
4084 (license license:expat)))
4085
4086 (define-public ruby-introspection
4087 (package
4088 (name "ruby-introspection")
4089 (version "0.0.4")
4090 (source (origin
4091 (method url-fetch)
4092 (uri (rubygems-uri "introspection" version))
4093 (sha256
4094 (base32
4095 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
4096 (build-system ruby-build-system)
4097 (arguments
4098 `(#:phases
4099 (modify-phases %standard-phases
4100 (add-after 'unpack 'add-test-unit-to-search-path
4101 (lambda* (#:key inputs #:allow-other-keys)
4102 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
4103 (substitute* "Rakefile"
4104 (("t\\.libs << \"test\"" line)
4105 (string-append line "; t.libs << \""
4106 test-unit "/lib/ruby/vendor_ruby"
4107 "/gems/test-unit-"
4108 ,(package-version ruby-test-unit)
4109 "/lib\""))))
4110 #t)))))
4111 (propagated-inputs
4112 `(("ruby-instantiator" ,ruby-instantiator)
4113 ("ruby-metaclass" ,ruby-metaclass)))
4114 (native-inputs
4115 `(("bundler" ,bundler)
4116 ("ruby-blankslate" ,ruby-blankslate)
4117 ("ruby-test-unit" ,ruby-test-unit)))
4118 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
4119 (description
4120 "Introspection provides tools to inspect the hierarchy of method
4121 definitions on a Ruby object.")
4122 (home-page "https://github.com/floehopper/introspection")
4123 (license license:expat)))
4124
4125 (define-public ruby-redcarpet
4126 (package
4127 (name "ruby-redcarpet")
4128 (version "3.5.0")
4129 (source (origin
4130 (method url-fetch)
4131 (uri (rubygems-uri "redcarpet" version))
4132 (sha256
4133 (base32
4134 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4135 (build-system ruby-build-system)
4136 (arguments
4137 `(#:phases
4138 (modify-phases %standard-phases
4139 ;; The gem archive does not include the conformance tests.
4140 (add-after 'unpack 'disable-conformance-tests
4141 (lambda _
4142 (substitute* "Rakefile"
4143 (("task :test => %w\\[test:unit test:conformance\\]")
4144 "task :test => %w[test:unit]"))
4145 #t)))))
4146 (native-inputs
4147 `(("bundler" ,bundler)
4148 ("ruby-test-unit" ,ruby-test-unit)
4149 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4150 (synopsis "Extensible Markdown to (X)HTML converter")
4151 (description
4152 "Redcarpet is an extensible Ruby library for Markdown processing and
4153 conversion to (X)HTML.")
4154 (home-page "https://github.com/vmg/redcarpet")
4155 (license license:expat)))
4156
4157 (define-public ruby-rerun
4158 (package
4159 (name "ruby-rerun")
4160 (version "0.13.0")
4161 (source
4162 (origin
4163 (method url-fetch)
4164 (uri (rubygems-uri "rerun" version))
4165 (sha256
4166 (base32
4167 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4168 (build-system ruby-build-system)
4169 (arguments
4170 '(#:tests? #f)) ; No included tests
4171 (propagated-inputs
4172 `(("ruby-listen" ,ruby-listen)))
4173 (synopsis "Run a process, and restart when some monitored files change")
4174 (description
4175 "Rerun is a tool to launch programs, then monitor the file system, and
4176 restart the program when any of the monitored files change. It's written in
4177 Ruby, but can be used for all programs.")
4178 (home-page "https://github.com/alexch/rerun/")
4179 (license license:expat)))
4180
4181 (define-public ruby-maxitest
4182 (package
4183 (name "ruby-maxitest")
4184 (version "3.6.0")
4185 (home-page "https://github.com/grosser/maxitest")
4186 (source (origin
4187 ;; Pull from git because the gem does not contain tests.
4188 (method git-fetch)
4189 (uri (git-reference
4190 (url home-page)
4191 (commit (string-append "v" version))))
4192 (file-name (git-file-name name version))
4193 (sha256
4194 (base32
4195 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4196 (build-system ruby-build-system)
4197 (arguments
4198 '(#:test-target "default"
4199 #:phases (modify-phases %standard-phases
4200 (replace 'replace-git-ls-files
4201 (lambda _
4202 (substitute* "maxitest.gemspec"
4203 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4204 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4205 #t))
4206 (add-before 'check 'remove-version-constraints
4207 (lambda _
4208 ;; Don't use specific versions of dependencies, instead
4209 ;; take whatever is available in Guix.
4210 (delete-file "Gemfile.lock")
4211 #t))
4212 (add-before 'check 'add-mtest-on-PATH
4213 (lambda _
4214 ;; Tests use 'mtest' which is not automatically added on
4215 ;; PATH.
4216 (setenv "PATH" (string-append (getcwd) "/bin:"
4217 (getenv "PATH")))
4218 #t)))))
4219 (native-inputs
4220 `(("ps" ,procps)
4221 ("ruby-bump" ,ruby-bump)
4222 ("ruby-byebug" ,ruby-byebug)
4223 ("ruby-rspec" ,ruby-rspec)
4224 ("ruby-wwtd" ,ruby-wwtd)))
4225 (propagated-inputs
4226 `(("ruby-minitest" ,ruby-minitest)))
4227 (synopsis "Minitest with extra features")
4228 (description
4229 "Maxitest is a wrapper around Minitest with extra functionality such
4230 as timeouts, an @command{mtest} executable that can run tests by line
4231 number, support for interrupted tests, better backtraces, and more.")
4232 (license license:expat)))
4233
4234 (define-public ruby-mocha
4235 (package
4236 (name "ruby-mocha")
4237 (version "1.11.2")
4238 (source (origin
4239 (method url-fetch)
4240 (uri (rubygems-uri "mocha" version))
4241 (sha256
4242 (base32
4243 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4244 (build-system ruby-build-system)
4245 (arguments
4246 `(#:phases
4247 (modify-phases %standard-phases
4248 (add-before 'check 'remove-rubocop-dependency
4249 (lambda _
4250 ;; Disable dependency on Rubocop, which is just a linter,
4251 ;; and would introduce a circular dependency.
4252 (substitute* "mocha.gemspec"
4253 ((".*rubocop.*")
4254 "true\n"))
4255 #t)))))
4256 (native-inputs
4257 `(("ruby-introspection" ,ruby-introspection)))
4258 (synopsis "Mocking and stubbing library for Ruby")
4259 (description
4260 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4261 allows mocking and stubbing of methods on real (non-mock) classes.")
4262 (home-page "http://gofreerange.com/mocha/docs")
4263 ;; Mocha can be used with either license at the users choice.
4264 (license (list license:expat license:ruby))))
4265
4266 (define-public ruby-mocha-on-bacon
4267 (package
4268 (name "ruby-mocha-on-bacon")
4269 (version "0.2.3")
4270 (source
4271 (origin
4272 (method url-fetch)
4273 (uri (rubygems-uri "mocha-on-bacon" version))
4274 (sha256
4275 (base32
4276 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4277 (build-system ruby-build-system)
4278 (arguments
4279 ;; rubygems.org release missing tests
4280 '(#:tests? #f))
4281 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4282 (synopsis "Mocha adapter for Bacon")
4283 (description
4284 "This package provides a Mocha adapter for Bacon, allowing you to use the
4285 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4286 (home-page
4287 "https://github.com/alloy/mocha-on-bacon")
4288 (license license:expat)))
4289
4290 (define-public ruby-net-ssh
4291 (package
4292 (name "ruby-net-ssh")
4293 (version "4.2.0")
4294 (source (origin
4295 (method url-fetch)
4296 (uri (rubygems-uri "net-ssh" version))
4297 (sha256
4298 (base32
4299 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4300 (build-system ruby-build-system)
4301 (native-inputs
4302 `(("bundler" ,bundler)
4303 ("ruby-mocha" ,ruby-mocha)
4304 ("ruby-test-unit" ,ruby-test-unit)))
4305 (synopsis "Ruby implementation of the SSH2 client protocol")
4306 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4307 client protocol. It allows you to write programs that invoke and interact
4308 with processes on remote servers, via SSH2.")
4309 (home-page "https://github.com/net-ssh/net-ssh")
4310 (license license:expat)))
4311
4312 (define-public ruby-net-scp
4313 (package
4314 (name "ruby-net-scp")
4315 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4316 (version "1.2.2.rc2")
4317 (source
4318 (origin
4319 (method git-fetch)
4320 (uri (git-reference
4321 (url "https://github.com/net-ssh/net-scp")
4322 (commit (string-append "v" version))))
4323 (file-name (git-file-name name version))
4324 (sha256
4325 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4326 (build-system ruby-build-system)
4327 (native-inputs
4328 `(("bundler" ,bundler)
4329 ("ruby-test-unit" ,ruby-test-unit)
4330 ("ruby-mocha" ,ruby-mocha)))
4331 (propagated-inputs
4332 `(("ruby-net-ssh" ,ruby-net-ssh)))
4333 (synopsis "Pure-Ruby SCP client library")
4334 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4335 client protocol.")
4336 (home-page "https://github.com/net-ssh/net-scp")
4337 (license license:expat)))
4338
4339 (define-public ruby-minitest
4340 (package
4341 (name "ruby-minitest")
4342 (version "5.11.3")
4343 (source (origin
4344 (method url-fetch)
4345 (uri (rubygems-uri "minitest" version))
4346 (sha256
4347 (base32
4348 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4349 (build-system ruby-build-system)
4350 (native-inputs
4351 `(("ruby-hoe" ,ruby-hoe)))
4352 (synopsis "Small test suite library for Ruby")
4353 (description "Minitest provides a complete suite of Ruby testing
4354 facilities supporting TDD, BDD, mocking, and benchmarking.")
4355 (home-page "https://github.com/seattlerb/minitest")
4356 (license license:expat)))
4357
4358 ;; This is the last release of Minitest 4, which is used by some packages.
4359 (define-public ruby-minitest-4
4360 (package (inherit ruby-minitest)
4361 (version "4.7.5")
4362 (source (origin
4363 (method url-fetch)
4364 (uri (rubygems-uri "minitest" version))
4365 (sha256
4366 (base32
4367 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4368 (arguments
4369 `(#:phases
4370 (modify-phases %standard-phases
4371 (add-after 'unpack 'remove-unsupported-method
4372 (lambda _
4373 (substitute* "Rakefile"
4374 (("self\\.rubyforge_name = .*") ""))
4375 #t))
4376 (add-after 'build 'exclude-failing-tests
4377 (lambda _
4378 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4379 ;; Fixnum.
4380 (delete-file "test/minitest/test_minitest_spec.rb")
4381 #t)))))))
4382
4383 (define-public ruby-minitest-around
4384 (package
4385 (name "ruby-minitest-around")
4386 (version "0.5.0")
4387 (source
4388 (origin
4389 (method url-fetch)
4390 (uri (rubygems-uri "minitest-around" version))
4391 (sha256
4392 (base32
4393 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4394 (build-system ruby-build-system)
4395 (arguments
4396 '(#:phases
4397 (modify-phases %standard-phases
4398 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4399 (lambda _
4400 (substitute* "minitest-around.gemspec"
4401 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4402 #t)))))
4403 (propagated-inputs
4404 `(("ruby-minitest" ,ruby-minitest)))
4405 (native-inputs
4406 `(("bundler" ,bundler)
4407 ("ruby-cucumber" ,ruby-cucumber)
4408 ("ruby-bump" ,ruby-bump)
4409 ("ruby-test-construct" ,ruby-test-construct)))
4410 (synopsis "Run code around tests in Minitest")
4411 (description
4412 "This library provides a way to run code around tests in Minitest,
4413 written using either the unit test or spec style.")
4414 (home-page "https://github.com/splattael/minitest-around")
4415 (license license:expat)))
4416
4417 (define-public ruby-minitest-sprint
4418 (package
4419 (name "ruby-minitest-sprint")
4420 (version "1.1.0")
4421 (source (origin
4422 (method url-fetch)
4423 (uri (rubygems-uri "minitest-sprint" version))
4424 (sha256
4425 (base32
4426 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4427 (build-system ruby-build-system)
4428 (native-inputs
4429 `(("ruby-hoe" ,ruby-hoe)
4430 ("ruby-minitest" ,ruby-minitest)))
4431 (synopsis "Fast test suite runner for minitest")
4432 (description "Minitest-sprint is a test runner for minitest that makes it
4433 easier to re-run individual failing tests.")
4434 (home-page "https://github.com/seattlerb/minitest-sprint")
4435 (license license:expat)))
4436
4437 (define-public ruby-minitest-bacon
4438 (package
4439 (name "ruby-minitest-bacon")
4440 (version "1.0.3")
4441 (source (origin
4442 (method url-fetch)
4443 (uri (rubygems-uri "minitest-bacon" version))
4444 (sha256
4445 (base32
4446 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4447 (build-system ruby-build-system)
4448 (native-inputs
4449 `(("ruby-hoe" ,ruby-hoe)))
4450 (inputs
4451 `(("ruby-minitest" ,ruby-minitest)))
4452 (synopsis "Bacon compatibility library for minitest")
4453 (description "Minitest-bacon extends minitest with bacon-like
4454 functionality, making it easier to migrate test suites from bacon to minitest.")
4455 (home-page "https://github.com/seattlerb/minitest-bacon")
4456 (license license:expat)))
4457
4458 (define-public ruby-minitest-focus
4459 (package
4460 (name "ruby-minitest-focus")
4461 (version "1.1.2")
4462 (source
4463 (origin
4464 (method url-fetch)
4465 (uri (rubygems-uri "minitest-focus" version))
4466 (sha256
4467 (base32
4468 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4469 (build-system ruby-build-system)
4470 (propagated-inputs
4471 `(("ruby-minitest" ,ruby-minitest)))
4472 (native-inputs
4473 `(("ruby-hoe" ,ruby-hoe)))
4474 (synopsis "Allows a few specific tests to be focused on")
4475 (description
4476 "@code{minitest-focus} gives the ability focus on a few tests with ease
4477 without having to use command-line arguments. It introduces a @code{focus}
4478 class method for use in testing classes, specifying that the next defined test
4479 is to be run.")
4480 (home-page "https://github.com/seattlerb/minitest-focus")
4481 (license license:expat)))
4482
4483 (define-public ruby-minitest-pretty-diff
4484 ;; Use git reference because gem is out of date and does not contain testing
4485 ;; script. There are no releases on GitHub.
4486 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4487 (package
4488 (name "ruby-minitest-pretty-diff")
4489 (version (string-append "0.1-1." (string-take commit 8)))
4490 (source (origin
4491 (method git-fetch)
4492 (uri (git-reference
4493 (url "https://github.com/adammck/minitest-pretty_diff")
4494 (commit commit)))
4495 (file-name (string-append name "-" version "-checkout"))
4496 (sha256
4497 (base32
4498 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4499 (build-system ruby-build-system)
4500 (arguments
4501 `(#:phases
4502 (modify-phases %standard-phases
4503 (replace 'check
4504 (lambda _
4505 (invoke "script/test"))))))
4506 (native-inputs
4507 `(("bundler" ,bundler)
4508 ("ruby-turn" ,ruby-turn)))
4509 (synopsis "Pretty-print hashes and arrays in MiniTest")
4510 (description
4511 "@code{minitest-pretty_diff} monkey-patches
4512 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4513 diffing them. This makes it easier to spot differences between nested
4514 structures when tests fail.")
4515 (home-page "https://github.com/adammck/minitest-pretty_diff")
4516 (license license:expat))))
4517
4518 (define-public ruby-minitest-moar
4519 (package
4520 (name "ruby-minitest-moar")
4521 (version "0.0.4")
4522 (source
4523 (origin
4524 (method url-fetch)
4525 (uri (rubygems-uri "minitest-moar" version))
4526 (sha256
4527 (base32
4528 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4529 (build-system ruby-build-system)
4530 (arguments
4531 `(#:phases
4532 (modify-phases %standard-phases
4533 (add-before 'check 'clean-dependencies
4534 (lambda _
4535 ;; Remove all gems defined in the Gemfile because these are not
4536 ;; truly needed.
4537 (substitute* "Gemfile"
4538 (("gem .*") ""))
4539 ;; Remove byebug as not needed to run tests.
4540 (substitute* "test/test_helper.rb"
4541 (("require 'byebug'") ""))
4542 #t)))))
4543 (native-inputs
4544 `(("bundler" ,bundler)
4545 ("ruby-minitest" ,ruby-minitest)))
4546 (synopsis "Extra features and changes to MiniTest")
4547 (description "@code{MiniTest Moar} add some additional features and
4548 changes some default behaviours in MiniTest. For instance, Moar replaces the
4549 MiniTest @code{Object#stub} with a global @code{stub} method.")
4550 (home-page "https://github.com/dockyard/minitest-moar")
4551 (license license:expat)))
4552
4553 (define-public ruby-minitest-bonus-assertions
4554 (package
4555 (name "ruby-minitest-bonus-assertions")
4556 (version "3.0")
4557 (source
4558 (origin
4559 (method url-fetch)
4560 (uri (rubygems-uri "minitest-bonus-assertions" version))
4561 (sha256
4562 (base32
4563 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4564 (build-system ruby-build-system)
4565 (arguments
4566 `(#:phases
4567 (modify-phases %standard-phases
4568 (add-before 'check 'clean-dependencies
4569 (lambda _
4570 ;; Remove unneeded require statement that would entail another
4571 ;; dependency.
4572 (substitute* "test/minitest_config.rb"
4573 (("require 'minitest/bisect'") ""))
4574 #t)))))
4575 (native-inputs
4576 `(("ruby-hoe" ,ruby-hoe)
4577 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4578 ("ruby-minitest-focus" ,ruby-minitest-focus)
4579 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4580 (synopsis "Bonus assertions for @code{Minitest}")
4581 (description
4582 "Minitest bonus assertions provides extra MiniTest assertions. For
4583 instance, it provides @code{assert_true}, @code{assert_false} and
4584 @code{assert_set_equal}.")
4585 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4586 (license license:expat)))
4587
4588 (define-public ruby-minitest-reporters
4589 (package
4590 (name "ruby-minitest-reporters")
4591 (version "1.3.6")
4592 (source
4593 (origin
4594 (method url-fetch)
4595 (uri (rubygems-uri "minitest-reporters" version))
4596 (sha256
4597 (base32
4598 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4599 (build-system ruby-build-system)
4600 (arguments
4601 '(#:phases
4602 (modify-phases %standard-phases
4603 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4604 ;; including it as an input can lead to circular dependencies.
4605 (add-after 'unpack 'remove-rubocop-from-Rakefile
4606 (lambda _
4607 (substitute* "Rakefile"
4608 (("require 'rubocop/rake\\_task'") "")
4609 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4610 #t))
4611 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4612 (lambda _
4613 (substitute* "minitest-reporters.gemspec"
4614 ((".*%q<rubocop>.*") "\n"))
4615 #t)))))
4616 (propagated-inputs
4617 `(("ruby-ansi" ,ruby-ansi)
4618 ("ruby-builder" ,ruby-builder)
4619 ("ruby-minitest" ,ruby-minitest)
4620 ("ruby-progressbar" ,ruby-progressbar)))
4621 (native-inputs
4622 `(("bundler" ,bundler)
4623 ("ruby-maruku" ,ruby-maruku)))
4624 (synopsis "Enhanced reporting for Minitest tests")
4625 (description
4626 "@code{minitest/reporters} provides a custom Minitest runner to improve
4627 how the test state is reported. A number of different reporters are
4628 available, including a spec reporter, progress bar reporter, a HTML
4629 reporter.")
4630 (home-page "https://github.com/kern/minitest-reporters")
4631 (license license:expat)))
4632
4633 (define-public ruby-minitest-rg
4634 (package
4635 (name "ruby-minitest-rg")
4636 (version "5.2.0")
4637 (source
4638 (origin
4639 (method url-fetch)
4640 (uri (rubygems-uri "minitest-rg" version))
4641 (sha256
4642 (base32
4643 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4644 (build-system ruby-build-system)
4645 (arguments
4646 ;; Some tests fail even outside Guix, so disable tests.
4647 ;; https://github.com/blowmage/minitest-rg/issues/12
4648 ;; https://github.com/blowmage/minitest-rg/pull/13
4649 `(#:tests? #f))
4650 (propagated-inputs
4651 `(("ruby-minitest" ,ruby-minitest)))
4652 (synopsis "Coloured output for Minitest")
4653 (description
4654 "@code{minitest-rg} changes the colour of the output from Minitest.")
4655 (home-page "https://blowmage.com/minitest-rg/")
4656 (license license:expat)))
4657
4658 (define-public ruby-minitest-global-expectations
4659 (package
4660 (name "ruby-minitest-global-expectations")
4661 (version "1.0.1")
4662 (source
4663 (origin
4664 (method url-fetch)
4665 (uri (rubygems-uri "minitest-global_expectations"
4666 version))
4667 (sha256
4668 (base32
4669 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4670 (build-system ruby-build-system)
4671 (propagated-inputs
4672 `(("ruby-minitest" ,ruby-minitest)))
4673 (synopsis "Adjust minitest behaviour for calling expectation methods")
4674 (description
4675 "Minitest-global_expectations allows continued use of expectation methods
4676 on all objects. Calling expectation methods on all objects was deprecated in
4677 minitest 5.12, and is planned to be removed from minitest 6.")
4678 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4679 (license license:expat)))
4680
4681 (define-public ruby-minitest-hooks
4682 (package
4683 (name "ruby-minitest-hooks")
4684 (version "1.4.2")
4685 (source
4686 (origin
4687 (method url-fetch)
4688 (uri (rubygems-uri "minitest-hooks" version))
4689 (sha256
4690 (base32
4691 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4692 (build-system ruby-build-system)
4693 (arguments
4694 '(#:test-target "spec"))
4695 (native-inputs
4696 `(("ruby-sequel" ,ruby-sequel)
4697 ("ruby-sqlite3" ,ruby-sqlite3)))
4698 (synopsis "Hooks for the minitest framework")
4699 (description
4700 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4701 @code{around_all} hooks for Minitest. This allows, for instance, running each
4702 suite of specs inside a database transaction, running each spec inside its own
4703 savepoint inside that transaction. This can significantly speed up testing
4704 for specs that share expensive database setup code.")
4705 (home-page "https://github.com/jeremyevans/minitest-hooks")
4706 (license license:expat)))
4707
4708 (define-public ruby-daemons
4709 (package
4710 (name "ruby-daemons")
4711 (version "1.2.5")
4712 (source (origin
4713 (method url-fetch)
4714 (uri (rubygems-uri "daemons" version))
4715 (sha256
4716 (base32
4717 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4718 (build-system ruby-build-system)
4719 (arguments
4720 `(#:tests? #f)) ; no test suite
4721 (synopsis "Daemonize Ruby programs")
4722 (description "Daemons provides a way to wrap existing Ruby scripts to be
4723 run as a daemon and to be controlled by simple start/stop/restart commands.")
4724 (home-page "https://github.com/thuehlinger/daemons")
4725 (license license:expat)))
4726
4727 (define-public ruby-data_uri
4728 (package
4729 (name "ruby-data_uri")
4730 (version "0.1.0")
4731 (source
4732 (origin
4733 (method url-fetch)
4734 (uri (rubygems-uri "data_uri" version))
4735 (sha256
4736 (base32
4737 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4738 (build-system ruby-build-system)
4739 (synopsis "URI class for parsing data URIs")
4740 (description
4741 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4742 embedded inside a URI. The URI::Data class provides support for parsing these
4743 URIs using the normal URI.parse method.")
4744 (home-page "https://github.com/dball/data_uri")
4745 (license license:expat)))
4746
4747 (define-public ruby-deep-merge
4748 (package
4749 (name "ruby-deep-merge")
4750 (version "1.2.1")
4751 (home-page "https://github.com/danielsdeleo/deep_merge")
4752 ;; The Rubygem source does not contain the gemspec required for tests.
4753 (source (origin
4754 (method git-fetch)
4755 (uri (git-reference (url home-page) (commit version)))
4756 (file-name (git-file-name name version))
4757 (sha256
4758 (base32
4759 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4760 (build-system ruby-build-system)
4761 (native-inputs
4762 `(("ruby-minitest" ,ruby-minitest)))
4763 (synopsis "Recursively merge hashes")
4764 (description
4765 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4766 you to merge elements inside a hash together recursively.")
4767 (license license:expat)))
4768
4769 (define-public ruby-git
4770 (package
4771 (name "ruby-git")
4772 (version "1.3.0")
4773 (source (origin
4774 (method url-fetch)
4775 (uri (rubygems-uri "git" version))
4776 (sha256
4777 (base32
4778 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4779 (build-system ruby-build-system)
4780 (arguments
4781 `(#:tests? #f ; no tests
4782 #:phases (modify-phases %standard-phases
4783 (add-after 'install 'patch-git-binary
4784 (lambda* (#:key inputs outputs #:allow-other-keys)
4785 ;; Make the default git binary an absolute path to the
4786 ;; store.
4787 (let ((git (string-append (assoc-ref inputs "git")
4788 "/bin/git"))
4789 (config (string-append
4790 (assoc-ref outputs "out")
4791 "/lib/ruby/vendor_ruby/gems/git-"
4792 ,version "/lib/git/config.rb")))
4793 (substitute* (list config)
4794 (("'git'")
4795 (string-append "'" git "'")))
4796 #t))))))
4797 (inputs
4798 `(("git" ,git)))
4799 (synopsis "Ruby wrappers for Git")
4800 (description "Ruby/Git is a Ruby library that can be used to create, read
4801 and manipulate Git repositories by wrapping system calls to the git binary.")
4802 (home-page "https://github.com/schacon/ruby-git")
4803 (license license:expat)))
4804
4805 (define-public ruby-hocon
4806 (package
4807 (name "ruby-hocon")
4808 (version "1.3.1")
4809 (home-page "https://github.com/puppetlabs/ruby-hocon")
4810 (source (origin
4811 (method git-fetch)
4812 (uri (git-reference (url home-page) (commit version)))
4813 (file-name (git-file-name name version))
4814 (sha256
4815 (base32
4816 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4817 (build-system ruby-build-system)
4818 (arguments
4819 '(#:phases (modify-phases %standard-phases
4820 (replace 'check
4821 (lambda* (#:key tests? #:allow-other-keys)
4822 (if tests?
4823 (invoke "rspec")
4824 (format #t "test suite not run~%"))
4825 #t)))))
4826 (native-inputs
4827 `(("bundler" ,bundler)
4828 ("ruby-rspec" ,ruby-rspec)))
4829 (synopsis "HOCON config library")
4830 (description
4831 "This package provides Ruby support for the @acronym{HOCON,
4832 Human-Optimized Config Object Notation} configuration file format. It
4833 supports parsing and modifying HOCON and JSON files, and rendering parsed
4834 objects back to a @code{String}.")
4835 (license license:asl2.0)))
4836
4837 (define-public ruby-slop
4838 (package
4839 (name "ruby-slop")
4840 (version "4.5.0")
4841 (source (origin
4842 (method url-fetch)
4843 (uri (rubygems-uri "slop" version))
4844 (sha256
4845 (base32
4846 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4847 (build-system ruby-build-system)
4848 (native-inputs
4849 `(("ruby-minitest" ,ruby-minitest)))
4850 (synopsis "Ruby command line option parser")
4851 (description "Slop provides a Ruby domain specific language for gathering
4852 options and parsing command line flags.")
4853 (home-page "https://github.com/leejarvis/slop")
4854 (license license:expat)))
4855
4856 (define-public ruby-slop-3
4857 (package (inherit ruby-slop)
4858 (version "3.6.0")
4859 (source (origin
4860 (method url-fetch)
4861 (uri (rubygems-uri "slop" version))
4862 (sha256
4863 (base32
4864 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4865
4866 (define-public ruby-multi-xml
4867 (package
4868 (name "ruby-multi-xml")
4869 (version "0.6.0")
4870 (source
4871 (origin
4872 (method url-fetch)
4873 (uri (rubygems-uri "multi_xml" version))
4874 (sha256
4875 (base32
4876 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4877 (build-system ruby-build-system)
4878 (arguments
4879 '(#:tests? #f)) ; No included tests
4880 (synopsis "Swappable XML backends for Ruby")
4881 (description
4882 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4883 Nokogiri, Ox, or REXML.")
4884 (home-page "https://github.com/sferik/multi_xml")
4885 (license license:expat)))
4886
4887 (define-public ruby-multipart-post
4888 (package
4889 (name "ruby-multipart-post")
4890 (version "2.0.0")
4891 (source (origin
4892 (method url-fetch)
4893 (uri (rubygems-uri "multipart-post" version))
4894 (sha256
4895 (base32
4896 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4897 (build-system ruby-build-system)
4898 (native-inputs
4899 `(("bundler" ,bundler)))
4900 (synopsis "Multipart POST library for Ruby")
4901 (description "Multipart-Post Adds multipart POST capability to Ruby's
4902 net/http library.")
4903 (home-page "https://github.com/nicksieger/multipart-post")
4904 (license license:expat)))
4905
4906 (define-public ruby-multi-json
4907 (package
4908 (name "ruby-multi-json")
4909 (version "1.13.1")
4910 (source
4911 (origin
4912 (method git-fetch)
4913 ;; Tests are not distributed at rubygems.org so download from GitHub
4914 ;; instead.
4915 (uri (git-reference
4916 (url "https://github.com/intridea/multi_json")
4917 (commit (string-append "v" version))))
4918 (file-name (git-file-name name version))
4919 (sha256
4920 (base32
4921 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4922 (build-system ruby-build-system)
4923 (arguments
4924 `(#:phases
4925 (modify-phases %standard-phases
4926 (add-after 'unpack 'remove-signing-key-reference
4927 (lambda _
4928 (substitute* "multi_json.gemspec"
4929 ((".*spec.signing_key.*") ""))
4930 #t)))))
4931 (native-inputs
4932 `(("bundler" ,bundler)
4933 ("ruby-rspec" ,ruby-rspec)
4934 ("ruby-yard" ,ruby-yard)
4935 ("ruby-json-pure" ,ruby-json-pure)
4936 ("ruby-oj" ,ruby-oj)
4937 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4938 (synopsis "Common interface to multiple JSON libraries for Ruby")
4939 (description
4940 "This package provides a common interface to multiple JSON libraries,
4941 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4942 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4943 (home-page "https://github.com/intridea/multi_json")
4944 (license license:expat)))
4945
4946 (define-public ruby-multi-test
4947 (package
4948 (name "ruby-multi-test")
4949 (version "0.1.2")
4950 (source
4951 (origin
4952 (method url-fetch)
4953 (uri (rubygems-uri "multi_test" version))
4954 (sha256
4955 (base32
4956 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4957 (build-system ruby-build-system)
4958 (arguments
4959 '(;; Tests require different sets of specific gem versions to be available,
4960 ;; and there is no gemfile that specifies the newest versions of
4961 ;; dependencies to be tested.
4962 #:tests? #f))
4963 (synopsis
4964 "Interface to testing libraries loaded into a running Ruby process")
4965 (description
4966 "@code{multi_test} provides a uniform interface onto whatever testing
4967 libraries that have been loaded into a running Ruby process to help control
4968 rogue test/unit/autorun requires.")
4969 (home-page "https://github.com/cucumber/multi_test")
4970 (license license:expat)))
4971
4972 (define-public ruby-arel
4973 (package
4974 (name "ruby-arel")
4975 (version "9.0.0")
4976 (source (origin
4977 (method url-fetch)
4978 (uri (rubygems-uri "arel" version))
4979 (sha256
4980 (base32
4981 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4982 (build-system ruby-build-system)
4983 (arguments '(#:tests? #f)) ; no tests
4984 (home-page "https://github.com/rails/arel")
4985 (synopsis "SQL AST manager for Ruby")
4986 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4987 Ruby. It simplifies the generation of complex SQL queries and adapts to
4988 various relational database implementations.")
4989 (license license:expat)))
4990
4991 (define-public ruby-marcel
4992 (package
4993 (name "ruby-marcel")
4994 (version "0.3.3")
4995 (source
4996 (origin
4997 (method url-fetch)
4998 (uri (rubygems-uri "marcel" version))
4999 (sha256
5000 (base32
5001 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
5002 (build-system ruby-build-system)
5003 (arguments
5004 '(;; No included tests
5005 #:tests? #f))
5006 (propagated-inputs
5007 `(("ruby-mimemagic" ,ruby-mimemagic)))
5008 (synopsis "MIME type detection using magic numbers, filenames and extensions")
5009 (description
5010 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
5011 Extensions} type detection using magic numbers, filenames, and extensions")
5012 (home-page "https://github.com/basecamp/marcel")
5013 (license license:expat)))
5014
5015 (define-public ruby-minitar
5016 ;; We package from the GitHub source to fix the security issue reported at
5017 ;; https://github.com/halostatue/minitar/issues/16.
5018 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
5019 (package
5020 (name "ruby-minitar")
5021 (version (string-append "0.5.4-1." (string-take commit 8)))
5022 (source
5023 (origin
5024 (method git-fetch)
5025 (uri (git-reference
5026 (url "https://github.com/halostatue/minitar")
5027 (commit commit)))
5028 (file-name (string-append name "-" version "-checkout"))
5029 (sha256
5030 (base32
5031 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
5032 (build-system ruby-build-system)
5033 (arguments
5034 '(#:tests? #f)) ; missing a gemspec
5035 (synopsis "Ruby library and utility for handling tar archives")
5036 (description
5037 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
5038 that provides the ability to deal with POSIX tar archive files.")
5039 (home-page "http://www.github.com/atoulme/minitar")
5040 (license (list license:gpl2+ license:ruby)))))
5041
5042 (define-public ruby-mini-portile
5043 (package
5044 (name "ruby-mini-portile")
5045 (version "0.6.2")
5046 (source
5047 (origin
5048 (method url-fetch)
5049 (uri (rubygems-uri "mini_portile" version))
5050 (sha256
5051 (base32
5052 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
5053 (build-system ruby-build-system)
5054 (arguments
5055 '(#:tests? #f)) ; tests require network access
5056 (synopsis "Ports system for Ruby developers")
5057 (description "Mini-portile is a port/recipe system for Ruby developers.
5058 It provides a standard way to compile against specific versions of libraries
5059 to reproduce user environments.")
5060 (home-page "https://github.com/flavorjones/mini_portile")
5061 (license license:expat)))
5062
5063 (define-public ruby-mini-portile-2
5064 (package (inherit ruby-mini-portile)
5065 (version "2.4.0")
5066 (source (origin
5067 (method url-fetch)
5068 (uri (rubygems-uri "mini_portile2" version))
5069 (sha256
5070 (base32
5071 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
5072
5073 (define-public ruby-nokogiri
5074 (package
5075 (name "ruby-nokogiri")
5076 (version "1.10.9")
5077 (source (origin
5078 (method url-fetch)
5079 (uri (rubygems-uri "nokogiri" version))
5080 (sha256
5081 (base32
5082 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
5083 (build-system ruby-build-system)
5084 (arguments
5085 ;; Tests fail because Nokogiri can only test with an installed extension,
5086 ;; and also because many test framework dependencies are missing.
5087 `(#:tests? #f
5088 #:gem-flags (list "--" "--use-system-libraries"
5089 (string-append "--with-xml2-include="
5090 (assoc-ref %build-inputs "libxml2")
5091 "/include/libxml2" ))
5092 #:phases
5093 (modify-phases %standard-phases
5094 (add-before 'build 'patch-extconf
5095 ;; 'pkg-config' is not included in the GEM_PATH during
5096 ;; installation, so we add it directly to the load path.
5097 (lambda* (#:key inputs #:allow-other-keys)
5098 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
5099 (substitute* "ext/nokogiri/extconf.rb"
5100 (("gem 'pkg-config'.*")
5101 (string-append "$:.unshift '"
5102 pkg-config "/lib/ruby/vendor_ruby"
5103 "/gems/pkg-config-"
5104 ,(package-version ruby-pkg-config)
5105 "/lib'\n"))))
5106 #t)))))
5107 (native-inputs
5108 `(("ruby-hoe" ,ruby-hoe)))
5109 (inputs
5110 `(("zlib" ,zlib)
5111 ("libxml2" ,libxml2)
5112 ("libxslt" ,libxslt)))
5113 (propagated-inputs
5114 `(("ruby-mini-portile" ,ruby-mini-portile-2)
5115 ("ruby-pkg-config" ,ruby-pkg-config)))
5116 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
5117 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
5118 both CSS3 selector and XPath 1.0 support.")
5119 (home-page "http://www.nokogiri.org/")
5120 (license license:expat)))
5121
5122 (define-public ruby-method-source
5123 (package
5124 (name "ruby-method-source")
5125 (version "1.0.0")
5126 (source
5127 (origin
5128 (method url-fetch)
5129 (uri (rubygems-uri "method_source" version))
5130 (sha256
5131 (base32
5132 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5133 (build-system ruby-build-system)
5134 (arguments
5135 `(#:test-target "spec"
5136 #:phases
5137 (modify-phases %standard-phases
5138 (add-after 'unpack 'remove-git-ls-files
5139 (lambda* (#:key outputs #:allow-other-keys)
5140 (substitute* "Rakefile"
5141 (("git ls-files") "find . -type f"))
5142 #t)))))
5143 (native-inputs
5144 `(("ruby-rspec" ,ruby-rspec)))
5145 (synopsis "Retrieve the source code for Ruby methods")
5146 (description "Method_source retrieves the source code for Ruby methods.
5147 Additionally, it can extract source code from Proc and Lambda objects or just
5148 extract comments.")
5149 (home-page "https://github.com/banister/method_source")
5150 (license license:expat)))
5151
5152 (define-public ruby-coderay
5153 (package
5154 (name "ruby-coderay")
5155 (version "1.1.2")
5156 (source
5157 (origin
5158 (method url-fetch)
5159 (uri (rubygems-uri "coderay" version))
5160 (sha256
5161 (base32
5162 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5163 (build-system ruby-build-system)
5164 (arguments
5165 '(#:tests? #f)) ; missing test files
5166 (synopsis "Ruby syntax highlighting library")
5167 (description "Coderay is a Ruby library that provides syntax highlighting
5168 for select languages.")
5169 (home-page "http://coderay.rubychan.de")
5170 (license license:expat)))
5171
5172 (define-public ruby-cuke-modeler
5173 (package
5174 (name "ruby-cuke-modeler")
5175 (version "3.1.0")
5176 (source
5177 (origin
5178 (method url-fetch)
5179 (uri (rubygems-uri "cuke_modeler" version))
5180 (sha256
5181 (base32
5182 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5183 (build-system ruby-build-system)
5184 (arguments `(#:tests? #f)) ;no test suite in gem
5185 (propagated-inputs
5186 `(("ruby-gherkin" ,ruby-gherkin)))
5187 (synopsis "Gherkin test suite analysis tool")
5188 (description "CukeModeler facilitates modeling a test suite that is
5189 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5190 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5191 the @code{cucumber-gherkin} generates when parsing features, as well as
5192 providing models for feature files and directories in order to be able to have
5193 a fully traversable model tree of a test suite's structure. These models can
5194 then be analyzed or manipulated more easily than the underlying AST layer.")
5195 (home-page "https://github.com/enkessler/cuke_modeler")
5196 (license license:expat)))
5197
5198 (define-public ruby-parallel-tests
5199 (package
5200 (name "ruby-parallel-tests")
5201 (version "3.0.0")
5202 (home-page "https://github.com/grosser/parallel_tests")
5203 (source (origin
5204 (method git-fetch)
5205 (uri (git-reference
5206 (url home-page)
5207 (commit (string-append "v" version))))
5208 (file-name (string-append name version))
5209 (sha256
5210 (base32
5211 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5212 (build-system ruby-build-system)
5213 (arguments
5214 '(#:test-target "default"
5215 #:phases (modify-phases %standard-phases
5216 (add-after 'patch-source-shebangs 'patch-shell-invokations
5217 (lambda _
5218 (substitute* '("lib/parallel_tests/tasks.rb"
5219 "spec/parallel_tests/tasks_spec.rb")
5220 (("/bin/sh") (which "sh"))
5221 (("/bin/bash") (which "bash")))
5222 #t))
5223 (add-before 'check 'remove-version-constraints
5224 (lambda _
5225 ;; Remove hard coded version constraints, instead just
5226 ;; use whatever versions are available in Guix.
5227 (delete-file "Gemfile.lock")
5228 (substitute* "Gemfile"
5229 (("'minitest',.*")
5230 "'minitest'\n")
5231 (("'cucumber',.*")
5232 "'cucumber'\n"))
5233 #t))
5234 (add-before 'check 'disable-rails-test
5235 (lambda _
5236 ;; XXX: This test attempts to download and run the test
5237 ;; suites of multiple Rails versions(!) directly.
5238 (delete-file "spec/rails_spec.rb")
5239 #t))
5240 (add-before 'check 'set-HOME
5241 (lambda _
5242 ;; Some tests check the output of Bundler, and fail when
5243 ;; Bundler warns that /homeless-shelter does not exist.
5244 (setenv "HOME" "/tmp")
5245 #t)))))
5246 (native-inputs
5247 `(("ruby-bump" ,ruby-bump)
5248 ("ruby-cucumber" ,ruby-cucumber)
5249 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5250 ("ruby-minitest" ,ruby-minitest)
5251 ("ruby-rake" ,ruby-rake)
5252 ("ruby-rspec" ,ruby-rspec)
5253 ("ruby-spinach" ,ruby-spinach)))
5254 (propagated-inputs
5255 `(("ruby-parallel" ,ruby-parallel)))
5256 (synopsis "Run tests in parallel")
5257 (description
5258 "This package can speed up @code{Test::Unit}, @code{RSpec},
5259 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5260 across multiple CPU cores.")
5261 (license license:expat)))
5262
5263 (define-public ruby-parser
5264 (package
5265 (name "ruby-parser")
5266 (version "3.0.0.0")
5267 (source
5268 (origin
5269 (method url-fetch)
5270 (uri (rubygems-uri "parser" version))
5271 (sha256
5272 (base32
5273 "1jixakyzmy0j5c1rb0fjrrdhgnyryvrr6vgcybs14jfw09akv5ml"))))
5274 (build-system ruby-build-system)
5275 (arguments
5276 '(#:tests? #f)) ; tests not included in gem
5277 (native-inputs
5278 `(("bundler" ,bundler)
5279 ("ruby-cliver" ,ruby-cliver)
5280 ("ruby-simplecov" ,ruby-simplecov)
5281 ("ruby-racc" ,ruby-racc)))
5282 (inputs
5283 `(("ragel" ,ragel)))
5284 (propagated-inputs
5285 `(("ruby-ast" ,ruby-ast)))
5286 (synopsis "Ruby parser written in pure Ruby")
5287 (description
5288 "This package provides a Ruby parser written in pure Ruby.")
5289 (home-page "https://github.com/whitequark/parser")
5290 (license license:expat)))
5291
5292 (define-public ruby-sexp-processor
5293 (package
5294 (name "ruby-sexp-processor")
5295 (version "4.15.0")
5296 (source
5297 (origin
5298 (method url-fetch)
5299 (uri (rubygems-uri "sexp_processor" version))
5300 (sha256
5301 (base32
5302 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5303 (build-system ruby-build-system)
5304 (native-inputs
5305 ;; TODO: Add ruby-minitest-proveit once available.
5306 `(("hoe" ,ruby-hoe)))
5307 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5308 (description "The sexp_processor package is derived from ParseTree, but
5309 contrary to ParseTree, it includes all the generic S-exp processing tools.
5310 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5311 @code{Environment}")
5312 (home-page "https://github.com/seattlerb/sexp_processor")
5313 (license license:expat)))
5314
5315 (define-public ruby-ruby-parser
5316 (package
5317 (name "ruby-ruby-parser")
5318 (version "3.14.2")
5319 (source
5320 (origin
5321 (method url-fetch)
5322 (uri (rubygems-uri "ruby_parser" version))
5323 (sha256
5324 (base32
5325 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5326 (build-system ruby-build-system)
5327 (native-inputs
5328 `(("hoe" ,ruby-hoe)
5329 ("racc" ,ruby-racc)
5330 ("unifdef" ,unifdef)))
5331 (propagated-inputs
5332 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5333 (home-page "https://github.com/seattlerb/ruby_parser/")
5334 (synopsis "Ruby parser written in pure Ruby")
5335 (description "The ruby_parser (RP) package provides a Ruby parser written
5336 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5337 back to Ruby via the @code{ruby2ruby} library.")
5338 (license license:expat)))
5339
5340 (define-public ruby-prawn-manual-builder
5341 (package
5342 (name "ruby-prawn-manual-builder")
5343 (version "0.3.1")
5344 (source
5345 (origin
5346 (method url-fetch)
5347 (uri (rubygems-uri "prawn-manual_builder" version))
5348 (sha256
5349 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5350 (build-system ruby-build-system)
5351 (arguments
5352 '(#:tests? #f ; no included tests
5353 #:phases
5354 (modify-phases %standard-phases
5355 (add-after 'extract-gemspec 'patch-gemspec
5356 (lambda _
5357 (substitute* ".gemspec"
5358 ;; Loosen the requirement for pdf-inspector
5359 (("~> 1\\.0\\.7") ">= 0")))))))
5360 (propagated-inputs
5361 `(("ruby-coderay" ,ruby-coderay)))
5362 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5363 (description
5364 "This package provides a tool for writing manuals for Prawn and Prawn
5365 accessories")
5366 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5367 (license %prawn-project-licenses)))
5368
5369 (define-public ruby-progress_bar
5370 (package
5371 (name "ruby-progress_bar")
5372 (version "1.1.0")
5373 (source
5374 (origin
5375 (method url-fetch)
5376 (uri (rubygems-uri "progress_bar" version))
5377 (sha256
5378 (base32
5379 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5380 (build-system ruby-build-system)
5381 (arguments
5382 '(#:test-target "spec"))
5383 (propagated-inputs
5384 `(("ruby-highline" ,ruby-highline)
5385 ("ruby-options" ,ruby-options)))
5386 (native-inputs
5387 `(("bundler" ,bundler)
5388 ("ruby-rspec" ,ruby-rspec)
5389 ("ruby-timecop" ,ruby-timecop)))
5390 (synopsis
5391 "Ruby library for displaying progress bars")
5392 (description
5393 "ProgressBar is a simple library for displaying progress bars. The
5394 maximum value is configurable, and additional information can be displayed
5395 like the percentage completion, estimated time remaining, elapsed time and
5396 rate.")
5397 (home-page "https://github.com/paul/progress_bar")
5398 (license license:wtfpl2)))
5399
5400 (define-public ruby-dep
5401 (package
5402 (name "ruby-dep")
5403 (version "1.5.0")
5404 (source
5405 (origin
5406 (method url-fetch)
5407 (uri (rubygems-uri "ruby_dep" version))
5408 (sha256
5409 (base32
5410 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5411 (build-system ruby-build-system)
5412 (arguments
5413 '(#:tests? #f)) ; No included tests
5414 (synopsis "Creates a version constraint of supported Rubies")
5415 (description
5416 "This package helps create a version constraint of supported Rubies,
5417 suitable for a gemspec file.")
5418 (home-page "https://github.com/e2/ruby_dep")
5419 (license license:expat)))
5420
5421 (define-public ruby-progressbar
5422 (package
5423 (name "ruby-progressbar")
5424 (version "1.10.1")
5425 (source
5426 (origin
5427 (method url-fetch)
5428 (uri (rubygems-uri "ruby-progressbar" version))
5429 (sha256
5430 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5431 (build-system ruby-build-system)
5432 (arguments
5433 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5434 #:tests? #f))
5435 (synopsis "Text progress bar library for Ruby")
5436 (description
5437 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5438 The output can be customized with a formatting system.")
5439 (home-page "https://github.com/jfelchner/ruby-progressbar")
5440 (license license:expat)))
5441
5442 (define-public ruby-pry
5443 (package
5444 (name "ruby-pry")
5445 (version "0.13.1")
5446 (source
5447 (origin
5448 (method url-fetch)
5449 (uri (rubygems-uri "pry" version))
5450 (sha256
5451 (base32
5452 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5453 (build-system ruby-build-system)
5454 (arguments
5455 '(#:tests? #f)) ; no tests
5456 (propagated-inputs
5457 `(("ruby-coderay" ,ruby-coderay)
5458 ("ruby-method-source" ,ruby-method-source)))
5459 (synopsis "Ruby REPL")
5460 (description "Pry is an IRB alternative and runtime developer console for
5461 Ruby. It features syntax highlighting, a plugin architecture, runtime
5462 invocation, and source and documentation browsing.")
5463 (home-page "https://cobaltbluemedia.com/pryrepl/")
5464 (license license:expat)))
5465
5466 (define-public ruby-single-cov
5467 (package
5468 (name "ruby-single-cov")
5469 (version "1.3.2")
5470 (home-page "https://github.com/grosser/single_cov")
5471 (source (origin
5472 (method git-fetch)
5473 (uri (git-reference (url home-page)
5474 (commit (string-append "v" version))))
5475 (file-name (git-file-name name version))
5476 (sha256
5477 (base32
5478 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5479 (build-system ruby-build-system)
5480 (arguments
5481 '(#:test-target "default"
5482 #:phases (modify-phases %standard-phases
5483 (replace 'replace-git-ls-files
5484 (lambda _
5485 (substitute* "single_cov.gemspec"
5486 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5487 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5488 #t))
5489 (add-before 'check 'remove-version-constraints
5490 (lambda _
5491 (delete-file "Gemfile.lock")
5492 #t))
5493 (add-before 'check 'make-files-writable
5494 (lambda _
5495 ;; Tests need to create local directories and open files
5496 ;; with write permissions.
5497 (for-each make-file-writable
5498 (find-files "specs" #:directories? #t))
5499 #t))
5500 (add-before 'check 'disable-failing-test
5501 (lambda _
5502 ;; XXX: This test copies assets from minitest, but can
5503 ;; not cope with the files being read-only. Just skip
5504 ;; it for now.
5505 (substitute* "specs/single_cov_spec.rb"
5506 (("it \"complains when coverage is bad\"")
5507 "xit \"complains when coverage is bad\""))
5508 #t)))))
5509 (native-inputs
5510 `(("ruby-bump" ,ruby-bump)
5511 ("ruby-minitest" ,ruby-minitest)
5512 ("ruby-rspec" ,ruby-rspec)
5513 ("ruby-simplecov" ,ruby-simplecov)))
5514 (synopsis "Code coverage reporting tool")
5515 (description
5516 "This package provides actionable code coverage reports for Ruby
5517 projects. It has very little overhead and can be easily integrated with
5518 development tools to catch coverage problems early.")
5519 (license license:expat)))
5520
5521 (define-public ruby-oedipus-lex
5522 (package
5523 (name "ruby-oedipus-lex")
5524 (version "2.5.2")
5525 (source
5526 (origin
5527 (method url-fetch)
5528 (uri (rubygems-uri "oedipus_lex" version))
5529 (sha256
5530 (base32
5531 "1v1rk78khwq87ar300lwll570zxpkq9rjnpgc9mgsyd6mm9qjz4w"))))
5532 (build-system ruby-build-system)
5533 (native-inputs
5534 `(("ruby-hoe" ,ruby-hoe)))
5535 (synopsis "Ruby lexer")
5536 (description
5537 "Oedipus Lex is a lexer generator in the same family as Rexical and Rex.
5538 It is based primarily on generating code much like you would a hand-written
5539 lexer. It uses StrScanner within a multi-level case statement. As such,
5540 Oedipus matches on the first match, not the longest.")
5541 (home-page "https://github.com/seattlerb/oedipus_lex")
5542 (license license:expat)))
5543
5544 (define-public ruby-guard
5545 (package
5546 (name "ruby-guard")
5547 (version "2.13.0")
5548 (source (origin
5549 (method git-fetch)
5550 ;; The gem does not include a Rakefile, nor does it contain a
5551 ;; gemspec file, nor does it come with the tests. This is why
5552 ;; we fetch the tarball from Github.
5553 (uri (git-reference
5554 (url "https://github.com/guard/guard")
5555 (commit (string-append "v" version))))
5556 (file-name (git-file-name name version))
5557 (sha256
5558 (base32
5559 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5560 (build-system ruby-build-system)
5561 (arguments
5562 `(#:tests? #f ; tests require cucumber
5563 #:phases
5564 (modify-phases %standard-phases
5565 (add-after 'unpack 'remove-git-ls-files
5566 (lambda* (#:key outputs #:allow-other-keys)
5567 (substitute* "guard.gemspec"
5568 (("git ls-files -z") "find . -type f -print0"))
5569 #t))
5570 (replace 'build
5571 (lambda _
5572 (invoke "gem" "build" "guard.gemspec"))))))
5573 (propagated-inputs
5574 `(("ruby-formatador" ,ruby-formatador)
5575 ("ruby-listen" ,ruby-listen)
5576 ("ruby-lumberjack" ,ruby-lumberjack)
5577 ("ruby-nenv" ,ruby-nenv)
5578 ("ruby-notiffany" ,ruby-notiffany)
5579 ("ruby-pry" ,ruby-pry)
5580 ("ruby-shellany" ,ruby-shellany)
5581 ("ruby-thor" ,ruby-thor)))
5582 (native-inputs
5583 `(("bundler" ,bundler)
5584 ("ruby-rspec" ,ruby-rspec)))
5585 (synopsis "Tool to handle events on file system modifications")
5586 (description
5587 "Guard is a command line tool to easily handle events on file system
5588 modifications. Guard automates various tasks by running custom rules whenever
5589 file or directories are modified.")
5590 (home-page "https://guardgem.org/")
5591 (license license:expat)))
5592
5593 (define-public ruby-spinach
5594 (package
5595 (name "ruby-spinach")
5596 (version "0.11.0")
5597 (home-page "https://github.com/codegram/spinach")
5598 (source (origin
5599 (method url-fetch)
5600 (uri (rubygems-uri "spinach" version))
5601 (sha256
5602 (base32
5603 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5604 (build-system ruby-build-system)
5605 (arguments
5606 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5607 ;; which in turn depends on many other unpackaged gems. Enable once
5608 ;; capybara is available.
5609 '(#:tests? #f))
5610 (propagated-inputs
5611 `(("ruby-colorize" ,ruby-colorize)
5612 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5613 ("ruby-json" ,ruby-json)))
5614 (synopsis "Gherkin-based BDD framework")
5615 (description
5616 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5617 framework that leverages the expressive @code{Gherkin} language to help you
5618 define executable specifications of your code.")
5619 (license license:expat)))
5620
5621 (define-public ruby-tilt
5622 (package
5623 (name "ruby-tilt")
5624 (version "2.0.10")
5625 (source
5626 (origin
5627 (method git-fetch) ;the distributed gem lacks tests
5628 (uri (git-reference
5629 (url "https://github.com/rtomayko/tilt")
5630 (commit (string-append "v" version))))
5631 (file-name (git-file-name name version))
5632 (sha256
5633 (base32
5634 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5635 (build-system ruby-build-system)
5636 (arguments
5637 '(#:phases
5638 (modify-phases %standard-phases
5639 (add-after 'unpack 'remove-some-dependencies
5640 (lambda _
5641 (substitute* "Gemfile"
5642 ;; TODO ronn is used for generating the manual
5643 (("gem 'ronn'.*") "\n")
5644 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5645 ;; pass it in as a native-input
5646 (("gem 'haml'.*") "\n")
5647 ;; TODO Not all of these gems are packaged for Guix yet:
5648 ;; less, coffee-script, livescript, babel-transpiler,
5649 ;; typescript-node
5650 (("if can_execjs") "if false")
5651 ;; Disable the secondary group to reduce the number of
5652 ;; dependencies. None of the normal approaches work, so patch
5653 ;; the Gemfile instead.
5654 (("group :secondary") "[].each"))
5655 #t)))))
5656 (propagated-inputs
5657 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5658 ("ruby-sassc" ,ruby-sassc)))
5659 (native-inputs
5660 `(("bundler" ,bundler)
5661 ("ruby-yard" ,ruby-yard)
5662 ("ruby-builder" ,ruby-builder)
5663 ("ruby-erubis" ,ruby-erubis)
5664 ("ruby-markaby" ,ruby-markaby)))
5665 (synopsis "Generic interface to multiple Ruby template engines")
5666 (description
5667 "Tilt is a thin interface over a number of different Ruby template
5668 engines in an attempt to make their usage as generic as possible.")
5669 (home-page "https://github.com/rtomayko/tilt/")
5670 (license license:expat)))
5671
5672 (define-public ruby-thread-safe
5673 (package
5674 (name "ruby-thread-safe")
5675 (version "0.3.6")
5676 (source
5677 (origin
5678 (method url-fetch)
5679 (uri (rubygems-uri "thread_safe" version))
5680 (sha256
5681 (base32
5682 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5683 (build-system ruby-build-system)
5684 (arguments
5685 '(#:tests? #f)) ; needs simplecov, among others
5686 (synopsis "Thread-safe utilities for Ruby")
5687 (description "The thread_safe library provides thread-safe collections and
5688 utilities for Ruby.")
5689 (home-page "https://github.com/ruby-concurrency/thread_safe")
5690 (license license:asl2.0)))
5691
5692 (define-public ruby-tzinfo
5693 (package
5694 (name "ruby-tzinfo")
5695 (version "1.2.4")
5696 (source
5697 (origin
5698 (method url-fetch)
5699 (uri (rubygems-uri "tzinfo" version))
5700 (sha256
5701 (base32
5702 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5703 (build-system ruby-build-system)
5704 (arguments
5705 '(#:phases
5706 (modify-phases %standard-phases
5707 (add-after 'unpack 'skip-safe-tests
5708 (lambda _
5709 (substitute* "test/test_utils.rb"
5710 (("def safe_test\\(options = \\{\\}\\)")
5711 "def safe_test(options = {})
5712 skip('The Guix build environment has an unsafe load path')"))
5713 #t)))))
5714 (propagated-inputs
5715 `(("ruby-thread-safe" ,ruby-thread-safe)))
5716 (synopsis "Time zone library for Ruby")
5717 (description "TZInfo is a Ruby library that provides daylight savings
5718 aware transformations between times in different time zones.")
5719 (home-page "https://tzinfo.github.io")
5720 (license license:expat)))
5721
5722 (define-public ruby-tzinfo-data
5723 (package
5724 (name "ruby-tzinfo-data")
5725 (version "1.2017.3")
5726 (source
5727 (origin
5728 (method git-fetch)
5729 ;; Download from GitHub because the rubygems version does not contain
5730 ;; Rakefile or tests.
5731 (uri (git-reference
5732 (url "https://github.com/tzinfo/tzinfo-data")
5733 (commit (string-append "v" version))))
5734 (file-name (git-file-name name version))
5735 (sha256
5736 (base32
5737 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5738 ;; Remove the known test failure.
5739 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5740 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5741 (patches (search-patches
5742 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5743 (build-system ruby-build-system)
5744 (propagated-inputs
5745 `(("ruby-tzinfo" ,ruby-tzinfo)))
5746 (synopsis "Data from the IANA Time Zone database")
5747 (description
5748 "This library provides @code{TZInfo::Data}, which contains data from the
5749 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5750 (home-page "https://tzinfo.github.io")
5751 (license license:expat)))
5752
5753 (define-public ruby-rb-inotify
5754 (package
5755 (name "ruby-rb-inotify")
5756 (version "0.9.10")
5757 (source
5758 (origin
5759 (method url-fetch)
5760 (uri (rubygems-uri "rb-inotify" version))
5761 (sha256
5762 (base32
5763 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5764 (build-system ruby-build-system)
5765 (arguments
5766 '(#:tests? #f ; there are no tests
5767 #:phases
5768 (modify-phases %standard-phases
5769 ;; Building the gemspec with rake is not working here since it is
5770 ;; generated with Jeweler. It is also unnecessary because the
5771 ;; existing gemspec does not use any development tools to generate a
5772 ;; list of files.
5773 (replace 'build
5774 (lambda _
5775 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5776 (propagated-inputs
5777 `(("ruby-ffi" ,ruby-ffi)))
5778 (native-inputs
5779 `(("ruby-yard" ,ruby-yard)))
5780 (synopsis "Ruby wrapper for Linux's inotify")
5781 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5782 kernel subsystem for monitoring changes to files and directories.")
5783 (home-page "https://github.com/nex3/rb-inotify")
5784 (license license:expat)))
5785
5786 (define-public ruby-pry-editline
5787 (package
5788 (name "ruby-pry-editline")
5789 (version "1.1.2")
5790 (source (origin
5791 (method url-fetch)
5792 (uri (rubygems-uri "pry-editline" version))
5793 (sha256
5794 (base32
5795 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5796 (build-system ruby-build-system)
5797 (arguments `(#:tests? #f)) ; no tests included
5798 (native-inputs
5799 `(("bundler" ,bundler)))
5800 (synopsis "Open the current REPL line in an editor")
5801 (description
5802 "This gem provides a plugin for the Ruby REPL to enable opening the
5803 current line in an external editor.")
5804 (home-page "https://github.com/tpope/pry-editline")
5805 (license license:expat)))
5806
5807 (define-public ruby-sdoc
5808 (package
5809 (name "ruby-sdoc")
5810 (version "1.1.0")
5811 (source (origin
5812 (method url-fetch)
5813 (uri (rubygems-uri "sdoc" version))
5814 (sha256
5815 (base32
5816 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5817 (build-system ruby-build-system)
5818 (arguments
5819 `(#:phases
5820 (modify-phases %standard-phases
5821 (add-before 'check 'set-rubylib-and-patch-gemfile
5822 (lambda _
5823 (setenv "RUBYLIB" "lib")
5824 (substitute* "sdoc.gemspec"
5825 (("s.add_runtime_dependency.*") "\n")
5826 (("s.add_dependency.*") "\n"))
5827 (substitute* "Gemfile"
5828 (("gem \"rake\".*")
5829 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5830 #t)))))
5831 (propagated-inputs
5832 `(("ruby-json" ,ruby-json)))
5833 (native-inputs
5834 `(("bundler" ,bundler)
5835 ("ruby-minitest" ,ruby-minitest)
5836 ("ruby-hoe" ,ruby-hoe)))
5837 (synopsis "Generate searchable RDoc documentation")
5838 (description
5839 "SDoc is an RDoc documentation generator to build searchable HTML
5840 documentation for Ruby code.")
5841 (home-page "https://github.com/voloko/sdoc")
5842 (license license:expat)))
5843
5844 (define-public ruby-tins
5845 (package
5846 (name "ruby-tins")
5847 (version "1.15.0")
5848 (source (origin
5849 (method url-fetch)
5850 (uri (rubygems-uri "tins" version))
5851 (sha256
5852 (base32
5853 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5854 (build-system ruby-build-system)
5855 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5856 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5857 ;; the gemspec.
5858 (arguments
5859 `(#:tests? #f ; there are no tests
5860 #:phases
5861 (modify-phases %standard-phases
5862 (replace 'build
5863 (lambda _
5864 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5865 ;; causes an error.
5866 (substitute* "tins.gemspec"
5867 (("\"lib/spruz\", ") ""))
5868 (invoke "gem" "build" "tins.gemspec"))))))
5869 (synopsis "Assorted tools for Ruby")
5870 (description "Tins is a Ruby library providing assorted tools.")
5871 (home-page "https://github.com/flori/tins")
5872 (license license:expat)))
5873
5874 (define-public ruby-gem-hadar
5875 (package
5876 (name "ruby-gem-hadar")
5877 (version "1.11.0")
5878 (source (origin
5879 (method url-fetch)
5880 (uri (rubygems-uri "gem_hadar" version))
5881 (sha256
5882 (base32
5883 "160abb3l4n3gkhd86f22n981bhqxkbf5ym6fhsk796pix6696pd5"))))
5884 (build-system ruby-build-system)
5885 ;; This gem needs itself at development time. We disable rebuilding of the
5886 ;; gemspec to avoid this loop.
5887 (arguments
5888 `(#:tests? #f ; there are no tests
5889 #:phases
5890 (modify-phases %standard-phases
5891 (replace 'build
5892 (lambda _
5893 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5894 (propagated-inputs
5895 `(("git" ,git)
5896 ("ruby-tins" ,ruby-tins)
5897 ("ruby-yard" ,ruby-yard)))
5898 (synopsis "Library for the development of Ruby gems")
5899 (description
5900 "This library contains some useful functionality to support the
5901 development of Ruby gems.")
5902 (home-page "https://github.com/flori/gem_hadar")
5903 (license license:expat)))
5904
5905 (define-public ruby-minitest-tu-shim
5906 (package
5907 (name "ruby-minitest-tu-shim")
5908 (version "1.3.3")
5909 (source (origin
5910 (method url-fetch)
5911 (uri (rubygems-uri "minitest_tu_shim" version))
5912 (sha256
5913 (base32
5914 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5915 (build-system ruby-build-system)
5916 (arguments
5917 `(#:phases
5918 (modify-phases %standard-phases
5919 (add-after 'unpack 'fix-test-include-path
5920 (lambda* (#:key inputs #:allow-other-keys)
5921 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5922 (substitute* "Rakefile"
5923 (("Hoe\\.add_include_dirs .*")
5924 (string-append "Hoe.add_include_dirs \""
5925 minitest "/lib/ruby/vendor_ruby"
5926 "/gems/minitest-"
5927 ,(package-version ruby-minitest-4)
5928 "/lib" "\""))))
5929 #t))
5930 (add-before 'check 'fix-test-assumptions
5931 (lambda _
5932 ;; The test output includes the file name, so a couple of tests
5933 ;; fail. Changing the regular expressions slightly fixes this
5934 ;; problem.
5935 (substitute* "test/test_mini_test.rb"
5936 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5937 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5938 (("gsub\\(/.*, 'FILE:LINE'\\)")
5939 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5940 #t)))))
5941 (propagated-inputs
5942 `(("ruby-minitest-4" ,ruby-minitest-4)))
5943 (native-inputs
5944 `(("ruby-hoe" ,ruby-hoe)))
5945 (synopsis "Adapter library between minitest and test/unit")
5946 (description
5947 "This library bridges the gap between the small and fast minitest and
5948 Ruby's large and slower test/unit.")
5949 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5950 (license license:expat)))
5951
5952 (define-public ruby-term-ansicolor
5953 (package
5954 (name "ruby-term-ansicolor")
5955 (version "1.6.0")
5956 (source (origin
5957 (method url-fetch)
5958 (uri (rubygems-uri "term-ansicolor" version))
5959 (sha256
5960 (base32
5961 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5962 (build-system ruby-build-system)
5963 ;; Rebuilding the gemspec seems to require git, even though this is not a
5964 ;; git repository, so we just build the gem from the existing gemspec.
5965 (arguments
5966 `(#:phases
5967 (modify-phases %standard-phases
5968 (add-after 'unpack 'fix-test
5969 (lambda -
5970 (substitute* "tests/hsl_triple_test.rb"
5971 (("0\\\\\\.0%")
5972 "0\\.?0?%"))))
5973 (replace 'build
5974 (lambda _
5975 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5976 (propagated-inputs
5977 `(("ruby-tins" ,ruby-tins)))
5978 (native-inputs
5979 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5980 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5981 (synopsis "Ruby library to control the attributes of terminal output")
5982 (description
5983 "This Ruby library uses ANSI escape sequences to control the attributes
5984 of terminal output.")
5985 (home-page "https://flori.github.io/term-ansicolor/")
5986 ;; There is no mention of the "or later" clause.
5987 (license license:gpl2)))
5988
5989 (define-public ruby-terraform
5990 (package
5991 (name "ruby-terraform")
5992 (version "0.22.0")
5993 (source
5994 (origin
5995 (method url-fetch)
5996 (uri (rubygems-uri "ruby-terraform" version))
5997 (sha256
5998 (base32
5999 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
6000 (build-system ruby-build-system)
6001 (arguments
6002 '(#:tests? #f)) ; No included tests
6003 (propagated-inputs
6004 `(("ruby-lino" ,ruby-lino)))
6005 (synopsis "Ruby wrapper around the Terraform command line interface")
6006 (description
6007 "This package provides a Ruby wrapper around the Terraform command line
6008 interface so that Terraform can be more easily invoked from Ruby code.")
6009 (home-page "https://github.com/infrablocks/ruby_terraform")
6010 (license license:expat)))
6011
6012 (define-public ruby-pstree
6013 (package
6014 (name "ruby-pstree")
6015 (version "0.1.0")
6016 (source (origin
6017 (method url-fetch)
6018 (uri (rubygems-uri "pstree" version))
6019 (sha256
6020 (base32
6021 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
6022 (build-system ruby-build-system)
6023 (native-inputs
6024 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6025 ("bundler" ,bundler)))
6026 (synopsis "Create a process tree data structure")
6027 (description
6028 "This library uses the output of the @code{ps} command to create a
6029 process tree data structure for the current host.")
6030 (home-page "https://github.com/flori/pstree")
6031 ;; There is no mention of the "or later" clause.
6032 (license license:gpl2)))
6033
6034 (define-public ruby-utils
6035 (package
6036 (name "ruby-utils")
6037 (version "0.9.0")
6038 (source (origin
6039 (method url-fetch)
6040 (uri (rubygems-uri "utils" version))
6041 (sha256
6042 (base32
6043 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
6044 (build-system ruby-build-system)
6045 (propagated-inputs
6046 `(("ruby-tins" ,ruby-tins)
6047 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
6048 ("ruby-pstree" ,ruby-pstree)
6049 ("ruby-pry-editline" ,ruby-pry-editline)))
6050 (native-inputs
6051 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6052 ("bundler" ,bundler)))
6053 (synopsis "Command line tools for working with Ruby")
6054 (description
6055 "This package provides assorted command line tools that may be useful
6056 when working with Ruby code.")
6057 (home-page "https://github.com/flori/utils")
6058 ;; There is no mention of the "or later" clause.
6059 (license license:gpl2)))
6060
6061 (define-public ruby-jaro-winkler
6062 (package
6063 (name "ruby-jaro-winkler")
6064 (version "1.5.4")
6065 (source
6066 (origin
6067 (method url-fetch)
6068 (uri (rubygems-uri "jaro_winkler" version))
6069 (sha256
6070 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
6071 (build-system ruby-build-system)
6072 (arguments
6073 '(#:tests? #f)) ; no included tests
6074 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
6075 (description
6076 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
6077 algorithm. It is written as a C extension and will fallback to a pure Ruby
6078 implementation on platforms where this is unsupported.")
6079 (home-page "https://github.com/tonytonyjan/jaro_winkler")
6080 (license license:expat)))
6081
6082 (define-public ruby-json
6083 (package
6084 (name "ruby-json")
6085 (version "2.1.0")
6086 (source
6087 (origin
6088 (method url-fetch)
6089 (uri (rubygems-uri "json" version))
6090 (sha256
6091 (base32
6092 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
6093 (build-system ruby-build-system)
6094 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
6095 (synopsis "JSON library for Ruby")
6096 (description "This Ruby library provides a JSON implementation written as
6097 a native C extension.")
6098 (home-page "http://json-jruby.rubyforge.org/")
6099 (license (list license:ruby license:gpl2)))) ; GPL2 only
6100
6101 (define-public ruby-json-pure
6102 (package
6103 (name "ruby-json-pure")
6104 (version "2.2.0")
6105 (source (origin
6106 (method url-fetch)
6107 (uri (rubygems-uri "json_pure" version))
6108 (sha256
6109 (base32
6110 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
6111 (build-system ruby-build-system)
6112 (arguments
6113 `(#:phases
6114 (modify-phases %standard-phases
6115 (add-after 'unpack 'fix-rakefile
6116 (lambda _
6117 (substitute* "Rakefile"
6118 ;; Since this is not a git repository, do not call 'git'.
6119 (("`git ls-files`") "`find . -type f |sort`")
6120 ;; Loosen dependency constraint.
6121 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
6122 #t))
6123 (add-after 'replace-git-ls-files 'regenerate-gemspec
6124 (lambda _
6125 ;; Regenerate gemspec so loosened dependency constraints are
6126 ;; propagated.
6127 (invoke "rake" "gemspec")))
6128 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
6129 (lambda _
6130 ;; This gemspec doesn't look to be generated by the above
6131 ;; command, so patch it separately.
6132 (substitute* "json-java.gemspec"
6133 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
6134 "%q<test-unit>.freeze, [\">= 2.0\"]"))
6135 #t)))))
6136 (native-inputs
6137 `(("bundler" ,bundler)
6138 ("ragel" ,ragel)
6139 ("ruby-simplecov" ,ruby-simplecov)
6140 ("ruby-test-unit" ,ruby-test-unit)))
6141 (synopsis "JSON implementation in pure Ruby")
6142 (description
6143 "This package provides a JSON implementation written in pure Ruby.")
6144 (home-page "https://flori.github.com/json/")
6145 (license license:ruby)))
6146
6147 (define-public ruby-jwt
6148 (package
6149 (name "ruby-jwt")
6150 (version "2.1.0")
6151 (source
6152 (origin
6153 (method url-fetch)
6154 (uri (rubygems-uri "jwt" version))
6155 (sha256
6156 (base32
6157 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
6158 (build-system ruby-build-system)
6159 (arguments
6160 '(#:test-target "test"
6161 #:phases
6162 (modify-phases %standard-phases
6163 (add-after 'unpack 'remove-unnecessary-dependencies
6164 (lambda _
6165 (substitute* "spec/spec_helper.rb"
6166 (("require 'simplecov.*") "\n")
6167 ;; Use [].each to disable running the SimpleCov configuration
6168 ;; block
6169 (("SimpleCov\\.configure") "[].each")
6170 (("require 'codeclimate-test-reporter'") "")
6171 (("require 'codacy-coverage'") "")
6172 (("Codacy::Reporter\\.start") ""))
6173 #t)))))
6174 (native-inputs
6175 `(("bundler" ,bundler)
6176 ("ruby-rspec" ,ruby-rspec)
6177 ("ruby-rbnacl" ,ruby-rbnacl)))
6178 (synopsis "Ruby implementation of the JSON Web Token standard")
6179 (description
6180 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6181 @acronym{JWT, JSON Web Token} standard.")
6182 (home-page "https://github.com/jwt/ruby-jwt")
6183 (license license:expat)))
6184
6185 ;; Even though this package only provides bindings for a Mac OSX API it is
6186 ;; required by "ruby-listen" at runtime.
6187 (define-public ruby-rb-fsevent
6188 (package
6189 (name "ruby-rb-fsevent")
6190 (version "0.10.3")
6191 (source (origin
6192 (method url-fetch)
6193 (uri (rubygems-uri "rb-fsevent" version))
6194 (sha256
6195 (base32
6196 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6197 (build-system ruby-build-system)
6198 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6199 ;; "listen", which needs "rb-fsevent" at runtime.
6200 (arguments `(#:tests? #f))
6201 (synopsis "FSEvents API with signals catching")
6202 (description
6203 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6204 (home-page "https://rubygems.org/gems/rb-fsevent")
6205 (license license:expat)))
6206
6207 (define-public ruby-listen
6208 (package
6209 (name "ruby-listen")
6210 (version "3.2.0")
6211 (source
6212 (origin
6213 ;; The gem does not include a Rakefile, so fetch from the Git
6214 ;; repository.
6215 (method git-fetch)
6216 (uri (git-reference
6217 (url "https://github.com/guard/listen")
6218 (commit (string-append "v" version))))
6219 (file-name (git-file-name name version))
6220 (sha256
6221 (base32
6222 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6223 (build-system ruby-build-system)
6224 (arguments
6225 `(#:test-target "spec"
6226 #:phases
6227 (modify-phases %standard-phases
6228 (add-after 'unpack 'fix-files-in-gemspec
6229 (lambda _
6230 (substitute* "listen.gemspec"
6231 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6232 #t))
6233 (add-before 'check 'remove-unnecessary-dependencies'
6234 (lambda _
6235 (substitute* "Rakefile"
6236 ;; Rubocop is for code linting, and is unnecessary for running
6237 ;; the tests.
6238 ((".*rubocop.*") ""))
6239 #t)))))
6240 (native-inputs
6241 `(("bundler" ,bundler)
6242 ("ruby-rspec" ,ruby-rspec)))
6243 (inputs
6244 `(;; ruby-thor is used for the command line interface, and is referenced
6245 ;; in the wrapper, and therefore just needs to be an input.
6246 ("ruby-thor" ,ruby-thor)))
6247 (propagated-inputs
6248 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6249 ("ruby-rb-inotify" ,ruby-rb-inotify)
6250 ("ruby-dep" ,ruby-dep)))
6251 (synopsis "Listen to file modifications")
6252 (description "The Listen gem listens to file modifications and notifies
6253 you about the changes.")
6254 (home-page "https://github.com/guard/listen")
6255 (license license:expat)))
6256
6257 (define-public ruby-loofah
6258 (package
6259 (name "ruby-loofah")
6260 (version "2.2.3")
6261 (source
6262 (origin
6263 (method url-fetch)
6264 (uri (rubygems-uri "loofah" version))
6265 (sha256
6266 (base32
6267 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6268 (build-system ruby-build-system)
6269 (arguments
6270 '(#:phases
6271 (modify-phases %standard-phases
6272 (add-after 'unpack 'remove-unnecessary-dependencies
6273 (lambda _
6274 ;; concourse is a development tool which is unused, so remove it
6275 ;; so it's not required.
6276 (substitute* "Gemfile"
6277 ((".*\"concourse\".*") "\n"))
6278 (substitute* "Rakefile"
6279 (("require 'concourse'") "")
6280 (("Concourse\\.new.*") "\n"))
6281 #t)))))
6282 (native-inputs
6283 `(("ruby-hoe" ,ruby-hoe)
6284 ("ruby-rr" ,ruby-rr)))
6285 (propagated-inputs
6286 `(("ruby-nokogiri" ,ruby-nokogiri)
6287 ("ruby-crass" ,ruby-crass)))
6288 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6289 (description
6290 "Loofah is a general library for manipulating and transforming HTML/XML
6291 documents and fragments. It's built on top of Nokogiri and libxml2.")
6292 (home-page "https://github.com/flavorjones/loofah")
6293 (license license:expat)))
6294
6295 (define-public ruby-activesupport
6296 (package
6297 (name "ruby-activesupport")
6298 (version "5.2.2.1")
6299 (source
6300 (origin
6301 (method url-fetch)
6302 (uri (rubygems-uri "activesupport" version))
6303 (sha256
6304 (base32
6305 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6306 (build-system ruby-build-system)
6307 (arguments
6308 `(#:phases
6309 (modify-phases %standard-phases
6310 (replace 'check
6311 (lambda _
6312 ;; There are no tests, instead attempt to load the library.
6313 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6314 (propagated-inputs
6315 `(("ruby-concurrent" ,ruby-concurrent)
6316 ("ruby-i18n" ,ruby-i18n)
6317 ("ruby-minitest" ,ruby-minitest)
6318 ("ruby-tzinfo" ,ruby-tzinfo)
6319 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6320 (synopsis "Ruby on Rails utility library")
6321 (description "ActiveSupport is a toolkit of support libraries and Ruby
6322 core extensions extracted from the Rails framework. It includes support for
6323 multibyte strings, internationalization, time zones, and testing.")
6324 (home-page "http://www.rubyonrails.org")
6325 (license license:expat)))
6326
6327 (define-public ruby-crass
6328 (package
6329 (name "ruby-crass")
6330 (version "1.0.6")
6331 (home-page "https://github.com/rgrove/crass")
6332 (source (origin
6333 ;; The gem does not contain tests, so pull from git.
6334 (method git-fetch)
6335 (uri (git-reference
6336 (url home-page)
6337 (commit (string-append "v" version))))
6338 (file-name (git-file-name name version))
6339 (sha256
6340 (base32
6341 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6342 (build-system ruby-build-system)
6343 (synopsis "Pure Ruby CSS parser")
6344 (description
6345 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6346 (license license:expat)))
6347
6348 (define-public ruby-nokogumbo
6349 (package
6350 (name "ruby-nokogumbo")
6351 (version "2.0.2")
6352 (source (origin
6353 ;; We use the git reference, because there's no Rakefile in the
6354 ;; published gem and the tarball on Github is outdated.
6355 (method git-fetch)
6356 (uri (git-reference
6357 (url "https://github.com/rubys/nokogumbo")
6358 (commit (string-append "v" version))))
6359 (file-name (string-append name "-" version "-checkout"))
6360 (sha256
6361 (base32
6362 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6363 (build-system ruby-build-system)
6364 (native-inputs
6365 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6366 (inputs
6367 `(("gumbo-parser" ,gumbo-parser)))
6368 (propagated-inputs
6369 `(("ruby-nokogiri" ,ruby-nokogiri)))
6370 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6371 (description
6372 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6373 access the result as a Nokogiri parsed document.")
6374 (home-page "https://github.com/rubys/nokogumbo/")
6375 (license license:asl2.0)))
6376
6377 (define-public ruby-sanitize
6378 (package
6379 (name "ruby-sanitize")
6380 (version "5.1.0")
6381 (home-page "https://github.com/rgrove/sanitize")
6382 (source (origin
6383 (method git-fetch)
6384 ;; The gem does not include the Rakefile, so we download the
6385 ;; source from Github.
6386 (uri (git-reference
6387 (url home-page)
6388 (commit (string-append "v" version))))
6389 (file-name (git-file-name name version))
6390 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6391 (sha256
6392 (base32
6393 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6394 (build-system ruby-build-system)
6395 (propagated-inputs
6396 `(("ruby-crass" ,ruby-crass)
6397 ("ruby-nokogiri" ,ruby-nokogiri)
6398 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6399 (native-inputs
6400 `(("ruby-minitest" ,ruby-minitest)))
6401 (synopsis "Whitelist-based HTML and CSS sanitizer")
6402 (description
6403 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6404 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6405 unacceptable HTML and/or CSS from a string.")
6406 (license license:expat)))
6407
6408 (define-public ruby-oj
6409 (package
6410 (name "ruby-oj")
6411 (version "3.10.1")
6412 (source
6413 (origin
6414 (method git-fetch)
6415 ;; Version on rubygems.org does not contain Rakefile, so download from
6416 ;; GitHub instead.
6417 (uri (git-reference
6418 (url "https://github.com/ohler55/oj")
6419 (commit (string-append "v" version))))
6420 (file-name (git-file-name name version))
6421 (sha256
6422 (base32
6423 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6424 (build-system ruby-build-system)
6425 (arguments
6426 '(#:test-target "test_all"
6427 #:phases
6428 (modify-phases %standard-phases
6429 (add-before 'check 'disable-bundler
6430 (lambda _
6431 (substitute* "Rakefile"
6432 (("Bundler\\.with_clean_env") "1.times")
6433 (("bundle exec ") "")))))))
6434 (native-inputs
6435 `(("bundler" ,bundler)
6436 ("ruby-rspec" ,ruby-rspec)
6437 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6438 (synopsis "JSON parser for Ruby optimized for speed")
6439 (description
6440 "Oj is a JSON parser and generator for Ruby, where the encoding and
6441 decoding of JSON is implemented as a C extension to Ruby.")
6442 (home-page "http://www.ohler.com/oj/")
6443 (license (list license:expat ; Ruby code
6444 license:bsd-3)))) ; extension code
6445
6446 (define-public ruby-ox
6447 (package
6448 (name "ruby-ox")
6449 (version "2.6.0")
6450 (source
6451 (origin
6452 (method url-fetch)
6453 (uri (rubygems-uri "ox" version))
6454 (sha256
6455 (base32
6456 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6457 (build-system ruby-build-system)
6458 (arguments
6459 '(#:tests? #f)) ; no tests
6460 (synopsis "Optimized XML library for Ruby")
6461 (description
6462 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6463 written as a native C extension. It was designed to be an alternative to
6464 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6465 alternative to Marshal for Object serialization. ")
6466 (home-page "http://www.ohler.com/ox")
6467 (license license:expat)))
6468
6469 (define-public ruby-redcloth
6470 (package
6471 (name "ruby-redcloth")
6472 (version "4.3.2")
6473 (source (origin
6474 (method url-fetch)
6475 (uri (rubygems-uri "RedCloth" version))
6476 (sha256
6477 (base32
6478 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6479 (build-system ruby-build-system)
6480 (arguments
6481 `(#:tests? #f ; no tests
6482 #:phases
6483 (modify-phases %standard-phases
6484 ;; Redcloth has complicated rake tasks to build various versions for
6485 ;; multiple targets using RVM. We don't want this so we just use the
6486 ;; existing gemspec.
6487 (replace 'build
6488 (lambda _
6489 (invoke "gem" "build" "redcloth.gemspec"))))))
6490 (native-inputs
6491 `(("bundler" ,bundler)
6492 ("ruby-diff-lcs" ,ruby-diff-lcs)
6493 ("ruby-rspec-2" ,ruby-rspec-2)))
6494 (synopsis "Textile markup language parser for Ruby")
6495 (description
6496 "RedCloth is a Ruby parser for the Textile markup language.")
6497 (home-page "http://redcloth.org")
6498 (license license:expat)))
6499
6500 (define-public ruby-pg
6501 (package
6502 (name "ruby-pg")
6503 (version "1.2.3")
6504 (source
6505 (origin
6506 (method url-fetch)
6507 (uri (rubygems-uri "pg" version))
6508 (sha256
6509 (base32
6510 "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj"))))
6511 (build-system ruby-build-system)
6512 (arguments
6513 '(#:test-target "spec"))
6514 (native-inputs
6515 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6516 ("ruby-hoe" ,ruby-hoe)
6517 ("ruby-rspec" ,ruby-rspec)))
6518 (inputs
6519 `(("postgresql" ,postgresql)))
6520 (synopsis "Ruby interface to PostgreSQL")
6521 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6522 with PostgreSQL 9.0 and later.")
6523 (home-page "https://bitbucket.org/ged/ruby-pg")
6524 (license license:ruby)))
6525
6526 (define-public ruby-byebug
6527 (package
6528 (name "ruby-byebug")
6529 (version "9.0.6")
6530 (source
6531 (origin
6532 (method url-fetch)
6533 (uri (rubygems-uri "byebug" version))
6534 (sha256
6535 (base32
6536 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6537 (build-system ruby-build-system)
6538 (arguments
6539 '(#:tests? #f)) ; no tests
6540 (synopsis "Debugger for Ruby 2")
6541 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6542 TracePoint C API for execution control and the Debug Inspector C API for call
6543 stack navigation. The core component provides support that front-ends can
6544 build on. It provides breakpoint handling and bindings for stack frames among
6545 other things and it comes with a command line interface.")
6546 (home-page "https://github.com/deivid-rodriguez/byebug")
6547 (license license:bsd-2)))
6548
6549 ;;; TODO: Make it the default byebug in core-updates.
6550 (define-public ruby-byebug-11
6551 (package
6552 (inherit ruby-byebug)
6553 (name "ruby-byebug")
6554 (version "11.1.3")
6555 (source
6556 (origin
6557 (method git-fetch)
6558 (uri (git-reference
6559 (url "https://github.com/deivid-rodriguez/byebug")
6560 (commit (string-append "v" version))))
6561 (file-name (git-file-name name version))
6562 (sha256
6563 (base32
6564 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6565 (modules '((guix build utils)))
6566 (snippet
6567 '(begin
6568 ;; Remove wrappers that try to setup a bundle environment.
6569 (with-directory-excursion "bin"
6570 (for-each delete-file '("bundle" "rake" "rubocop"))
6571 ;; ruby-minitest doesn't come with a launcher, so fix the one
6572 ;; provided.
6573 (substitute* "minitest"
6574 (("load File\\.expand_path\\(\"bundle\".*") "")
6575 (("require \"bundler/setup\".*") "")))
6576 #t))))
6577 (arguments
6578 `(#:tests? #t
6579 #:phases
6580 (modify-phases %standard-phases
6581 (add-after 'unpack 'skip-tmp-path-sensitive-test
6582 (lambda _
6583 (substitute* "test/commands/where_test.rb"
6584 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6585 "unless true\n"))
6586 #t))
6587 (add-before 'build 'compile
6588 (lambda _
6589 (invoke "rake" "compile")))
6590 (add-before 'check 'set-home
6591 (lambda _
6592 (setenv "HOME" (getcwd))
6593 #t)))))
6594 (native-inputs
6595 `(("bundler" ,bundler)
6596 ("ruby-chandler" ,ruby-chandler)
6597 ("ruby-minitest" ,ruby-minitest)
6598 ("ruby-pry" ,ruby-pry)
6599 ("ruby-rake-compiler" ,ruby-rake-compiler)
6600 ("ruby-rubocop" ,ruby-rubocop)
6601 ("ruby-yard" ,ruby-yard)))))
6602
6603 (define-public ruby-netrc
6604 (package
6605 (name "ruby-netrc")
6606 (version "0.11.0")
6607 (source (origin
6608 (method url-fetch)
6609 (uri (rubygems-uri "netrc" version))
6610 (sha256
6611 (base32
6612 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6613 (build-system ruby-build-system)
6614 (arguments
6615 `(#:phases
6616 (modify-phases %standard-phases
6617 (replace 'check
6618 ;; There is no Rakefile and minitest can only run one file at once,
6619 ;; so we have to iterate over all test files.
6620 (lambda _
6621 (for-each (lambda (file)
6622 (invoke "ruby" "-Itest" file))
6623 (find-files "./test" "test_.*\\.rb"))
6624 #t)))))
6625 (native-inputs
6626 `(("ruby-minitest" ,ruby-minitest)))
6627 (synopsis "Library to read and update netrc files")
6628 (description
6629 "This library can read and update netrc files, preserving formatting
6630 including comments and whitespace.")
6631 (home-page "https://github.com/geemus/netrc")
6632 (license license:expat)))
6633
6634 (define-public ruby-unf-ext
6635 (package
6636 (name "ruby-unf-ext")
6637 (version "0.0.7.6")
6638 (source (origin
6639 (method url-fetch)
6640 (uri (rubygems-uri "unf_ext" version))
6641 (sha256
6642 (base32
6643 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6644 (build-system ruby-build-system)
6645 (arguments
6646 `(#:phases
6647 (modify-phases %standard-phases
6648 (add-after 'build 'build-ext
6649 (lambda _ (invoke "rake" "compile:unf_ext")))
6650 (add-before 'check 'lose-rake-compiler-dock-dependency
6651 (lambda _
6652 ;; rake-compiler-dock is listed in the gemspec, but only
6653 ;; required when cross-compiling.
6654 (substitute* "unf_ext.gemspec"
6655 ((".*rake-compiler-dock.*") ""))
6656 #t)))))
6657 (native-inputs
6658 `(("bundler" ,bundler)
6659 ("ruby-rake-compiler" ,ruby-rake-compiler)
6660 ("ruby-test-unit" ,ruby-test-unit)))
6661 (synopsis "Unicode normalization form support library")
6662 (description
6663 "This package provides unicode normalization form support for Ruby.")
6664 (home-page "https://github.com/knu/ruby-unf_ext")
6665 (license license:expat)))
6666
6667 (define-public ruby-tdiff
6668 ;; Use a newer than released snapshot so that rspec-2 is not required.
6669 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6670 (package
6671 (name "ruby-tdiff")
6672 (version (string-append "0.3.3-1." (string-take commit 8)))
6673 (source (origin
6674 (method git-fetch)
6675 (uri (git-reference
6676 (url "https://github.com/postmodern/tdiff")
6677 (commit commit)))
6678 (file-name (string-append name "-" version "-checkout"))
6679 (sha256
6680 (base32
6681 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6682 (build-system ruby-build-system)
6683 (native-inputs
6684 `(("ruby-rspec" ,ruby-rspec)
6685 ("ruby-yard" ,ruby-yard)
6686 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6687 (synopsis "Calculate the differences between two tree-like structures")
6688 (description
6689 "This library provides functions to calculate the differences between two
6690 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6691 (home-page "https://github.com/postmodern/tdiff")
6692 (license license:expat))))
6693
6694 (define-public ruby-nokogiri-diff
6695 ;; Use a newer than released snapshot so that rspec-2 is not required.
6696 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6697 (package
6698 (name "ruby-nokogiri-diff")
6699 (version (string-append "0.2.0-1." (string-take commit 8)))
6700 (source (origin
6701 (method git-fetch)
6702 (uri (git-reference
6703 (url "https://github.com/postmodern/nokogiri-diff")
6704 (commit commit)))
6705 (file-name (string-append name "-" version "-checkout"))
6706 (sha256
6707 (base32
6708 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6709 (build-system ruby-build-system)
6710 (propagated-inputs
6711 `(("ruby-tdiff" ,ruby-tdiff)
6712 ("ruby-nokogiri" ,ruby-nokogiri)))
6713 (native-inputs
6714 `(("ruby-rspec" ,ruby-rspec)
6715 ("ruby-yard" ,ruby-yard)
6716 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6717 (synopsis "Calculate the differences between two XML/HTML documents")
6718 (description
6719 "@code{Nokogiri::Diff} adds the ability to calculate the
6720 differences (added or removed nodes) between two XML/HTML documents.")
6721 (home-page "https://github.com/postmodern/nokogiri-diff")
6722 (license license:expat))))
6723
6724 (define-public ruby-racc
6725 (package
6726 (name "ruby-racc")
6727 (version "1.4.14")
6728 (source
6729 (origin
6730 (method url-fetch)
6731 (uri (rubygems-uri "racc" version))
6732 (sha256
6733 (base32
6734 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6735 (build-system ruby-build-system)
6736 (native-inputs
6737 `(("ruby-hoe" ,ruby-hoe)
6738 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6739 (synopsis "LALR(1) parser generator for Ruby")
6740 (description
6741 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6742 generates Ruby program.")
6743 (home-page "http://i.loveruby.net/en/projects/racc/")
6744 (license (list
6745 ;; Generally licensed under the LGPL2.1, and some files also
6746 ;; available under the same license as Ruby.
6747 license:lgpl2.1
6748 license:ruby))))
6749
6750 (define-public ruby-rack
6751 (package
6752 (name "ruby-rack")
6753 (version "2.0.6")
6754 (source
6755 (origin
6756 (method git-fetch)
6757 ;; Download from GitHub so that the patch can be applied.
6758 (uri (git-reference
6759 (url "https://github.com/rack/rack")
6760 (commit version)))
6761 (file-name (git-file-name name version))
6762 (sha256
6763 (base32
6764 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6765 ;; Ignore test which fails inside the build environment but works
6766 ;; outside.
6767 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6768 (build-system ruby-build-system)
6769 (arguments
6770 '(#:phases
6771 (modify-phases %standard-phases
6772 (add-before 'check 'fix-tests
6773 (lambda _
6774 ;; A few of the tests use the length of a file on disk for
6775 ;; Content-Length and Content-Range headers. However, this file
6776 ;; has a shebang in it which an earlier phase patches, growing
6777 ;; the file size from 193 to 239 bytes when the store prefix is
6778 ;; "/gnu/store".
6779 (let ((size-diff (- (string-length (which "ruby"))
6780 (string-length "/usr/bin/env ruby"))))
6781 (substitute* '("test/spec_file.rb")
6782 (("193")
6783 (number->string (+ 193 size-diff)))
6784 (("bytes(.)22-33" all delimiter)
6785 (string-append "bytes"
6786 delimiter
6787 (number->string (+ 22 size-diff))
6788 "-"
6789 (number->string (+ 33 size-diff))))))
6790 #t))
6791 (add-before 'reset-gzip-timestamps 'make-files-writable
6792 (lambda* (#:key outputs #:allow-other-keys)
6793 ;; Make sure .gz files are writable so that the
6794 ;; 'reset-gzip-timestamps' phase can do its work.
6795 (let ((out (assoc-ref outputs "out")))
6796 (for-each make-file-writable
6797 (find-files out "\\.gz$"))
6798 #t))))))
6799 (native-inputs
6800 `(("ruby-minitest" ,ruby-minitest)
6801 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6802 ("which" ,which)))
6803 (propagated-inputs
6804 `(("ruby-concurrent" ,ruby-concurrent)))
6805 (synopsis "Unified web application interface for Ruby")
6806 (description "Rack provides a minimal, modular and adaptable interface for
6807 developing web applications in Ruby. By wrapping HTTP requests and responses,
6808 it unifies the API for web servers, web frameworks, and software in between
6809 into a single method call.")
6810 (home-page "https://rack.github.io/")
6811 (license license:expat)))
6812
6813 (define-public ruby-rack-test
6814 (package
6815 (name "ruby-rack-test")
6816 (version "0.8.3")
6817 (source
6818 (origin
6819 (method url-fetch)
6820 (uri (rubygems-uri "rack-test" version))
6821 (sha256
6822 (base32
6823 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6824 (build-system ruby-build-system)
6825 (arguments
6826 ;; Disable tests because of circular dependencies: requires sinatra,
6827 ;; which requires rack-protection, which requires rack-test. Instead
6828 ;; simply require the library.
6829 `(#:phases
6830 (modify-phases %standard-phases
6831 (replace 'check
6832 (lambda _
6833 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6834 (propagated-inputs
6835 `(("ruby-rack" ,ruby-rack)))
6836 (synopsis "Testing API for Rack applications")
6837 (description
6838 "Rack::Test is a small, simple testing API for Rack applications. It can
6839 be used on its own or as a reusable starting point for Web frameworks and
6840 testing libraries to build on.")
6841 (home-page "https://github.com/rack-test/rack-test")
6842 (license license:expat)))
6843
6844 (define-public ruby-rack-protection
6845 (package
6846 (name "ruby-rack-protection")
6847 (version "2.0.5")
6848 (source
6849 (origin
6850 (method url-fetch)
6851 (uri (rubygems-uri "rack-protection" version))
6852 (sha256
6853 (base32
6854 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6855 (build-system ruby-build-system)
6856 (arguments
6857 '(;; Tests missing from the gem.
6858 #:tests? #f))
6859 (propagated-inputs
6860 `(("ruby-rack" ,ruby-rack)))
6861 (native-inputs
6862 `(("bundler" ,bundler)
6863 ("ruby-rspec" ,ruby-rspec-2)
6864 ("ruby-rack-test" ,ruby-rack-test)))
6865 (synopsis "Rack middleware that protects against typical web attacks")
6866 (description "Rack middleware that can be used to protect against typical
6867 web attacks. It can protect all Rack apps, including Rails. For instance, it
6868 protects against cross site request forgery, cross site scripting,
6869 clickjacking, directory traversal, session hijacking and IP spoofing.")
6870 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6871 (license license:expat)))
6872
6873 (define-public ruby-rainbow
6874 (package
6875 (name "ruby-rainbow")
6876 (version "3.0.0")
6877 (source
6878 (origin
6879 (method url-fetch)
6880 (uri (rubygems-uri "rainbow" version))
6881 (sha256
6882 (base32
6883 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6884 (build-system ruby-build-system)
6885 (arguments
6886 '(#:phases
6887 (modify-phases %standard-phases
6888 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6889 ;; the Rakefile.
6890 (replace 'check
6891 (lambda* (#:key tests? #:allow-other-keys)
6892 (when tests?
6893 (invoke "rspec"))
6894 #t)))))
6895 (native-inputs
6896 `(("bundler" ,bundler)
6897 ("ruby-rspec" ,ruby-rspec)))
6898 (synopsis "Colorize printed text on ANSI terminals")
6899 (description
6900 "@code{rainbow} provides a string presenter object to colorize strings by
6901 wrapping them in ANSI escape codes.")
6902 (home-page "https://github.com/sickill/rainbow")
6903 (license license:expat)))
6904
6905 (define-public ruby-rr
6906 (package
6907 (name "ruby-rr")
6908 (version "1.2.1")
6909 (source
6910 (origin
6911 (method url-fetch)
6912 (uri (rubygems-uri "rr" version))
6913 (sha256
6914 (base32
6915 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6916 (build-system ruby-build-system)
6917 (arguments
6918 '(#:tests? #f)) ; test files not included
6919 (native-inputs
6920 `(("bundler" ,bundler)
6921 ("ruby-rspec" ,ruby-rspec)))
6922 (synopsis "Ruby test double framework")
6923 (description
6924 "RR is a test double framework that features a rich selection of double
6925 techniques and a terse syntax.")
6926 (home-page "https://rr.github.io/rr/")
6927 (license license:expat)))
6928
6929 (define-public ruby-rest-client
6930 (package
6931 (name "ruby-rest-client")
6932 (version "2.0.2")
6933 (source
6934 (origin
6935 (method url-fetch)
6936 (uri (rubygems-uri "rest-client" version))
6937 (sha256
6938 (base32
6939 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6940 (build-system ruby-build-system)
6941 (arguments
6942 '(#:phases
6943 (modify-phases %standard-phases
6944 (add-before 'check 'remove-unnecessary-development-dependencies
6945 (lambda _
6946 (substitute* "rest-client.gemspec"
6947 ;; Remove rubocop as it's unused. Rubocop also indirectly
6948 ;; depends on this package through ruby-parser and ruby-ast so
6949 ;; this avoids a dependency loop.
6950 ((".*rubocop.*") "\n")
6951 ;; Remove pry as it's unused, it's a debugging tool
6952 ((".*pry.*") "\n")
6953 ;; Remove an unnecessarily strict rdoc dependency
6954 ((".*rdoc.*") "\n"))
6955 #t))
6956 (add-before 'check 'delete-network-dependent-tests
6957 (lambda _
6958 (delete-file "spec/integration/request_spec.rb")
6959 (delete-file "spec/integration/httpbin_spec.rb")
6960 #t)))))
6961 (propagated-inputs
6962 `(("ruby-http-cookie" ,ruby-http-cookie)
6963 ("ruby-mime-types" ,ruby-mime-types)
6964 ("ruby-netrc" ,ruby-netrc)))
6965 (native-inputs
6966 `(("bundler" ,bundler)
6967 ("ruby-webmock" ,ruby-webmock-2)
6968 ("ruby-rspec" ,ruby-rspec)))
6969 (synopsis "Simple HTTP and REST client for Ruby")
6970 (description
6971 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6972 inspired by the Sinatra microframework style of specifying actions:
6973 @code{get}, @code{put}, @code{post}, @code{delete}.")
6974 (home-page "https://github.com/rest-client/rest-client")
6975 (license license:expat)))
6976
6977 (define-public ruby-rubocop-ast
6978 (package
6979 (name "ruby-rubocop-ast")
6980 (version "1.4.1")
6981 (source
6982 (origin
6983 (method git-fetch) ;no test suite in distributed gem
6984 (uri (git-reference
6985 (url "https://github.com/rubocop-hq/rubocop-ast")
6986 (commit (string-append "v" version))))
6987 (file-name (git-file-name name version))
6988 (sha256
6989 (base32
6990 "1x2m7k4bn4zvvwmj7imzmv0dav6xnrbcvssad1m5lkprx7h5lzkq"))))
6991 (build-system ruby-build-system)
6992 (arguments
6993 `(#:test-target "spec"
6994 #:phases (modify-phases %standard-phases
6995 (add-before 'build 'generate-lexer
6996 (lambda _
6997 (setenv "RUBOCOP_VERSION" "none")
6998 (invoke "rake" "generate")))
6999 (replace 'replace-git-ls-files
7000 (lambda _
7001 (substitute* "rubocop-ast.gemspec"
7002 (("`git ls-files(.*)`" _ files)
7003 (format #f "`find ~a -type f| sort`" files)))
7004 #t)))))
7005 (native-inputs
7006 `(("ruby-bump" ,ruby-bump)
7007 ("ruby-oedipus-lex" ,ruby-oedipus-lex)
7008 ("ruby-pry" ,ruby-pry)
7009 ("ruby-racc" ,ruby-racc)
7010 ("ruby-rake" ,ruby-rake)
7011 ("ruby-rspec" ,ruby-rspec)
7012 ("ruby-simplecov" ,ruby-simplecov)))
7013 (propagated-inputs
7014 `(("ruby-parser" ,ruby-parser)))
7015 (synopsis "RuboCop's AST extensions and NodePattern functionality")
7016 (description "Rubocop::AST extends @code{ruby-parser} with classes used
7017 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
7018 @itemize
7019 @item @code{RuboCop::AST::Node}
7020 @item @code{RuboCop::AST::NodePattern}
7021 @end itemize")
7022 (home-page "https://rubocop.org/")
7023 (license license:expat)))
7024
7025 (define-public ruby-rexml
7026 (package
7027 (name "ruby-rexml")
7028 (version "3.2.4")
7029 (source
7030 (origin
7031 (method git-fetch) ;no tests in distributed gem
7032 (uri (git-reference
7033 (url "https://github.com/ruby/rexml")
7034 (commit (string-append "v" version))))
7035 (file-name (git-file-name name version))
7036 (sha256
7037 (base32
7038 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
7039 (build-system ruby-build-system)
7040 (synopsis "XML toolkit for Ruby")
7041 (description "Inspired by Electric XML library for Java, REXML aims to be
7042 easy-to-use API, small and fast. It supports both tree and stream document
7043 parsing.")
7044 (home-page "https://github.com/ruby/rexml")
7045 (license license:bsd-2)))
7046
7047 (define-public ruby-character-set
7048 (package
7049 (name "ruby-character-set")
7050 (version "1.4.0")
7051 (source
7052 (origin
7053 (method url-fetch)
7054 (uri (rubygems-uri "character_set" version))
7055 (sha256
7056 (base32
7057 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
7058 (build-system ruby-build-system)
7059 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
7060 (synopsis "Ruby library to manipulate Unicode")
7061 (description "CharacterSet is a C-extended Ruby library to work with sets
7062 of Unicode code points. It can read and write these sets in various formats
7063 and implements the @code{stdlib} @code{Set} interface for them. It also
7064 offers an alternate paradigm of @code{String} processing which grants much
7065 better performance than @code{Regexp} and @code{String} methods from the
7066 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
7067 @itemize
7068 @item @code{CharacterSet::Character}
7069 @item @code{CharacterSet::Parser}
7070 @item @code{CharacterSet::Writer}
7071 @item @code{RangeCompressor}
7072 @end itemize")
7073 (home-page "https://github.com/jaynetics/character_set")
7074 (license license:expat)))
7075
7076 (define-public ruby-range-compressor
7077 (package
7078 (name "ruby-range-compressor")
7079 (version "1.0.0")
7080 (source
7081 (origin
7082 (method git-fetch)
7083 (uri (git-reference
7084 (url "https://github.com/janosch-x/range_compressor")
7085 (commit (string-append "v" version))))
7086 (file-name (git-file-name name version))
7087 (sha256
7088 (base32
7089 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
7090 (build-system ruby-build-system)
7091 (arguments
7092 `(#:test-target "spec"
7093 #:phases (modify-phases %standard-phases
7094 (add-after 'extract-gemspec 'strip-version-requirements
7095 (lambda _
7096 (substitute* "range_compressor.gemspec"
7097 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7098 (string-append stripped "\n")))
7099 #t)))))
7100 (native-inputs
7101 `(("ruby-rspec" ,ruby-rspec)))
7102 (synopsis "Simple arrays of objects to arrays of ranges compressor")
7103 (description "RangeCompresses is a tiny library that allows compressing
7104 arrays of objects into arrays of ranges. For example, it can turn the
7105 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
7106 (home-page "https://github.com/janosch-x/range_compressor")
7107 (license license:expat)))
7108
7109 (define-public ruby-regexp-property-values
7110 (package
7111 (name "ruby-regexp-property-values")
7112 (version "1.0.0")
7113 (source
7114 (origin
7115 (method git-fetch)
7116 (uri (git-reference ;no test suite in distributed gem
7117 (url "https://github.com/jaynetics/regexp_property_values")
7118 (commit (string-append "v" version))))
7119 (file-name (git-file-name name version))
7120 (sha256
7121 (base32
7122 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
7123 (build-system ruby-build-system)
7124 (arguments
7125 '(#:test-target "default"))
7126 (native-inputs
7127 `(("ruby-character-set" ,ruby-character-set)
7128 ("ruby-rake-compiler" ,ruby-rake-compiler)
7129 ("ruby-range-compressor" ,ruby-range-compressor)
7130 ("ruby-rspec" ,ruby-rspec)))
7131 (synopsis "Inspect Ruby's regex engine property values")
7132 (description "This small library lets you see which property values are
7133 supported by the regular expression engine of the Ruby version you are running
7134 and can directly read out their code point ranges. In other words, it
7135 determines all supported values for @code{\\p{value}} expressions and what
7136 they match.")
7137 (home-page "https://github.com/jaynetics/regexp_property_values")
7138 (license license:expat)))
7139
7140 (define-public ruby-regexp-parser
7141 (package
7142 (name "ruby-regexp-parser")
7143 (version "2.0.0")
7144 (source
7145 (origin
7146 (method git-fetch) ;bin/test missing from gem
7147 (uri (git-reference
7148 (url "https://github.com/ammar/regexp_parser")
7149 (commit (string-append "v" version))))
7150 (file-name (git-file-name name version))
7151 (sha256
7152 (base32
7153 "09ddxdwlml30q6j4rqf06bbjj1mwx00rs0bksnyblhv85anrqz3k"))))
7154 (build-system ruby-build-system)
7155 (arguments
7156 '(#:test-target "default"
7157 #:phases (modify-phases %standard-phases
7158 (add-before 'build 'compile-scanner.rb
7159 (lambda _
7160 (invoke "rake" "build")
7161 ;; XXX: This is needed otherwise the install
7162 ;; phase fails to delete the installed cached
7163 ;; gem file.
7164 (delete-file-recursively "pkg")
7165 #t)))))
7166 (native-inputs
7167 `(("ragel" ,ragel)
7168 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7169 ("ruby-rspec" ,ruby-rspec)))
7170 (synopsis "A regular expression parser library for Ruby ")
7171 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7172 expressions. It comprises the following components:
7173 @itemize
7174 @item A scanner/tokenizer based on Ragel,
7175 @item A lexer that produces a stream of token objects,
7176 @item A parser that produces a tree of Expression objects.
7177 @end itemize")
7178 (home-page "https://github.com/ammar/regexp_parser")
7179 (license license:expat)))
7180
7181 (define-public ruby-test-queue
7182 (package
7183 (name "ruby-test-queue")
7184 (version "0.4.2")
7185 (source
7186 (origin
7187 (method url-fetch)
7188 (uri (rubygems-uri "test-queue" version))
7189 (sha256
7190 (base32
7191 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7192 (build-system ruby-build-system)
7193 (arguments
7194 '(#:phases
7195 (modify-phases %standard-phases
7196 (replace 'check
7197 (lambda* (#:key tests? #:allow-other-keys)
7198 (when tests?
7199 (invoke "rspec"))
7200 #t)))))
7201 (native-inputs
7202 `(("ruby-rspec" ,ruby-rspec)))
7203 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7204 (description "The test-queue module is a parallel test runner,
7205 built using a centralized queue to ensure optimal distribution of
7206 tests between workers. It is specifically optimized for Continuous
7207 Integration (CI) environments: build statistics from each run are
7208 stored locally and used to sort the queue at the beginning of the next
7209 run.")
7210 (home-page "https://github.com/tmm1/test-queue")
7211 (license license:expat)))
7212
7213 (define-public ruby-rubocop
7214 (package
7215 (name "ruby-rubocop")
7216 (version "0.88.0")
7217 (source
7218 (origin
7219 (method git-fetch) ;no tests in distributed gem
7220 (uri (git-reference
7221 (url "https://github.com/rubocop-hq/rubocop")
7222 (commit (string-append "v" version))))
7223 (file-name (git-file-name name version))
7224 (sha256
7225 (base32
7226 "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r"))
7227 (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch"))))
7228 (build-system ruby-build-system)
7229 (arguments
7230 '(#:test-target "default"
7231 #:phases
7232 (modify-phases %standard-phases
7233 (add-after 'unpack 'remove-problematic-tests
7234 ;; These tests depend on Rubocop extensions, which cannot be
7235 ;; included as they cause a dependency cycle with Rubocop itself.
7236 (lambda _
7237 (delete-file "spec/rubocop/config_loader_spec.rb")
7238 (substitute* "Gemfile"
7239 ((".*'rubocop-performance'.*") "")
7240 ((".*'rubocop-rspec'.*") ""))
7241 ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)"
7242 ;; errors.
7243 (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$")
7244 (("# (rubocop:(enable|disable) RSpec.*)" _ what)
7245 (string-append "# Disabled: " what)))
7246 #t))
7247 (add-after 'unpack 'disable-bundler
7248 (lambda _
7249 (substitute* "Rakefile"
7250 (("Bundler\\.setup.*") "nil\n"))
7251 #t))
7252 (replace 'replace-git-ls-files
7253 (lambda _
7254 (substitute* "rubocop.gemspec"
7255 (("`git ls-files(.*)`" _ files)
7256 (format #f "`find ~a -type f| sort`" files)))
7257 #t))
7258 (add-before 'check 'set-home
7259 (lambda _
7260 (setenv "HOME" (getcwd))
7261 #t))
7262 (add-before 'check 'make-adoc-files-writable
7263 (lambda _
7264 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7265 "\\.adoc$")))
7266 (for-each make-file-writable adoc-files))
7267 #t)))))
7268 (native-inputs
7269 `(("ruby-bump" ,ruby-bump)
7270 ("ruby-pry" ,ruby-pry)
7271 ("ruby-rspec" ,ruby-rspec)
7272 ("ruby-test-queue" ,ruby-test-queue)
7273 ("ruby-webmock" ,ruby-webmock-2)
7274 ("ruby-yard" ,ruby-yard)))
7275 (propagated-inputs
7276 `(("ruby-parallel" ,ruby-parallel)
7277 ("ruby-parser" ,ruby-parser)
7278 ("ruby-rainbow" ,ruby-rainbow)
7279 ("ruby-regexp-parser" ,ruby-regexp-parser)
7280 ("ruby-rexml" ,ruby-rexml)
7281 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7282 ("ruby-progressbar" ,ruby-progressbar)
7283 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7284 (synopsis "Ruby code style checking tool")
7285 (description
7286 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7287 the community-driven Ruby Style Guide.")
7288 (home-page "https://github.com/rubocop-hq/rubocop")
7289 (license license:expat)))
7290
7291 (define-public ruby-contest
7292 (package
7293 (name "ruby-contest")
7294 (version "0.1.3")
7295 (source
7296 (origin
7297 (method url-fetch)
7298 (uri (rubygems-uri "contest" version))
7299 (sha256
7300 (base32
7301 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7302 (build-system ruby-build-system)
7303 (synopsis "Write declarative tests using nested contexts")
7304 (description
7305 "Contest allows writing declarative @code{Test::Unit} tests using nested
7306 contexts without performance penalties.")
7307 (home-page "https://github.com/citrusbyte/contest")
7308 (license license:expat)))
7309
7310 (define-public ruby-creole
7311 (package
7312 (name "ruby-creole")
7313 (version "0.5.0")
7314 (source
7315 (origin
7316 (method url-fetch)
7317 (uri (rubygems-uri "creole" version))
7318 (sha256
7319 (base32
7320 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7321 (build-system ruby-build-system)
7322 (native-inputs
7323 `(("ruby-bacon" ,ruby-bacon)))
7324 (synopsis "Creole markup language converter")
7325 (description
7326 "Creole is a lightweight markup language and this library for converting
7327 creole to @code{HTML}.")
7328 (home-page "https://github.com/minad/creole")
7329 (license license:ruby)))
7330
7331 (define-public ruby-docile
7332 (package
7333 (name "ruby-docile")
7334 (version "1.1.5")
7335 (source
7336 (origin
7337 (method url-fetch)
7338 (uri (rubygems-uri "docile" version))
7339 (sha256
7340 (base32
7341 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7342 (build-system ruby-build-system)
7343 (arguments
7344 '(#:tests? #f)) ; needs github-markup, among others
7345 (synopsis "Ruby EDSL helper library")
7346 (description "Docile is a Ruby library that provides an interface for
7347 creating embedded domain specific languages (EDSLs) that manipulate existing
7348 Ruby classes.")
7349 (home-page "https://ms-ati.github.io/docile/")
7350 (license license:expat)))
7351
7352 (define-public ruby-middleware
7353 (package
7354 (name "ruby-middleware")
7355 (version "0.1.0")
7356 (source
7357 (origin
7358 (method url-fetch)
7359 (uri (rubygems-uri "middleware" version))
7360 (sha256
7361 (base32
7362 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7363 (build-system ruby-build-system)
7364 (arguments '(#:tests? #f)) ;no test suite
7365 (synopsis "Implementation of a middleware abstraction for Ruby")
7366 (description "Middleware is a generalized implementation of a middleware
7367 abstraction for Ruby.")
7368 (home-page "https://github.com/mitchellh/middleware")
7369 (license license:expat)))
7370
7371 (define-public ruby-benchmark-ips
7372 (package
7373 (name "ruby-benchmark-ips")
7374 (version "2.8.2")
7375 (source
7376 (origin
7377 (method url-fetch)
7378 (uri (rubygems-uri "benchmark-ips" version))
7379 (sha256
7380 (base32
7381 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7382 (build-system ruby-build-system)
7383 (native-inputs
7384 `(("ruby-hoe" ,ruby-hoe)))
7385 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7386 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7387 iterations per second count. For short snippets of code, it can automatically
7388 figure out how many times to run the code to get interesting data.")
7389 (home-page "https://github.com/evanphx/benchmark-ips")
7390 (license license:expat)))
7391
7392 (define-public ruby-ffi-rzmq-core
7393 (package
7394 (name "ruby-ffi-rzmq-core")
7395 (version "1.0.7")
7396 (source
7397 (origin
7398 (method url-fetch)
7399 (uri (rubygems-uri "ffi-rzmq-core" version))
7400 (sha256
7401 (base32
7402 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7403 (build-system ruby-build-system)
7404 (arguments
7405 `(#:phases
7406 (modify-phases %standard-phases
7407 (add-after 'unpack 'patch-libzmq-search-path
7408 (lambda* (#:key inputs #:allow-other-keys)
7409 (let ((zeromq (assoc-ref inputs "zeromq")))
7410 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7411 (("/usr/local/lib")
7412 (string-append zeromq "/lib")))
7413 #t)))
7414 (replace 'check
7415 (lambda _
7416 (invoke "rspec"))))))
7417 (native-inputs
7418 `(("ruby-rspec" ,ruby-rspec)))
7419 (inputs
7420 `(("zeromq" ,zeromq)))
7421 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7422 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7423 (description "This library only provides the FFI wrapper for the ZeroMQ
7424 networking library. It can be used to implement a Ruby API for the ZeroMQ
7425 library.")
7426 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7427 (license license:expat)))
7428
7429 (define-public ruby-ffi-rzmq
7430 (package
7431 (name "ruby-ffi-rzmq")
7432 (version "2.0.7")
7433 (source
7434 (origin
7435 (method url-fetch)
7436 (uri (rubygems-uri "ffi-rzmq" version))
7437 (sha256
7438 (base32
7439 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7440 (build-system ruby-build-system)
7441 (arguments '(#:tests? #t
7442 #:phases (modify-phases %standard-phases
7443 (replace 'check
7444 (lambda _
7445 (invoke "rspec"))))))
7446 (native-inputs
7447 `(("ruby-rspec" ,ruby-rspec)))
7448 (propagated-inputs
7449 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7450 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7451 (description "This library provides a high-level API that wraps the ZeroMQ
7452 networking library using the Ruby foreign function interface (FFI). It is a
7453 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7454 for FFI.")
7455 (home-page "https://github.com/chuckremes/ffi-rzmq")
7456 (license license:expat)))
7457
7458 (define-public ruby-sawyer
7459 (package
7460 (name "ruby-sawyer")
7461 (version "0.8.2")
7462 (source
7463 (origin
7464 (method url-fetch)
7465 (uri (rubygems-uri "sawyer" version))
7466 (sha256
7467 (base32
7468 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7469 (build-system ruby-build-system)
7470 (propagated-inputs
7471 `(("ruby-addressable" ,ruby-addressable)
7472 ("ruby-faraday" ,ruby-faraday)))
7473 (synopsis "Experimental hypermedia agent for Ruby")
7474 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7475 top of Faraday.")
7476 (home-page "https://github.com/lostisland/sawyer")
7477 (license license:expat)))
7478
7479 (define-public ruby-octokit
7480 (package
7481 (name "ruby-octokit")
7482 (version "4.18.0")
7483 (source
7484 (origin
7485 (method url-fetch)
7486 (uri (rubygems-uri "octokit" version))
7487 (sha256
7488 (base32
7489 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7490 (build-system ruby-build-system)
7491 (arguments '(#:tests? #f)) ;no test suite in the gem release
7492 (propagated-inputs
7493 `(("ruby-faraday" ,ruby-faraday)
7494 ("ruby-sawyer" ,ruby-sawyer)))
7495 (synopsis "Ruby toolkit for the GitHub API")
7496 (description "Octokit wraps the GitHub API in a flat API client that
7497 follows Ruby conventions and requires little knowledge of REST.")
7498 (home-page "https://github.com/octokit/octokit.rb")
7499 (license license:expat)))
7500
7501 (define-public ruby-chandler
7502 (package
7503 (name "ruby-chandler")
7504 (version "0.9.0")
7505 (source
7506 (origin
7507 (method url-fetch)
7508 (uri (rubygems-uri "chandler" version))
7509 (sha256
7510 (base32
7511 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7512 (build-system ruby-build-system)
7513 (native-inputs
7514 `(("ruby-rubocop" ,ruby-rubocop)))
7515 (propagated-inputs
7516 `(("ruby-netrc" ,ruby-netrc)
7517 ("ruby-octokit" ,ruby-octokit)))
7518 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7519 (description "Chandler syncs a project's CHANGELOG file entries to
7520 GitHub's release notes to remove the need of manually entering release
7521 notes.")
7522 (home-page "https://github.com/mattbrictson/chandler")
7523 (license license:expat)))
7524
7525 (define-public ruby-pry-byebug
7526 (package
7527 (name "ruby-pry-byebug")
7528 (version "3.9.0")
7529 (source
7530 (origin
7531 (method git-fetch)
7532 (uri (git-reference
7533 (url "https://github.com/deivid-rodriguez/pry-byebug")
7534 (commit (string-append "v" version))))
7535 (file-name (git-file-name name version))
7536 (sha256
7537 (base32
7538 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7539 (build-system ruby-build-system)
7540 (arguments
7541 `(#:phases (modify-phases %standard-phases
7542 (add-before 'check 'set-home
7543 (lambda _
7544 (setenv "HOME" (getcwd))
7545 #t)))))
7546 (native-inputs
7547 `(("ruby-chandler" ,ruby-chandler)
7548 ("ruby-rubocop" ,ruby-rubocop)
7549 ("ruby-simplecov" ,ruby-simplecov)))
7550 (propagated-inputs
7551 `(("ruby-byebug" ,ruby-byebug-11)
7552 ("ruby-pry" ,ruby-pry)))
7553 (synopsis "Step-by-step debugging and stack navigation in Pry")
7554 (description "This package adds step-by-step debugging and stack
7555 navigation capabilities to @code{pry}, using @code{byebug}.")
7556 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7557 (license license:expat)))
7558
7559 (define-public ruby-stackprof
7560 (package
7561 (name "ruby-stackprof")
7562 (version "0.2.16")
7563 (source
7564 (origin
7565 (method url-fetch)
7566 (uri (rubygems-uri "stackprof" version))
7567 (sha256
7568 (base32
7569 "147rb66p3n062vc433afqhkd99iazvkrqnghxgh871r62yhha93f"))))
7570 (build-system ruby-build-system)
7571 (native-inputs
7572 `(("ruby-mocha" ,ruby-mocha)
7573 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7574 (synopsis "Sampling profiler for Ruby code")
7575 (description
7576 "@code{stackprof} is a fast sampling profiler for Ruby code, with cpu,
7577 wallclock and object allocation samplers.")
7578 (home-page "http://github.com/tmm1/stackprof")
7579 (license license:expat)))
7580
7581 (define-public ruby-binding-of-caller
7582 (package
7583 (name "ruby-binding-of-caller")
7584 (version "0.8.0")
7585 (source
7586 (origin
7587 (method url-fetch)
7588 (uri (rubygems-uri "binding_of_caller" version))
7589 (sha256
7590 (base32
7591 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7592 (build-system ruby-build-system)
7593 ;; Attempting to run the test suite fails with a rake deprecation error
7594 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7595 (arguments '(#:tests? #f))
7596 (propagated-inputs
7597 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7598 (synopsis "Retrieve the binding of a method's caller")
7599 (description "The @code{binding_of_caller} module provides the
7600 @code{Binding#of_caller} method. It allows accessing bindings from upper
7601 frames in the call stack and can evaluate code in that context.")
7602 (home-page "https://github.com/banister/binding_of_caller")
7603 (license license:expat)))
7604
7605 (define-public ruby-pry-stack-explorer
7606 (package
7607 (name "ruby-pry-stack-explorer")
7608 (version "0.5.1")
7609 (source
7610 (origin
7611 (method url-fetch)
7612 (uri (rubygems-uri "pry-stack_explorer" version))
7613 (sha256
7614 (base32
7615 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7616 (build-system ruby-build-system)
7617 (arguments '(#:tests? #f)) ;no test suite in gem release
7618 (propagated-inputs
7619 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7620 ("ruby-pry" ,ruby-pry)))
7621 (synopsis "Call-stack navigation plugin for the Pry REPL")
7622 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7623 add support to navigate the call-stack.")
7624 (home-page "https://github.com/pry/pry-stack_explorer")
7625 (license license:expat)))
7626
7627 (define-public ruby-varint
7628 (package
7629 (name "ruby-varint")
7630 (version "0.1.1")
7631 (source
7632 (origin
7633 (method url-fetch)
7634 (uri (rubygems-uri "varint" version))
7635 (sha256
7636 (base32
7637 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7638 (build-system ruby-build-system)
7639 (arguments '(#:tests? #f)) ;no test suite
7640 (synopsis "Variable length integers (varint) C extension for Ruby")
7641 (description "This package provides a small C extension to speed up
7642 variable length integers (varint) in Ruby Protocol Buffers.")
7643 (home-page "https://github.com/liquidm/varint")
7644 (license license:bsd-3)))
7645
7646 (define-public ruby-ruby-prof
7647 (package
7648 (name "ruby-ruby-prof")
7649 (version "1.4.1")
7650 (source
7651 (origin
7652 (method url-fetch)
7653 (uri (rubygems-uri "ruby-prof" version))
7654 (sha256
7655 (base32
7656 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7657 (build-system ruby-build-system)
7658 (arguments
7659 `(#:phases
7660 (modify-phases %standard-phases
7661 (add-after 'unpack 'patch-rakefile
7662 ;; This fixes the following error: "NameError: uninitialized
7663 ;; constant Bundler::GemHelper" (see:
7664 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7665 (lambda _
7666 (substitute* "Rakefile"
7667 ((".*require \"bundler/setup\".*" all)
7668 (string-append all " require 'bundler/gem_tasks'\n")))
7669 #t))
7670 ;; The LineNumbersTest test fails non-deterministically (see:
7671 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7672 (add-after 'extract-gemspec 'delete-flaky-test
7673 (lambda _
7674 (delete-file "test/line_number_test.rb")
7675 (substitute* "ruby-prof.gemspec"
7676 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7677 #t))
7678 (add-before 'check 'compile
7679 (lambda _
7680 (invoke "rake" "compile"))))))
7681 (native-inputs
7682 `(("bundler" ,bundler)
7683 ("ruby-minitest" ,ruby-minitest)
7684 ("ruby-rake-compiler" ,ruby-rake-compiler)
7685 ("ruby-rdoc" ,ruby-rdoc)))
7686 (synopsis "Fast code profiler for Ruby")
7687 (description "RubyProf is a fast code profiler for Ruby. Its features
7688 include:
7689 @table @asis
7690 @item Speed
7691 Being a C extension, it is many times faster than the standard Ruby profiler.
7692 @item Measurement Modes
7693 It can measure program wall time, process time, object allocations and memory
7694 usage.
7695 @item Reports
7696 A variety of text and cross-referenced HTML reports can be generated.
7697 @item Threads
7698 Profiling multiple threads simultaneously is supported.
7699 @end table")
7700 (home-page "https://github.com/ruby-prof/ruby-prof")
7701 (license license:bsd-2)))
7702
7703 (define-public ruby-memory-profiler
7704 (package
7705 (name "ruby-memory-profiler")
7706 (version "1.0.0")
7707 (source
7708 (origin
7709 (method git-fetch)
7710 (uri (git-reference
7711 (url "https://github.com/SamSaffron/memory_profiler")
7712 (commit (string-append "v" version))))
7713 (file-name (git-file-name name version))
7714 (sha256
7715 (base32
7716 "07yqv11q68xg2fqkrhs6ysngryk8b9zq6qzh24rgx9xqv6qfnj0w"))))
7717 (build-system ruby-build-system)
7718 (native-inputs
7719 `(("ruby-rake" ,ruby-rake)))
7720 (synopsis "Memory profiling routines for Ruby")
7721 (description
7722 "This package provides memory profiling routines for Ruby.")
7723 (home-page "https://github.com/SamSaffron/memory_profiler")
7724 (license license:expat)))
7725
7726 (define-public ruby-cucumber-messages
7727 (package
7728 (name "ruby-cucumber-messages")
7729 (version "12.2.0")
7730 (source (origin
7731 (method git-fetch)
7732 (uri (git-reference
7733 (url "https://github.com/cucumber/messages-ruby")
7734 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7735 (file-name (git-file-name name version))
7736 (sha256
7737 (base32
7738 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7739 (build-system ruby-build-system)
7740 (arguments
7741 `(#:phases (modify-phases %standard-phases
7742 (add-after 'unpack 'patch-protobuf.rb
7743 (lambda _
7744 (substitute* "rake/protobuf.rb"
7745 (("load 'protobuf/tasks/compile.rake'")
7746 "require 'protobuf/tasks'"))
7747 #t))
7748 (add-before 'build 'compile
7749 (lambda _
7750 (substitute* "Makefile"
7751 (("bundle exec ") "")
7752 (("include default.mk.*" all)
7753 (string-append "#" all)))
7754 (invoke "make")))
7755 (replace 'check
7756 (lambda _
7757 (invoke "rspec"))))))
7758 (propagated-inputs
7759 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7760 (native-inputs
7761 `(("ruby-rspec" ,ruby-rspec)))
7762 (home-page "https://github.com/cucumber/messages-ruby")
7763 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7764 (description "Cucumber Messages for Ruby is a library which allows
7765 serialization and deserialization of the protocol buffer messages used in
7766 Cucumber.")
7767 (license license:expat)))
7768
7769 (define-public ruby-gherkin
7770 (package
7771 (name "ruby-gherkin")
7772 (version "14.0.1")
7773 (source (origin
7774 (method git-fetch)
7775 (uri (git-reference
7776 (url "https://github.com/cucumber/gherkin-ruby")
7777 (commit (string-append "v" version))))
7778 (file-name (git-file-name name version))
7779 (sha256
7780 (base32
7781 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7782 (build-system ruby-build-system)
7783 (native-inputs
7784 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7785 ("ruby-rspec" ,ruby-rspec)))
7786 (arguments
7787 `(#:test-target "spec"))
7788 (synopsis "Gherkin parser for Ruby")
7789 (description "Gherkin is a parser and compiler for the Gherkin language.
7790 It is intended be used by all Cucumber implementations to parse
7791 @file{.feature} files.")
7792 (home-page "https://github.com/cucumber/gherkin-ruby")
7793 (license license:expat)))
7794
7795 (define-public ruby-gherkin-ruby
7796 (package
7797 (name "ruby-gherkin-ruby")
7798 (version "0.3.2")
7799 (home-page "https://github.com/codegram/gherkin-ruby")
7800 (source (origin
7801 (method url-fetch)
7802 (uri (rubygems-uri "gherkin-ruby" version))
7803 (sha256
7804 (base32
7805 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7806 (build-system ruby-build-system)
7807 (synopsis "Pure Ruby Gherkin parser")
7808 (description
7809 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7810 200 lines of code.")
7811 ;; XXX: No license information anywhere but Readme.md.
7812 (license license:expat)))
7813
7814 (define-public ruby-aruba
7815 (package
7816 (name "ruby-aruba")
7817 (version "0.14.14")
7818 (source
7819 (origin
7820 (method url-fetch)
7821 (uri (rubygems-uri "aruba" version))
7822 (sha256
7823 (base32
7824 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7825 (build-system ruby-build-system)
7826 (arguments
7827 '(#:test-target "spec"
7828 #:phases
7829 (modify-phases %standard-phases
7830 (add-after 'unpack 'patch
7831 (lambda _
7832 (substitute* "spec/aruba/api_spec.rb"
7833 ;; This resolves some errors in the specs
7834 ;;
7835 ;; undefined method `parse' for Time:Class
7836 (("require 'spec_helper'")
7837 "require 'spec_helper'\nrequire 'time'"))
7838 ;; Avoid shebang issues in this spec file
7839 (substitute* "spec/aruba/matchers/command_spec.rb"
7840 (("/usr/bin/env bash")
7841 (which "bash")))
7842 #t))
7843 (add-before 'check 'remove-unnecessary-dependencies
7844 (lambda _
7845 (substitute* "Gemfile"
7846 ((".*byebug.*") "\n")
7847 ((".*pry.*") "\n")
7848 ((".*yaml.*") "\n")
7849 ((".*bcat.*") "\n")
7850 ((".*kramdown.*") "\n")
7851 ((".*rubocop.*") "\n")
7852 ((".*cucumber-pro.*") "\n")
7853 ((".*cucumber.*") "\n")
7854 ((".*license_finder.*") "\n")
7855 ((".*rake.*") "gem 'rake'\n")
7856 ((".*relish.*") "\n"))
7857 (substitute* "aruba.gemspec"
7858 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7859 "spec.add_runtime_dependency 'cucumber'"))
7860 #t))
7861 (add-before 'check 'set-home
7862 (lambda _ (setenv "HOME" "/tmp") #t)))))
7863 (native-inputs
7864 `(("bundler" ,bundler)
7865 ("ruby-rspec" ,ruby-rspec)
7866 ("ruby-fuubar" ,ruby-fuubar)
7867 ("ruby-simplecov" ,ruby-simplecov)))
7868 (propagated-inputs
7869 `(("ruby-childprocess" ,ruby-childprocess)
7870 ("ruby-contracts" ,ruby-contracts)
7871 ("ruby-cucumber" ,ruby-cucumber)
7872 ("ruby-ffi" ,ruby-ffi)
7873 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7874 ("ruby-thor" ,ruby-thor)
7875 ("ruby-yard" ,ruby-yard)))
7876 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7877 (description
7878 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7879 command-line applications. It supports applications written in any
7880 language.")
7881 (home-page "https://github.com/cucumber/aruba")
7882 (license license:expat)))
7883
7884 ;; A version of ruby-aruba without tests run so that circular dependencies can
7885 ;; be avoided.
7886 (define ruby-aruba-without-tests
7887 (package
7888 (inherit ruby-aruba)
7889 (arguments '(#:tests? #f))
7890 (propagated-inputs
7891 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7892 ,@(alist-delete "ruby-cucumber"
7893 (package-propagated-inputs ruby-aruba))))
7894 (native-inputs '())))
7895
7896 (define-public ruby-sys-uname
7897 (package
7898 (name "ruby-sys-uname")
7899 (version "1.2.1")
7900 (source
7901 (origin
7902 (method url-fetch)
7903 (uri (rubygems-uri "sys-uname" version))
7904 (sha256
7905 (base32
7906 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7907 (build-system ruby-build-system)
7908 (arguments
7909 `(#:test-target "spec"))
7910 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7911 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7912 (synopsis "Ruby interface for gathering system information")
7913 (description "The sys-uname library provides an interface for gathering
7914 information about your current platform. It allows retrieving information
7915 such as the OS name, OS version, system name, etc.")
7916 (home-page "https://github.com/djberg96/sys-uname")
7917 (license license:asl2.0)))
7918
7919 (define-public ruby-cucumber-create-meta
7920 (package
7921 (name "ruby-cucumber-create-meta")
7922 (version "1.0.0")
7923 (source
7924 (origin
7925 (method url-fetch)
7926 (uri (rubygems-uri "cucumber-create-meta" version))
7927 (sha256
7928 (base32
7929 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
7930 (build-system ruby-build-system)
7931 (arguments
7932 `(#:phases (modify-phases %standard-phases
7933 (add-after 'extract-gemspec 'relax-version-requirements
7934 (lambda _
7935 (substitute* ".gemspec"
7936 ((" 12\\.2")
7937 " 12.1"))
7938 #t))
7939 (replace 'check
7940 (lambda _
7941 (invoke "rspec"))))))
7942 (native-inputs
7943 `(("ruby-rspec" ,ruby-rspec)))
7944 (propagated-inputs
7945 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7946 ("ruby-sys-uname" ,ruby-sys-uname)))
7947 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
7948 (description "The @code{createMeta} utility function allows generating
7949 system-specific @code{Meta} messages for Cucumber Ruby.")
7950 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
7951 (license license:expat)))
7952
7953 (define-public ruby-cucumber-html-formatter
7954 (package
7955 (name "ruby-cucumber-html-formatter")
7956 (version "7.0.0")
7957 (source
7958 (origin
7959 (method url-fetch)
7960 (uri (rubygems-uri "cucumber-html-formatter" version))
7961 (sha256
7962 (base32
7963 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
7964 (build-system ruby-build-system)
7965 (arguments
7966 `(#:phases (modify-phases %standard-phases
7967 (replace 'check
7968 (lambda _
7969 (invoke "rspec"))))))
7970 (native-inputs
7971 `(("ruby-rspec" ,ruby-rspec)))
7972 (propagated-inputs
7973 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7974 (synopsis "HTML formatter for Cucumber")
7975 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
7976 runs. It is built on top of cucumber-react and works with any Cucumber
7977 implementation with a protocol buffer formatter that outputs Cucumber
7978 messages.")
7979 (home-page "https://github.com/cucumber/cucumber/tree/\
7980 master/html-formatter/ruby")
7981 (license license:expat)))
7982
7983 (define-public ruby-cucumber
7984 (package
7985 (name "ruby-cucumber")
7986 (version "4.1.0")
7987 (source
7988 (origin
7989 (method git-fetch)
7990 (uri (git-reference
7991 (url "https://github.com/cucumber/cucumber-ruby")
7992 (commit (string-append "v" version))))
7993 (file-name (git-file-name name version))
7994 (sha256
7995 (base32
7996 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
7997 (build-system ruby-build-system)
7998 (arguments
7999 '(#:test-target "default"
8000 #:phases
8001 (modify-phases %standard-phases
8002 (add-after 'unpack 'disable-rubocop
8003 ;; Rubocop lint check fails with our more recent version.
8004 (lambda _
8005 (substitute* "Rakefile"
8006 (("spec cucumber rubocop")
8007 "spec cucumber"))
8008 #t))
8009 (add-after 'extract-gemspec 'strip-version-requirements
8010 (lambda _
8011 (delete-file "Gemfile") ;do not use Bundler
8012 (substitute* "cucumber.gemspec"
8013 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
8014 (string-append stripped "\n")))
8015 #t))
8016 (add-before 'check 'set-home
8017 (lambda _
8018 (setenv "HOME" (getcwd))
8019 #t)))))
8020 (propagated-inputs
8021 `(("ruby-builder" ,ruby-builder)
8022 ("ruby-cucumber-core" ,ruby-cucumber-core)
8023 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
8024 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
8025 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
8026 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
8027 ("ruby-diff-lcs" ,ruby-diff-lcs)
8028 ("ruby-gherkin" ,ruby-gherkin)
8029 ("ruby-multi-json" ,ruby-multi-json)
8030 ("ruby-multi-test" ,ruby-multi-test)))
8031 (native-inputs
8032 `(;; Use a untested version of aruba, to avoid a circular dependency, as
8033 ;; ruby-aruba depends on ruby-cucumber.
8034 ("ruby-aruba" ,ruby-aruba-without-tests)
8035 ("ruby-rspec" ,ruby-rspec)
8036 ("ruby-pry" ,ruby-pry)
8037 ("ruby-nokogiri" ,ruby-nokogiri)
8038 ("ruby-rubocop" ,ruby-rubocop)))
8039 (synopsis "Describe automated tests in plain language")
8040 (description "Cucumber is a tool for running automated tests written in
8041 plain language. It's designed to support a Behaviour Driven Development (BDD)
8042 software development workflow.")
8043 (home-page "https://cucumber.io/")
8044 (license license:expat)))
8045
8046 (define ruby-cucumber-without-tests
8047 (package (inherit ruby-cucumber)
8048 (arguments
8049 '(#:tests? #f))
8050 (native-inputs
8051 '())))
8052
8053 (define-public ruby-coveralls
8054 (package
8055 (name "ruby-coveralls")
8056 (version "0.8.23")
8057 (source
8058 (origin
8059 (method url-fetch)
8060 (uri (rubygems-uri "coveralls" version))
8061 (sha256
8062 (base32
8063 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
8064 (build-system ruby-build-system)
8065 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
8066 ;; because of its nonfree, Hippocratic-derived license.
8067 (arguments
8068 `(#:tests? #f
8069 #:phases (modify-phases %standard-phases
8070 (add-after 'extract-gemspec 'strip-version-requirements
8071 ;; Keeping strict version requirements can cause problems
8072 ;; to users of the library, such as: Gem::ConflictError:
8073 ;; Unable to activate coveralls-0.8.23, because
8074 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
8075 (lambda _
8076 (substitute* "coveralls-ruby.gemspec"
8077 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
8078 (string-append stripped ")\n")))
8079 #t)))))
8080 (propagated-inputs
8081 `(("ruby-json" ,ruby-json)
8082 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
8083 ("ruby-thor" ,ruby-thor)
8084 ("ruby-tins" ,ruby-tins)))
8085 (synopsis "Ruby implementation of the Coveralls API")
8086 (description "This package provides a Ruby implementation of the Coveralls
8087 API.")
8088 (home-page "https://coveralls.io")
8089 (license license:expat)))
8090
8091 (define-public ruby-unindent
8092 (package
8093 (name "ruby-unindent")
8094 (version "1.0")
8095 (source
8096 (origin
8097 (method url-fetch)
8098 (uri (rubygems-uri "unindent" version))
8099 (sha256
8100 (base32
8101 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
8102 (build-system ruby-build-system)
8103 (synopsis "Ruby method to unindent strings")
8104 (description "This module provides a @code{String#unindent} Ruby method to
8105 unindent strings, which can be useful to unindent multiline strings embedded
8106 in already-indented code.")
8107 (home-page "https://github.com/mynyml/unindent")
8108 (license license:expat)))
8109
8110 (define-public ruby-cucumber-core
8111 (package
8112 (name "ruby-cucumber-core")
8113 (version "7.1.0")
8114 (source
8115 (origin
8116 (method git-fetch)
8117 (uri (git-reference
8118 (url "https://github.com/cucumber/cucumber-ruby-core")
8119 (commit (string-append "v" version))))
8120 (file-name (git-file-name name version))
8121 (sha256
8122 (base32
8123 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
8124 (build-system ruby-build-system)
8125 (arguments
8126 `(#:test-target "spec"
8127 #:phases
8128 (modify-phases %standard-phases
8129 (add-after 'extract-gemspec 'relax-version-requirements
8130 (lambda _
8131 (substitute* "cucumber-core.gemspec"
8132 (("'cucumber-tag-expressions',.*")
8133 "'cucumber-tag-expressions', '>=2.0.0'\n"))
8134 #t)))))
8135 (native-inputs
8136 `(("ruby-rspec" ,ruby-rspec)
8137 ("ruby-coveralls" ,ruby-coveralls)
8138 ("ruby-rubocop" ,ruby-rubocop)
8139 ("ruby-simplecov" ,ruby-simplecov)
8140 ("ruby-unindent" ,ruby-unindent)))
8141 (propagated-inputs
8142 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
8143 ("ruby-gherkin" ,ruby-gherkin)
8144 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
8145 (synopsis "Core library for the Cucumber BDD app")
8146 (description "Cucumber is a tool for running automated tests
8147 written in plain language. Because they're written in plain language,
8148 they can be read by anyone on your team. Because they can be read by
8149 anyone, you can use them to help improve communication, collaboration
8150 and trust on your team.")
8151 (home-page "https://cucumber.io/")
8152 (license license:expat)))
8153
8154 (define-public ruby-cucumber-expressions
8155 (package
8156 (name "ruby-cucumber-expressions")
8157 (version "10.2.0")
8158 (source
8159 (origin
8160 (method git-fetch)
8161 (uri (git-reference
8162 (url "https://github.com/cucumber/cucumber-expressions-ruby")
8163 (commit (string-append "v" version))))
8164 (file-name (git-file-name name version))
8165 (sha256
8166 (base32
8167 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
8168 (build-system ruby-build-system)
8169 (arguments
8170 '(#:test-target "spec"))
8171 (native-inputs
8172 `(("ruby-rspec" ,ruby-rspec)
8173 ("ruby-simplecov" ,ruby-simplecov)))
8174 (synopsis "Simpler alternative to Regular Expressions")
8175 (description "Cucumber Expressions offer similar functionality to Regular
8176 Expressions, with a syntax that is easier to read and write. Cucumber
8177 Expressions are extensible with parameter types.")
8178 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
8179 (license license:expat)))
8180
8181 (define-public ruby-cucumber-wire
8182 (package
8183 (name "ruby-cucumber-wire")
8184 (version "3.1.0")
8185 (source
8186 (origin
8187 (method url-fetch)
8188 (uri (rubygems-uri "cucumber-wire" version))
8189 (sha256
8190 (base32
8191 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
8192 (build-system ruby-build-system)
8193 (arguments
8194 '(#:tests? #f ;tests use cucumber, causing a cycle
8195 #:phases
8196 (modify-phases %standard-phases
8197 (add-after 'extract-gemspec 'relax-version-requirements
8198 (lambda _
8199 (substitute* ".gemspec"
8200 ((" 10\\.1") " 10.2"))
8201 #t)))))
8202 (propagated-inputs
8203 `(("ruby-cucumber-core" ,ruby-cucumber-core)
8204 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
8205 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8206 (synopsis "Cucumber wire protocol plugin")
8207 (description "Cucumber's wire protocol allows step definitions to be
8208 implemented and invoked on any platform.")
8209 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8210 (license license:expat)))
8211
8212 (define-public ruby-cucumber-tag-expressions
8213 (package
8214 (name "ruby-cucumber-tag-expressions")
8215 (version "3.0.0")
8216 (source
8217 (origin
8218 (method git-fetch)
8219 (uri (git-reference
8220 (url "https://github.com/cucumber/tag-expressions-ruby")
8221 (commit (string-append "v" version))))
8222 (file-name (git-file-name name version))
8223 (sha256
8224 (base32
8225 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8226 (build-system ruby-build-system)
8227 (arguments
8228 `(#:test-target "spec"))
8229 (native-inputs
8230 `(("ruby-rspec" ,ruby-rspec)))
8231 (synopsis "Cucumber tag expressions for Ruby")
8232 (description "Cucumber tag expression parser for Ruby. A tag expression
8233 is an infix boolean expression used by Cucumber.")
8234 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8235 (license license:expat)))
8236
8237 (define-public ruby-bindex
8238 (package
8239 (name "ruby-bindex")
8240 (version "0.5.0")
8241 (source
8242 (origin
8243 (method url-fetch)
8244 (uri (rubygems-uri "bindex" version))
8245 (sha256
8246 (base32
8247 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8248 (build-system ruby-build-system)
8249 (arguments
8250 '(#:test-target "default"))
8251 (native-inputs
8252 `(("bundler" ,bundler)
8253 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8254 (synopsis "Provides access for bindings relating to Ruby exceptions")
8255 (description
8256 "@code{bindex} provides a way to access the bindings that relate to
8257 exceptions in Ruby, providing more information about the context in which the
8258 exception occurred.")
8259 (home-page "https://github.com/gsamokovarov/bindex")
8260 (license license:expat)))
8261
8262 (define-public ruby-bio-logger
8263 (package
8264 (name "ruby-bio-logger")
8265 (version "1.0.1")
8266 (source
8267 (origin
8268 (method url-fetch)
8269 (uri (rubygems-uri "bio-logger" version))
8270 (sha256
8271 (base32
8272 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8273 (build-system ruby-build-system)
8274 (arguments
8275 `(#:tests? #f)) ; rake errors, missing shoulda
8276 (propagated-inputs
8277 `(("ruby-log4r" ,ruby-log4r)))
8278 (synopsis "Log4r wrapper for Ruby")
8279 (description "Bio-logger is a wrapper around Log4r adding extra logging
8280 features such as filtering and fine grained logging.")
8281 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8282 (license license:expat)))
8283
8284 (define-public ruby-yajl-ruby
8285 (package
8286 (name "ruby-yajl-ruby")
8287 (version "1.4.1")
8288 (source
8289 (origin
8290 (method url-fetch)
8291 (uri (rubygems-uri "yajl-ruby" version))
8292 (sha256
8293 (base32
8294 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8295 (build-system ruby-build-system)
8296 (arguments
8297 '(#:test-target "spec"
8298 #:phases
8299 (modify-phases %standard-phases
8300 (add-before 'check 'patch-test-to-update-load-path
8301 (lambda _
8302 (substitute* "spec/parsing/large_number_spec.rb"
8303 (("require \"yajl\"")
8304 "$LOAD_PATH << 'lib'; require 'yajl'"))
8305 #t)))))
8306 (native-inputs
8307 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8308 ("ruby-rspec" ,ruby-rspec)))
8309 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8310 (description
8311 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8312 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8313 replacement.
8314
8315 A modified copy of yajl is used, and included in the package.")
8316 (home-page "https://github.com/brianmario/yajl-ruby")
8317 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8318 license:bsd-3)))) ; Included, modified copy of yajl
8319
8320 (define-public ruby-yard
8321 (package
8322 (name "ruby-yard")
8323 (version "0.9.25")
8324 (source
8325 (origin
8326 (method git-fetch)
8327 ;; Tests do not pass if we build from the distributed gem.
8328 (uri (git-reference
8329 (url "https://github.com/lsegal/yard")
8330 (commit (string-append "v" version))))
8331 (file-name (git-file-name name version))
8332 (sha256
8333 (base32
8334 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8335 (build-system ruby-build-system)
8336 (arguments
8337 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8338 ;; problems.
8339 `(#:tests? #f
8340 #:phases (modify-phases %standard-phases
8341 (add-after 'unpack 'do-not-set-date-in-gemspec
8342 ;; Fix a reproducibility issue (see:
8343 ;; https://github.com/lsegal/yard/issues/1343).
8344 (lambda _
8345 (substitute* "yard.gemspec"
8346 ((".*s\\.date.*") ""))
8347 #t)))))
8348 (synopsis "Documentation generation tool for Ruby")
8349 (description "YARD is a documentation generation tool for the Ruby
8350 programming language. It enables the user to generate consistent, usable
8351 documentation that can be exported to a number of formats very easily, and
8352 also supports extending for custom Ruby constructs such as custom class level
8353 definitions.")
8354 (home-page "https://yardoc.org")
8355 (license license:expat)))
8356
8357 (define-public ruby-yard-with-tests
8358 (package
8359 (inherit ruby-yard)
8360 (name "ruby-yard-with-tests")
8361 (arguments
8362 (substitute-keyword-arguments (package-arguments ruby-yard)
8363 ((#:tests? _ #t) #t)
8364 ((#:test-target _ "default") "default")
8365 ((#:phases phases '%standard-phases)
8366 `(modify-phases ,phases
8367 (add-before 'check 'prepare-for-tests
8368 (lambda* (#:key tests? #:allow-other-keys)
8369 (when tests?
8370 (substitute* "Rakefile"
8371 ((".*[Ss]amus.*") ""))
8372 ;; Delete the Gemfile to avoid errors relating to it.
8373 (delete-file "Gemfile")
8374 ;; $HOME needs to be set to somewhere writeable for tests to
8375 ;; run.
8376 (setenv "HOME" "/tmp"))
8377 #t))))))
8378 (native-inputs
8379 `(("ruby-rspec" ,ruby-rspec)
8380 ("ruby-rack" ,ruby-rack)
8381 ("ruby-redcloth" ,ruby-redcloth)
8382 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8383
8384 (define-public ruby-spectroscope
8385 (package
8386 (name "ruby-spectroscope")
8387 (version "0.1.0")
8388 (source
8389 (origin
8390 (method url-fetch)
8391 (uri (rubygems-uri "spectroscope" version))
8392 (sha256
8393 (base32
8394 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8395 (build-system ruby-build-system)
8396 (arguments
8397 `(#:phases
8398 (modify-phases %standard-phases
8399 (replace 'check
8400 (lambda _
8401 (with-output-to-file ".test"
8402 (lambda _
8403 (display
8404 "\
8405 require 'ae/should'
8406 require 'rspec'
8407
8408 include RSpec
8409
8410 Test.run :default do |run|
8411 run.files << 'spec/*_spec.rb'
8412 end")))
8413 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8414 (native-inputs
8415 `(("ruby-ae" ,ruby-ae)
8416 ("ruby-rspec" ,ruby-rspec)))
8417 (propagated-inputs
8418 `(("ruby-rubytest" ,ruby-rubytest)))
8419 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8420 (description "Spectroscope is a Behavior-Driven Development (BDD)
8421 framework built on RubyTest, designed to emulate RSpec in most respects. It
8422 is assertion framework independent so any number of assertion systems can be
8423 used, such as Assay or AE.")
8424 (home-page "http://rubyworks.github.com/spectroscope/")
8425 (license license:bsd-2)))
8426
8427 (define-public ruby-tomparse
8428 (package
8429 (name "ruby-tomparse")
8430 (version "0.4.2")
8431 (source
8432 (origin
8433 (method url-fetch)
8434 (uri (rubygems-uri "tomparse" version))
8435 (sha256
8436 (base32
8437 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8438 (build-system ruby-build-system)
8439 ;; TODO: Tests require citron and rulebow, not yet packaged.
8440 (arguments '(#:tests? #f))
8441 (synopsis "TomDoc parser for Ruby")
8442 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8443 comment as input and parses it into a convenient object-oriented structure in
8444 accordance with the TomDoc standard. See
8445 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8446 TomDoc format.")
8447 (home-page "http://rubyworks.github.com/tomparse/")
8448 (license license:bsd-2)))
8449
8450 (define-public ruby-yard-tomdoc
8451 (package
8452 (name "ruby-yard-tomdoc")
8453 (version "0.7.1")
8454 (source
8455 (origin
8456 (method url-fetch)
8457 (uri (rubygems-uri "yard-tomdoc" version))
8458 (sha256
8459 (base32
8460 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8461 (build-system ruby-build-system)
8462 (arguments
8463 `(#:phases (modify-phases %standard-phases
8464 (replace 'check
8465 (lambda _
8466 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8467 (native-inputs
8468 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8469 ("ruby-spectroscope" ,ruby-spectroscope)
8470 ("ruby-ae" ,ruby-ae)))
8471 (propagated-inputs
8472 `(("ruby-tomparse" ,ruby-tomparse)
8473 ("ruby-yard" ,ruby-yard)))
8474 (synopsis "TomDoc syntax for YARD")
8475 (description "This module adds support for the TomDoc documentation format
8476 to YARD, a documentation generation tool for Ruby.")
8477 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8478 (license license:expat)))
8479
8480 (define-public ruby-clap
8481 (package
8482 (name "ruby-clap")
8483 (version "1.0.0")
8484 (source (origin
8485 (method url-fetch)
8486 (uri (rubygems-uri "clap" version))
8487 (sha256
8488 (base32
8489 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8490 (build-system ruby-build-system)
8491 ;; Clap needs cutest for running tests, but cutest needs clap.
8492 (arguments `(#:tests? #f))
8493 (synopsis "Command line argument parsing for simple applications")
8494 (description
8495 "Clap provides command line argument parsing features. It covers the
8496 simple case of executing code based on the flags or parameters passed.")
8497 (home-page "https://github.com/djanowski/cutest")
8498 (license license:expat)))
8499
8500 (define-public ruby-cutest
8501 (package
8502 (name "ruby-cutest")
8503 (version "1.2.2")
8504 (source (origin
8505 (method url-fetch)
8506 (uri (rubygems-uri "cutest" version))
8507 (sha256
8508 (base32
8509 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8510 (build-system ruby-build-system)
8511 (propagated-inputs
8512 `(("ruby-clap" ,ruby-clap)))
8513 (synopsis "Run tests in separate processes")
8514 (description
8515 "Cutest runs tests in separate processes to avoid shared state.")
8516 (home-page "https://github.com/djanowski/cutest")
8517 (license license:expat)))
8518
8519 (define-public ruby-pygmentize
8520 (package
8521 (name "ruby-pygmentize")
8522 (version "0.0.3")
8523 (source (origin
8524 (method url-fetch)
8525 (uri (rubygems-uri "pygmentize" version))
8526 (sha256
8527 (base32
8528 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8529 (build-system ruby-build-system)
8530 (arguments
8531 `(#:phases
8532 (modify-phases %standard-phases
8533 (add-after 'unpack 'fix-pygmentize-path
8534 (lambda _
8535 (substitute* "lib/pygmentize.rb"
8536 (("\"/usr/bin/env python.*")
8537 (string-append "\"" (which "pygmentize") "\"\n")))
8538 #t))
8539 (add-after 'build 'do-not-use-vendor-directory
8540 (lambda _
8541 ;; Remove bundled pygments sources
8542 ;; FIXME: ruby-build-system does not support snippets.
8543 (delete-file-recursively "vendor")
8544 (substitute* "pygmentize.gemspec"
8545 (("\"vendor/\\*\\*/\\*\",") ""))
8546 #t)))))
8547 (inputs
8548 `(("pygments" ,python-pygments)))
8549 (native-inputs
8550 `(("ruby-cutest" ,ruby-cutest)
8551 ("ruby-nokogiri" ,ruby-nokogiri)))
8552 (synopsis "Thin Ruby wrapper around pygmentize")
8553 (description
8554 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8555 application.")
8556 (home-page "https://github.com/djanowski/pygmentize")
8557 (license license:expat)))
8558
8559 (define-public ruby-eventmachine
8560 (package
8561 (name "ruby-eventmachine")
8562 (version "1.2.7")
8563 (source
8564 (origin
8565 (method url-fetch)
8566 (uri (rubygems-uri "eventmachine" version))
8567 (sha256
8568 (base32
8569 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8570 (build-system ruby-build-system)
8571 (arguments
8572 '(#:tests? #f)) ; test suite tries to connect to google.com
8573 (native-inputs
8574 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8575 (synopsis "Single-threaded network event framework for Ruby")
8576 (description
8577 "EventMachine implements a single-threaded engine for arbitrary network
8578 communications. EventMachine wraps all interactions with sockets, allowing
8579 programs to concentrate on the implementation of network protocols. It can be
8580 used to create both network servers and clients.")
8581 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8582 (home-page "https://github.com/eventmachine/eventmachine")
8583 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8584
8585 (define-public ruby-ruby-engine
8586 (package
8587 (name "ruby-ruby-engine")
8588 (version "2.0.0")
8589 (source
8590 (origin
8591 (method url-fetch)
8592 (uri (rubygems-uri "ruby_engine" version))
8593 (sha256
8594 (base32
8595 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8596 (build-system ruby-build-system)
8597 (arguments
8598 `(#:phases
8599 (modify-phases %standard-phases
8600 (add-after 'extract-gemspec 'clean-up
8601 (lambda _
8602 (delete-file "Gemfile.lock")
8603 (substitute* "ruby_engine.gemspec"
8604 ;; Remove unnecessary imports that would entail further
8605 ;; dependencies.
8606 ((".*<rdoc.*") "")
8607 ((".*<rubygems-tasks.*") "")
8608 ;; Remove extraneous .gem file
8609 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8610 (("\"Gemfile.lock\".freeze, ") "")
8611 ;; Soften rake dependency
8612 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8613 "%q<rake>.freeze, [\">= 10.0\"]")
8614 ;; Soften the rspec dependency
8615 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8616 "%q<rspec>.freeze, [\">= 2.4\"]"))
8617 (substitute* "Rakefile"
8618 (("require 'rubygems/tasks'") "")
8619 (("Gem::Tasks.new") ""))
8620 ;; Remove extraneous .gem file that otherwise gets installed.
8621 (delete-file-recursively "pkg")
8622 #t)))))
8623 (native-inputs
8624 `(("bundler" ,bundler)
8625 ("ruby-rake" ,ruby-rake)
8626 ("ruby-rspec" ,ruby-rspec)))
8627 (synopsis "Simplifies checking for Ruby implementation")
8628 (description
8629 "@code{ruby_engine} provides an RubyEngine class that can be used to
8630 check which implementation of Ruby is in use. It can provide the interpreter
8631 name and provides query methods such as @{RubyEngine.mri?}.")
8632 (home-page "https://github.com/janlelis/ruby_engine")
8633 (license license:expat)))
8634
8635 (define-public ruby-turn
8636 (package
8637 (name "ruby-turn")
8638 (version "0.9.7")
8639 (source
8640 (origin
8641 (method url-fetch)
8642 (uri (rubygems-uri "turn" version))
8643 (sha256
8644 (base32
8645 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8646 (build-system ruby-build-system)
8647 (arguments
8648 `(#:phases
8649 (modify-phases %standard-phases
8650 ;; Tests fail because turn changes its environment so can no longer
8651 ;; find test/unit. Instead simply test if the executable runs
8652 ;; without issue.
8653 (replace 'check
8654 (lambda _
8655 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8656 (propagated-inputs
8657 `(("ruby-ansi" ,ruby-ansi)
8658 ("ruby-minitest" ,ruby-minitest-4)))
8659 (synopsis "Alternate set of alternative runners for MiniTest")
8660 (description
8661 "TURN provides a set of alternative runners for MiniTest which are both
8662 colorful and informative. TURN displays each test on a separate line with
8663 failures being displayed immediately instead of at the end of the tests. Note
8664 that TURN is no longer being maintained.")
8665 (home-page "https://rubygems.org/gems/turn")
8666 (license license:expat)))
8667
8668 (define-public ruby-mimemagic
8669 (package
8670 (name "ruby-mimemagic")
8671 (version "0.3.3")
8672 (source
8673 (origin
8674 (method url-fetch)
8675 (uri (rubygems-uri "mimemagic" version))
8676 (sha256
8677 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8678 (build-system ruby-build-system)
8679 (arguments
8680 '(#:phases
8681 (modify-phases %standard-phases
8682 ;; This phase breaks the tests, as it patches some of the test data.
8683 (delete 'patch-source-shebangs))))
8684 (native-inputs
8685 `(("ruby-bacon" ,ruby-bacon)))
8686 (synopsis "Ruby library for MIME detection by extension or content")
8687 (description
8688 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8689 extension or content, using the freedesktop.org.xml shared-mime-info
8690 database.")
8691 (home-page "https://github.com/minad/mimemagic")
8692 (license license:expat)))
8693
8694 (define-public ruby-mime-types-data
8695 (package
8696 (name "ruby-mime-types-data")
8697 (version "3.2016.0521")
8698 (source
8699 (origin
8700 (method url-fetch)
8701 (uri (rubygems-uri "mime-types-data" version))
8702 (sha256
8703 (base32
8704 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8705 (build-system ruby-build-system)
8706 (native-inputs
8707 `(("ruby-hoe" ,ruby-hoe)))
8708 (synopsis "Registry for information about MIME media type definitions")
8709 (description
8710 "@code{mime-types-data} provides a registry for information about
8711 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8712 be used with the Ruby mime-types library or other software to determine
8713 defined filename extensions for MIME types, or to use filename extensions to
8714 look up the likely MIME type definitions.")
8715 (home-page "https://github.com/mime-types/mime-types-data/")
8716 (license license:expat)))
8717
8718 (define-public ruby-mime-types
8719 (package
8720 (name "ruby-mime-types")
8721 (version "3.1")
8722 (source
8723 (origin
8724 (method url-fetch)
8725 (uri (rubygems-uri "mime-types" version))
8726 (sha256
8727 (base32
8728 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8729 (build-system ruby-build-system)
8730 (propagated-inputs
8731 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8732 (native-inputs
8733 `(("ruby-hoe" ,ruby-hoe)
8734 ("ruby-fivemat" ,ruby-fivemat)
8735 ("ruby-minitest-focus" ,ruby-minitest-focus)
8736 ("ruby-minitest-rg" ,ruby-minitest-rg)
8737 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8738 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8739 (synopsis "Library and registry for MIME content type definitions")
8740 (description "The mime-types library provides a library and registry for
8741 information about Multipurpose Internet Mail Extensions (MIME) content type
8742 definitions. It can be used to determine defined filename extensions for MIME
8743 types, or to use filename extensions to look up the likely MIME type
8744 definitions.")
8745 (home-page "https://github.com/mime-types/ruby-mime-types")
8746 (license license:expat)))
8747
8748 (define-public ruby-fivemat
8749 (package
8750 (name "ruby-fivemat")
8751 (version "1.3.7")
8752 (source
8753 (origin
8754 (method url-fetch)
8755 (uri (rubygems-uri "fivemat" version))
8756 (sha256
8757 (base32
8758 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8759 (build-system ruby-build-system)
8760 (arguments
8761 `(#:tests? #f)) ; no tests
8762 (synopsis "Each test file given its own line of dots")
8763 (description
8764 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8765 its own line of dots during testing. It aims to provide test output that is
8766 neither too verbose nor too minimal.")
8767 (home-page "https://github.com/tpope/fivemat")
8768 (license license:expat)))
8769
8770 (define-public ruby-sqlite3
8771 (package
8772 (name "ruby-sqlite3")
8773 (version "1.4.2")
8774 (source
8775 (origin
8776 (method url-fetch)
8777 (uri (rubygems-uri "sqlite3" version))
8778 (sha256
8779 (base32
8780 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8781 (build-system ruby-build-system)
8782 (arguments
8783 `(#:phases
8784 (modify-phases %standard-phases
8785 (add-before 'check 'add-gemtest-file
8786 ;; This file exists in the repository but is not distributed.
8787 (lambda _ (invoke "touch" ".gemtest"))))))
8788 (inputs
8789 `(("sqlite" ,sqlite)))
8790 (native-inputs
8791 `(("ruby-hoe" ,ruby-hoe)
8792 ("ruby-rake-compiler" ,ruby-rake-compiler)
8793 ("ruby-mini-portile" ,ruby-mini-portile)))
8794 (synopsis "Interface with SQLite3 databases")
8795 (description
8796 "This module allows Ruby programs to interface with the SQLite3 database
8797 engine.")
8798 (home-page
8799 "https://github.com/sparklemotion/sqlite3-ruby")
8800 (license license:bsd-3)))
8801
8802 (define-public ruby-shoulda-context
8803 (package
8804 (name "ruby-shoulda-context")
8805 (version "1.2.2")
8806 (source
8807 (origin
8808 (method url-fetch)
8809 (uri (rubygems-uri "shoulda-context" version))
8810 (sha256
8811 (base32
8812 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8813 (build-system ruby-build-system)
8814 (arguments
8815 `(#:phases
8816 (modify-phases %standard-phases
8817 (replace 'check
8818 (lambda _
8819 ;; Do not run tests to avoid circular dependence with rails.
8820 ;; Instead just import the library to test.
8821 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8822 (synopsis "Test::Unit context framework extracted from Shoulda")
8823 (description
8824 "@code{shoulda-context} is the context framework extracted from Shoulda.
8825 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8826 context, setup, and should blocks combine to produce natural test method
8827 names.")
8828 (home-page "https://github.com/thoughtbot/shoulda-context")
8829 (license license:expat)))
8830
8831 (define-public ruby-shoulda-matchers
8832 (package
8833 (name "ruby-shoulda-matchers")
8834 (version "3.1.2")
8835 (source
8836 (origin
8837 (method url-fetch)
8838 (uri (rubygems-uri "shoulda-matchers" version))
8839 (sha256
8840 (base32
8841 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8842 (build-system ruby-build-system)
8843 (arguments
8844 `(#:phases
8845 (modify-phases %standard-phases
8846 (replace 'check
8847 (lambda _
8848 ;; Do not run tests to avoid circular dependence with rails. Instead
8849 ;; just import the library to test.
8850 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8851 (propagated-inputs
8852 `(("ruby-activesupport" ,ruby-activesupport)))
8853 (synopsis "Collection of testing matchers extracted from Shoulda")
8854 (description
8855 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8856 test common Rails functionality. These tests would otherwise be much longer,
8857 more complex, and error-prone.")
8858 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8859 (license license:expat)))
8860
8861 (define-public ruby-shoulda-matchers-2
8862 (package
8863 (inherit ruby-shoulda-matchers)
8864 (version "2.8.0")
8865 (source (origin
8866 (method url-fetch)
8867 (uri (rubygems-uri "shoulda-matchers" version))
8868 (sha256
8869 (base32
8870 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8871
8872 (define-public ruby-shoulda
8873 (package
8874 (name "ruby-shoulda")
8875 (version "3.5.0")
8876 (source
8877 (origin
8878 (method url-fetch)
8879 (uri (rubygems-uri "shoulda" version))
8880 (sha256
8881 (base32
8882 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8883 (build-system ruby-build-system)
8884 (arguments
8885 `(#:phases
8886 (modify-phases %standard-phases
8887 (replace 'check
8888 ;; Don't run tests to avoid circular dependence with rails. Instead
8889 ;; just import the library to test.
8890 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8891 (propagated-inputs
8892 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8893 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8894 (synopsis "Context framework and matchers for testing")
8895 (description
8896 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8897 @code{shoulda-matchers} providing tools for writing tests.")
8898 (home-page "https://github.com/thoughtbot/shoulda")
8899 (license license:expat)))
8900
8901 (define-public ruby-unf
8902 (package
8903 (name "ruby-unf")
8904 (version "0.1.4")
8905 (source
8906 (origin
8907 (method url-fetch)
8908 (uri (rubygems-uri "unf" version))
8909 (sha256
8910 (base32
8911 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8912 (build-system ruby-build-system)
8913 (arguments
8914 `(#:phases
8915 (modify-phases %standard-phases
8916 (add-before 'check 'add-dependency-to-bundler
8917 (lambda _
8918 ;; test-unit is required but not provided by the bundler
8919 ;; environment. This is fixed in the upstream repository but fix
8920 ;; has not been released.
8921 (substitute* "Gemfile"
8922 (("^gemspec") "gem 'test-unit'\ngemspec"))
8923 #t)))))
8924 (propagated-inputs
8925 `(("ruby-unf-ext" ,ruby-unf-ext)))
8926 (native-inputs
8927 `(("ruby-shoulda" ,ruby-shoulda)
8928 ("bundler" ,bundler)
8929 ("ruby-test-unit" ,ruby-test-unit)))
8930 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
8931 (description
8932 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
8933 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
8934 @code{java.text.Normalizer} on JRuby.")
8935 (home-page "https://github.com/knu/ruby-unf")
8936 (license license:bsd-2)))
8937
8938 (define-public ruby-warden
8939 (package
8940 (name "ruby-warden")
8941 (version "1.2.8")
8942 (source
8943 (origin
8944 (method url-fetch)
8945 (uri (rubygems-uri "warden" version))
8946 (sha256
8947 (base32
8948 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
8949 (build-system ruby-build-system)
8950 (arguments
8951 '(#:tests? #f)) ; No included tests
8952 (propagated-inputs
8953 `(("ruby-rack" ,ruby-rack)))
8954 (synopsis "Rack middleware providing authentication")
8955 (description
8956 "Warden is a Rack-based middleware that provides a mechanism for
8957 authentication in Ruby web applications.")
8958 (home-page "https://github.com/wardencommunity/warden")
8959 (license license:expat)))
8960
8961 (define-public ruby-warden-oauth2
8962 (package
8963 (name "ruby-warden-oauth2")
8964 (version "0.0.1")
8965 (source
8966 (origin
8967 (method url-fetch)
8968 (uri (rubygems-uri "warden-oauth2" version))
8969 (sha256
8970 (base32
8971 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
8972 (build-system ruby-build-system)
8973 (arguments
8974 '(#:test-target "spec"
8975 #:phases
8976 (modify-phases %standard-phases
8977 (add-after 'unpack 'remove-unnecessary-dependencies
8978 (lambda _
8979 (substitute* "Gemfile"
8980 ;; All of these gems relate to development, and are unnecessary
8981 ;; when running the tests
8982 (("gem 'guard-bundler'") "")
8983 (("gem 'guard'") "")
8984 (("gem 'guard-rspec'") "")
8985 (("gem 'rb-fsevent'") "")
8986 (("gem 'pry'") "")
8987 (("gem 'growl'") ""))
8988 #t))
8989 ;; The test suite doesn't work with rspec@2, and this is incompatible
8990 ;; with the current version of Rake, so invoke Rspec directly
8991 (replace 'check
8992 (lambda* (#:key tests? #:allow-other-keys)
8993 (when tests?
8994 (invoke "bundle" "exec" "rspec"))
8995 #t)))))
8996 (propagated-inputs
8997 `(("ruby-warden" ,ruby-warden)))
8998 (native-inputs
8999 `(("bundler" ,bundler)
9000 ("ruby-rspec" ,ruby-rspec-2)
9001 ("ruby-rack-test" ,ruby-rack-test)))
9002 (synopsis "OAuth 2.0 strategies for Warden")
9003 (description
9004 "This library extends Warden to support OAuth 2.0 authorized API
9005 requests.")
9006 (home-page "https://github.com/opperator/warden-oauth2")
9007 (license license:expat)))
9008
9009 (define-public ruby-webmock-2
9010 (package
9011 (name "ruby-webmock")
9012 (version "2.3.2")
9013 (source
9014 (origin
9015 (method url-fetch)
9016 (uri (rubygems-uri "webmock" version))
9017 (sha256
9018 (base32
9019 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
9020 (build-system ruby-build-system)
9021 (native-inputs
9022 `(("bundler" ,bundler)
9023 ("ruby-rspec" ,ruby-rspec)))
9024 (propagated-inputs
9025 `(("ruby-addressable" ,ruby-addressable)
9026 ("ruby-crack" ,ruby-crack)
9027 ("ruby-hashdiff" ,ruby-hashdiff)))
9028 (synopsis "Allows stubbing and setting expectations on HTTP requests")
9029 (description
9030 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
9031 requests. This is useful when testing software.")
9032 (home-page "https://github.com/bblimke/webmock")
9033 (license license:expat)))
9034
9035 (define-public ruby-unicode-display-width
9036 (package
9037 (name "ruby-unicode-display-width")
9038 (version "1.6.0")
9039 (source
9040 (origin
9041 (method url-fetch)
9042 (uri (rubygems-uri "unicode-display_width" version))
9043 (sha256
9044 (base32
9045 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
9046 (build-system ruby-build-system)
9047 (arguments
9048 '(;; Test data not included.
9049 #:tests? #f))
9050 (synopsis "Determine the monospace display width of Ruby strings")
9051 (description
9052 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
9053 display width of strings in Ruby.")
9054 (home-page "https://github.com/janlelis/unicode-display_width")
9055 (license license:expat)))
9056
9057 ;; There is another gem called 'ruby-version' so we use an underscore in this
9058 ;; name
9059 (define-public ruby_version
9060 (package
9061 (name "ruby_version")
9062 (version "1.0.2")
9063 (source
9064 (origin
9065 (method url-fetch)
9066 (uri (rubygems-uri "ruby_version" version))
9067 (sha256
9068 (base32
9069 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
9070 (build-system ruby-build-system)
9071 (arguments
9072 `(#:phases
9073 (modify-phases %standard-phases
9074 (add-before 'check 'fix-dependencies
9075 (lambda _
9076 ;; Remove the Gemfile.lock, as we want to use Guix packages at
9077 ;; whatever versions.
9078 (delete-file "Gemfile.lock")
9079 ;; Remove the included gem files as they unnecessary.
9080 (delete-file-recursively "pkg/")
9081 ;; Accept any version of rake, rdoc and rspec
9082 (substitute* "ruby_version.gemspec"
9083 (("%q<rake.*") "%q<rake>)\n")
9084 (("%q<rdoc.*") "%q<rdoc>)\n")
9085 (("%q<rspec.*") "%q<rspec>)\n"))
9086 ;; Do not use bundler.
9087 (substitute* "Rakefile"
9088 (("Bundler\\.setup.*") "nil\n"))
9089 #t)))))
9090 (native-inputs
9091 `(("ruby-rdoc" ,ruby-rdoc)
9092 ("ruby-rspec" ,ruby-rspec)
9093 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
9094 (synopsis "Ruby library to help check the Ruby version")
9095 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
9096 checking for the right Ruby version in software.")
9097 (home-page "https://github.com/janlelis/ruby_version")
9098 (license license:expat)))
9099
9100 (define-public ruby-websocket-driver
9101 (package
9102 (name "ruby-websocket-driver")
9103 (version "0.7.1")
9104 (source
9105 (origin
9106 (method url-fetch)
9107 (uri (rubygems-uri "websocket-driver" version))
9108 (sha256
9109 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
9110 (build-system ruby-build-system)
9111 (arguments
9112 '(#:tests? #f)) ; no included tests
9113 (propagated-inputs
9114 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
9115 (synopsis "WebSocket protocol handler with pluggable I/O")
9116 (description
9117 "@code{websocket-driver} provides a complete implementation of the
9118 WebSocket protocols that can be hooked up to any TCP library")
9119 (home-page "https://github.com/faye/websocket-driver-ruby")
9120 (license license:expat)))
9121
9122 (define-public ruby-websocket-extensions
9123 (package
9124 (name "ruby-websocket-extensions")
9125 (version "0.1.3")
9126 (source
9127 (origin
9128 (method url-fetch)
9129 (uri (rubygems-uri "websocket-extensions" version))
9130 (sha256
9131 (base32
9132 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
9133 (build-system ruby-build-system)
9134 (arguments
9135 '(;; No included tests
9136 #:tests? #f))
9137 (synopsis "Generic extension manager for WebSocket connections")
9138 (description
9139 "@code{websocket-extensions} provides a container for registering
9140 extension plugins.")
9141 (home-page "https://github.com/faye/websocket-extensions-ruby")
9142 (license license:expat)))
9143
9144 (define-public ruby-domain-name
9145 (package
9146 (name "ruby-domain-name")
9147 (version "0.5.20190701")
9148 (source
9149 (origin
9150 (method url-fetch)
9151 (uri (rubygems-uri "domain_name" version))
9152 (sha256
9153 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
9154 (build-system ruby-build-system)
9155 (arguments
9156 `(#:phases
9157 (modify-phases %standard-phases
9158 (add-before 'check 'fix-versions
9159 (lambda _
9160 ;; Fix NameError that appears to already be fixed upstream.
9161 (substitute* "Rakefile"
9162 (("DomainName::VERSION")
9163 "Bundler::GemHelper.gemspec.version"))
9164 ;; Loosen unnecessarily strict test-unit version specification.
9165 (substitute* "domain_name.gemspec"
9166 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
9167 #t)))))
9168 (propagated-inputs
9169 `(("ruby-unf" ,ruby-unf)))
9170 (native-inputs
9171 `(("ruby-shoulda" ,ruby-shoulda)
9172 ("bundler" ,bundler)
9173 ("ruby-test-unit" ,ruby-test-unit)))
9174 (synopsis "Domain name manipulation library")
9175 (description
9176 "@code{domain_name} is a Domain name manipulation library. It parses a
9177 domain name ready for extracting the registered domain and TLD (Top Level
9178 Domain). It can also be used for cookie domain validation based on the Public
9179 Suffix List.")
9180 (home-page "https://github.com/knu/ruby-domain_name")
9181 (license license:bsd-2)))
9182
9183 (define-public ruby-http-cookie
9184 (package
9185 (name "ruby-http-cookie")
9186 (version "1.0.3")
9187 (source
9188 (origin
9189 (method url-fetch)
9190 (uri (rubygems-uri "http-cookie" version))
9191 (sha256
9192 (base32
9193 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
9194 (build-system ruby-build-system)
9195 (arguments
9196 `(#:phases
9197 (modify-phases %standard-phases
9198 (add-before 'check 'add-dependency-to-bundler
9199 (lambda _
9200 ;; Fix NameError
9201 (substitute* "Rakefile"
9202 (("HTTP::Cookie::VERSION")
9203 "Bundler::GemHelper.gemspec.version"))
9204 #t)))))
9205 (propagated-inputs
9206 `(("ruby-domain-name" ,ruby-domain-name)))
9207 (native-inputs
9208 `(("rubysimplecov" ,ruby-simplecov)
9209 ("bundler" ,bundler)
9210 ("ruby-sqlite3" ,ruby-sqlite3)
9211 ("ruby-test-unit" ,ruby-test-unit)))
9212 (synopsis "Handle HTTP Cookies based on RFC 6265")
9213 (description
9214 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9215 RFC 6265. It has been designed with security, standards compliance and
9216 compatibility in mind, to behave just the same as today's major web browsers.
9217 It has built-in support for the legacy @code{cookies.txt} and
9218 @code{cookies.sqlite} formats of Mozilla Firefox.")
9219 (home-page "https://github.com/sparklemotion/http-cookie")
9220 (license license:expat)))
9221
9222 (define-public ruby-httpclient
9223 (package
9224 (name "ruby-httpclient")
9225 (version "2.8.3")
9226 (source
9227 (origin
9228 (method url-fetch)
9229 (uri (rubygems-uri "httpclient" version))
9230 (sha256
9231 (base32
9232 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9233 (build-system ruby-build-system)
9234 (arguments
9235 '(;; TODO: Some tests currently fail
9236 ;; ------
9237 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9238 ;; 2 omissions, 0 notifications
9239 ;; 91.866% passed
9240 ;; ------
9241 ;; 6.49 tests/s, 22.41 assertions/s
9242 #:tests? #f
9243 #:phases
9244 (modify-phases %standard-phases
9245 (replace 'check
9246 (lambda* (#:key tests? #:allow-other-keys)
9247 (if tests?
9248 (invoke "ruby"
9249 "-Ilib"
9250 "test/runner.rb")
9251 #t))))))
9252 (native-inputs
9253 `(("ruby-rack" ,ruby-rack)))
9254 (synopsis
9255 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9256 (description
9257 "The @code{httpclient} ruby library provides functionality related to
9258 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9259 Cookie, multithreading and authentication (digest, NTLM) support.
9260
9261 Also provided is a @command{httpclient} command, which can perform HTTP
9262 requests either using arguments or with an interactive prompt.")
9263 (home-page "https://github.com/nahi/httpclient")
9264 (license license:ruby)))
9265
9266 (define-public ruby-ansi
9267 (package
9268 (name "ruby-ansi")
9269 (version "1.5.0")
9270 (source
9271 (origin
9272 (method git-fetch)
9273 ;; Fetch from GitHub as the gem does not contain testing code.
9274 (uri (git-reference
9275 (url "https://github.com/rubyworks/ansi")
9276 (commit version)))
9277 (file-name (git-file-name name version))
9278 (sha256
9279 (base32
9280 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9281 (build-system ruby-build-system)
9282 (arguments
9283 `(#:phases
9284 (modify-phases %standard-phases
9285 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9286 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9287 ;; be require'd.
9288 (replace 'check
9289 (lambda _
9290 (invoke "ruby" "-Ilib" "-r" "ansi")))
9291 (add-before 'validate-runpath 'replace-broken-symlink
9292 (lambda* (#:key outputs #:allow-other-keys)
9293 (let* ((out (assoc-ref outputs "out"))
9294 (file (string-append
9295 out "/lib/ruby/vendor_ruby/gems/ansi-"
9296 ,version "/lib/ansi.yml")))
9297 ;; XXX: This symlink is broken since ruby 2.4.
9298 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9299 (delete-file file)
9300 (symlink "../.index" file)
9301 #t))))))
9302 (synopsis "ANSI escape code related libraries")
9303 (description
9304 "This package is a collection of ANSI escape code related libraries
9305 enabling ANSI colorization and stylization of console output. Included in the
9306 library are the @code{Code} module, which defines ANSI codes as constants and
9307 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9308 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9309 @code{Terminal} module which provides information about the current output
9310 device.")
9311 (home-page "https://rubyworks.github.io/ansi/")
9312 (license license:bsd-2)))
9313
9314 (define-public ruby-systemu
9315 (package
9316 (name "ruby-systemu")
9317 (version "2.6.5")
9318 (source
9319 (origin
9320 (method url-fetch)
9321 (uri (rubygems-uri "systemu" version))
9322 (sha256
9323 (base32
9324 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9325 (build-system ruby-build-system)
9326 (arguments
9327 `(#:phases
9328 (modify-phases %standard-phases
9329 (add-before 'check 'set-version
9330 (lambda _
9331 (setenv "VERSION" ,version)
9332 #t)))))
9333 (synopsis "Capture of stdout/stderr and handling of child processes")
9334 (description
9335 "Systemu can be used on any platform to return status, stdout, and stderr
9336 of any command. Unlike other methods like @code{open3} and @code{popen4}
9337 there is no danger of full pipes or threading issues hanging your process or
9338 subprocess.")
9339 (home-page "https://github.com/ahoward/systemu")
9340 (license license:ruby)))
9341
9342 (define-public ruby-bio-commandeer
9343 (package
9344 (name "ruby-bio-commandeer")
9345 (version "0.4.0")
9346 (source
9347 (origin
9348 (method url-fetch)
9349 (uri (rubygems-uri "bio-commandeer" version))
9350 (sha256
9351 (base32
9352 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9353 (build-system ruby-build-system)
9354 (arguments
9355 `(#:phases
9356 (modify-phases %standard-phases
9357 (replace 'check
9358 ;; Run test without calling 'rake' so that jeweler is
9359 ;; not required as an input.
9360 (lambda _
9361 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9362 (propagated-inputs
9363 `(("ruby-bio-logger" ,ruby-bio-logger)
9364 ("ruby-systemu" ,ruby-systemu)))
9365 (native-inputs
9366 `(("bundler" ,bundler)
9367 ("ruby-rspec" ,ruby-rspec)))
9368 (synopsis "Simplified running of shell commands from within Ruby")
9369 (description
9370 "Bio-commandeer provides an opinionated method of running shell commands
9371 from within Ruby. The advantage of bio-commandeer over other methods of
9372 running external commands is that when something goes wrong, messages printed
9373 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9374 detail to ease debugging.")
9375 (home-page "https://github.com/wwood/bioruby-commandeer")
9376 (license license:expat)))
9377
9378 (define-public ruby-rubytest
9379 (package
9380 (name "ruby-rubytest")
9381 (version "0.8.1")
9382 (source
9383 (origin
9384 (method url-fetch)
9385 (uri (rubygems-uri "rubytest" version))
9386 (sha256
9387 (base32
9388 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9389 (build-system ruby-build-system)
9390 (arguments
9391 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9392 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9393 ;; simply test that the library can be require'd.
9394 `(#:phases
9395 (modify-phases %standard-phases
9396 (replace 'check
9397 (lambda _
9398 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9399 (propagated-inputs
9400 `(("ruby-ansi" ,ruby-ansi)))
9401 (synopsis "Universal test harness for Ruby")
9402 (description
9403 "Rubytest is a testing meta-framework for Ruby. It can handle any
9404 compliant test framework and can run tests from multiple frameworks in a
9405 single pass.")
9406 (home-page "https://rubyworks.github.io/rubytest")
9407 (license license:bsd-2)))
9408
9409 (define-public ruby-brass
9410 (package
9411 (name "ruby-brass")
9412 (version "1.2.1")
9413 (source
9414 (origin
9415 (method url-fetch)
9416 (uri (rubygems-uri "brass" version))
9417 (sha256
9418 (base32
9419 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9420 (build-system ruby-build-system)
9421 (arguments
9422 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9423 ;; Instead simply test that the library can be require'd.
9424 `(#:phases
9425 (modify-phases %standard-phases
9426 (replace 'check
9427 (lambda _
9428 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9429 (synopsis "Basic foundational assertions framework")
9430 (description
9431 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9432 foundational assertions framework for other assertion and test frameworks to
9433 make use of.")
9434 (home-page "https://rubyworks.github.io/brass")
9435 (license license:bsd-2)))
9436
9437 (define-public ruby-qed
9438 (package
9439 (name "ruby-qed")
9440 (version "2.9.2")
9441 (source
9442 (origin
9443 (method url-fetch)
9444 (uri (rubygems-uri "qed" version))
9445 (sha256
9446 (base32
9447 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9448 (build-system ruby-build-system)
9449 (arguments
9450 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9451 ;; Instead simply test that the executable runs using --copyright.
9452 `(#:phases
9453 (modify-phases %standard-phases
9454 (replace 'check
9455 (lambda _
9456 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9457 (propagated-inputs
9458 `(("ruby-ansi" ,ruby-ansi)
9459 ("ruby-brass" ,ruby-brass)))
9460 (synopsis "Test framework utilizing literate programming techniques")
9461 (description
9462 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9463 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9464 Development} (BDD) utilizing Literate Programming techniques. QED sits
9465 somewhere between lower-level testing tools like @code{Test::Unit} and
9466 requirement specifications systems like Cucumber.")
9467 (home-page "https://rubyworks.github.io/qed")
9468 (license license:bsd-2)))
9469
9470 (define-public ruby-que
9471 (package
9472 (name "ruby-que")
9473 (version "1.0.0.beta3")
9474 (source
9475 (origin
9476 (method url-fetch)
9477 (uri (rubygems-uri "que" version))
9478 (sha256
9479 (base32
9480 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9481 (build-system ruby-build-system)
9482 (arguments
9483 '(#:tests? #f)) ; No included tests
9484 (synopsis "Job queue using PostgreSQL written in Ruby")
9485 (description
9486 "This package provides a job queue that uses PostgreSQL for storing jobs
9487 and locking between worker processes.")
9488 (home-page "https://github.com/chanks/que")
9489 (license license:expat)))
9490
9491 (define-public ruby-ae
9492 (package
9493 (name "ruby-ae")
9494 (version "1.8.2")
9495 (source
9496 (origin
9497 (method git-fetch)
9498 ;; Fetch from github so tests are included.
9499 (uri (git-reference
9500 (url "https://github.com/rubyworks/ae")
9501 (commit version)))
9502 (file-name (git-file-name name version))
9503 (sha256
9504 (base32
9505 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9506 (build-system ruby-build-system)
9507 (arguments
9508 `(#:phases
9509 (modify-phases %standard-phases
9510 (replace 'check
9511 (lambda _ (invoke "qed")))
9512 (add-before 'validate-runpath 'replace-broken-symlink
9513 (lambda* (#:key outputs #:allow-other-keys)
9514 (let* ((out (assoc-ref outputs "out"))
9515 (file (string-append
9516 out "/lib/ruby/vendor_ruby/gems/ae-"
9517 ,version "/lib/ae.yml")))
9518 ;; XXX: This symlink is broken since ruby 2.4.
9519 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9520 (delete-file file)
9521 (symlink "../.index" file)
9522 #t))))))
9523 (propagated-inputs
9524 `(("ruby-ansi" ,ruby-ansi)))
9525 (native-inputs
9526 `(("ruby-qed" ,ruby-qed)))
9527 (synopsis "Assertions library")
9528 (description
9529 "Assertive Expressive (AE) is an assertions library specifically designed
9530 for reuse by other test frameworks.")
9531 (home-page "https://rubyworks.github.io/ae/")
9532 (license license:bsd-2)))
9533
9534 (define-public ruby-lemon
9535 (package
9536 (name "ruby-lemon")
9537 (version "0.9.1")
9538 (source
9539 (origin
9540 (method url-fetch)
9541 (uri (rubygems-uri "lemon" version))
9542 (sha256
9543 (base32
9544 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9545 (build-system ruby-build-system)
9546 (arguments
9547 `(#:phases
9548 (modify-phases %standard-phases
9549 (replace 'check (lambda _ (invoke "qed"))))))
9550 (propagated-inputs
9551 `(("ruby-ae" ,ruby-ae)
9552 ("ruby-ansi" ,ruby-ansi)
9553 ("ruby-rubytest" ,ruby-rubytest)))
9554 (native-inputs
9555 `(("ruby-qed" ,ruby-qed)))
9556 (synopsis "Test framework correlating code structure and test unit")
9557 (description
9558 "Lemon is a unit testing framework that enforces highly formal
9559 case-to-class and unit-to-method test construction. This enforcement can help
9560 focus concern on individual units of behavior.")
9561 (home-page "https://rubyworks.github.io/lemon")
9562 (license license:bsd-2)))
9563
9564 (define-public ruby-rubytest-cli
9565 (package
9566 (name "ruby-rubytest-cli")
9567 (version "0.2.0")
9568 (source
9569 (origin
9570 (method url-fetch)
9571 (uri (rubygems-uri "rubytest-cli" version))
9572 (sha256
9573 (base32
9574 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9575 (build-system ruby-build-system)
9576 (arguments
9577 `(#:tests? #f)) ; no tests
9578 (propagated-inputs
9579 `(("ruby-ansi" ,ruby-ansi)
9580 ("ruby-rubytest" ,ruby-rubytest)))
9581 (synopsis "Command-line interface for rubytest")
9582 (description
9583 "Rubytest CLI is a command-line interface for running tests for
9584 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9585 (home-page "https://rubyworks.github.io/rubytest-cli")
9586 (license license:bsd-2)))
9587
9588 (define-public ruby-hashery
9589 (package
9590 (name "ruby-hashery")
9591 (version "2.1.2")
9592 (source
9593 (origin
9594 (method url-fetch)
9595 (uri (rubygems-uri "hashery" version))
9596 (sha256
9597 (base32
9598 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9599 (build-system ruby-build-system)
9600 (arguments
9601 `(#:phases
9602 (modify-phases %standard-phases
9603 (replace 'check
9604 (lambda _
9605 (invoke "qed")
9606 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9607 (native-inputs
9608 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9609 ("ruby-qed" ,ruby-qed)
9610 ("ruby-lemon" ,ruby-lemon)))
9611 (synopsis "Hash-like classes with extra features")
9612 (description
9613 "The Hashery is a tight collection of @code{Hash}-like classes.
9614 Included are the auto-sorting @code{Dictionary} class, the efficient
9615 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9616 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9617 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9618 standard @code{Hash} making it possible to subclass and augment to fit any
9619 specific use case.")
9620 (home-page "https://rubyworks.github.io/hashery")
9621 (license license:bsd-2)))
9622
9623 (define-public ruby-rc4
9624 (package
9625 (name "ruby-rc4")
9626 (version "0.1.5")
9627 (source
9628 (origin
9629 (method url-fetch)
9630 (uri (rubygems-uri "ruby-rc4" version))
9631 (sha256
9632 (base32
9633 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9634 (build-system ruby-build-system)
9635 (arguments
9636 `(#:phases
9637 (modify-phases %standard-phases
9638 (replace 'check
9639 (lambda _
9640 (invoke "rspec" "spec/rc4_spec.rb"))))))
9641 (native-inputs
9642 `(("ruby-rspec" ,ruby-rspec-2)))
9643 (synopsis "Implementation of the RC4 algorithm")
9644 (description
9645 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9646 (home-page "https://github.com/caiges/Ruby-RC4")
9647 (license license:expat)))
9648
9649 (define-public ruby-afm
9650 (package
9651 (name "ruby-afm")
9652 (version "0.2.2")
9653 (source
9654 (origin
9655 (method url-fetch)
9656 (uri (rubygems-uri "afm" version))
9657 (sha256
9658 (base32
9659 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9660 (build-system ruby-build-system)
9661 (native-inputs
9662 `(("bundler" ,bundler)))
9663 (synopsis "Read Adobe Font Metrics (afm) files")
9664 (description
9665 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9666 files and use the data therein.")
9667 (home-page "https://github.com/halfbyte/afm")
9668 (license license:expat)))
9669
9670 (define-public ruby-ascii85
9671 (package
9672 (name "ruby-ascii85")
9673 (version "1.0.3")
9674 (source
9675 (origin
9676 (method url-fetch)
9677 (uri (rubygems-uri "Ascii85" version))
9678 (sha256
9679 (base32
9680 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9681 (build-system ruby-build-system)
9682 (native-inputs
9683 `(("bundler" ,bundler)))
9684 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9685 (description
9686 "This library provides methods to encode and decode Ascii85
9687 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9688 @dfn{Portable Document Format} (PDF) file formats.")
9689 (home-page "https://github.com/datawraith/ascii85gem")
9690 (license license:expat)))
9691
9692 (define-public ruby-ttfunk
9693 (package
9694 (name "ruby-ttfunk")
9695 (version "1.6.2.1")
9696 (source
9697 (origin
9698 (method git-fetch)
9699 ;; fetch from github as the gem does not contain testing code
9700 (uri (git-reference
9701 (url "https://github.com/prawnpdf/ttfunk")
9702 (commit version)))
9703 (file-name (git-file-name name version))
9704 (sha256
9705 (base32
9706 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9707 (build-system ruby-build-system)
9708 (arguments
9709 `(#:test-target "spec"
9710 #:phases
9711 (modify-phases %standard-phases
9712 (add-before 'build 'remove-ssh
9713 (lambda _
9714 ;; remove dependency on an ssh key pair that doesn't exist
9715 (substitute* "ttfunk.gemspec"
9716 (("spec.signing_key.*") ""))
9717 #t))
9718 (add-before 'check 'remove-rubocop
9719 (lambda _
9720 ;; remove rubocop as a dependency as not needed for testing
9721 (substitute* "ttfunk.gemspec"
9722 (("spec.add_development_dependency\\('rubocop'.*") ""))
9723 (substitute* "Rakefile"
9724 (("require 'rubocop/rake_task'") "")
9725 (("RuboCop::RakeTask.new") ""))
9726 #t)))))
9727 (native-inputs
9728 `(("ruby-rspec" ,ruby-rspec)
9729 ("ruby-yard" ,ruby-yard)
9730 ("bundler" ,bundler)))
9731 (synopsis "Font metrics parser for the Prawn PDF generator")
9732 (description
9733 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9734 part of the Prawn PDF generator.")
9735 (home-page "https://github.com/prawnpdf/ttfunk")
9736 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9737 ;; for details."
9738 (license %prawn-project-licenses)))
9739
9740 (define-public ruby-puma
9741 (package
9742 (name "ruby-puma")
9743 (version "3.9.1")
9744 (source
9745 (origin
9746 (method git-fetch)
9747 ;; Fetch from GitHub because distributed gem does not contain tests.
9748 (uri (git-reference
9749 (url "https://github.com/puma/puma")
9750 (commit (string-append "v" version))))
9751 (file-name (git-file-name name version))
9752 (sha256
9753 (base32
9754 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9755 (build-system ruby-build-system)
9756 (arguments
9757 `(#:tests? #f ; Tests require an out-dated version of minitest.
9758 #:phases
9759 (modify-phases %standard-phases
9760 (add-before 'build 'fix-gemspec
9761 (lambda _
9762 (substitute* "puma.gemspec"
9763 (("git ls-files") "find * |sort"))
9764 #t)))))
9765 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9766 (description
9767 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9768 for Ruby/Rack applications. Puma is intended for use in both development and
9769 production environments. In order to get the best throughput, it is highly
9770 recommended that you use a Ruby implementation with real threads like Rubinius
9771 or JRuby.")
9772 (home-page "https://puma.io/")
9773 (license license:expat)))
9774
9775 (define-public ruby-hoe-git
9776 (package
9777 (name "ruby-hoe-git")
9778 (version "1.6.0")
9779 (source
9780 (origin
9781 (method url-fetch)
9782 (uri (rubygems-uri "hoe-git" version))
9783 (sha256
9784 (base32
9785 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9786 (build-system ruby-build-system)
9787 (propagated-inputs
9788 `(("ruby-hoe" ,ruby-hoe)))
9789 (synopsis "Hoe plugins for tighter Git integration")
9790 (description
9791 "This package provides a set of Hoe plugins for tighter Git integration.
9792 It provides tasks to automate release tagging and pushing and changelog
9793 generation.")
9794 (home-page "https://github.com/jbarnette/hoe-git")
9795 (license license:expat)))
9796
9797 (define-public ruby-sequel
9798 (package
9799 (name "ruby-sequel")
9800 (version "4.49.0")
9801 (source
9802 (origin
9803 (method url-fetch)
9804 (uri (rubygems-uri "sequel" version))
9805 (sha256
9806 (base32
9807 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9808 (build-system ruby-build-system)
9809 (arguments
9810 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9811 (synopsis "Database toolkit for Ruby")
9812 (description "Sequel provides thread safety, connection pooling and a
9813 concise DSL for constructing SQL queries and table schemas. It includes a
9814 comprehensive ORM layer for mapping records to Ruby objects and handling
9815 associated records.")
9816 (home-page "https://sequel.jeremyevans.net")
9817 (license license:expat)))
9818
9819 (define-public ruby-timecop
9820 (package
9821 (name "ruby-timecop")
9822 (version "0.9.1")
9823 (source
9824 (origin
9825 (method url-fetch)
9826 (uri (rubygems-uri "timecop" version))
9827 (sha256
9828 (base32
9829 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9830 (build-system ruby-build-system)
9831 (arguments
9832 `(#:phases
9833 (modify-phases %standard-phases
9834 (add-before 'check 'set-check-rubylib
9835 (lambda _
9836 ;; Set RUBYLIB so timecop tests finds its own lib.
9837 (setenv "RUBYLIB" "lib")
9838 #t)))))
9839 (native-inputs
9840 `(("bundler" ,bundler)
9841 ("ruby-minitest-rg" ,ruby-minitest-rg)
9842 ("ruby-mocha" ,ruby-mocha)
9843 ("ruby-activesupport" ,ruby-activesupport)))
9844 (synopsis "Test mocks for time-dependent functions")
9845 (description
9846 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9847 making it easier to test time-dependent code. It provides a unified method to
9848 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9849 call.")
9850 (home-page "https://github.com/travisjeffery/timecop")
9851 (license license:expat)))
9852
9853 (define-public ruby-concurrent
9854 (package
9855 (name "ruby-concurrent")
9856 (version "1.1.5")
9857 (source
9858 (origin
9859 (method git-fetch)
9860 ;; Download from GitHub because the rubygems version does not contain
9861 ;; Rakefile.
9862 (uri (git-reference
9863 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9864 (commit (string-append "v" version))))
9865 (file-name (git-file-name name version))
9866 (sha256
9867 (base32
9868 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9869 (build-system ruby-build-system)
9870 (arguments
9871 `(#:test-target "ci"
9872 #:phases
9873 (modify-phases %standard-phases
9874 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9875 (lambda _
9876 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9877 ;; correct one.
9878 (delete-file "concurrent-ruby-edge.gemspec")
9879 (delete-file "concurrent-ruby-ext.gemspec")
9880 #t))
9881 (replace 'replace-git-ls-files
9882 (lambda _
9883 ;; XXX: The default substitution made by this phase is not fully
9884 ;; compatible with "git ls-files". The latter produces file names
9885 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9886 ;; which gives "./lib/foo". That difference in turn breaks the
9887 ;; comparison against a glob pattern in this script.
9888 (substitute* "concurrent-ruby.gemspec"
9889 (("git ls-files") "find * -type f | sort"))
9890 #t))
9891 (add-before 'build 'remove-jar-from-gemspec
9892 (lambda _
9893 ;; The gemspec wants to include a JAR file that we do not build
9894 ;; nor need.
9895 (substitute* "concurrent-ruby.gemspec"
9896 (("'lib/concurrent/concurrent_ruby.jar'")
9897 ""))
9898 #t))
9899 (add-before 'build 'remove-rake_compiler_dock-dependency
9900 (lambda _
9901 ;; This library is only used when building for non-MRI targets.
9902 (substitute* "Rakefile"
9903 (("require 'rake_compiler_dock'")
9904 ""))
9905 #t))
9906 (add-before 'check 'remove-timecop-dependency
9907 ;; Remove timecop-dependent tests as having timecop as a depedency
9908 ;; causes circular depedencies.
9909 (lambda _
9910 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
9911 (delete-file "spec/concurrent/scheduled_task_spec.rb")
9912 #t)))))
9913 (native-inputs
9914 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9915 ("ruby-rspec" ,ruby-rspec)))
9916 (synopsis "Concurrency tools for Ruby")
9917 (description
9918 "This library provides modern concurrency tools including agents,
9919 futures, promises, thread pools, actors, supervisors, and more. It is
9920 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
9921 patterns.")
9922 (home-page "http://www.concurrent-ruby.com")
9923 (license license:expat)))
9924
9925 (define-public ruby-pkg-config
9926 (package
9927 (name "ruby-pkg-config")
9928 (version "1.2.5")
9929 (source
9930 (origin
9931 (method url-fetch)
9932 (uri (rubygems-uri "pkg-config" version))
9933 (sha256
9934 (base32
9935 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
9936 (build-system ruby-build-system)
9937 (arguments
9938 ;; Tests require extra files not included in the gem.
9939 `(#:tests? #f))
9940 (synopsis "Detect libraries for compiling Ruby native extensions")
9941 (description
9942 "@code{pkg-config} can be used in your extconf.rb to properly detect need
9943 libraries for compiling Ruby native extensions.")
9944 (home-page "https://github.com/ruby-gnome2/pkg-config")
9945 (license license:lgpl2.0+)))
9946
9947 (define-public ruby-net-http-digest-auth
9948 (package
9949 (name "ruby-net-http-digest-auth")
9950 (version "1.4.1")
9951 (source
9952 (origin
9953 (method url-fetch)
9954 (uri (rubygems-uri "net-http-digest_auth" version))
9955 (sha256
9956 (base32
9957 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
9958 (build-system ruby-build-system)
9959 (native-inputs
9960 `(("ruby-hoe" ,ruby-hoe)))
9961 (synopsis "RFC 2617 HTTP digest authentication library")
9962 (description
9963 "This library implements HTTP's digest authentication scheme based on
9964 RFC 2617. This enables the use of the digest authentication scheme instead
9965 of the more insecure basic authentication scheme.")
9966 (home-page "https://github.com/drbrain/net-http-digest_auth")
9967 (license license:expat)))
9968
9969 (define-public ruby-mail
9970 (package
9971 (name "ruby-mail")
9972 (version "2.6.6")
9973 (source
9974 (origin
9975 (method url-fetch)
9976 (uri (rubygems-uri "mail" version))
9977 (sha256
9978 (base32
9979 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
9980 (build-system ruby-build-system)
9981 (propagated-inputs
9982 `(("ruby-mime-types" ,ruby-mime-types)))
9983 (arguments
9984 ;; Tests require extra gems not included in the Gemfile.
9985 ;; XXX: Try enabling this for the next version with mini_mime.
9986 `(#:tests? #f))
9987 (synopsis "Mail library for Ruby")
9988 (description
9989 "Mail is an internet library for Ruby that is designed to handle email
9990 generation, parsing and sending. The purpose of this library is to provide
9991 a single point of access to handle all email functions, including sending
9992 and receiving emails. All network type actions are done through proxy
9993 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
9994
9995 Mail has been designed with a very simple object oriented system that
9996 really opens up the email messages you are parsing, if you know what you
9997 are doing, you can fiddle with every last bit of your email directly.")
9998 (home-page "https://github.com/mikel/mail")
9999 (license license:expat)))
10000
10001 (define-public ruby-mathn
10002 (package
10003 (name "ruby-mathn")
10004 (version "0.1.0")
10005 (source
10006 (origin
10007 (method url-fetch)
10008 (uri (rubygems-uri "mathn" version))
10009 (sha256
10010 (base32
10011 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
10012 (build-system ruby-build-system)
10013 (native-inputs
10014 `(("bundler" ,bundler)
10015 ("ruby-rake-compiler" ,ruby-rake-compiler)))
10016 (synopsis "Extends math operations for increased precision")
10017 (description
10018 "This gem makes mathematical operations more precise in Ruby and
10019 integrates other mathematical standard libraries. Prior to Ruby 2.5,
10020 @code{mathn} was part of the Ruby standard library.")
10021 (home-page "https://github.com/ruby/mathn")
10022 (license license:bsd-2)))
10023
10024 (define-public ruby-code-statistics
10025 (package
10026 (name "ruby-code-statistics")
10027 (version "0.2.13")
10028 (source
10029 (origin
10030 (method url-fetch)
10031 (uri (rubygems-uri "code_statistics" version))
10032 (sha256
10033 (base32
10034 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
10035 (build-system ruby-build-system)
10036 (arguments
10037 `(#:tests? #f)) ; Not all test code is included in gem.
10038 (synopsis "Port of the rails 'rake stats' method")
10039 (description
10040 "This gem is a port of the rails 'rake stats' method so it can be made
10041 more robust and work for non rails projects.")
10042 (home-page "https://github.com/danmayer/code_statistics")
10043 (license license:expat)))
10044
10045 (define-public ruby-rubypants
10046 (package
10047 (name "ruby-rubypants")
10048 (version "0.6.0")
10049 (source (origin
10050 (method url-fetch)
10051 (uri (rubygems-uri "rubypants" version))
10052 (sha256
10053 (base32
10054 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
10055 (build-system ruby-build-system)
10056 (arguments
10057 '(#:tests? #f)) ; need Codecov
10058 (synopsis "Port of the smart-quotes library SmartyPants")
10059 (description
10060 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
10061 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
10062 and BBEdit that easily translates plain ASCII punctuation characters into
10063 smart typographic punctuation HTML entities.")
10064 (home-page "https://github.com/jmcnevin/rubypants")
10065 (license license:bsd-2)))
10066
10067 (define-public ruby-org-ruby
10068 (package
10069 (name "ruby-org-ruby")
10070 (version "0.9.12")
10071 (source (origin
10072 (method url-fetch)
10073 (uri (rubygems-uri "org-ruby" version))
10074 (sha256
10075 (base32
10076 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
10077 (build-system ruby-build-system)
10078 (arguments
10079 '(#:tests? #f)) ; no rakefile
10080 (propagated-inputs
10081 `(("ruby-rubypants" ,ruby-rubypants)))
10082 (synopsis "Org-mode parser written in Ruby")
10083 (description
10084 "Org-ruby is an org-mode parser written in Ruby. The most significant
10085 thing this library does today is convert org-mode files to HTML or Textile or
10086 Markdown.")
10087 (home-page "https://github.com/wallyqs/org-ruby")
10088 (license license:expat)))
10089
10090 (define-public ruby-rake
10091 (package
10092 (name "ruby-rake")
10093 (version "13.0.1")
10094 (source
10095 (origin
10096 (method url-fetch)
10097 (uri (rubygems-uri "rake" version))
10098 (sha256
10099 (base32
10100 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
10101 (build-system ruby-build-system)
10102 (native-inputs
10103 `(("bundler" ,bundler)))
10104 (synopsis "Rake is a Make-like program implemented in Ruby")
10105 (description
10106 "Rake is a Make-like program where tasks and dependencies are specified
10107 in standard Ruby syntax.")
10108 (home-page "https://github.com/ruby/rake")
10109 (license license:expat)))
10110
10111 (define-public ruby-childprocess
10112 (package
10113 (name "ruby-childprocess")
10114 (version "3.0.0")
10115 (source
10116 (origin
10117 (method url-fetch)
10118 (uri (rubygems-uri "childprocess" version))
10119 (sha256
10120 (base32
10121 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
10122 (build-system ruby-build-system)
10123 (arguments
10124 `(#:tests? #f))
10125 (native-inputs
10126 `(("bundler" ,bundler)
10127 ("ruby-rspec" ,ruby-rspec)))
10128 (propagated-inputs
10129 `(("ruby-ffi" ,ruby-ffi)))
10130 (synopsis "Control external programs running in the background, in Ruby")
10131 (description "@code{childprocess} provides a gem to control external
10132 programs running in the background, in Ruby.")
10133 (home-page "https://github.com/enkessler/childprocess")
10134 (license license:expat)))
10135
10136 (define-public ruby-public-suffix
10137 (package
10138 (name "ruby-public-suffix")
10139 (version "4.0.5")
10140 (source (origin
10141 (method url-fetch)
10142 (uri (rubygems-uri "public_suffix" version))
10143 (sha256
10144 (base32
10145 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
10146 (build-system ruby-build-system)
10147 (arguments
10148 '(#:phases
10149 (modify-phases %standard-phases
10150 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
10151 ;; including it as an input can lead to circular dependencies.
10152 (add-after 'unpack 'remove-rubocop-from-Rakefile
10153 (lambda _
10154 (substitute* "Rakefile"
10155 (("require \"rubocop/rake\\_task\"") "")
10156 (("RuboCop::RakeTask\\.new") ""))
10157 #t)))))
10158 (native-inputs
10159 `(("bundler" ,bundler)
10160 ("ruby-yard" ,ruby-yard)
10161 ("ruby-mocha" ,ruby-mocha)
10162 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
10163 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
10164 (synopsis "Domain name parser")
10165 (description "The gem @code{public_suffix} is a domain name parser,
10166 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
10167 is one under which Internet users can (or historically could) directly
10168 register names. Some examples of public suffixes are @code{.com},
10169 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
10170 all known public suffixes.")
10171 (license license:expat)))
10172
10173 (define-public ruby-addressable
10174 (package
10175 (name "ruby-addressable")
10176 (version "2.7.0")
10177 (source (origin
10178 (method url-fetch)
10179 (uri (rubygems-uri "addressable" version))
10180 (sha256
10181 (base32
10182 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
10183 (build-system ruby-build-system)
10184 (arguments
10185 '(#:test-target "spec"
10186 #:phases
10187 (modify-phases %standard-phases
10188 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
10189 (lambda _
10190 (substitute* "Gemfile"
10191 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
10192 ((".*launchy.*") "")
10193 ((".*rake.*") "gem 'rake'\n")
10194 ((".*redcarpet.*") ""))
10195 #t))
10196 (add-before 'check 'delete-network-dependent-test
10197 (lambda _
10198 (delete-file "spec/addressable/net_http_compat_spec.rb")
10199 #t)))))
10200 (native-inputs
10201 `(("ruby-rspec" ,ruby-rspec)
10202 ("bundler" ,bundler)
10203 ("ruby-idn-ruby" ,ruby-idn-ruby)
10204 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
10205 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
10206 ("ruby-yard" ,ruby-yard)
10207 ("ruby-simplecov" ,ruby-simplecov)))
10208 (propagated-inputs
10209 `(("ruby-public-suffix" ,ruby-public-suffix)))
10210 (home-page "https://github.com/sporkmonger/addressable")
10211 (synopsis "Alternative URI implementation")
10212 (description "Addressable is a replacement for the URI implementation that
10213 is part of Ruby's standard library. It more closely conforms to RFC 3986,
10214 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10215 (license license:asl2.0)))
10216
10217 (define-public ruby-colorize
10218 (package
10219 (name "ruby-colorize")
10220 (version "0.8.1")
10221 (source (origin
10222 (method url-fetch)
10223 (uri (rubygems-uri "colorize" version))
10224 (sha256
10225 (base32
10226 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10227 (build-system ruby-build-system)
10228 (arguments
10229 '(#:phases (modify-phases %standard-phases
10230 (add-before 'check 'remove-codeclimate-dependency
10231 (lambda _
10232 (substitute* "test/test_colorize.rb"
10233 ;; Do not hook the tests into the online CodeClimate
10234 ;; service which is unnecessary for these tests.
10235 (("require 'codeclimate-test-reporter'")
10236 "")
10237 (("CodeClimate.*") ""))
10238 #t)))))
10239 (synopsis "Add color effects to the @code{String} class")
10240 (description
10241 "This package extends the @code{String} class and adds a
10242 @code{ColorizedString} with methods to set text color, background color,
10243 and text effects.")
10244 (home-page "https://github.com/fazibear/colorize")
10245 (license license:gpl2+)))
10246
10247 (define-public ruby-colorator
10248 (package
10249 (name "ruby-colorator")
10250 (version "1.1.0")
10251 (source (origin
10252 (method url-fetch)
10253 (uri (rubygems-uri "colorator" version))
10254 (sha256
10255 (base32
10256 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10257 (build-system ruby-build-system)
10258 (arguments
10259 ;; No test target
10260 `(#:tests? #f))
10261 (home-page "http://octopress.org/colorator/")
10262 (synopsis "Terminal color library")
10263 (description "Colorator is a Ruby gem that helps you colorize your text
10264 for the terminal.")
10265 (license license:expat)))
10266
10267 (define-public ruby-command-line-reporter
10268 (package
10269 (name "ruby-command-line-reporter")
10270 (version "4.0.1")
10271 (source (origin
10272 (method url-fetch)
10273 (uri (rubygems-uri "command_line_reporter" version))
10274 (sha256
10275 (base32
10276 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10277 (build-system ruby-build-system)
10278 (arguments
10279 ;; No Rakefile
10280 `(#:tests? #f
10281 #:phases
10282 (modify-phases %standard-phases
10283 (add-before 'build 'fix-dependencies
10284 (lambda _
10285 (substitute* ".gemspec"
10286 ;; colored is unmaintained
10287 (("colored") "colorator")
10288 ;; colorator version
10289 (("= 1.2") "= 1.1"))
10290 #t)))))
10291 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10292 (home-page "https://github.com/wbailey/command_line_reporter")
10293 (synopsis "Report production while executing Ruby scripts")
10294 (description "This gem provides a DSL that makes it easy to write reports
10295 of various types in ruby. It eliminates the need to litter your source with
10296 puts statements, instead providing a more readable, expressive interface to
10297 your application.")
10298 (license license:asl2.0)))
10299
10300 (define-public ruby-command-line-reporter-3
10301 (package
10302 (inherit ruby-command-line-reporter)
10303 (version "3.3.6")
10304 (source (origin
10305 (method url-fetch)
10306 (uri (rubygems-uri "command_line_reporter" version))
10307 (sha256
10308 (base32
10309 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10310
10311 (define-public ruby-kpeg
10312 (package
10313 (name "ruby-kpeg")
10314 (version "1.1.0")
10315 (source
10316 (origin
10317 (method url-fetch)
10318 (uri (rubygems-uri "kpeg" version))
10319 (sha256
10320 (base32
10321 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10322 (build-system ruby-build-system)
10323 (native-inputs
10324 `(("ruby-hoe" ,ruby-hoe)))
10325 (synopsis "PEG library for Ruby")
10326 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10327 well as native grammar to build the grammar. KPeg supports direct left
10328 recursion of rules via the
10329 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10330 technique.")
10331 (home-page "https://github.com/evanphx/kpeg")
10332 (license license:expat)))
10333
10334 (define-public ruby-rdoc
10335 (package
10336 (name "ruby-rdoc")
10337 (version "6.2.0")
10338 (source
10339 (origin
10340 (method git-fetch)
10341 (uri (git-reference
10342 (url "https://github.com/ruby/rdoc")
10343 (commit (string-append "v" version))))
10344 (file-name (git-file-name name version))
10345 (sha256
10346 (base32
10347 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10348 (build-system ruby-build-system)
10349 (arguments
10350 `(#:phases
10351 (modify-phases %standard-phases
10352 (add-after 'unpack 'patch-gemspec
10353 ;; TODO: Remove after next release is tagged.
10354 (lambda _
10355 (substitute* "rdoc.gemspec"
10356 (("\"lib/rdoc/generator/template/darkfish/js/\
10357 jquery\\.js\", ") ""))
10358 #t))
10359 (add-before 'build 'generate
10360 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10361 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10362 (lambda _
10363 (invoke "rake" "generate"))))))
10364 (native-inputs
10365 `(("bundler" ,bundler)
10366 ("ruby-kpeg" ,ruby-kpeg)
10367 ("ruby-racc" ,ruby-racc)
10368 ("ruby-rubocop" ,ruby-rubocop)))
10369 (home-page "https://ruby.github.io/rdoc/")
10370 (synopsis "HTML and command-line documentation utility")
10371 (description "RDoc produces HTML and command-line documentation for Ruby
10372 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10373 documentation from the command-line.")
10374 (license license:gpl2+)))
10375
10376 (define-public ruby-sass-listen
10377 (package
10378 (name "ruby-sass-listen")
10379 (version "4.0.0")
10380 (source (origin
10381 (method url-fetch)
10382 (uri (rubygems-uri "sass-listen" version))
10383 (sha256
10384 (base32
10385 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10386 (build-system ruby-build-system)
10387 (arguments
10388 ;; No test target
10389 `(#:tests? #f))
10390 (propagated-inputs
10391 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10392 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10393 (home-page "https://github.com/sass/listen")
10394 (synopsis "File modification notification library")
10395 (description "The Listen gem listens to file modifications and notifies you
10396 about the changes.")
10397 (license license:expat)))
10398
10399 (define-public ruby-terminfo
10400 (package
10401 (name "ruby-terminfo")
10402 (version "0.1.1")
10403 (source
10404 (origin
10405 (method url-fetch)
10406 (uri (rubygems-uri "ruby-terminfo" version))
10407 (sha256
10408 (base32
10409 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10410 (build-system ruby-build-system)
10411 (arguments
10412 `(#:test-target "test"
10413 ;; Rakefile requires old packages and would need modification to
10414 ;; work with current software.
10415 #:tests? #f))
10416 (inputs
10417 `(("ncurses" ,ncurses)))
10418 (native-inputs
10419 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10420 ("ruby-rdoc" ,ruby-rdoc)))
10421 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10422 (synopsis "Terminfo binding for Ruby")
10423 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10424 (license license:bsd-3)))
10425
10426 (define-public ruby-diffy
10427 (package
10428 (name "ruby-diffy")
10429 (version "3.2.1")
10430 (source
10431 (origin
10432 (method url-fetch)
10433 (uri (rubygems-uri "diffy" version))
10434 (sha256
10435 (base32
10436 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10437 (build-system ruby-build-system)
10438 (arguments
10439 ;; No tests
10440 `(#:tests? #f))
10441 (native-inputs
10442 `(("ruby-rspec" ,ruby-rspec)))
10443 (home-page "https://github.com/samg/diffy")
10444 (synopsis "Convenient diffing in ruby")
10445 (description "Diffy provides a convenient way to generate a diff from two
10446 strings or files.")
10447 (license license:expat)))
10448
10449 (define-public ruby-sass-spec
10450 (package
10451 (name "ruby-sass-spec")
10452 (version "3.5.4")
10453 (source
10454 (origin
10455 (method git-fetch)
10456 (uri (git-reference
10457 (url "https://github.com/sass/sass-spec")
10458 (commit (string-append "v" version))))
10459 (file-name (git-file-name name version))
10460 (sha256
10461 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10462 (build-system ruby-build-system)
10463 (propagated-inputs
10464 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10465 ("ruby-diffy" ,ruby-diffy)
10466 ("ruby-terminfo" ,ruby-terminfo)))
10467 (arguments
10468 `(;; This package contains tests for a sass implementation, and the to
10469 ;; avoid any circular dependencies, the tests are not run here
10470 #:tests? #f
10471 #:phases
10472 (modify-phases %standard-phases
10473 (add-after 'unpack 'patch-test
10474 (lambda _
10475 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10476 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10477 (("string") "color")))))))
10478 (home-page "https://github.com/sass/sass-spec")
10479 (synopsis "Test suite for Sass")
10480 (description "Sass Spec is a test suite for Sass. Test cases are all in
10481 the @file{spec} directory.")
10482 (license license:expat)))
10483
10484 (define-public ruby-sass
10485 (package
10486 (name "ruby-sass")
10487 (version "3.6.0")
10488 (source (origin
10489 (method url-fetch)
10490 (uri (rubygems-uri "sass" version))
10491 (sha256
10492 (base32
10493 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10494 (build-system ruby-build-system)
10495 (propagated-inputs
10496 `(("ruby-sass-listen" ,ruby-sass-listen)))
10497 (native-inputs
10498 `(("ruby-sass-spec" ,ruby-sass-spec)
10499 ("ruby-mathn" ,ruby-mathn)))
10500 (home-page "https://sass-lang.com/")
10501 (synopsis "CSS extension language")
10502 (description "Sass is a CSS extension language. It extends CSS with
10503 features that don't exist yet like variables, nesting, mixins and inheritance.")
10504 (license license:expat)))
10505
10506 (define-public ruby-sassc
10507 (package
10508 (name "ruby-sassc")
10509 (version "2.4.0")
10510 (source
10511 (origin
10512 (method url-fetch)
10513 (uri (rubygems-uri "sassc" version))
10514 (sha256
10515 (base32
10516 "0gpqv48xhl8mb8qqhcifcp0pixn206a7imc07g48armklfqa4q2c"))))
10517 (build-system ruby-build-system)
10518 (arguments
10519 '(#:modules ((guix build ruby-build-system)
10520 (guix build utils)
10521 (ice-9 textual-ports))
10522 #:phases
10523 (modify-phases %standard-phases
10524 ;; TODO: This would be better as a snippet, but the ruby-build-system
10525 ;; doesn't seem to support that
10526 (add-after 'unpack 'remove-libsass
10527 (lambda _
10528 (delete-file-recursively "ext")
10529 (with-atomic-file-replacement "sassc.gemspec"
10530 (lambda (in out)
10531 (let* ((gemspec (get-string-all in))
10532 (index (string-contains gemspec "libsass_dir")))
10533 (display (string-append
10534 (string-take gemspec index)
10535 "\nend\n")
10536 out))))
10537 #t))
10538 (add-after 'unpack 'dont-check-the-libsass-version
10539 (lambda _
10540 (substitute* "test/native_test.rb"
10541 (("assert_equal.*Native\\.version") ""))
10542 #t))
10543 (add-after 'unpack 'remove-git-from-gemspec
10544 (lambda _
10545 (substitute* "sassc.gemspec"
10546 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10547 #t))
10548 (add-after 'unpack 'remove-extensions-from-gemspec
10549 (lambda _
10550 (substitute* "sassc.gemspec"
10551 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10552 #t))
10553 (add-after 'unpack 'fix-Rakefile
10554 (lambda _
10555 (substitute* "Rakefile"
10556 (("test: 'compile:libsass'") ":test"))
10557 #t))
10558 (add-after 'unpack 'remove-unnecessary-dependencies
10559 (lambda _
10560 (substitute* "test/test_helper.rb"
10561 (("require \"pry\"") ""))
10562 #t))
10563 (add-before 'build 'patch-native.rb
10564 (lambda* (#:key inputs #:allow-other-keys)
10565 (substitute* "lib/sassc/native.rb"
10566 ((".*gem_root = spec.gem_dir") "")
10567 (("ffi_lib .*\n")
10568 (string-append
10569 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10570 #t))
10571 ;; The gemspec still references the libsass files, so just keep the
10572 ;; one in the gem.
10573 (delete 'extract-gemspec))))
10574 (propagated-inputs
10575 `(("ruby-ffi" ,ruby-ffi)
10576 ("ruby-rake" ,ruby-rake)))
10577 (inputs
10578 `(("libsass" ,libsass)))
10579 (native-inputs
10580 `(("bundler" ,bundler)
10581 ("ruby-rake-compiler" ,ruby-rake-compiler)
10582 ("ruby-minitest-around" ,ruby-minitest-around)
10583 ("ruby-test-construct" ,ruby-test-construct)))
10584 (synopsis "Use libsss from Ruby")
10585 (description
10586 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10587 bindings to the libsass library. This enables rendering
10588 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10589 (home-page "https://github.com/sass/sassc-ruby")
10590 (license license:expat)))
10591
10592 (define-public ruby-jekyll-sass-converter
10593 (package
10594 (name "ruby-jekyll-sass-converter")
10595 (version "2.1.0")
10596 (source (origin
10597 (method url-fetch)
10598 (uri (rubygems-uri "jekyll-sass-converter" version))
10599 (sha256
10600 (base32
10601 "04ncr44wrilz26ayqwlg7379yjnkb29mvx4j04i62b7czmdrc9dv"))))
10602 (build-system ruby-build-system)
10603 (propagated-inputs
10604 `(("ruby-sass" ,ruby-sass)))
10605 (arguments
10606 ;; No rakefile
10607 `(#:tests? #f))
10608 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10609 (synopsis "Sass converter for Jekyll")
10610 (description "This gem provide built-in support for the Sass converter
10611 in Jekyll.")
10612 (license license:expat)))
10613
10614 (define-public ruby-jekyll-watch
10615 (package
10616 (name "ruby-jekyll-watch")
10617 (version "2.1.2")
10618 (source (origin
10619 (method url-fetch)
10620 (uri (rubygems-uri "jekyll-watch" version))
10621 (sha256
10622 (base32
10623 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10624 (build-system ruby-build-system)
10625 (propagated-inputs
10626 `(("ruby-listen" ,ruby-listen)))
10627 (arguments
10628 ;; No rakefile
10629 `(#:tests? #f))
10630 (home-page "https://github.com/jekyll/jekyll-watch")
10631 (synopsis "Jekyll auto-rebuild support")
10632 (description "This gems add the @code{--watch} switch to the jekyll CLI
10633 interface. It allows Jekyll to rebuild your site when a file changes.")
10634 (license license:expat)))
10635
10636 (define-public ruby-parallel
10637 (package
10638 (name "ruby-parallel")
10639 (version "1.13.0")
10640 (source
10641 (origin
10642 (method git-fetch)
10643 (uri (git-reference
10644 (url "https://github.com/grosser/parallel")
10645 (commit (string-append "v" version))))
10646 (file-name (git-file-name name version))
10647 (sha256
10648 (base32
10649 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10650 (build-system ruby-build-system)
10651 (arguments
10652 `(;; TODO 3 test failures
10653 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10654 ;; open unnecessary pipes
10655 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10656 ;; SQLite in processes
10657 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10658 ;; SQLite in threads
10659 #:tests? #f
10660 #:test-target "rspec-rerun:spec"
10661 #:phases
10662 (modify-phases %standard-phases
10663 (add-after 'unpack 'patch-Gemfile
10664 (lambda _
10665 (substitute* "Gemfile"
10666 (("gem 'rspec-legacy_formatters'") "")
10667 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10668 (add-before 'check 'delete-Gemfile.lock
10669 (lambda _
10670 ;; Bundler isn't being used for fetching dependendencies, so
10671 ;; delete the Gemfile.lock
10672 (delete-file "Gemfile.lock")
10673 #t))
10674 (add-before 'build 'patch-gemspec
10675 (lambda _
10676 (substitute* "parallel.gemspec"
10677 (("git ls-files") "find"))
10678 #t)))))
10679 (native-inputs
10680 `(("ruby-rspec" ,ruby-rspec)
10681 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10682 ("bundler" ,bundler)
10683 ("ruby-activerecord" ,ruby-activerecord)
10684 ("ruby-progressbar" ,ruby-progressbar)
10685 ("ruby-bump" ,ruby-bump)
10686 ("procps" ,procps)
10687 ("lsof" ,lsof)
10688 ("ruby-mysql2" ,ruby-mysql2)
10689 ("ruby-sqlite3" ,ruby-sqlite3)
10690 ("ruby-i18n" ,ruby-i18n)))
10691 (home-page "https://github.com/grosser/parallel")
10692 (synopsis "Parallel processing in Ruby")
10693 (description "Parallel allows you to run any code in parallel Processes
10694 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10695 suited for map-reduce or e.g. parallel downloads/uploads.")
10696 (license license:expat)))
10697
10698 (define-public ruby-cane
10699 (package
10700 (name "ruby-cane")
10701 (version "3.0.0")
10702 (source (origin
10703 (method url-fetch)
10704 (uri (rubygems-uri "cane" version))
10705 (sha256
10706 (base32
10707 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10708 (build-system ruby-build-system)
10709 (arguments `(#:tests? #f)); No rakefile
10710 (home-page "https://github.com/square/cane")
10711 (propagated-inputs
10712 `(("ruby-parallel" ,ruby-parallel)))
10713 (synopsis "Code quality threshold checking")
10714 (description "Cane fails your build if code quality thresholds are not met.")
10715 (license license:asl2.0)))
10716
10717 (define-public ruby-morecane
10718 (package
10719 (name "ruby-morecane")
10720 (version "0.2.0")
10721 (source (origin
10722 (method url-fetch)
10723 (uri (rubygems-uri "morecane" version))
10724 (sha256
10725 (base32
10726 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10727 (build-system ruby-build-system)
10728 (home-page "https://github.com/yob/morecane")
10729 (arguments `(#:tests? #f)); No rakefile
10730 (propagated-inputs
10731 `(("ruby-parallel" ,ruby-parallel)))
10732 (synopsis "Extra checks for cane")
10733 (description "The cane gem provides a great framework for running quality
10734 checks over your ruby project as part of continuous integration build. It
10735 comes with a few checks out of the box, but also provides an API for loading
10736 custom checks. This gem provides a set of additional checks.")
10737 (license license:expat)))
10738
10739 (define-public ruby-pdf-reader
10740 (package
10741 (name "ruby-pdf-reader")
10742 (version "2.4.0")
10743 (source (origin
10744 (method git-fetch) ;no test in distributed gem archive
10745 (uri (git-reference
10746 (url "https://github.com/yob/pdf-reader")
10747 (commit (string-append "v" version))))
10748 (file-name (git-file-name name version))
10749 (sha256
10750 (base32
10751 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10752 (build-system ruby-build-system)
10753 (arguments `(#:test-target "spec"
10754 #:phases (modify-phases %standard-phases
10755 (add-after 'unpack 'do-not-use-bundler
10756 (lambda _
10757 (substitute* "spec/spec_helper.rb"
10758 ((".*[Bb]undler.*") ""))
10759 #t)))))
10760 (native-inputs
10761 `(("ruby-rspec" ,ruby-rspec)
10762 ("ruby-cane" ,ruby-cane)
10763 ("ruby-morecane" ,ruby-morecane)))
10764 (propagated-inputs
10765 `(("ruby-afm" ,ruby-afm)
10766 ("ruby-ascii85" ,ruby-ascii85)
10767 ("ruby-hashery" ,ruby-hashery)
10768 ("ruby-rc4" ,ruby-rc4)
10769 ("ruby-ttfunk" ,ruby-ttfunk)))
10770 (home-page "https://github.com/yob/pdf-reader")
10771 (synopsis "PDF parser in Ruby")
10772 (description "The PDF::Reader library implements a PDF parser conforming as
10773 much as possible to the PDF specification from Adobe. It provides programmatic
10774 access to the contents of a PDF file with a high degree of flexibility.")
10775 (license license:gpl3+)))
10776
10777 (define-public ruby-pdf-inspector
10778 (let ((revision "1")
10779 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10780 (package
10781 (name "ruby-pdf-inspector")
10782 (version (git-version "1.3.0" revision commit))
10783 (source (origin
10784 (method git-fetch)
10785 (uri (git-reference
10786 (url "https://github.com/prawnpdf/pdf-inspector")
10787 (commit commit)))
10788 (file-name (git-file-name name version))
10789 (sha256
10790 (base32
10791 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10792 (build-system ruby-build-system)
10793 (arguments
10794 `(#:test-target "spec"
10795 #:phases (modify-phases %standard-phases
10796 (add-before 'build 'drop-signing-key-requirement
10797 (lambda _
10798 (substitute* "pdf-inspector.gemspec"
10799 (("spec.signing_key =.*")
10800 "spec.signing_key = nil"))
10801 #t))
10802 (replace 'check
10803 (lambda _
10804 (substitute* "pdf-inspector.gemspec"
10805 ((".*rubocop.*") "")
10806 ((".*yard.*") ""))
10807 (invoke "rspec"))))))
10808 (native-inputs
10809 `(("ruby-rspec" ,ruby-rspec)))
10810 (propagated-inputs
10811 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10812 (home-page "https://github.com/prawnpdf/pdf-inspector")
10813 (synopsis "Analysis classes for inspecting PDF output")
10814 (description "This library provides a number of PDF::Reader based tools for
10815 use in testing PDF output. Presently, the primary purpose of this tool is to
10816 support the tests found in Prawn, a pure Ruby PDF generation library.")
10817 (license %prawn-project-licenses))))
10818
10819 (define-public ruby-pdf-core
10820 (package
10821 (name "ruby-pdf-core")
10822 (version "0.8.1")
10823 (source (origin
10824 (method url-fetch)
10825 (uri (rubygems-uri "pdf-core" version))
10826 (sha256
10827 (base32
10828 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10829 (build-system ruby-build-system)
10830 (arguments
10831 ; No test target
10832 `(#:tests? #f))
10833 (home-page "https://github.com/prawnpdf/pdf-core")
10834 (synopsis "Low level PDF features for Prawn")
10835 (description "This is an experimental gem that extracts low-level PDF
10836 functionality from Prawn.")
10837 (license license:gpl3+)))
10838
10839 (define-public ruby-prawn
10840 ;; There hasn't been a new release since 2017/03/17.
10841 (let ((revision "1")
10842 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10843 (package
10844 (name "ruby-prawn")
10845 (version (git-version "2.2.2" revision commit))
10846 (source (origin
10847 (method git-fetch)
10848 (uri (git-reference
10849 (url "https://github.com/prawnpdf/prawn")
10850 (commit commit)))
10851 (file-name (git-file-name name version))
10852 (sha256
10853 (base32
10854 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10855 (build-system ruby-build-system)
10856 (arguments
10857 `(#:phases
10858 (modify-phases %standard-phases
10859 (add-before 'build 'drop-signing-key-requirement
10860 (lambda _
10861 (substitute* "prawn.gemspec"
10862 (("spec.signing_key =.*")
10863 "spec.signing_key = nil"))
10864 #t))
10865 (replace 'check
10866 (lambda* (#:key tests? #:allow-other-keys)
10867 (when tests?
10868 ;; The Prawn manual test fails (see:
10869 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10870 ;; it.
10871 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10872 #t)))))
10873 (propagated-inputs
10874 `(("ruby-pdf-core" ,ruby-pdf-core)
10875 ("ruby-ttfunk" ,ruby-ttfunk)))
10876 (native-inputs
10877 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10878 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10879 ("ruby-rspec" ,ruby-rspec)
10880 ("ruby-simplecov" ,ruby-simplecov)
10881 ("ruby-yard" ,ruby-yard)))
10882 (home-page "https://prawnpdf.org/api-docs/2.0/")
10883 (synopsis "PDF generation for Ruby")
10884 (description "Prawn is a pure Ruby PDF generation library.")
10885 (license %prawn-project-licenses))))
10886
10887 (define-public ruby-prawn-table
10888 (package
10889 (name "ruby-prawn-table")
10890 (version "0.2.2")
10891 (source (origin
10892 (method url-fetch)
10893 (uri (rubygems-uri "prawn-table" version))
10894 (sha256
10895 (base32
10896 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10897 (build-system ruby-build-system)
10898 (propagated-inputs
10899 `(("ruby-prawn" ,ruby-prawn)
10900 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10901 (native-inputs
10902 `(("bundler" ,bundler)
10903 ("ruby-yard" ,ruby-yard)
10904 ("ruby-mocha" ,ruby-mocha)
10905 ("ruby-coderay" ,ruby-coderay)
10906 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10907 ("ruby-simplecov" ,ruby-simplecov)
10908 ("ruby-rspec-2" ,ruby-rspec-2)))
10909 (arguments
10910 '(;; TODO: 1 test fails
10911 ;; Failure/Error: pdf.page_count.should == 1
10912 ;; expected: 1
10913 ;; got: 2 (using ==)
10914 ;; # ./spec/table_spec.rb:1308
10915 ;;
10916 ;; 225 examples, 1 failure
10917 #:tests? #f
10918 #:phases
10919 (modify-phases %standard-phases
10920 (add-before 'check 'patch-gemspec
10921 (lambda _
10922 (substitute* "prawn-table.gemspec"
10923 ;; Loosen the requirement for pdf-inspector
10924 (("~> 1\\.1\\.0") ">= 0")
10925 ;; Loosen the requirement for pdf-reader
10926 (("~> 1\\.2") ">= 0"))))
10927 (replace 'check
10928 (lambda* (#:key tests? #:allow-other-keys)
10929 (when tests?
10930 (invoke "rspec"))
10931 #t)))))
10932 (home-page "https://github.com/prawnpdf/prawn-table")
10933 (synopsis "Tables support for Prawn")
10934 (description "This gem provides tables support for Prawn.")
10935 (license license:gpl3+)))
10936
10937 (define-public ruby-kramdown
10938 (package
10939 (name "ruby-kramdown")
10940 (version "2.3.0")
10941 (source (origin
10942 (method url-fetch)
10943 (uri (rubygems-uri "kramdown" version))
10944 (sha256
10945 (base32
10946 "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7"))))
10947 (build-system ruby-build-system)
10948 (arguments `(#:tests? #f)); FIXME: some test failures
10949 (native-inputs
10950 `(("ruby-prawn" ,ruby-prawn)
10951 ("ruby-prawn-table" ,ruby-prawn-table)))
10952 (home-page "https://kramdown.gettalong.org/")
10953 (synopsis "Markdown parsing and converting library")
10954 (description "Kramdown is a library for parsing and converting a superset
10955 of Markdown. It is completely written in Ruby, supports standard Markdown
10956 (with some minor modifications) and various extensions that have been made
10957 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
10958 (license license:expat)))
10959
10960 (define-public ruby-kramdown-parser-gfm
10961 (package
10962 (name "ruby-kramdown-parser-gfm")
10963 (version "1.1.0")
10964 (source
10965 (origin
10966 (method url-fetch)
10967 (uri (rubygems-uri "kramdown-parser-gfm" version))
10968 (sha256
10969 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
10970 (build-system ruby-build-system)
10971 (arguments
10972 `(#:tests? #f)) ;no rakefile
10973 (propagated-inputs
10974 `(("ruby-kramdown" ,ruby-kramdown)))
10975 (synopsis "Kramdown parser for the GFM dialect of Markdown")
10976 (description
10977 "This is a parser for kramdown that converts Markdown documents in the
10978 GFM dialect to HTML.")
10979 (home-page "https://github.com/kramdown/parser-gfm")
10980 (license license:expat)))
10981
10982 (define-public ruby-http-parser.rb
10983 (package
10984 (name "ruby-http-parser.rb")
10985 (version "0.6.0")
10986 (source
10987 (origin
10988 (method url-fetch)
10989 (uri (rubygems-uri "http_parser.rb" version))
10990 (sha256
10991 (base32
10992 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
10993 (build-system ruby-build-system)
10994 (arguments
10995 ;; No tests
10996 `(#:tests? #f))
10997 (native-inputs
10998 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10999 ("ruby-rspec" ,ruby-rspec)))
11000 (home-page "https://github.com/tmm1/http_parser.rb")
11001 (synopsis "HTTP parser un Ruby")
11002 (description "This gem is a simple callback-based HTTP request/response
11003 parser for writing http servers, clients and proxies.")
11004 (license license:expat)))
11005
11006 (define-public ruby-em-websocket
11007 (package
11008 (name "ruby-em-websocket")
11009 (version "0.5.1")
11010 (source
11011 (origin
11012 (method url-fetch)
11013 (uri (rubygems-uri "em-websocket" version))
11014 (sha256
11015 (base32
11016 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
11017 (build-system ruby-build-system)
11018 (arguments
11019 ;; No tests
11020 `(#:tests? #f))
11021 (propagated-inputs
11022 `(("ruby-eventmachine" ,ruby-eventmachine)
11023 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
11024 (native-inputs
11025 `(("bundler" ,bundler)
11026 ("ruby-rspec" ,ruby-rspec)))
11027 (home-page "https://github.com/igrigorik/em-websocket")
11028 (synopsis "EventMachine based WebSocket server")
11029 (description "Em-websocket is an EventMachine based WebSocket server
11030 implementation.")
11031 (license license:expat)))
11032
11033 (define-public ruby-rouge
11034 (package
11035 (name "ruby-rouge")
11036 (version "3.21.0")
11037 (source (origin
11038 (method url-fetch)
11039 (uri (rubygems-uri "rouge" version))
11040 (sha256
11041 (base32
11042 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
11043 (build-system ruby-build-system)
11044 (arguments `(#:tests? #f)); No rakefile
11045 (home-page "http://rouge.jneen.net/")
11046 (synopsis "Code highlighter")
11047 (description "Rouge is a code highlighter written in Ruby. It supports more
11048 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
11049 is compatible with stylesheets designed for pygments.")
11050 (license (list
11051 ;; rouge is licensed under expat
11052 license:expat
11053 ;; pygments is licensed under bsd-2
11054 license:bsd-2))))
11055
11056 (define-public ruby-hashie
11057 (package
11058 (name "ruby-hashie")
11059 (version "3.6.0")
11060 (source (origin
11061 (method url-fetch)
11062 (uri (rubygems-uri "hashie" version))
11063 (sha256
11064 (base32
11065 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
11066 (build-system ruby-build-system)
11067 (native-inputs
11068 `(("bundler" ,bundler)))
11069 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
11070 (home-page "https://github.com/intridea/hashie")
11071 (synopsis "Extensions to Ruby Hashes")
11072 (description "Hashie is a collection of classes and mixins that make Ruby
11073 hashes more powerful.")
11074 (license license:expat)))
11075
11076 (define-public ruby-heredoc-unindent
11077 (package
11078 (name "ruby-heredoc-unindent")
11079 (version "1.2.0")
11080 (source (origin
11081 (method url-fetch)
11082 (uri (rubygems-uri "heredoc_unindent" version))
11083 (sha256
11084 (base32
11085 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
11086 (build-system ruby-build-system)
11087 (native-inputs
11088 `(("ruby-hoe" ,ruby-hoe)))
11089 (home-page "https://github.com/adrianomitre/heredoc_unindent")
11090 (synopsis "Heredoc indentation cleaner")
11091 (description "This gem removes common margin from indented strings, such
11092 as the ones produced by indented heredocs. In other words, it strips out
11093 leading whitespace chars at the beginning of each line, but only as much as
11094 the line with the smallest margin.
11095
11096 It is acknowledged that many strings defined by heredocs are just code and
11097 fact is that most parsers are insensitive to indentation. If, however, the
11098 strings are to be used otherwise, be it for printing or testing, the extra
11099 indentation will probably be an issue and hence this gem.")
11100 (license license:expat)))
11101
11102 (define-public ruby-safe-yaml
11103 (package
11104 (name "ruby-safe-yaml")
11105 (version "1.0.5")
11106 (source
11107 (origin
11108 (method git-fetch)
11109 (uri (git-reference
11110 (url "https://github.com/dtao/safe_yaml")
11111 (commit version)))
11112 (file-name (git-file-name name version))
11113 (sha256
11114 (base32
11115 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
11116 (build-system ruby-build-system)
11117 (native-inputs
11118 `(("ruby-rspec" ,ruby-rspec)
11119 ("ruby-hashie" ,ruby-hashie)
11120 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
11121 (arguments
11122 '(#:test-target "spec"
11123 #:phases
11124 (modify-phases %standard-phases
11125 (add-before 'check 'set-TZ
11126 (lambda _
11127 ;; This test is dependent on the timezone
11128 ;; spec/transform/to_date_spec.rb:35
11129 ;; # SafeYAML::Transform::ToDate converts times to the local
11130 ;; timezone
11131 (setenv "TZ" "UTC-11")
11132 #t)))))
11133 (home-page "https://github.com/dtao/safe_yaml")
11134 (synopsis "YAML parser")
11135 (description "The SafeYAML gem provides an alternative implementation of
11136 YAML.load suitable for accepting user input in Ruby applications.")
11137 (license license:expat)))
11138
11139 (define-public ruby-mercenary
11140 (package
11141 (name "ruby-mercenary")
11142 (version "0.4.0")
11143 (source (origin
11144 (method url-fetch)
11145 (uri (rubygems-uri "mercenary" version))
11146 (sha256
11147 (base32
11148 "0f2i827w4lmsizrxixsrv2ssa3gk1b7lmqh8brk8ijmdb551wnmj"))))
11149 (build-system ruby-build-system)
11150 (arguments `(#:test-target "spec"))
11151 (native-inputs
11152 `(("bundler" ,bundler)))
11153 (home-page "https://github.com/jekyll/mercenary")
11154 (synopsis "Command-line apps library in Ruby")
11155 (description "Mercenary is a lightweight and flexible library for writing
11156 command-line apps in Ruby.")
11157 (license license:expat)))
11158
11159 (define-public ruby-liquid
11160 (package
11161 (name "ruby-liquid")
11162 (version "4.0.0")
11163 (source (origin
11164 (method url-fetch)
11165 (uri (rubygems-uri "liquid" version))
11166 (sha256
11167 (base32
11168 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
11169 (build-system ruby-build-system)
11170 (arguments `(#:tests? #f)); No rakefile
11171 (home-page "https://shopify.github.io/liquid/")
11172 (synopsis "Template language")
11173 (description "Liquid is a template language written in Ruby. It is used
11174 to load dynamic content on storefronts.")
11175 (license license:expat)))
11176
11177 (define-public ruby-forwardable-extended
11178 (package
11179 (name "ruby-forwardable-extended")
11180 (version "2.6.0")
11181 (source (origin
11182 (method url-fetch)
11183 (uri (rubygems-uri "forwardable-extended" version))
11184 (sha256
11185 (base32
11186 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
11187 (build-system ruby-build-system)
11188 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
11189 (home-page "https://github.com/envygeeks/forwardable-extended")
11190 (synopsis "Delegation to hashes and instance variables in Forwardable")
11191 (description "Forwardable Extended provides more @code{Forwardable}
11192 methods for your source as @code{Forwardable::Extended}.")
11193 (license license:expat)))
11194
11195 (define-public ruby-pathutil
11196 (package
11197 (name "ruby-pathutil")
11198 (version "0.16.2")
11199 (source (origin
11200 (method url-fetch)
11201 (uri (rubygems-uri "pathutil" version))
11202 (sha256
11203 (base32
11204 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11205 (build-system ruby-build-system)
11206 (propagated-inputs
11207 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11208 (native-inputs
11209 `(("bundler" ,bundler)
11210 ("ruby-rspec" ,ruby-rspec)))
11211 ;; Fails with: cannot load such file --
11212 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11213 (arguments `(#:tests? #f))
11214 (home-page "https://github.com/envygeeks/pathutil")
11215 (synopsis "Extended implementation of Pathname")
11216 (description "Pathutil tries to be a faster pure Ruby implementation of
11217 Pathname.")
11218 (license license:expat)))
11219
11220 (define-public ruby-terminal-table
11221 (package
11222 (name "ruby-terminal-table")
11223 (version "2.0.0")
11224 (source
11225 (origin
11226 (method url-fetch)
11227 (uri (rubygems-uri "terminal-table" version))
11228 (sha256
11229 (base32
11230 "18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh"))))
11231 (arguments
11232 '(#:phases
11233 (modify-phases %standard-phases
11234 (add-before 'check 'remove-gemfile-lock
11235 (lambda _
11236 (delete-file "Gemfile.lock")))
11237 (add-before 'check 'remove-unnecessary-dependencies
11238 (lambda _
11239 (substitute* "terminal-table.gemspec"
11240 (("s.add_runtime_dependency.*") "\n")
11241 (("s.add_development_dependency.*") "\n"))
11242 (substitute* "Gemfile"
11243 ((".*tins.*") "\n"))))
11244 (replace 'check
11245 (lambda* (#:key tests? #:allow-other-keys)
11246 (when tests?
11247 (invoke "rspec")))))))
11248 (build-system ruby-build-system)
11249 (propagated-inputs
11250 `(("ruby-unicode-display-width" ,ruby-unicode-display-width)))
11251 (native-inputs
11252 `(("ruby-rspec" ,ruby-rspec)))
11253 (home-page "https://github.com/tj/terminal-table")
11254 (synopsis "Simple, feature rich ASCII table generation library")
11255 (description
11256 "Terminal Table is a fast and simple, yet feature rich
11257 table generator written in Ruby. It supports ASCII and
11258 Unicode formatted tables.")
11259 (license license:expat)))
11260
11261 (define-public jekyll
11262 (package
11263 (name "jekyll")
11264 (version "4.2.0")
11265 (source (origin
11266 (method url-fetch)
11267 (uri (rubygems-uri "jekyll" version))
11268 (sha256
11269 (base32
11270 "0cqkh78jw8scrajyx5nla0vwm9fvp2qql3kdcvvplcq9mazy8snq"))))
11271 (build-system ruby-build-system)
11272 (arguments
11273 ;; No rakefile, but a test subdirectory.
11274 `(#:tests? #f
11275 #:phases
11276 (modify-phases %standard-phases
11277 (add-before 'build 'fix-i18n
11278 (lambda _
11279 (substitute* ".gemspec"
11280 (("~> 0.7") ">= 0.7")
11281 (("~> 1.14") ">= 1.14"))
11282 #t)))))
11283 (propagated-inputs
11284 `(("ruby-addressable" ,ruby-addressable)
11285 ("ruby-colorator" ,ruby-colorator)
11286 ("ruby-em-websocket" ,ruby-em-websocket)
11287 ("ruby-i18n" ,ruby-i18n)
11288 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11289 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11290 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11291 ("ruby-liquid" ,ruby-liquid)
11292 ("ruby-mercenary" ,ruby-mercenary)
11293 ("ruby-pathutil" ,ruby-pathutil)
11294 ("ruby-rouge" ,ruby-rouge)
11295 ("ruby-safe-yaml" ,ruby-safe-yaml)
11296 ("ruby-sassc" ,ruby-sassc)
11297 ("ruby-terminal-table" ,ruby-terminal-table)))
11298 (home-page "https://jekyllrb.com/")
11299 (synopsis "Static site generator")
11300 (description "Jekyll is a simple, blog aware, static site generator.")
11301 (license license:expat)))
11302
11303 (define-public ruby-jekyll-paginate-v2
11304 (package
11305 (name "ruby-jekyll-paginate-v2")
11306 (version "3.0.0")
11307 (source (origin
11308 (method url-fetch)
11309 (uri (rubygems-uri "jekyll-paginate-v2" version))
11310 (sha256
11311 (base32
11312 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11313 (build-system ruby-build-system)
11314 (propagated-inputs
11315 `(("jekyll" ,jekyll)))
11316 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11317 (synopsis "Pagination Generator for Jekyll 3")
11318 (description "The Pagination Generator forms the core of the pagination
11319 logic in Jekyll. It calculates and generates the pagination pages.")
11320 (license license:expat)))
11321
11322 (define-public ruby-faraday
11323 (package
11324 (name "ruby-faraday")
11325 (version "0.15.4")
11326 (source
11327 (origin
11328 (method url-fetch)
11329 (uri (rubygems-uri "faraday" version))
11330 (sha256
11331 (base32
11332 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11333 (build-system ruby-build-system)
11334 (arguments
11335 '(#:tests? #f))
11336 (propagated-inputs
11337 `(("ruby-multipart-post" ,ruby-multipart-post)))
11338 (synopsis "Ruby HTTP/REST API client library")
11339 (description
11340 "Faraday is a HTTP/REST API client library which provides a common
11341 interface over different adapters.")
11342 (home-page "https://github.com/lostisland/faraday")
11343 (license license:expat)))
11344
11345 (define-public ruby-nio4r
11346 (package
11347 (name "ruby-nio4r")
11348 (version "2.5.2")
11349 (source
11350 (origin
11351 (method url-fetch)
11352 (uri (rubygems-uri "nio4r" version))
11353 (sha256
11354 (base32
11355 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11356 (build-system ruby-build-system)
11357 (arguments
11358 '(#:phases
11359 (modify-phases %standard-phases
11360 (add-after 'unpack 'remove-unnecessary-dependencies
11361 (lambda _
11362 (substitute* "spec/spec_helper.rb"
11363 ;; Coveralls is for uploading test coverage information to an
11364 ;; online service, and thus unnecessary for building the Guix
11365 ;; package
11366 (("require \"coveralls\"") "")
11367 (("Coveralls\\.wear!") "")
11368 ;; Remove rspec/retry as we are not retrying the tests
11369 (("require \"rspec/retry\"") "")
11370 (("config\\.display_try_failure_messages = true") "")
11371 (("config\\.verbose_retry = true") ""))
11372 #t))
11373 (add-before 'check 'compile
11374 (lambda _
11375 (invoke "rake" "compile")
11376 #t))
11377 (replace 'check
11378 (lambda* (#:key tests? #:allow-other-keys)
11379 (when tests?
11380 (invoke "rspec"))
11381 #t)))))
11382 (native-inputs
11383 `(("bundler" ,bundler)
11384 ("ruby-rake-compiler" ,ruby-rake-compiler)
11385 ("ruby-rspec" ,ruby-rspec)
11386 ("ruby-rubocop" ,ruby-rubocop)))
11387 (synopsis "New I/O for Ruby")
11388 (description
11389 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11390 for scalable network clients and servers.")
11391 (home-page "https://github.com/socketry/nio4r")
11392 (license license:expat)))
11393
11394 (define-public ruby-globalid
11395 (package
11396 (name "ruby-globalid")
11397 (version "0.4.2")
11398 (source
11399 (origin
11400 (method url-fetch)
11401 (uri (rubygems-uri "globalid" version))
11402 (sha256
11403 (base32
11404 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11405 (build-system ruby-build-system)
11406 (arguments
11407 '(;; No included tests
11408 #:tests? #f))
11409 (propagated-inputs
11410 `(("ruby-activesupport" ,ruby-activesupport)))
11411 (synopsis "Generate URIs idenfitying model instances in Ruby")
11412 (description
11413 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11414 uniquely identify it.")
11415 (home-page "https://rubyonrails.org/")
11416 (license license:expat)))
11417
11418 (define-public ruby-sprockets
11419 (package
11420 (name "ruby-sprockets")
11421 (version "3.7.2")
11422 (source
11423 (origin
11424 (method url-fetch)
11425 (uri (rubygems-uri "sprockets" version))
11426 (sha256
11427 (base32
11428 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11429 (build-system ruby-build-system)
11430 (arguments
11431 '(;; No included tests
11432 #:tests? #f))
11433 (propagated-inputs
11434 `(("ruby-concurrent" ,ruby-concurrent)
11435 ("ruby-rack" ,ruby-rack)))
11436 (synopsis "Sprockets is a Rack-based asset packaging system")
11437 (description
11438 "Sprockets is a Rack-based asset packaging system that concatenates and
11439 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11440 (home-page "https://github.com/rails/sprockets")
11441 (license license:expat)))
11442
11443 (define-public ruby-mustache
11444 (package
11445 (name "ruby-mustache")
11446 (version "1.1.1")
11447 (source
11448 (origin
11449 (method url-fetch)
11450 (uri (rubygems-uri "mustache" version))
11451 (sha256
11452 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11453 (build-system ruby-build-system)
11454 (native-inputs
11455 `(("ruby-simplecov" ,ruby-simplecov)))
11456 (synopsis "framework-agnostic way to render logic-free views")
11457 (description
11458 "Mustache is a framework-agnostic way to render logic-free views.
11459 Think of Mustache as a replacement for your views. Instead of views
11460 consisting of ERB or HAML with random helpers and arbitrary logic,
11461 your views are broken into two parts: a Ruby class and an HTML
11462 template.")
11463 (home-page "https://github.com/mustache/mustache")
11464 (license license:expat)))
11465
11466 (define-public ruby-mustermann
11467 (package
11468 (name "ruby-mustermann")
11469 (version "1.0.3")
11470 (source
11471 (origin
11472 (method url-fetch)
11473 (uri (rubygems-uri "mustermann" version))
11474 (sha256
11475 (base32
11476 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11477 (build-system ruby-build-system)
11478 (arguments
11479 ;; No tests.
11480 '(#:tests? #f))
11481 (synopsis "Library implementing patterns that behave like regular expressions")
11482 (description "Given a string pattern, Mustermann will turn it into an
11483 object that behaves like a regular expression and has comparable performance
11484 characteristics.")
11485 (home-page "https://github.com/sinatra/mustermann")
11486 (license license:expat)))
11487
11488 (define-public ruby-html-proofer
11489 (package
11490 (name "ruby-html-proofer")
11491 (version "3.18.5")
11492 (source
11493 (origin
11494 (method git-fetch)
11495 (uri (git-reference
11496 (url "https://github.com/gjtorikian/html-proofer")
11497 (commit (string-append "v" version))))
11498 (file-name (git-file-name name version))
11499 (sha256
11500 (base32
11501 "1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb"))))
11502 (build-system ruby-build-system)
11503 (arguments
11504 `(;; FIXME: Tests depend on rubocop-standard.
11505 #:tests? #f))
11506 (native-inputs
11507 `(("ruby-awesome-print" ,ruby-awesome-print)
11508 ("ruby-redcarpet" ,ruby-redcarpet)
11509 ("ruby-rspec" ,ruby-rspec)
11510 ("ruby-rubocop" ,ruby-rubocop)
11511 ("ruby-rubocop-performance" ,ruby-rubocop-performance)
11512 ("ruby-pry-byebug" ,ruby-pry-byebug)))
11513 (propagated-inputs
11514 `(("ruby-addressable" ,ruby-addressable)
11515 ("ruby-mercenary" ,ruby-mercenary)
11516 ("ruby-nokogumbo" ,ruby-nokogumbo)
11517 ("ruby-parallel" ,ruby-parallel)
11518 ("ruby-rainbow" ,ruby-rainbow)
11519 ("ruby-typhoeus" ,ruby-typhoeus)
11520 ("ruby-yell" ,ruby-yell)))
11521 (synopsis "Test your rendered HTML files to make sure they're accurate")
11522 (description
11523 "HTMLProofer is a set of tests to validate your HTML output. These
11524 tests check if your image references are legitimate, if they have alt tags,
11525 if your internal links are working, and so on. It's intended to be an
11526 all-in-one checker for your output.")
11527 (home-page "https://github.com/gjtorikian/html-proofer")
11528 (license license:expat)))
11529
11530 (define-public ruby-htmlentities
11531 (package
11532 (name "ruby-htmlentities")
11533 (version "4.3.4")
11534 (source
11535 (origin
11536 (method url-fetch)
11537 (uri (rubygems-uri "htmlentities" version))
11538 (sha256
11539 (base32
11540 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11541 (build-system ruby-build-system)
11542 (arguments
11543 `(#:phases
11544 (modify-phases %standard-phases
11545 (replace 'check
11546 (lambda _
11547 (map (lambda (file)
11548 (invoke "ruby" "-Itest" file))
11549 (find-files "./test" ".*_test\\.rb")))))))
11550 (synopsis "Encode and decode (X)HTML entities")
11551 (description
11552 "This package provides a module for encoding and decoding (X)HTML
11553 entities.")
11554 (home-page "https://github.com/threedaymonk/htmlentities")
11555 (license license:expat)))
11556
11557 (define-public ruby-sinatra
11558 (package
11559 (name "ruby-sinatra")
11560 (version "2.0.8.1")
11561 (source
11562 (origin
11563 (method url-fetch)
11564 (uri (rubygems-uri "sinatra" version))
11565 (sha256
11566 (base32
11567 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11568 (build-system ruby-build-system)
11569 (arguments
11570 `(#:phases
11571 (modify-phases %standard-phases
11572 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11573 (add-after 'extract-gemspec 'fix-slow-doc-generation
11574 (lambda _
11575 (substitute* "sinatra.gemspec"
11576 (("\"README.rdoc\"\\.freeze," all)
11577 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11578 #t)))))
11579 (propagated-inputs
11580 `(("ruby-mustermann" ,ruby-mustermann)
11581 ("ruby-rack" ,ruby-rack)
11582 ("ruby-rack-protection" ,ruby-rack-protection)
11583 ("ruby-tilt" ,ruby-tilt)))
11584 (synopsis "DSL for quick web applications creation in Ruby")
11585 (description
11586 "Sinatra is a DSL for quickly creating web applications in Ruby with
11587 minimal effort.")
11588 (home-page "http://sinatrarb.com/")
11589 (license license:expat)))
11590
11591 (define-public ruby-thin
11592 (package
11593 (name "ruby-thin")
11594 (version "1.7.2")
11595 (source
11596 (origin
11597 (method url-fetch)
11598 (uri (rubygems-uri "thin" version))
11599 (sha256
11600 (base32
11601 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11602 (build-system ruby-build-system)
11603 (arguments
11604 ;; No tests.
11605 '(#:tests? #f))
11606 (propagated-inputs
11607 `(("ruby-daemons" ,ruby-daemons)
11608 ("ruby-eventmachine" ,ruby-eventmachine)
11609 ("ruby-rack" ,ruby-rack)))
11610 (synopsis "Thin and fast web server for Ruby")
11611 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11612 @itemize
11613 @item the Mongrel parser,
11614 @item Event Machine, a network I/O library with high scalability, performance
11615 and stability,
11616 @item Rack, a minimal interface between webservers and Ruby frameworks.
11617 @end itemize\n")
11618 (home-page "https://github.com/macournoyer/thin")
11619 (license license:ruby)))
11620
11621 (define-public ruby-skinny
11622 (package
11623 (name "ruby-skinny")
11624 (version "0.2.4")
11625 (source
11626 (origin
11627 (method url-fetch)
11628 (uri (rubygems-uri "skinny" version))
11629 (sha256
11630 (base32
11631 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11632 (build-system ruby-build-system)
11633 (arguments
11634 '(#:tests? #f ; No included tests
11635 #:phases
11636 (modify-phases %standard-phases
11637 (add-before 'build 'patch-gemspec
11638 (lambda _
11639 (substitute* ".gemspec"
11640 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11641 "<eventmachine>, [\">= 1.0.0\"")
11642 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11643 #t)))))
11644 (propagated-inputs
11645 `(("ruby-eventmachine" ,ruby-eventmachine)
11646 ("ruby-thin" ,ruby-thin)))
11647 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11648 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11649 the Thin library.")
11650 (home-page "https://github.com/sj26/skinny")
11651 (license license:expat)))
11652
11653 (define-public ruby-sys-filesystem
11654 (package
11655 (name "ruby-sys-filesystem")
11656 (version "1.3.4")
11657 (source (origin
11658 (method url-fetch)
11659 (uri (rubygems-uri "sys-filesystem" version))
11660 (sha256
11661 (base32
11662 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11663 (build-system ruby-build-system)
11664 (arguments
11665 '(#:phases (modify-phases %standard-phases
11666 (add-before 'check 'set-HOME
11667 (lambda _
11668 ;; Some tests attempt to stat $HOME. Let them.
11669 (setenv "HOME" "/tmp")
11670 #t)))))
11671 (propagated-inputs
11672 `(("ruby-ffi" ,ruby-ffi)))
11673 (native-inputs
11674 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11675 (synopsis "Gather file system information")
11676 (description
11677 "The @code{sys-filesystem} library provides a cross-platform interface
11678 for gathering file system information, such as disk space and mount points.")
11679 (home-page "https://github.com/djberg96/sys-filesystem")
11680 (license license:asl2.0)))
11681
11682 (define-public mailcatcher
11683 (package
11684 (name "mailcatcher")
11685 (version "0.7.1")
11686 (source
11687 (origin
11688 (method url-fetch)
11689 (uri (rubygems-uri "mailcatcher" version))
11690 (sha256
11691 (base32
11692 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11693 (build-system ruby-build-system)
11694 (arguments
11695 ;; Tests require web/assets which is not included in the output. We
11696 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11697 ;; of the tests. See ruby-mysql2.
11698 '(#:tests? #f
11699 #:phases
11700 (modify-phases %standard-phases
11701 (add-before 'build 'patch-gemspec
11702 (lambda _
11703 (substitute* ".gemspec"
11704 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11705 "<eventmachine>, [\">= 1.0.9.1")
11706 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11707 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11708 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11709 #t))
11710 (add-before 'build 'loosen-dependency-contraint
11711 (lambda _
11712 (substitute* "lib/mail_catcher.rb"
11713 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11714 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11715 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11716 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11717 #t)))))
11718 (inputs
11719 `(("ruby-eventmachine" ,ruby-eventmachine)
11720 ("ruby-mail" ,ruby-mail)
11721 ("ruby-rack" ,ruby-rack)
11722 ("ruby-sinatra" ,ruby-sinatra)
11723 ("ruby-skinny" ,ruby-skinny)
11724 ("ruby-sqlite3" ,ruby-sqlite3)
11725 ("ruby-thin" ,ruby-thin)))
11726 (synopsis "SMTP server which catches messages to display them a browser")
11727 (description
11728 "MailCatcher runs a super simple SMTP server which catches any message
11729 sent to it to display in a web interface. Run mailcatcher, set your favourite
11730 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11731 then check out http://127.0.0.1:1080 to see the mail.")
11732 (home-page "https://mailcatcher.me")
11733 (license license:expat)))
11734
11735 (define-public ruby-backport
11736 (package
11737 (name "ruby-backport")
11738 (version "1.1.2")
11739 (source
11740 (origin
11741 ;; The gem does not include test code, so fetch from the Git repository.
11742 (method git-fetch)
11743 (uri (git-reference
11744 (url "https://github.com/castwide/backport")
11745 (commit (string-append "v" version))))
11746 (file-name (git-file-name name version))
11747 (sha256
11748 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11749 (build-system ruby-build-system)
11750 (arguments
11751 `(#:test-target "spec"))
11752 (native-inputs
11753 `(("bundler" ,bundler)
11754 ("ruby-rspec" ,ruby-rspec)))
11755 (inputs
11756 `(("ruby-simplecov" ,ruby-simplecov)))
11757 (synopsis "Pure Ruby library for event-driven IO")
11758 (description
11759 "This package provides a pure Ruby library for event-driven IO.")
11760 (home-page "https://github.com/castwide/backport")
11761 (license license:expat)))
11762
11763 (define-public ruby-json-schema
11764 (package
11765 (name "ruby-json-schema")
11766 (version "2.8.1")
11767 (source
11768 (origin
11769 (method url-fetch)
11770 (uri (rubygems-uri "json-schema" version))
11771 (sha256
11772 (base32
11773 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11774 (build-system ruby-build-system)
11775 (arguments
11776 `(#:tests? #f ; no tests
11777 #:phases
11778 (modify-phases %standard-phases
11779 (replace 'build
11780 (lambda _
11781 (invoke "gem" "build" ".gemspec"))))))
11782 (propagated-inputs
11783 `(("ruby-addressable" ,ruby-addressable)))
11784 (synopsis "Ruby JSON Schema Validator")
11785 (description "This library provides Ruby with an interface for validating
11786 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11787 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11788 is also included.")
11789 (home-page "https://github.com/ruby-json-schema/json-schema")
11790 (license license:expat)))
11791
11792 (define-public swagger-diff
11793 (package
11794 (name "swagger-diff")
11795 (version "1.1.2")
11796 (source
11797 (origin
11798 (method url-fetch)
11799 (uri (rubygems-uri "swagger-diff" version))
11800 (sha256
11801 (base32
11802 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11803 (build-system ruby-build-system)
11804 (arguments
11805 `(#:test-target "spec"
11806 #:phases
11807 (modify-phases %standard-phases
11808 ;; Don't run or require rubocop, the code linting tool, as this is a
11809 ;; bit unnecessary.
11810 (add-after 'unpack 'dont-run-rubocop
11811 (lambda _
11812 (substitute* "Rakefile"
11813 ((".*rubocop.*") "")
11814 ((".*RuboCop.*") ""))
11815 #t)))))
11816 (propagated-inputs
11817 `(("ruby-json-schema" ,ruby-json-schema)))
11818 (native-inputs
11819 `(("bundler" ,bundler)
11820 ("ruby-rspec-core" ,ruby-rspec-core)
11821 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11822 (synopsis
11823 "Compare Open API Initiative specification files")
11824 (description
11825 "Swagger::Diff is a utility for comparing two different Open API
11826 Initiative (OAI) specifications (formerly known as Swagger specifications).
11827 It is intended to determine whether a newer API specification is
11828 backwards-compatible with an older API specification.")
11829 (home-page "https://github.com/civisanalytics/swagger-diff")
11830 (license license:bsd-3)))
11831
11832 (define-public ruby-reverse-markdown
11833 (package
11834 (name "ruby-reverse-markdown")
11835 (version "1.1.0")
11836 (source
11837 (origin
11838 (method url-fetch)
11839 (uri (rubygems-uri "reverse_markdown" version))
11840 (sha256
11841 (base32
11842 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11843 (build-system ruby-build-system)
11844 (propagated-inputs
11845 `(("ruby-nokogiri" ,ruby-nokogiri)))
11846 (native-inputs
11847 `(("bundler" ,bundler)
11848 ("ruby-rspec" ,ruby-rspec)
11849 ("ruby-kramdown" ,ruby-kramdown)
11850 ("ruby-simplecov" ,ruby-simplecov)))
11851 (arguments
11852 `(#:phases
11853 (modify-phases %standard-phases
11854 (replace 'check
11855 (lambda* (#:key tests? #:allow-other-keys)
11856 (when tests?
11857 (invoke "rspec"))
11858 #t)))))
11859 (synopsis "Convert HTML into Markdown")
11860 (description
11861 "This Ruby module allows you to map simple HTML back into
11862 Markdown---e.g., if you want to import existing HTML data in your
11863 application.")
11864 (home-page "https://github.com/xijo/reverse_markdown")
11865 (license license:wtfpl2)))
11866
11867 (define-public ruby-solargraph
11868 (package
11869 (name "ruby-solargraph")
11870 (version "0.36.0")
11871 (source
11872 (origin
11873 (method url-fetch)
11874 (uri (rubygems-uri "solargraph" version))
11875 (sha256
11876 (base32
11877 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11878 (build-system ruby-build-system)
11879 (propagated-inputs
11880 `(("ruby-backport" ,ruby-backport)
11881 ("bundler" ,bundler)
11882 ("ruby-htmlentities" ,ruby-htmlentities)
11883 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11884 ("ruby-maruku" ,ruby-maruku)
11885 ("ruby-nokogiri" ,ruby-nokogiri)
11886 ("ruby-parser" ,ruby-parser)
11887 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11888 ("ruby-rubocop" ,ruby-rubocop)
11889 ("ruby-thor" ,ruby-thor)
11890 ("ruby-tilt" ,ruby-tilt)
11891 ("ruby-yard" ,ruby-yard)))
11892 (native-inputs
11893 `(("ruby-rspec" ,ruby-rspec)
11894 ("ruby-pry" ,ruby-pry)
11895 ("ruby-simplecov" ,ruby-simplecov)
11896 ("ruby-webmock" ,ruby-webmock-2)))
11897 ;; FIXME: can't figure out how to run the tests properly:
11898
11899 ;; An error occurred while loading spec_helper.
11900 ;; Failure/Error: return gem_original_require(path)
11901 ;; LoadError:
11902 ;; cannot load such file -- spec_helper
11903 (arguments
11904 '(#:tests? #f
11905 #:phases
11906 (modify-phases %standard-phases
11907 (replace 'check
11908 (lambda* (#:key tests? #:allow-other-keys)
11909 (when tests?
11910 (invoke "rspec"))
11911 #t)))))
11912 (synopsis
11913 "IDE tools for code completion, inline documentation, and static analysis")
11914 (description
11915 "Solargraph provides a comprehensive suite of tools for Ruby
11916 programming: intellisense, diagnostics, inline documentation, and type
11917 checking.")
11918 (home-page "https://solargraph.org/")
11919 (license license:expat)))
11920
11921 (define-public ruby-wayback-machine-downloader
11922 (package
11923 (name "ruby-wayback-machine-downloader")
11924 (version "2.2.1")
11925 (source
11926 (origin
11927 (method url-fetch)
11928 (uri (rubygems-uri
11929 "wayback_machine_downloader"
11930 version))
11931 (sha256
11932 (base32
11933 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
11934 (build-system ruby-build-system)
11935 (arguments
11936 '(#:tests? #f)) ; no tests
11937 (synopsis "Download archived websites from the Wayback Machine")
11938 (description
11939 "Wayback Machine Downloader is a command line tool for downloading
11940 websites from the Internet Archive's Wayback Machine (archive.org).
11941 It allows fine grained control over what to download by specifying
11942 which snapshots to consider and what files to include.")
11943 (home-page
11944 "https://github.com/hartator/wayback-machine-downloader")
11945 (license license:expat)))
11946
11947 (define-public ruby-wwtd
11948 (package
11949 (name "ruby-wwtd")
11950 (version "1.4.1")
11951 (home-page "https://github.com/grosser/wwtd")
11952 (source (origin
11953 (method git-fetch)
11954 (uri (git-reference
11955 (url home-page)
11956 (commit (string-append "v" version))))
11957 (file-name (git-file-name name version))
11958 (sha256
11959 (base32
11960 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
11961 (modules '((guix build utils)))
11962 (snippet
11963 '(begin
11964 ;; Remove bundled library.
11965 (delete-file "spec/rake-12.3.0.gem")
11966 #t))))
11967 (build-system ruby-build-system)
11968 (arguments
11969 '(;; XXX: Tests need multiple versions of ruby, wants to run
11970 ;; `bundle install`, etc.
11971 #:tests? #f
11972 #:phases (modify-phases %standard-phases
11973 (replace 'replace-git-ls-files
11974 (lambda _
11975 (substitute* "wwtd.gemspec"
11976 (("git ls-files lib/ bin/`")
11977 "find lib/ bin/ -type f |sort`"))
11978 #t))
11979 (add-before 'check 'remove-version-constraints
11980 (lambda _
11981 (delete-file "Gemfile.lock")
11982 #t))
11983 (replace 'check
11984 (lambda* (#:key tests? #:allow-other-keys)
11985 (if tests?
11986 (invoke "rspec" "spec/")
11987 (format #t "test suite not run~%"))
11988 #t)))))
11989 (native-inputs
11990 `(("ruby-bump" ,ruby-bump)
11991 ("ruby-rspec" ,ruby-rspec)))
11992 (synopsis "Run @file{.travis.yml} files locally")
11993 (description
11994 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
11995 defined in @file{.travis.yml} on your local machine, using @code{rvm},
11996 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
11997 (license license:expat)))
11998
11999 (define-public ruby-rugged
12000 (package
12001 (name "ruby-rugged")
12002 (version "1.1.0")
12003 (home-page "https://www.rubydoc.info/gems/rugged")
12004 (source
12005 (origin
12006 (method url-fetch)
12007 (uri (rubygems-uri "rugged" version))
12008 (sha256
12009 (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy"))))
12010 (build-system ruby-build-system)
12011 (arguments
12012 `(#:tests? #f
12013 #:gem-flags (list "--" "--use-system-libraries")))
12014 (inputs
12015 `(("libgit2" ,libgit2)))
12016 (native-inputs
12017 `(("ruby-minitest" ,ruby-minitest)
12018 ("ruby-pry" ,ruby-pry)
12019 ("ruby-rake-compiler" ,ruby-rake-compiler)))
12020 (synopsis "Ruby bindings to the libgit2 linkable C Git library")
12021 (description "Rugged is a library for accessing libgit2 in Ruby. It gives
12022 you the speed and portability of libgit2 with the beauty of the Ruby
12023 language.")
12024 (license license:expat)))
12025
12026 (define-public ruby-yell
12027 (package
12028 (name "ruby-yell")
12029 (version "2.2.2")
12030 (source
12031 (origin
12032 (method url-fetch)
12033 (uri (rubygems-uri "yell" version))
12034 (sha256
12035 (base32
12036 "1g16kcdhdfvczn7x81jiq6afg3bdxmb73skqjyjlkp5nqcy6y5hx"))))
12037 (build-system ruby-build-system)
12038 (arguments
12039 `(#:phases
12040 (modify-phases %standard-phases
12041 (replace 'check
12042 (lambda _
12043 (invoke "rake" "examples")))))) ; there is no test target.
12044 (synopsis
12045 "Extensible logging library for Ruby")
12046 (description
12047 "Yell is a comprehensive logging replacement for Ruby. It defines
12048 multiple adapters, various log level combinations and message formatting
12049 options.")
12050 (home-page "https://github.com/rudionrails/yell")
12051 (license license:expat)))