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