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