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