gnu: Remove ".git" from "https://github/…/….git".
[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 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;;
25 ;;; This file is part of GNU Guix.
26 ;;;
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
31 ;;;
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
36 ;;;
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39
40 (define-module (gnu packages ruby)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages base)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages c)
46 #:use-module (gnu packages check)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages crypto)
49 #:use-module (gnu packages databases)
50 #:use-module (gnu packages dbm)
51 #:use-module (gnu packages rails)
52 #:use-module (gnu packages readline)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages haskell-xyz)
55 #:use-module (gnu packages java)
56 #:use-module (gnu packages libffi)
57 #:use-module (gnu packages libidn)
58 #:use-module (gnu packages linux)
59 #:use-module (gnu packages lsof)
60 #:use-module (gnu packages maths)
61 #:use-module (gnu packages ncurses)
62 #:use-module (gnu packages networking)
63 #:use-module (gnu packages node)
64 #:use-module (gnu packages protobuf)
65 #:use-module (gnu packages python)
66 #:use-module (gnu packages python-xyz)
67 #:use-module (gnu packages ragel)
68 #:use-module (gnu packages rsync)
69 #:use-module (gnu packages sqlite)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages version-control)
72 #:use-module (guix packages)
73 #:use-module (guix download)
74 #:use-module (guix git-download)
75 #:use-module (guix utils)
76 #:use-module (guix build-system gnu)
77 #:use-module (gnu packages xml)
78 #:use-module (gnu packages web)
79 #:use-module (guix build-system ruby)
80 #:use-module ((srfi srfi-1) #:select (alist-delete)))
81
82 (define-public ruby
83 (package
84 (name "ruby")
85 (version "2.6.5")
86 (source
87 (origin
88 (method url-fetch)
89 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
90 (version-major+minor version)
91 "/ruby-" version ".tar.xz"))
92 (sha256
93 (base32
94 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
95 (modules '((guix build utils)))
96 (snippet `(begin
97 ;; Remove bundled libffi
98 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
99 #t))))
100 (build-system gnu-build-system)
101 (arguments
102 `(#:test-target "test"
103 #:configure-flags '("--enable-shared") ; dynamic linking
104 #:phases
105 (modify-phases %standard-phases
106 (add-before 'configure 'replace-bin-sh-and-remove-libffi
107 (lambda _
108 (substitute* '("Makefile.in"
109 "ext/pty/pty.c"
110 "io.c"
111 "lib/mkmf.rb"
112 "process.c"
113 "test/rubygems/test_gem_ext_configure_builder.rb"
114 "test/rdoc/test_rdoc_parser.rb"
115 "test/ruby/test_rubyoptions.rb"
116 "test/ruby/test_process.rb"
117 "test/ruby/test_system.rb"
118 "tool/rbinstall.rb")
119 (("/bin/sh") (which "sh")))
120 #t)))))
121 (inputs
122 `(("readline" ,readline)
123 ("openssl" ,openssl)
124 ("libffi" ,libffi)
125 ("gdbm" ,gdbm)))
126 (propagated-inputs
127 `(("zlib" ,zlib)))
128 (native-search-paths
129 (list (search-path-specification
130 (variable "GEM_PATH")
131 (files (list (string-append "lib/ruby/vendor_ruby"))))))
132 (synopsis "Programming language interpreter")
133 (description "Ruby is a dynamic object-oriented programming language with
134 a focus on simplicity and productivity.")
135 (home-page "https://www.ruby-lang.org")
136 (license license:ruby)))
137
138 (define-public ruby-2.7
139 (package
140 (inherit ruby)
141 (version "2.7.1")
142 (source
143 (origin
144 (method url-fetch)
145 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
146 (version-major+minor version)
147 "/ruby-" version ".tar.gz"))
148 (sha256
149 (base32
150 "0674x98f542y02r7n2yv2qhmh97blqhi2mvh2dn5f000vlxlh66l"))
151 (modules '((guix build utils)))
152 (snippet `(begin
153 ;; Remove bundled libffi
154 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
155 #t))))
156 (arguments
157 `(#:test-target "test"
158 #:configure-flags '("--enable-shared") ; dynamic linking
159 #:phases
160 (modify-phases %standard-phases
161 (add-before 'configure 'replace-bin-sh-and-remove-libffi
162 (lambda _
163 (substitute* '("configure.ac"
164 "template/Makefile.in"
165 "lib/rubygems/installer.rb"
166 "ext/pty/pty.c"
167 "io.c"
168 "lib/mkmf.rb"
169 "process.c"
170 "test/rubygems/test_gem_ext_configure_builder.rb"
171 "test/rdoc/test_rdoc_parser.rb"
172 "test/ruby/test_rubyoptions.rb"
173 "test/ruby/test_process.rb"
174 "test/ruby/test_system.rb"
175 "tool/rbinstall.rb")
176 (("/bin/sh") (which "sh")))
177 #t)))))
178 (native-inputs
179 `(("autoconf" ,autoconf)))))
180
181 (define-public ruby-2.5
182 (package
183 (inherit ruby)
184 (version "2.5.8")
185 (source
186 (origin
187 (method url-fetch)
188 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
189 (version-major+minor version)
190 "/ruby-" version ".tar.xz"))
191 (sha256
192 (base32
193 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
194 (modules '((guix build utils)))
195 (snippet `(begin
196 ;; Remove bundled libffi
197 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
198 #t))))))
199
200 (define-public ruby-2.4
201 (package
202 (inherit ruby)
203 (version "2.4.10")
204 (source
205 (origin
206 (method url-fetch)
207 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
208 (version-major+minor version)
209 "/ruby-" version ".tar.xz"))
210 (sha256
211 (base32
212 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
213 (modules '((guix build utils)))
214 (snippet `(begin
215 ;; Remove bundled libffi
216 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
217 #t))))))
218
219 (define-public mruby
220 (package
221 (name "mruby")
222 (version "2.0.0")
223 (source
224 (origin
225 (method git-fetch)
226 (uri (git-reference
227 (url "https://github.com/mruby/mruby")
228 (commit version)))
229 (file-name (git-file-name name version))
230 (sha256
231 (base32
232 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
233 (build-system gnu-build-system)
234 (arguments
235 `(#:test-target "test"
236 #:phases
237 (modify-phases %standard-phases
238 (delete 'configure)
239 (add-after 'unpack 'enable-verbose-tests
240 (lambda _
241 (substitute* "Makefile"
242 (("ruby ./minirake" m)
243 (string-append m " --verbose")))
244 #t))
245 (add-after 'unpack 'disable-broken-tests
246 (lambda _
247 (substitute* "mrbgems/mruby-io/test/io.rb"
248 (("assert\\('IO.popen.+$" m)
249 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
250 (("assert\\('IO#isatty.+$" m)
251 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
252 ;; This one is really weird. The *expected* output is all wrong.
253 (("assert\\('`cmd`.*" m)
254 (string-append m "skip \"Disable for Guix\"\n"))
255 (("echo foo")
256 (string-append (which "echo") " foo")))
257 #t))
258 ;; There is no install target
259 (replace 'install
260 (lambda* (#:key outputs #:allow-other-keys)
261 (let* ((out (assoc-ref outputs "out"))
262 (bin (string-append out "/bin"))
263 (lib (string-append out "/lib")))
264 (mkdir-p bin)
265 (copy-recursively "build/host/bin" bin)
266 (mkdir-p lib)
267 (copy-recursively "build/host/lib" lib))
268 #t)))))
269 (native-inputs
270 `(("ruby" ,ruby)
271 ("bison" ,bison)))
272 (home-page "https://github.com/mruby/mruby")
273 (synopsis "Lightweight Ruby")
274 (description "mruby is the lightweight implementation of the Ruby
275 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
276 embedded within your application.")
277 (license license:expat)))
278
279 (define-public ruby-commander
280 (package
281 (name "ruby-commander")
282 (version "4.4.7")
283 (source
284 (origin
285 (method url-fetch)
286 (uri (rubygems-uri "commander" version))
287 (sha256
288 (base32
289 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
290 (build-system ruby-build-system)
291 (arguments
292 `(#:test-target "spec"
293 #:phases
294 (modify-phases %standard-phases
295 ;; Don't run or require rubocop, the code linting tool, as this is a
296 ;; bit unnecessary.
297 (add-after 'unpack 'dont-run-rubocop
298 (lambda _
299 (substitute* "Rakefile"
300 ((".*rubocop.*") "")
301 ((".*RuboCop.*") ""))
302 #t)))))
303 (propagated-inputs
304 `(("ruby-highline" ,ruby-highline)))
305 (native-inputs
306 `(("bundler" ,bundler)
307 ("ruby-rspec-core" ,ruby-rspec-core)
308 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
309 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
310 ("ruby-simplecov" ,ruby-simplecov)))
311 (home-page "https://github.com/commander-rb/commander")
312 (synopsis "Library for building Ruby command-line executables")
313 (description
314 "Commander aims to be a complete solution for Ruby command-line
315 executables. Commander bridges the gap between other terminal related
316 libraries (OptionParser, HighLine), while providing many new features, and an
317 elegant API.")
318 (license license:expat)))
319
320 (define-public ruby-highline
321 (package
322 (name "ruby-highline")
323 (version "2.0.1")
324 (source
325 (origin
326 (method url-fetch)
327 (uri (rubygems-uri "highline" version))
328 (sha256
329 (base32
330 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
331 (build-system ruby-build-system)
332 (arguments
333 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
334 (native-inputs
335 `(("bundler" ,bundler)
336 ("ruby-code-statistics" ,ruby-code-statistics)))
337 (synopsis
338 "HighLine helps you build command-line interfaces")
339 (description
340 "HighLine provides a high-level IO library that provides validation,
341 type conversion, and more for command-line interfaces. HighLine also includes
342 a menu system for providing multiple options to the user.")
343 (home-page "https://github.com/JEG2/highline")
344 (license (list license:gpl2 license:ruby))))
345
346 (define-public ruby-hoe
347 (package
348 (name "ruby-hoe")
349 (version "3.21.0")
350 (source (origin
351 (method url-fetch)
352 (uri (rubygems-uri "hoe" version))
353 (sha256
354 (base32
355 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
356 (build-system ruby-build-system)
357 (arguments
358 '(#:phases
359 (modify-phases %standard-phases
360 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
361 ;; variable is set, so unset it for the duration of the tests.
362 ;;
363 ;; TestHoe#test_possibly_better
364 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
365 ;; Expected: 2019-11-12 00:00:00 UTC
366 ;; Actual: 1970-01-01 00:00:00 UTC
367 (add-before 'check 'unset-SOURCE-DATE-EPOCH
368 (lambda _
369 (unsetenv "SOURCE_DATE_EPOCH")
370 #t))
371 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
372 (lambda _
373 (setenv "SOURCE_DATE_EPOCH" "1")
374 #t)))))
375 (synopsis "Ruby project management helper")
376 (description
377 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
378 maintain, and release projects and includes a dynamic plug-in system allowing
379 for easy extensibility. Hoe ships with plug-ins for all the usual project
380 tasks including rdoc generation, testing, packaging, deployment, and
381 announcement.")
382 (home-page "https://www.zenspider.com/projects/hoe.html")
383 (license license:expat)))
384
385 (define-public ruby-rake-compiler
386 (package
387 (name "ruby-rake-compiler")
388 (version "1.1.0")
389 (source (origin
390 (method url-fetch)
391 (uri (rubygems-uri "rake-compiler" version))
392 (sha256
393 (base32
394 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
395 (build-system ruby-build-system)
396 (arguments
397 '(#:tests? #f)) ; needs cucumber
398 (synopsis "Building and packaging helper for Ruby native extensions")
399 (description "Rake-compiler provides a framework for building and
400 packaging native C and Java extensions in Ruby.")
401 (home-page "https://github.com/rake-compiler/rake-compiler")
402 (license license:expat)))
403
404 (define-public ruby-rsync
405 (package
406 (name "ruby-rsync")
407 (version "1.0.9")
408 (source
409 (origin
410 (method url-fetch)
411 (uri (rubygems-uri "rsync" version))
412 (sha256
413 (base32
414 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
415 (build-system ruby-build-system)
416 (arguments
417 '(#:test-target "spec"
418 #:phases
419 (modify-phases %standard-phases
420 (add-after 'unpack 'remove-coveralls-requirement
421 (lambda _
422 (substitute* "spec/spec_helper.rb"
423 (("require 'coveralls'") "")
424 (("Coveralls.wear!") ""))
425 #t)))))
426 (native-inputs
427 `(("bundler" ,bundler)
428 ("rsync" ,rsync)
429 ("ruby-rspec-core" ,ruby-rspec-core)
430 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
431 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
432 (home-page "https://github.com/jbussdieker/ruby-rsync")
433 (synopsis "Ruby wrapper around rsync")
434 (description
435 "Ruby Rsync is a Ruby library that can synchronize files between remote
436 hosts by wrapping the @file{rsync} binary.")
437 (license license:expat)))
438
439 (define-public ruby-i18n
440 (package
441 (name "ruby-i18n")
442 (version "1.7.0")
443 (source (origin
444 (method url-fetch)
445 (uri (rubygems-uri "i18n" version))
446 (sha256
447 (base32
448 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
449 (build-system ruby-build-system)
450 (arguments
451 '(#:tests? #f)) ; no tests
452 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
453 (synopsis "Internationalization library for Ruby")
454 (description "Ruby i18n is an internationalization and localization
455 solution for Ruby programs. It features translation and localization,
456 interpolation of values to translations, pluralization, customizable
457 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
458 translation data, custom key/scope separator, custom exception handlers, and
459 an extensible architecture with a swappable backend.")
460 (home-page "https://github.com/ruby-i18n/i18n")
461 (license license:expat)))
462
463 (define-public ruby-iruby
464 (package
465 (name "ruby-iruby")
466 (version "0.3")
467 (source
468 (origin
469 (method url-fetch)
470 (uri (rubygems-uri "iruby" version))
471 (sha256
472 (base32
473 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
474 (build-system ruby-build-system)
475 (arguments
476 ;; TODO: Tests currently fail.
477 ;;
478 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
479 ;;
480 ;; 1) Failure:
481 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
482 ;; In [ expected
483 ;;
484 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
485 '(#:tests? #f
486 #:phases
487 (modify-phases %standard-phases
488 (add-after 'unpack 'patch-ipython
489 (lambda* (#:key inputs #:allow-other-keys)
490 (substitute* "lib/iruby/command.rb"
491 (("version = `")
492 (string-append
493 "version = `"
494 (assoc-ref inputs "python-ipython")
495 "/bin/"))
496 (("Kernel\\.exec\\('")
497 (string-append
498 "Kernel.exec('"
499 (assoc-ref inputs "python-ipython")
500 "/bin/")))
501 #t)))))
502 (inputs
503 `(("python-ipython" ,python-ipython)))
504 (propagated-inputs
505 `(("ruby-bond" ,ruby-bond)
506 ("ruby-data_uri" ,ruby-data_uri)
507 ("ruby-mimemagic" ,ruby-mimemagic)
508 ("ruby-multi-json" ,ruby-multi-json)
509 ("ruby-cztop" ,ruby-cztop)
510 ;; Optional inputs
511 ("ruby-pry" ,ruby-pry)))
512 (synopsis "Ruby kernel for Jupyter/IPython")
513 (description
514 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
515 notebook).")
516 (home-page "https://github.com/SciRuby/iruby")
517 (license license:expat)))
518
519 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
520 ;; dependencies use RSpec for their test suites! To avoid these circular
521 ;; dependencies, we disable tests for all of the RSpec-related packages.
522 (define-public ruby-rspec-support
523 (package
524 (name "ruby-rspec-support")
525 (version "3.8.0")
526 (source (origin
527 (method url-fetch)
528 (uri (rubygems-uri "rspec-support" version))
529 (sha256
530 (base32
531 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
532 (build-system ruby-build-system)
533 (arguments
534 '(#:tests? #f)) ; avoid dependency cycles
535 (synopsis "RSpec support library")
536 (description "Support utilities for RSpec gems.")
537 (home-page "https://github.com/rspec/rspec-support")
538 (license license:expat)))
539
540 (define-public ruby-rspec-core
541 (package
542 (name "ruby-rspec-core")
543 (version "3.8.0")
544 (source (origin
545 (method url-fetch)
546 (uri (rubygems-uri "rspec-core" version))
547 (sha256
548 (base32
549 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
550 (build-system ruby-build-system)
551 (arguments
552 '(#:tests? #f)) ; avoid dependency cycles
553 (propagated-inputs
554 `(("ruby-rspec-support" ,ruby-rspec-support)))
555 (synopsis "RSpec core library")
556 (description "Rspec-core provides the RSpec test runner and example
557 groups.")
558 (home-page "https://github.com/rspec/rspec-core")
559 (license license:expat)))
560
561 (define-public ruby-rspec-core-2
562 (package (inherit ruby-rspec-core)
563 (version "2.14.8")
564 (source (origin
565 (method url-fetch)
566 (uri (rubygems-uri "rspec-core" version))
567 (sha256
568 (base32
569 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
570 (propagated-inputs `())))
571
572 (define-public ruby-diff-lcs
573 (package
574 (name "ruby-diff-lcs")
575 (version "1.3")
576 (source (origin
577 (method url-fetch)
578 (uri (rubygems-uri "diff-lcs" version))
579 (sha256
580 (base32
581 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
582 (build-system ruby-build-system)
583 (arguments
584 '(#:tests? #f)) ; avoid dependency cycles
585 (synopsis "Compute the difference between two Enumerable sequences")
586 (description "Diff::LCS computes the difference between two Enumerable
587 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
588 It includes utilities to create a simple HTML diff output format and a
589 standard diff-like tool.")
590 (home-page "https://github.com/halostatue/diff-lcs")
591 (license license:expat)))
592
593 (define-public ruby-rspec-expectations
594 (package
595 (name "ruby-rspec-expectations")
596 (version "3.8.2")
597 (source (origin
598 (method url-fetch)
599 (uri (rubygems-uri "rspec-expectations" version))
600 (sha256
601 (base32
602 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
603 (build-system ruby-build-system)
604 (arguments
605 '(#:tests? #f)) ; avoid dependency cycles
606 (propagated-inputs
607 `(("ruby-rspec-support" ,ruby-rspec-support)
608 ("ruby-diff-lcs" ,ruby-diff-lcs)))
609 (synopsis "RSpec expectations library")
610 (description "Rspec-expectations provides a simple API to express expected
611 outcomes of a code example.")
612 (home-page "https://github.com/rspec/rspec-expectations")
613 (license license:expat)))
614
615 (define-public ruby-rspec-expectations-2
616 (package (inherit ruby-rspec-expectations)
617 (version "2.14.5")
618 (source (origin
619 (method url-fetch)
620 (uri (rubygems-uri "rspec-expectations" version))
621 (sha256
622 (base32
623 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
624 (propagated-inputs
625 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
626
627 (define-public ruby-rspec-its
628 (package
629 (name "ruby-rspec-its")
630 (version "1.3.0")
631 (source
632 (origin
633 (method git-fetch)
634 (uri (git-reference
635 (url "https://github.com/rspec/rspec-its")
636 (commit (string-append "v" version))))
637 (file-name (git-file-name name version))
638 (sha256
639 (base32
640 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
641 (build-system ruby-build-system)
642 (arguments
643 `(#:test-target "spec"
644 #:phases
645 (modify-phases %standard-phases
646 (add-after 'unpack 'dont-install-gems-from-gemfile
647 (lambda _
648 (substitute* "Gemfile"
649 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
650 ""))
651 #t))
652 (add-before 'build 'loosen-ffi-requirement
653 (lambda _
654 ;; Accept any version of ruby-ffi.
655 (substitute* "Gemfile"
656 ((" gem 'ffi', '~> 1\\.9\\.25'")
657 " gem 'ffi'"))
658 #t))
659 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
660 (lambda _
661 (substitute* "rspec-its.gemspec"
662 (("rake.*") "rake'\n")
663 (("spec.add_development_dependency 'cucumber'.*")
664 "spec.add_development_dependency 'cucumber'\n")
665 (("bundler.*") "bundler'\n")
666 (("\"aruba.*") "'aruba'\n"))
667 #t)))))
668 (propagated-inputs
669 `(("ruby-rspec-core" ,ruby-rspec-core)
670 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
671 (native-inputs
672 `(("bundler" ,bundler)
673 ("ruby-cucumber" ,ruby-cucumber)
674 ("ruby-ffi" ,ruby-ffi)
675 ("ruby-aruba" ,ruby-aruba)))
676 (synopsis "RSpec extension that provides the @code{its} method")
677 (description
678 "RSpec::Its provides the its method as a short-hand to specify the expected
679 value of an attribute. For example, one can use @code{its(:size)\\{should
680 eq(1)\\}}.")
681 (home-page "https://github.com/rspec/rspec-its")
682 (license license:expat)))
683
684 ;;; This variant is used to break a cycle with ruby-protobuf.
685 (define-public ruby-rspec-its-minimal
686 (hidden-package
687 (package
688 (inherit ruby-rspec-its)
689 (arguments
690 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
691 ((#:tests? _ #f) #f)))
692 (native-inputs '()))))
693
694 (define-public ruby-rspec-mocks
695 (package
696 (name "ruby-rspec-mocks")
697 (version "3.8.0")
698 (source (origin
699 (method url-fetch)
700 (uri (rubygems-uri "rspec-mocks" version))
701 (sha256
702 (base32
703 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
704 (build-system ruby-build-system)
705 (arguments
706 '(#:tests? #f)) ; avoid dependency cycles
707 (propagated-inputs
708 `(("ruby-rspec-support" ,ruby-rspec-support)
709 ("ruby-diff-lcs" ,ruby-diff-lcs)))
710 (synopsis "RSpec stubbing and mocking library")
711 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
712 support for stubbing and mocking.")
713 (home-page "https://github.com/rspec/rspec-mocks")
714 (license license:expat)))
715
716 (define-public ruby-rspec-mocks-2
717 (package (inherit ruby-rspec-mocks)
718 (version "2.14.6")
719 (source (origin
720 (method url-fetch)
721 (uri (rubygems-uri "rspec-mocks" version))
722 (sha256
723 (base32
724 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
725 (propagated-inputs
726 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
727
728 (define-public ruby-rspec-rerun
729 (package
730 (name "ruby-rspec-rerun")
731 (version "1.1.0")
732 (source
733 (origin
734 (method url-fetch)
735 (uri (rubygems-uri "rspec-rerun" version))
736 (sha256
737 (base32
738 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
739 (build-system ruby-build-system)
740 (arguments
741 '(;; No included tests
742 #:tests? #f))
743 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
744 (synopsis "Track failed RSpec tests to re-run them")
745 (description
746 "This package provides an automated way to track, and then re-run failed
747 RSpec tests.")
748 (home-page "https://github.com/dblock/rspec-rerun")
749 (license license:expat)))
750
751 (define-public ruby-rspec-wait
752 (package
753 (name "ruby-rspec-wait")
754 (version "0.0.9")
755 (source
756 (origin
757 (method url-fetch)
758 (uri (rubygems-uri "rspec-wait" version))
759 (sha256
760 (base32
761 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
762 (build-system ruby-build-system)
763 (arguments
764 '(#:phases
765 (modify-phases %standard-phases
766 (replace 'check
767 (lambda _
768 (invoke "rake" "spec"))))))
769 (native-inputs
770 `(("bundler" ,bundler)))
771 (propagated-inputs
772 `(("ruby-rspec" ,ruby-rspec)))
773 (home-page "https://github.com/laserlemon/rspec-wait")
774 (synopsis "Wait for conditions in RSpec")
775 (description
776 "RSpec::Wait strives to make it easier to test asynchronous or slow
777 interactions.")
778 (license license:expat)))
779
780 (define-public ruby-rspec
781 (package
782 (name "ruby-rspec")
783 (version "3.8.0")
784 (source (origin
785 (method url-fetch)
786 (uri (rubygems-uri "rspec" version))
787 (sha256
788 (base32
789 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
790 (build-system ruby-build-system)
791 (arguments
792 '(#:tests? #f)) ; avoid dependency cycles
793 (propagated-inputs
794 `(("ruby-rspec-core" ,ruby-rspec-core)
795 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
796 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
797 (synopsis "Behavior-driven development framework for Ruby")
798 (description "RSpec is a behavior-driven development (BDD) framework for
799 Ruby. This meta-package includes the RSpec test runner, along with the
800 expectations and mocks frameworks.")
801 (home-page "https://rspec.info/")
802 (license license:expat)))
803
804 (define-public ruby-rspec-2
805 (package (inherit ruby-rspec)
806 (version "2.14.1")
807 (source (origin
808 (method url-fetch)
809 (uri (rubygems-uri "rspec" version))
810 (sha256
811 (base32
812 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
813 (propagated-inputs
814 `(("ruby-rspec-core" ,ruby-rspec-core-2)
815 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
816 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
817
818 ;; Bundler is yet another source of circular dependencies, so we must disable
819 ;; its test suite as well.
820 (define-public bundler
821 (package
822 (name "bundler")
823 (version "2.1.4")
824 (source (origin
825 (method url-fetch)
826 (uri (rubygems-uri "bundler" version))
827 (sha256
828 (base32
829 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
830 (build-system ruby-build-system)
831 (arguments
832 '(#:tests? #f)) ; avoid dependency cycles
833 (synopsis "Ruby gem bundler")
834 (description "Bundler automatically downloads and installs a list of gems
835 specified in a \"Gemfile\", as well as their dependencies.")
836 (home-page "https://bundler.io/")
837 (license license:expat)))
838
839 (define-public ruby-builder
840 (package
841 (name "ruby-builder")
842 (version "3.2.3")
843 (source (origin
844 (method url-fetch)
845 (uri (rubygems-uri "builder" version))
846 (sha256
847 (base32
848 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
849 (build-system ruby-build-system)
850 (arguments
851 `(#:phases
852 (modify-phases %standard-phases
853 (add-after 'unpack 'do-not-use-rvm
854 (lambda _
855 (substitute* "rakelib/tags.rake"
856 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
857 #t)))))
858 (synopsis "Ruby library to create structured data")
859 (description "Builder provides a number of builder objects that make it
860 easy to create structured data. Currently the following builder objects are
861 supported: XML Markup and XML Events.")
862 (home-page "https://github.com/jimweirich/builder")
863 (license license:expat)))
864
865 (define-public ruby-bump
866 (package
867 (name "ruby-bump")
868 (version "0.7.0")
869 (source
870 (origin
871 (method url-fetch)
872 (uri (rubygems-uri "bump" version))
873 (sha256
874 (base32
875 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
876 (build-system ruby-build-system)
877 (arguments
878 '(;; No included tests
879 #:tests? #f))
880 (synopsis "Tool for working with Rubygems")
881 (description
882 "Bump provides commands to manage Rubygem versioning, updating to the
883 next patch version for example.")
884 (home-page "https://github.com/gregorym/bump")
885 (license license:expat)))
886
887 (define-public ruby-rjb
888 (package
889 (name "ruby-rjb")
890 (version "1.5.5")
891 (source (origin
892 (method url-fetch)
893 (uri (rubygems-uri "rjb" version))
894 (sha256
895 (base32
896 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
897 (build-system ruby-build-system)
898 (arguments
899 `(#:tests? #f ; no rakefile
900 #:phases
901 (modify-phases %standard-phases
902 (add-before 'build 'set-java-home
903 (lambda* (#:key inputs #:allow-other-keys)
904 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
905 #t)))))
906 (native-inputs
907 `(("jdk" ,icedtea "jdk")))
908 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
909 (description "RJB is a bridge program that connects Ruby and Java via the
910 Java Native Interface.")
911 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
912 (license license:lgpl2.1+)))
913
914 (define-public ruby-log4r
915 (package
916 (name "ruby-log4r")
917 (version "1.1.10")
918 (source
919 (origin
920 (method url-fetch)
921 (uri (rubygems-uri "log4r" version))
922 (sha256
923 (base32
924 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
925 (build-system ruby-build-system)
926 (arguments
927 '(#:tests? #f)) ; no Rakefile in gem
928 (synopsis "Flexible logging library for Ruby")
929 (description "Comprehensive and flexible logging library written
930 in Ruby for use in Ruby programs. It features a hierarchical logging
931 system of any number of levels, custom level names, logger
932 inheritance, multiple output destinations per log event, execution
933 tracing, custom formatting, thread safteyness, XML and YAML
934 configuration, and more.")
935 (home-page "http://log4r.rubyforge.org/")
936 (license license:bsd-3)))
937
938 (define-public ruby-atoulme-antwrap
939 (package
940 (name "ruby-atoulme-antwrap")
941 (version "0.7.5")
942 (source (origin
943 (method url-fetch)
944 (uri (rubygems-uri "atoulme-Antwrap" version))
945 (sha256
946 (base32
947 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
948 (build-system ruby-build-system)
949 ;; Test data required for most of the tests are not included.
950 (arguments `(#:tests? #f))
951 (native-inputs
952 `(("ruby-hoe" ,ruby-hoe)))
953 (inputs
954 `(("ruby-rjb" ,ruby-rjb)))
955 (synopsis "Ruby wrapper for the Ant build tool")
956 (description "Antwrap is a Ruby module that wraps the Apache Ant build
957 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
958 script.")
959 (home-page "http://rubyforge.org/projects/antwrap/")
960 (license license:expat)))
961
962 (define-public ruby-atoulme-saikuro
963 (package
964 (name "ruby-atoulme-saikuro")
965 (version "1.2.1")
966 (source (origin
967 (method url-fetch)
968 (uri (rubygems-uri "atoulme-Saikuro" version))
969 (sha256
970 (base32
971 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
972 (build-system ruby-build-system)
973 ;; FIXME: There are no unit tests. The tests are demonstrations of the
974 ;; "saikuro" tool.
975 (arguments `(#:tests? #f))
976 (synopsis "Cyclomatic complexity analyzer")
977 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
978 given Ruby source code Saikuro will generate a report listing the cyclomatic
979 complexity of each method found. In addition, Saikuro counts the number of
980 lines per method and can generate a listing of the number of tokens on each
981 line of code.")
982 (home-page "http://www.github.com/atoulme/Saikuro")
983 ;; File headers contain the BSD-3 license and the README.rdoc says that
984 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
985 ;; of the Expat license.
986 (license license:bsd-3)))
987
988 (define-public ruby-pandoc-ruby
989 (package
990 (name "ruby-pandoc-ruby")
991 (version "2.1.4")
992 (source
993 (origin
994 (method git-fetch) ;the gem lacks many test files
995 (uri (git-reference
996 (url "https://github.com/xwmx/pandoc-ruby")
997 (commit version)))
998 (file-name (git-file-name name version))
999 (sha256
1000 (base32
1001 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1002 (build-system ruby-build-system)
1003 (arguments
1004 `(#:phases
1005 (modify-phases %standard-phases
1006 (add-after 'unpack 'disable-failing-tests
1007 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1008 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1009 (lambda _
1010 (substitute* "test/test_conversions.rb"
1011 (("next if from == to.*" all)
1012 (string-append
1013 all
1014 " next if ['plain', 'beamer'].include? to\n")))
1015 #t))
1016 (add-after 'unpack 'patch-pandoc-path
1017 (lambda* (#:key inputs #:allow-other-keys)
1018 (let ((pandoc (string-append (assoc-ref inputs "ghc-pandoc")
1019 "/bin/pandoc")))
1020 (substitute* "lib/pandoc-ruby.rb"
1021 (("@@pandoc_path = 'pandoc'")
1022 (format #f "@@pandoc_path = '~a'" pandoc)))
1023 (substitute* "test/test_pandoc_ruby.rb"
1024 (("('|\")pandoc" _ quote)
1025 (string-append quote pandoc))
1026 (("\\^pandoc")
1027 ".*pandoc"))
1028 #t)))
1029 (add-after 'extract-gemspec 'remove-Gemfile.lock
1030 (lambda _
1031 (delete-file "Gemfile.lock")
1032 (substitute* "pandoc-ruby.gemspec"
1033 (("Gemfile\\.lock") ""))
1034 #t)))))
1035 (native-inputs
1036 `(("ruby-mocha" ,ruby-mocha)))
1037 (inputs
1038 `(("ghc-pandoc" ,ghc-pandoc)))
1039 (synopsis "Ruby wrapper for Pandoc")
1040 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1041 command line tools for converting one markup format to another. Pandoc can
1042 convert documents from a variety of formats including markdown,
1043 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1044 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1045 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1046 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1047 more.")
1048 (home-page "https://github.com/xwmx/pandoc-ruby")
1049 (license license:expat)))
1050
1051 (define-public ruby-slim
1052 (package
1053 (name "ruby-slim")
1054 (version "4.1.0")
1055 (source
1056 (origin
1057 (method url-fetch)
1058 (uri (rubygems-uri "slim" version))
1059 (sha256
1060 (base32
1061 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1062 (build-system ruby-build-system)
1063 (arguments
1064 `(#:phases
1065 (modify-phases %standard-phases
1066 ;; See: https://github.com/slim-template/slim/issues/857 and
1067 ;; https://github.com/slim-template/slim/issues/858.
1068 (add-after 'unpack 'skip-broken-tests
1069 (lambda _
1070 (substitute* "test/core/test_embedded_engines.rb"
1071 (("def test_render_with_markdown")
1072 "def skipped_test_render_with_markdown"))
1073 (substitute* "test/translator/test_translator.rb"
1074 (("raise (\"Missing test for.*)" _ tail)
1075 (string-append "print " tail)))
1076 #t))
1077 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1078 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1079 (add-after 'unpack 'prevent-bundler-interference
1080 (lambda _
1081 (substitute* "Rakefile"
1082 (("require 'bundler/setup'") "nil")
1083 (("Bundler::GemHelper\\.install_tasks") "nil"))
1084 #t)))))
1085 (native-inputs
1086 `(("ruby-rack-test" ,ruby-rack-test)
1087 ("ruby-sinatra" ,ruby-sinatra)))
1088 (propagated-inputs
1089 `(("ruby-temple" ,ruby-temple)
1090 ("ruby-tilt" ,ruby-tilt)))
1091 (synopsis "Minimalist template language for Ruby")
1092 (description "Slim is a template language for Ruby that aims to reduce the
1093 syntax to the minimum while remaining clear.")
1094 (home-page "http://slim-lang.com/")
1095 (license license:expat)))
1096
1097 (define-public ruby-asciidoctor
1098 (package
1099 (name "ruby-asciidoctor")
1100 (version "2.0.10")
1101 (source
1102 (origin
1103 (method git-fetch) ;the gem release lacks a Rakefile
1104 (uri (git-reference
1105 (url "https://github.com/asciidoctor/asciidoctor")
1106 (commit (string-append "v" version))))
1107 (file-name (git-file-name name version))
1108 (sha256
1109 (base32
1110 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1111 (build-system ruby-build-system)
1112 (arguments
1113 `(#:test-target "test:all"
1114 #:phases
1115 (modify-phases %standard-phases
1116 (replace 'replace-git-ls-files
1117 (lambda _
1118 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1119 ;; git ls-files output is merged in ruby-build-system.
1120 (substitute* "asciidoctor.gemspec"
1121 (("`git ls-files -z`")
1122 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1123 #t))
1124 (add-after 'extract-gemspec 'strip-version-requirements
1125 (lambda _
1126 (delete-file "Gemfile")
1127 (substitute* "asciidoctor.gemspec"
1128 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1129 (string-append stripped "\n")))
1130 #t)))))
1131 (native-inputs
1132 `(("ruby-erubis" ,ruby-erubis)
1133 ("ruby-minitest" ,ruby-minitest)
1134 ("ruby-nokogiri" ,ruby-nokogiri)
1135 ("ruby-asciimath" ,ruby-asciimath)
1136 ("ruby-coderay" ,ruby-coderay)
1137 ("ruby-cucumber" ,ruby-cucumber)
1138 ("ruby-haml" ,ruby-haml)
1139 ("ruby-rouge" ,ruby-rouge)
1140 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1141 ("ruby-simplecov" ,ruby-simplecov)
1142 ("ruby-slim" ,ruby-slim)
1143 ("ruby-tilt" ,ruby-tilt)))
1144 (synopsis "Converter from AsciiDoc content to other formats")
1145 (description "Asciidoctor is a text processor and publishing toolchain for
1146 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1147 formats.")
1148 (home-page "https://asciidoctor.org")
1149 (license license:expat)))
1150
1151 (define-public ruby-ast
1152 (package
1153 (name "ruby-ast")
1154 (version "2.4.0")
1155 (source
1156 (origin
1157 (method url-fetch)
1158 (uri (rubygems-uri "ast" version))
1159 (sha256
1160 (base32
1161 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
1162 (build-system ruby-build-system)
1163 (arguments
1164 '(#:phases
1165 (modify-phases %standard-phases
1166 (add-after 'unpack 'remove-coveralls-requirement
1167 (lambda _
1168 (substitute* "test/helper.rb"
1169 (("require 'coveralls'") "")
1170 (("Coveralls::SimpleCov::Formatter") ""))
1171 #t))
1172 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1173 (lambda _
1174 (substitute* "ast.gemspec"
1175 ((".*coveralls.*") "\n")
1176 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1177 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1178 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1179 #t)))))
1180 (native-inputs
1181 `(("bundler" ,bundler)
1182 ("ruby-simplecov" ,ruby-simplecov)
1183 ("ruby-json-pure" ,ruby-json-pure)
1184 ("ruby-mime-times" ,ruby-mime-types)
1185 ("ruby-yard" ,ruby-yard)
1186 ("ruby-kramdown" ,ruby-kramdown)
1187 ("ruby-rest-client" ,ruby-rest-client)
1188 ("ruby-bacon" ,ruby-bacon)
1189 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1190 ("ruby-racc" ,ruby-racc)))
1191 (synopsis "Library for working with Abstract Syntax Trees")
1192 (description
1193 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1194 It does this through immutable data structures.")
1195 (home-page "https://whitequark.github.io/ast/")
1196 (license license:expat)))
1197
1198 (define-public ruby-sporkmonger-rack-mount
1199 ;; Testing the addressable gem requires a newer commit than that released, so
1200 ;; use an up to date version.
1201 (let ((revision "1")
1202 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1203 (package
1204 (name "ruby-sporkmonger-rack-mount")
1205 (version (git-version "0.8.3" revision commit))
1206 (source (origin
1207 (method git-fetch)
1208 (uri (git-reference
1209 (url "https://github.com/sporkmonger/rack-mount")
1210 (commit commit)))
1211 (file-name (git-file-name name version))
1212 (sha256
1213 (base32
1214 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1215 (build-system ruby-build-system)
1216 (arguments
1217 ;; Tests currently fail so disable them.
1218 ;; https://github.com/sporkmonger/rack-mount/pull/1
1219 `(#:tests? #f))
1220 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1221 (synopsis "Stackable dynamic tree based Rack router")
1222 (description
1223 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1224 continue trying routes if the response returns pass. This allows multiple
1225 routes to be nested or stacked on top of each other.")
1226 (home-page "https://github.com/sporkmonger/rack-mount")
1227 (license license:expat))))
1228
1229 (define-public ruby-ci-reporter
1230 (package
1231 (name "ruby-ci-reporter")
1232 (version "2.0.0")
1233 (source (origin
1234 (method url-fetch)
1235 (uri (rubygems-uri "ci_reporter" version))
1236 (sha256
1237 (base32
1238 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1239 (build-system ruby-build-system)
1240 (arguments
1241 `(#:test-target "rspec"))
1242 (propagated-inputs
1243 `(("ruby-builder" ,ruby-builder)))
1244 (native-inputs
1245 `(("bundler" ,bundler)
1246 ("ruby-rspec" ,ruby-rspec)))
1247 (synopsis "Generate XML reports of runs test")
1248 (description
1249 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1250 you to generate XML reports of your test runs. The resulting files can be
1251 read by a continuous integration system that understands Ant's JUnit report
1252 format.")
1253 (home-page "https://github.com/nicksieger/ci_reporter")
1254 (license license:expat)))
1255
1256 (define-public ruby-contracts
1257 (package
1258 (name "ruby-contracts")
1259 (version "0.16.0")
1260 (source
1261 (origin
1262 (method url-fetch)
1263 (uri (rubygems-uri "contracts" version))
1264 (sha256
1265 (base32
1266 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1267 (build-system ruby-build-system)
1268 (arguments
1269 '(#:test-target "spec"
1270 #:phases
1271 (modify-phases %standard-phases
1272 ;; Don't run or require rubocop, the code linting tool, as this is a
1273 ;; bit unnecessary.
1274 (add-after 'unpack 'dont-run-rubocop
1275 (lambda _
1276 (substitute* "Rakefile"
1277 ((".*rubocop.*") "")
1278 ((".*RuboCop.*") ""))
1279 #t)))))
1280 (native-inputs
1281 `(("ruby-rspec" ,ruby-rspec)))
1282 (synopsis "Method contracts for Ruby")
1283 (description
1284 "This library provides contracts for Ruby. A contract describes the
1285 correct inputs and output for a method, and will raise an error if a incorrect
1286 value is found.")
1287 (home-page "https://github.com/egonSchiele/contracts.ruby")
1288 (license license:bsd-2)))
1289
1290 (define-public ruby-crack
1291 (package
1292 (name "ruby-crack")
1293 (version "0.4.3")
1294 (source
1295 (origin
1296 (method url-fetch)
1297 (uri (rubygems-uri "crack" version))
1298 (sha256
1299 (base32
1300 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1301 (build-system ruby-build-system)
1302 (arguments
1303 `(#:phases
1304 (modify-phases %standard-phases
1305 (replace 'check
1306 (lambda* (#:key tests? #:allow-other-keys)
1307 (when tests?
1308 (for-each (lambda (file)
1309 (display file)(display "\n")
1310 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1311 (find-files "test" ".*rb$")))
1312 #t)))))
1313 (propagated-inputs
1314 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1315 (synopsis "Simple JSON and XML parsing for Ruby")
1316 (description
1317 "@code{crack} provides really simple JSON and XML parsing, extracted from
1318 code in Merb and Rails.")
1319 (home-page "https://github.com/jnunemaker/crack")
1320 (license license:expat)))
1321
1322 (define-public ruby-cliver
1323 (package
1324 (name "ruby-cliver")
1325 (version "0.3.2")
1326 (source
1327 (origin
1328 (method url-fetch)
1329 (uri (rubygems-uri "cliver" version))
1330 (sha256
1331 (base32
1332 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1333 (build-system ruby-build-system)
1334 (arguments
1335 '(#:phases
1336 (modify-phases %standard-phases
1337 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1338 ;; would be nice, but the tests look to be incompatible:
1339 ;;
1340 ;; NoMethodError: undefined method `last_comment'
1341 (replace 'check
1342 (lambda* (#:key tests? #:allow-other-keys)
1343 (when tests?
1344 (invoke "rspec"))
1345 #t)))))
1346 (native-inputs
1347 `(("bundler" ,bundler)
1348 ("ruby-rspec" ,ruby-rspec-2)))
1349 (synopsis "Assertions for command-line dependencies in Ruby")
1350 (description
1351 "@code{cliver} provides a way to detect missing command-line
1352 dependencies, including versions.")
1353 (home-page "https://github.com/yaauie/cliver")
1354 (license license:expat)))
1355
1356 (define-public ruby-czmq-ffi-gen
1357 (package
1358 (name "ruby-czmq-ffi-gen")
1359 (version "0.13.0")
1360 (source
1361 (origin
1362 (method url-fetch)
1363 (uri (rubygems-uri "czmq-ffi-gen" version))
1364 (sha256
1365 (base32
1366 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1367 (build-system ruby-build-system)
1368 (arguments
1369 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1370 #:phases
1371 (modify-phases %standard-phases
1372 (add-after 'unpack 'patch-lib_dirs
1373 (lambda* (#:key inputs #:allow-other-keys)
1374 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1375 (("lib\\_dirs = \\[.*\\]")
1376 (string-append "lib_dirs = ['"
1377 (assoc-ref inputs "czmq") "/lib"
1378 "']")))
1379 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1380 (("lib\\_dirs = \\[.*\\]")
1381 (string-append "lib_dirs = ['"
1382 (assoc-ref inputs "zeromq") "/lib"
1383 "']"))))))))
1384 (inputs
1385 `(("zeromq" ,zeromq)
1386 ("czmq" ,czmq)))
1387 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1388 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1389 (description
1390 "These Ruby bindings are not intended to be directly used, but rather
1391 used by higher level bindings like those provided by CZTop.")
1392 (home-page
1393 "https://github.com/paddor/czmq-ffi-gen")
1394 (license license:isc)))
1395
1396 (define-public ruby-cztop
1397 (package
1398 (name "ruby-cztop")
1399 (version "0.12.2")
1400 (source
1401 (origin
1402 (method url-fetch)
1403 (uri (rubygems-uri "cztop" version))
1404 (sha256
1405 (base32
1406 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1407 (build-system ruby-build-system)
1408 (arguments
1409 '(#:test-target "spec"
1410 #:phases
1411 (modify-phases %standard-phases
1412 (add-after 'unpack 'patch-lib_paths
1413 (lambda* (#:key inputs #:allow-other-keys)
1414 (substitute* "lib/cztop/poller/zmq.rb"
1415 (("lib\\_paths = \\[.*\\]")
1416 (string-append "lib_paths = ['"
1417 (assoc-ref inputs "zeromq") "/lib"
1418 "']"))))))))
1419 (native-inputs
1420 `(("bundler" ,bundler)
1421 ("ruby-rspec" ,ruby-rspec)))
1422 (inputs
1423 `(("zeromq" ,zeromq)))
1424 (propagated-inputs
1425 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1426 (synopsis "CZMQ Ruby bindings")
1427 (description
1428 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1429 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1430 support for security mechanisms.")
1431 (home-page "https://github.com/paddor/cztop")
1432 (license license:isc)))
1433
1434 (define-public ruby-saikuro-treemap
1435 (package
1436 (name "ruby-saikuro-treemap")
1437 (version "0.2.0")
1438 (source (origin
1439 (method url-fetch)
1440 (uri (rubygems-uri "saikuro_treemap" version))
1441 (sha256
1442 (base32
1443 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1444 (build-system ruby-build-system)
1445 ;; Some of the tests fail because the generated JSON has keys in a
1446 ;; different order. This is a problem with the test suite rather than any
1447 ;; of the involved libraries.
1448 (arguments `(#:tests? #f))
1449 (propagated-inputs
1450 `(("ruby-json-pure" ,ruby-json-pure)
1451 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1452 (synopsis "Generate complexity treemap based on saikuro analysis")
1453 (description
1454 "This gem generates a treemap showing the complexity of Ruby code on
1455 which it is run. It uses Saikuro under the covers to analyze Ruby code
1456 complexity.")
1457 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1458 (license license:expat)))
1459
1460 (define-public ruby-oauth2
1461 (package
1462 (name "ruby-oauth2")
1463 (version "1.4.2")
1464 (source
1465 (origin
1466 (method url-fetch)
1467 (uri (rubygems-uri "oauth2" version))
1468 (sha256
1469 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1470 (build-system ruby-build-system)
1471 (arguments
1472 '(#:tests? #f)) ; no included tests
1473 (propagated-inputs
1474 `(("ruby-faraday" ,ruby-faraday)
1475 ("ruby-jwt" ,ruby-jwt)
1476 ("ruby-multi-json" ,ruby-multi-json)
1477 ("ruby-multi-xml" ,ruby-multi-xml)
1478 ("ruby-rack" ,ruby-rack)))
1479 (synopsis "Ruby wrapper for the OAuth 2.0")
1480 (description
1481 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1482 with a similar style to the original OAuth spec.")
1483 (home-page "https://github.com/oauth-xx/oauth2")
1484 (license license:expat)))
1485
1486 (define-public ruby-omniauth
1487 (package
1488 (name "ruby-omniauth")
1489 (version "1.9.1")
1490 (source
1491 (origin
1492 (method url-fetch)
1493 (uri (rubygems-uri "omniauth" version))
1494 (sha256
1495 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
1496 (build-system ruby-build-system)
1497 (arguments
1498 '(#:tests? #f)) ; No included tests
1499 (propagated-inputs
1500 `(("ruby-hashie" ,ruby-hashie)
1501 ("ruby-rack" ,ruby-rack)))
1502 (synopsis "Generalized Rack framework for multiple-provider authentication")
1503 (description
1504 "This package provides a generalized Rack framework for multiple-provider
1505 authentication.")
1506 (home-page "https://github.com/omniauth/omniauth")
1507 (license license:expat)))
1508
1509 (define-public ruby-omniauth-oauth2
1510 (package
1511 (name "ruby-omniauth-oauth2")
1512 (version "1.6.0")
1513 (source
1514 (origin
1515 (method url-fetch)
1516 (uri (rubygems-uri "omniauth-oauth2" version))
1517 (sha256
1518 (base32
1519 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1520 (build-system ruby-build-system)
1521 (arguments
1522 '(#:phases
1523 (modify-phases %standard-phases
1524 (add-after 'unpack 'remove-unnecessary-dependencies
1525 (lambda _
1526 ;; The coveralls gem submits coverage information to an online
1527 ;; service, and is unnecessary when running the tests
1528 (substitute* "Gemfile"
1529 ((".*coveralls\"") ""))
1530 (substitute* "spec/helper.rb"
1531 (("require \"coveralls\"") "")
1532 (("Coveralls::SimpleCov::Formatter") ""))
1533 #t)))))
1534 (propagated-inputs
1535 `(("ruby-oauth2" ,ruby-oauth2)
1536 ("ruby-omniauth" ,ruby-omniauth)))
1537 (native-inputs
1538 `(("bundler" ,bundler)
1539 ("ruby-rspec" ,ruby-rspec)
1540 ("ruby-simplecov" ,ruby-simplecov)
1541 ("ruby-rack-test" ,ruby-rack-test)
1542 ("ruby-webmock" ,ruby-webmock-2)))
1543 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1544 (description
1545 "This library provides a generic OAuth2 strategy for OmniAuth. It
1546 doesn't provide a way to gather user information, so should be used as a
1547 building block for authentication strategies.")
1548 (home-page "https://github.com/omniauth/omniauth-oauth2")
1549 (license license:expat)))
1550
1551 (define-public ruby-open4
1552 (package
1553 (name "ruby-open4")
1554 (version "1.3.4")
1555 (source
1556 (origin
1557 (method url-fetch)
1558 (uri (rubygems-uri "open4" version))
1559 (sha256
1560 (base32
1561 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1562 (build-system ruby-build-system)
1563 (arguments
1564 '(#:phases
1565 (modify-phases %standard-phases
1566 (add-after 'unpack 'patch
1567 (lambda _
1568 (substitute* "rakefile"
1569 ;; Update the Rakefile so it works
1570 (("-rubygems") "-rrubygems")
1571 (("Config") "RbConfig"))
1572 #t))
1573 (add-before 'check 'set-LIB
1574 (lambda _
1575 ;; This is used in the rakefile when running the tests
1576 (setenv "LIB" "open4")
1577 #t)))))
1578 (synopsis "Open child processes from Ruby and manage them easily")
1579 (description
1580 "@code{Open4} is a Ruby library to run child processes and manage their
1581 input and output.")
1582 (home-page "https://github.com/ahoward/open4")
1583 (license license:ruby)))
1584
1585 (define-public ruby-options
1586 (package
1587 (name "ruby-options")
1588 (version "2.3.2")
1589 (source
1590 (origin
1591 (method url-fetch)
1592 (uri (rubygems-uri "options" version))
1593 (sha256
1594 (base32
1595 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1596 (build-system ruby-build-system)
1597 (arguments
1598 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1599 #:phases
1600 (modify-phases %standard-phases
1601 (add-before 'check 'set-LIB
1602 (lambda _
1603 ;; This is used in the Rakefile, and setting it avoids an issue
1604 ;; with running the tests.
1605 (setenv "LIB" "options")
1606 #t)))))
1607 (synopsis "Ruby library to parse options from *args cleanly")
1608 (description
1609 "The @code{options} library helps with parsing keyword options in Ruby
1610 functions.")
1611 (home-page "https://github.com/ahoward/options")
1612 (license license:ruby)))
1613
1614 (define-public ruby-erubi
1615 (package
1616 (name "ruby-erubi")
1617 (version "1.8.0")
1618 (source
1619 (origin
1620 (method url-fetch)
1621 (uri (rubygems-uri "erubi" version))
1622 (sha256
1623 (base32
1624 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1625 (build-system ruby-build-system)
1626 (synopsis "ERB template engine for Ruby")
1627 (description
1628 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1629 Erubis")
1630 (home-page "https://github.com/jeremyevans/erubi")
1631 (license license:expat)))
1632
1633 (define-public ruby-erubis
1634 (package
1635 (name "ruby-erubis")
1636 (version "2.7.0")
1637 (source
1638 (origin
1639 (method url-fetch)
1640 (uri (rubygems-uri "erubis" version))
1641 (sha256
1642 (base32
1643 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1644 (build-system ruby-build-system)
1645 (arguments
1646 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1647 (synopsis "Implementation of embedded Ruby (eRuby)")
1648 (description
1649 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1650 features such as multi-language support, auto escaping, auto trimming spaces
1651 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1652 support.")
1653 (home-page "http://www.kuwata-lab.com/erubis/")
1654 (license license:expat)))
1655
1656 (define-public ruby-execjs
1657 (package
1658 (name "ruby-execjs")
1659 (version "2.7.0")
1660 (source
1661 (origin
1662 ;; fetch from github as the gem does not contain testing code
1663 (method git-fetch)
1664 (uri (git-reference
1665 (url "https://github.com/rails/execjs")
1666 (commit (string-append "v" version))))
1667 (file-name (git-file-name name version))
1668 (sha256
1669 (base32
1670 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1671 (build-system ruby-build-system)
1672 (native-inputs
1673 `(("bundler" ,bundler)
1674 ;; The test suite tests all the available backends. Currenly, this just
1675 ;; means the node backend.
1676 ;;
1677 ;; PASSED: test:node
1678 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1679 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1680 ("node" ,node)))
1681 (synopsis "Run JavaScript code from Ruby")
1682 (description
1683 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1684 runtime to evaluate your JavaScript program, then returns the result to you as
1685 a Ruby object.")
1686 (home-page "https://github.com/rails/execjs")
1687 (license license:expat)))
1688
1689 (define-public ruby-fakefs
1690 (package
1691 (name "ruby-fakefs")
1692 (version "1.2.2")
1693 (home-page "https://github.com/fakefs/fakefs")
1694 (source (origin
1695 ;; The Rubygems release does not contain tests.
1696 (method git-fetch)
1697 (uri (git-reference
1698 (url home-page)
1699 (commit (string-append "v" version))))
1700 (file-name (git-file-name name version))
1701 (sha256
1702 (base32
1703 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
1704 (build-system ruby-build-system)
1705 (arguments
1706 '(#:phases (modify-phases %standard-phases
1707 (replace 'replace-git-ls-files
1708 (lambda _
1709 (substitute* "fakefs.gemspec"
1710 (("`git ls-files lib README.md LICENSE`")
1711 "`find lib README.md LICENSE -type f | sort`"))
1712 #t))
1713 (add-before 'check 'remove-version-constraints
1714 (lambda _
1715 ;; Drop hard version requirements for test dependencies.
1716 (substitute* "fakefs.gemspec"
1717 (("(.*add_development_dependency .*), .*" _ dep)
1718 (string-append dep "\n")))
1719 #t)))))
1720 (native-inputs
1721 `(("ruby-bump" ,ruby-bump)
1722 ("ruby-maxitest" ,ruby-maxitest)
1723 ("ruby-rubocop" ,ruby-rubocop)
1724 ("ruby-rspec" ,ruby-rspec)))
1725 (synopsis "Fake file system for Ruby")
1726 (description
1727 "This package provides a fake file system for use in test suites. It
1728 avoids the need for manually creating temporary directories, or dealing
1729 with platform intricacies in @code{File} and @code{FileUtils}.")
1730 (license license:expat)))
1731
1732 (define-public ruby-orderedhash
1733 (package
1734 (name "ruby-orderedhash")
1735 (version "0.0.6")
1736 (source (origin
1737 (method url-fetch)
1738 (uri (rubygems-uri "orderedhash" version))
1739 (sha256
1740 (base32
1741 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1742 (build-system ruby-build-system)
1743 (arguments
1744 '(#:tests? #f)) ; no test suite
1745 (synopsis "Ruby library providing an order-preserving hash")
1746 (description "Orderedhash is a Ruby library providing a hash
1747 implementation that preserves the order of items and features some array-like
1748 extensions.")
1749 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1750 (license license:public-domain)))
1751
1752 (define-public ruby-libxml
1753 (package
1754 (name "ruby-libxml")
1755 (version "3.0.0")
1756 (source
1757 (origin
1758 (method url-fetch)
1759 (uri (rubygems-uri "libxml-ruby" version))
1760 (sha256
1761 (base32
1762 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1763 (build-system ruby-build-system)
1764 (inputs
1765 `(("zlib" ,zlib)
1766 ("libxml2" ,libxml2)))
1767 (arguments
1768 '(#:tests? #f ; test suite hangs for unknown reason
1769 #:gem-flags
1770 (list "--"
1771 (string-append "--with-xml2-include="
1772 (assoc-ref %build-inputs "libxml2")
1773 "/include/libxml2" ))))
1774 (synopsis "Ruby bindings for GNOME Libxml2")
1775 (description "The Libxml-Ruby project provides Ruby language bindings for
1776 the GNOME Libxml2 XML toolkit.")
1777 (home-page "https://xml4r.github.com/libxml-ruby")
1778 (license license:expat)))
1779
1780 (define-public ruby-lino
1781 (package
1782 (name "ruby-lino")
1783 (version "1.1.0")
1784 (source
1785 (origin
1786 (method url-fetch)
1787 (uri (rubygems-uri "lino" version))
1788 (sha256
1789 (base32
1790 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1791 (build-system ruby-build-system)
1792 (arguments
1793 '(#:tests? #f)) ; No included tests
1794 (propagated-inputs
1795 `(("ruby-hamster" ,ruby-hamster)
1796 ("ruby-open4" ,ruby-open4)))
1797 (synopsis "Build and execute commands in Ruby")
1798 (description
1799 "@code{Lino} provides an interface to run external commands. It provides
1800 an interface to add options as well as managing the standard input, output and
1801 error streams.")
1802 (home-page "https://github.com/tobyclemson/lino")
1803 (license license:expat)))
1804
1805 (define-public ruby-xml-simple
1806 (package
1807 (name "ruby-xml-simple")
1808 (version "1.1.5")
1809 (source (origin
1810 (method url-fetch)
1811 (uri (rubygems-uri "xml-simple" version))
1812 (sha256
1813 (base32
1814 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1815 (build-system ruby-build-system)
1816 (arguments
1817 '(#:tests? #f)) ; no test suite
1818 (synopsis "Simple Ruby library for XML processing")
1819 (description "This library provides a simple API for XML processing in
1820 Ruby.")
1821 (home-page "https://github.com/maik/xml-simple")
1822 (license license:ruby)))
1823
1824 (define-public ruby-thor
1825 (package
1826 (name "ruby-thor")
1827 (version "1.0.1")
1828 (source (origin
1829 ;; Pull from git because the gem has no tests.
1830 (method git-fetch)
1831 (uri (git-reference
1832 (url "https://github.com/erikhuda/thor")
1833 (commit (string-append "v" version))))
1834 (file-name (git-file-name name version))
1835 (sha256
1836 (base32
1837 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
1838 (build-system ruby-build-system)
1839 (arguments
1840 '(#:phases (modify-phases %standard-phases
1841 (add-after 'unpack 'fix-readline-tests
1842 (lambda _
1843 ;; Ensure Readline is initialized before running the
1844 ;; test to avoid a type clash with the mock ::Readline.
1845 ;; See <https://github.com/erikhuda/thor/pull/717>.
1846 (substitute* "spec/line_editor/readline_spec.rb"
1847 (("unless defined\\? ::Readline" all)
1848 (string-append "Thor::LineEditor::Readline.available?\n"
1849 all)))
1850 #t))
1851 (add-after 'unpack 'remove-coveralls-dependency
1852 (lambda _
1853 ;; Do not hook the test suite into the online
1854 ;; coveralls service.
1855 (substitute* "Gemfile"
1856 ((".*coveralls.*") ""))
1857 (substitute* "spec/helper.rb"
1858 (("require \"coveralls\"") "")
1859 (("Coveralls::SimpleCov::Formatter") "")
1860 ;; Also drop the WebMock dependency which is only
1861 ;; present to allow a coveralls.io connection, and
1862 ;; would otherwise introduce a circular dependency.
1863 (("require \"webmock/rspec\"") "")
1864 (("WebMock\\.disable_net_connect.*") ""))
1865 #t))
1866 (add-after 'unpack 'disable-network-tests
1867 (lambda _
1868 ;; These tests attempt to look up example.com.
1869 (substitute* "spec/actions/file_manipulation_spec.rb"
1870 (("it \"accepts (https?) remote sources" _ proto)
1871 (string-append "xit \"accepts " proto " remote sources")))
1872 #t))
1873 (add-after 'unpack 'disable-quality-tests
1874 (lambda _
1875 ;; These tests attempt to check the git repository for
1876 ;; tabs vs spaces, double vs single quotes, etc, and
1877 ;; depend on the git checkout.
1878 (delete-file "spec/quality_spec.rb")
1879 #t))
1880 (add-before 'check 'make-files-writable
1881 (lambda _
1882 ;; The tests needs rw access to the test suite.
1883 (for-each make-file-writable (find-files "spec"))
1884 #t))
1885 (replace 'check
1886 (lambda _
1887 (invoke "rspec" "spec"))))))
1888 (native-inputs
1889 `(("ruby-rspec" ,ruby-rspec)
1890 ("ruby-simplecov" ,ruby-simplecov)))
1891 (synopsis "Ruby toolkit for building command-line interfaces")
1892 (description "Thor is a toolkit for building powerful command-line
1893 interfaces.")
1894 (home-page "http://whatisthor.com/")
1895 (license license:expat)))
1896
1897 (define-public ruby-lumberjack
1898 (package
1899 (name "ruby-lumberjack")
1900 (version "1.0.13")
1901 (source (origin
1902 (method url-fetch)
1903 (uri (rubygems-uri "lumberjack" version))
1904 (sha256
1905 (base32
1906 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1907 (build-system ruby-build-system)
1908 (native-inputs
1909 `(("ruby-rspec" ,ruby-rspec)
1910 ("ruby-timecop" ,ruby-timecop)))
1911 (synopsis "Logging utility library for Ruby")
1912 (description "Lumberjack is a simple logging utility that can be a drop in
1913 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1914 for automatically rolling log files even with multiple processes writing the
1915 same log file.")
1916 (home-page "https://github.com/bdurand/lumberjack")
1917 (license license:expat)))
1918
1919 (define-public ruby-rbnacl
1920 (package
1921 (name "ruby-rbnacl")
1922 (version "6.0.1")
1923 (source
1924 (origin
1925 (method url-fetch)
1926 (uri (rubygems-uri "rbnacl" version))
1927 (sha256
1928 (base32
1929 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1930 (build-system ruby-build-system)
1931 (arguments
1932 `(#:phases
1933 (modify-phases %standard-phases
1934 (add-after 'unpack 'remove-unnecessary-dependencies
1935 (lambda _
1936 ;; Coveralls relates to a network service, and Rubocop to code
1937 ;; linting and both are unnecessary to run the tests
1938 (substitute* "Gemfile"
1939 ((".*rubocop.*") "\n")
1940 ((".*guard-rspec.*") "\n")
1941 ((".*coveralls.*") "\n"))
1942 (substitute* "spec/spec_helper.rb"
1943 (("require \"coveralls\"") "")
1944 (("Coveralls.wear!") ""))
1945 #t))
1946 (add-after 'unpack 'use-libsodium-from-store
1947 (lambda* (#:key inputs #:allow-other-keys)
1948 (substitute* '("lib/rbnacl/init.rb"
1949 "lib/rbnacl/sodium.rb")
1950 (("ffi_lib \\[.+\\]")
1951 (string-append "ffi_lib [\""
1952 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1953 "\"]")))
1954 #t))
1955 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1956 (replace 'check
1957 (lambda* (#:key tests? #:allow-other-keys)
1958 (when tests?
1959 (invoke "rspec"))
1960 #t)))))
1961 (propagated-inputs
1962 `(("ruby-ffi" ,ruby-ffi)))
1963 (inputs
1964 `(("libsodium" ,libsodium)))
1965 (native-inputs
1966 `(("bundler" ,bundler)
1967 ("ruby-rspec" ,ruby-rspec)))
1968 (synopsis "Ruby FFI binding to libsodium")
1969 (description
1970 "This package provides Ruby FFI bindings to the Networking and
1971 Cryptography (NaCl) library, also known as libsodium. This provides a
1972 high-level toolkit for building cryptographic systems and protocols.")
1973 (home-page "https://github.com/crypto-rb/rbnacl")
1974 (license license:expat)))
1975
1976 (define-public ruby-nenv
1977 (package
1978 (name "ruby-nenv")
1979 (version "0.3.0")
1980 (source (origin
1981 (method url-fetch)
1982 (uri (rubygems-uri "nenv" version))
1983 (sha256
1984 (base32
1985 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1986 (build-system ruby-build-system)
1987 (arguments
1988 `(#:tests? #f)) ; no tests included
1989 (native-inputs
1990 `(("ruby-rspec" ,ruby-rspec)
1991 ("bundler" ,bundler)))
1992 (synopsis "Ruby interface for modifying the environment")
1993 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1994 and inspect the environment.")
1995 (home-page "https://github.com/e2/nenv")
1996 (license license:expat)))
1997
1998 (define-public ruby-ptools
1999 (package
2000 (name "ruby-ptools")
2001 (version "1.3.5")
2002 (source (origin
2003 (method url-fetch)
2004 (uri (rubygems-uri "ptools" version))
2005 (sha256
2006 (base32
2007 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2008 (build-system ruby-build-system)
2009 (arguments
2010 '(#:phases (modify-phases %standard-phases
2011 (add-after 'unpack 'patch-/bin/ls
2012 (lambda _
2013 (substitute* "test/test_binary.rb"
2014 (("/bin/ls")
2015 (which "ls")))
2016 #t))
2017 (add-before 'install 'create-gem
2018 (lambda _
2019 ;; Do not attempt to sign the gem.
2020 (substitute* "Rakefile"
2021 (("spec\\.signing_key = .*")
2022 ""))
2023 (invoke "rake" "gem:create"))))))
2024 (synopsis "Extra methods for Ruby's @code{File} class")
2025 (description
2026 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2027 class with many additional methods modelled after common POSIX tools, such as
2028 @code{File.which} for finding executables, @code{File.tail} to print the last
2029 lines of a file, @code{File.wc} to count words, and so on.")
2030 (home-page "https://github.com/djberg96/ptools")
2031 (license license:artistic2.0)))
2032
2033 (define-public ruby-permutation
2034 (package
2035 (name "ruby-permutation")
2036 (version "0.1.8")
2037 (source (origin
2038 (method url-fetch)
2039 (uri (rubygems-uri "permutation" version))
2040 (sha256
2041 (base32
2042 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2043 (build-system ruby-build-system)
2044 (arguments
2045 `(#:phases
2046 (modify-phases %standard-phases
2047 (add-after 'unpack 'fix-rakefile
2048 (lambda _
2049 (substitute* "Rakefile"
2050 (("require 'rake/gempackagetask'")
2051 "require 'rubygems/package_task'")
2052 (("include Config") ""))
2053 #t))
2054 (replace 'check
2055 (lambda _
2056 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2057 (synopsis "Library to perform operations with sequence permutations")
2058 (description "This package provides a Ruby library to perform different
2059 operations with permutations of sequences, such as strings and arrays.")
2060 (home-page "https://flori.github.io/permutation")
2061 (license license:gpl2))) ; GPL 2 only
2062
2063 (define-public ruby-shellany
2064 (package
2065 (name "ruby-shellany")
2066 (version "0.0.1")
2067 (source (origin
2068 (method url-fetch)
2069 (uri (rubygems-uri "shellany" version))
2070 (sha256
2071 (base32
2072 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2073 (build-system ruby-build-system)
2074 (arguments
2075 `(#:test-target "default"
2076 #:phases
2077 (modify-phases %standard-phases
2078 (add-after 'unpack 'fix-version-test
2079 (lambda _
2080 (substitute* "spec/shellany_spec.rb"
2081 (("^RSpec") "require \"shellany\"\nRSpec"))
2082 #t)))))
2083 (native-inputs
2084 `(("ruby-rspec" ,ruby-rspec)
2085 ("ruby-nenv" ,ruby-nenv)
2086 ("bundler" ,bundler)))
2087 (synopsis "Capture command output")
2088 (description "Shellany is a Ruby library providing functions to capture
2089 the output produced by running shell commands.")
2090 (home-page "https://rubygems.org/gems/shellany")
2091 (license license:expat)))
2092
2093 (define-public ruby-notiffany
2094 (package
2095 (name "ruby-notiffany")
2096 (version "0.1.3")
2097 (source (origin
2098 (method url-fetch)
2099 (uri (rubygems-uri "notiffany" version))
2100 (sha256
2101 (base32
2102 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2103 (build-system ruby-build-system)
2104 ;; Tests are not included in the gem.
2105 (arguments `(#:tests? #f))
2106 (propagated-inputs
2107 `(("ruby-shellany" ,ruby-shellany)
2108 ("ruby-nenv" ,ruby-nenv)))
2109 (native-inputs
2110 `(("bundler" ,bundler)))
2111 (synopsis "Wrapper library for notification libraries")
2112 (description "Notiffany is a Ruby wrapper library for notification
2113 libraries such as Libnotify.")
2114 (home-page "https://github.com/guard/notiffany")
2115 (license license:expat)))
2116
2117 (define-public ruby-forking-test-runner
2118 (package
2119 (name "ruby-forking-test-runner")
2120 (version "1.6.0")
2121 (home-page "https://github.com/grosser/forking_test_runner")
2122 (source (origin
2123 (method git-fetch)
2124 (uri (git-reference (url home-page)
2125 (commit (string-append "v" version))))
2126 (file-name (git-file-name name version))
2127 (sha256
2128 (base32
2129 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2130 (build-system ruby-build-system)
2131 (arguments
2132 '(#:test-target "spec"
2133 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2134 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2135 #:tests? #f
2136 #:phases (modify-phases %standard-phases
2137 (replace 'replace-git-ls-files
2138 (lambda _
2139 (substitute* "forking_test_runner.gemspec"
2140 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2141 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2142 #t))
2143 (add-before 'check 'remove-version-constraints
2144 (lambda _
2145 ;; Ignore hard coded version constraints for the tests.
2146 (delete-file "Gemfile.lock")
2147 #t))
2148 (add-before 'check 'set-HOME
2149 (lambda _
2150 ;; Many tests invoke Bundler, and fails when Bundler
2151 ;; warns that /homeless-shelter does not exist.
2152 (setenv "HOME" "/tmp")
2153 #t)))))
2154 (native-inputs
2155 `(("ruby-activerecord" ,ruby-activerecord)
2156 ("ruby-bump" ,ruby-bump)
2157 ("ruby-rspec" ,ruby-rspec)
2158 ("ruby-sqlite3" ,ruby-sqlite3)
2159 ("ruby-wwtd" ,ruby-wwtd)))
2160 (propagated-inputs
2161 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2162 (synopsis "Run every test in a fork")
2163 (description
2164 "This package is a wrapper around @code{parallel_tests} that runs every
2165 test in a fork to avoid pollution and get clean output per test.")
2166 (license license:expat)))
2167
2168 (define-public ruby-formatador
2169 (package
2170 (name "ruby-formatador")
2171 (version "0.2.5")
2172 (source (origin
2173 (method url-fetch)
2174 (uri (rubygems-uri "formatador" version))
2175 (sha256
2176 (base32
2177 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2178 (build-system ruby-build-system)
2179 ;; Circular dependency: Tests require ruby-shindo, which requires
2180 ;; ruby-formatador at runtime.
2181 (arguments `(#:tests? #f))
2182 (synopsis "Ruby library to format text on stdout")
2183 (description "Formatador is a Ruby library to format text printed to the
2184 standard output stream.")
2185 (home-page "https://github.com/geemus/formatador")
2186 (license license:expat)))
2187
2188 (define-public ruby-fuubar
2189 (package
2190 (name "ruby-fuubar")
2191 (version "2.3.2")
2192 (source
2193 (origin
2194 ;; Fetch from the git repository, as the gem package doesn't include
2195 ;; the tests.
2196 (method git-fetch)
2197 (uri (git-reference
2198 (url "https://github.com/thekompanee/fuubar")
2199 (commit (string-append "releases/v" version))))
2200 (file-name (git-file-name name version))
2201 (sha256
2202 (base32
2203 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2204 (build-system ruby-build-system)
2205 (arguments
2206 '(;; TODO: Some tests fail, unsure why.
2207 ;; 21 examples, 7 failures
2208 #:tests? #f
2209 #:phases
2210 (modify-phases %standard-phases
2211 (add-before 'build 'delete-certificate
2212 (lambda _
2213 ;; Remove 's.cert_chain' as we do not build with a private key
2214 (substitute* "fuubar.gemspec"
2215 ((".*cert_chain.*") "")
2216 ((".*signing_key.*") ""))
2217 #t))
2218 (replace 'check
2219 (lambda* (#:key tests? #:allow-other-keys)
2220 (when tests?
2221 (invoke "rspec"))
2222 #t)))))
2223 (native-inputs
2224 `(("bundler" ,bundler)))
2225 (propagated-inputs
2226 `(("ruby-rspec-core" ,ruby-rspec-core)
2227 ("ruby-progressbar" ,ruby-progressbar)))
2228 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2229 (description
2230 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2231 string of letters and dots as feedback. It also stops on the first test
2232 failure.")
2233 (home-page "https://github.com/thekompanee/fuubar")
2234 (license license:expat)))
2235
2236 (define-public ruby-haml
2237 (package
2238 (name "ruby-haml")
2239 (version "5.0.4")
2240 (source
2241 (origin
2242 (method url-fetch)
2243 (uri (rubygems-uri "haml" version))
2244 (sha256
2245 (base32
2246 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2247 (build-system ruby-build-system)
2248 (arguments
2249 '(#:tests? #f)) ; No included tests
2250 (propagated-inputs
2251 `(("ruby-tilt" ,ruby-tilt)
2252 ("ruby-temple" ,ruby-temple)))
2253 (synopsis "Haml is a Ruby library to generate HTML documents")
2254 (description
2255 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2256 HTML or XML that is designed to express the structure of documents using
2257 indentation rather than closing tags. It was originally envisioned as a
2258 plugin for Ruby on Rails, but it can function as a stand-alone templating
2259 engine.")
2260 (home-page "http://haml.info/")
2261 (license license:expat)))
2262
2263 (define-public ruby-hamster
2264 (package
2265 (name "ruby-hamster")
2266 (version "3.0.0")
2267 (source
2268 (origin
2269 (method url-fetch)
2270 (uri (rubygems-uri "hamster" version))
2271 (sha256
2272 (base32
2273 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2274 (build-system ruby-build-system)
2275 (arguments
2276 '(#:phases
2277 (modify-phases %standard-phases
2278 (add-after 'unpack 'remove-unnecessary-dependencies
2279 (lambda _
2280 ;; pry is a debugging tool, and is unnecessary when running the
2281 ;; tests
2282 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2283 (("require 'pry'") ""))
2284 (substitute* "spec/spec_helper.rb"
2285 (("require \"pry\"") "")
2286 ;; CodeClimate is an online service, and is unnecessary for
2287 ;; running the tests
2288 (("require \"codeclimate-test-reporter\"") "")
2289 (("CodeClimate.*\n") ""))
2290 #t))
2291 ;; No Rakefile is included, so run rspec directly.
2292 (replace 'check
2293 (lambda* (#:key tests? #:allow-other-keys)
2294 (when tests?
2295 (invoke "rspec"))
2296 #t)))))
2297 (propagated-inputs
2298 `(("ruby-concurrent" ,ruby-concurrent)))
2299 (native-inputs
2300 `(("ruby-rspec" ,ruby-rspec)))
2301 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2302 (description
2303 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2304 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2305 immutable queue or stack).")
2306 (home-page "https://github.com/hamstergem/hamster")
2307 (license license:expat)))
2308
2309 (define-public ruby-hashdiff
2310 (package
2311 (name "ruby-hashdiff")
2312 (version "0.3.8")
2313 (source
2314 (origin
2315 (method url-fetch)
2316 (uri (rubygems-uri "hashdiff" version))
2317 (sha256
2318 (base32
2319 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2320 (build-system ruby-build-system)
2321 (arguments
2322 '(#:phases
2323 (modify-phases %standard-phases
2324 ;; Run tests directly via rspec to avoid Rake issue:
2325 ;; NoMethodError: undefined method `last_comment'
2326 (replace 'check
2327 (lambda* (#:key tests? #:allow-other-keys)
2328 (when tests?
2329 (invoke "rspec"))
2330 #t)))))
2331 (native-inputs
2332 `(("bundler" ,bundler)
2333 ("ruby-rspec" ,ruby-rspec-2)))
2334 (synopsis "HashDiff computes the smallest difference between two hashes")
2335 (description
2336 "HashDiff is a Ruby library to compute the smallest difference between
2337 two hashes.")
2338 (home-page "https://github.com/liufengyun/hashdiff")
2339 (license license:expat)))
2340
2341 (define-public ruby-hydra
2342 ;; No releases yet.
2343 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
2344 (revision "0"))
2345 (package
2346 (name "ruby-hydra")
2347 (version (git-version "0.0" revision commit))
2348 (home-page "https://github.com/hyphenation/hydra")
2349 (source (origin
2350 (method git-fetch)
2351 (uri (git-reference (url home-page) (commit commit)))
2352 (file-name (git-file-name name version))
2353 (sha256
2354 (base32
2355 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
2356 (build-system ruby-build-system)
2357 (arguments
2358 '(#:phases (modify-phases %standard-phases
2359 (add-after 'unpack 'make-files-writable
2360 (lambda _
2361 (for-each make-file-writable (find-files "."))
2362 #t))
2363 (replace 'check
2364 (lambda _
2365 (invoke "rspec"))))))
2366 (native-inputs
2367 `(("ruby-rspec" ,ruby-rspec)))
2368 (propagated-inputs
2369 `(("ruby-byebug" ,ruby-byebug)))
2370 (synopsis "Ruby hyphenation patterns")
2371 (description
2372 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2373 (license license:expat))))
2374
2375 (define-public ruby-shindo
2376 (package
2377 (name "ruby-shindo")
2378 (version "0.3.8")
2379 (source (origin
2380 (method url-fetch)
2381 (uri (rubygems-uri "shindo" version))
2382 (sha256
2383 (base32
2384 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2385 (build-system ruby-build-system)
2386 (arguments
2387 `(#:test-target "shindo_tests"
2388 #:phases
2389 (modify-phases %standard-phases
2390 (add-after 'unpack 'fix-tests
2391 (lambda _
2392 (substitute* "tests/tests_helper.rb"
2393 (("-rubygems") ""))
2394 (substitute* "Rakefile"
2395 (("system \"shindo") "system \"./bin/shindo")
2396 ;; This test doesn't work, so we disable it.
2397 (("fail \"The build_error test should fail") "#")
2398 ((" -rubygems") ""))
2399 #t)))))
2400 (propagated-inputs
2401 `(("ruby-formatador" ,ruby-formatador)))
2402 (synopsis "Simple depth first Ruby testing")
2403 (description "Shindo is a simple depth first testing library for Ruby.")
2404 (home-page "https://github.com/geemus/shindo")
2405 (license license:expat)))
2406
2407 (define-public ruby-rubygems-tasks
2408 (package
2409 (name "ruby-rubygems-tasks")
2410 (version "0.2.5")
2411 (source (origin
2412 (method url-fetch)
2413 (uri (rubygems-uri "rubygems-tasks" version))
2414 (sha256
2415 (base32
2416 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
2417 (build-system ruby-build-system)
2418 ;; Tests need Internet access.
2419 (arguments `(#:tests? #f))
2420 (native-inputs
2421 `(("ruby-rspec" ,ruby-rspec)
2422 ("ruby-yard" ,ruby-yard)))
2423 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2424 (description "Rubygems-task provides Rake tasks for managing and releasing
2425 Ruby Gems.")
2426 (home-page "https://github.com/postmodern/rubygems-tasks")
2427 (license license:expat)))
2428
2429 (define-public ruby-rubyzip
2430 (package
2431 (name "ruby-rubyzip")
2432 (version "1.2.1")
2433 (source
2434 (origin
2435 (method url-fetch)
2436 (uri (rubygems-uri "rubyzip" version))
2437 (sha256
2438 (base32
2439 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2440 (build-system ruby-build-system)
2441 (arguments
2442 '(#:phases
2443 (modify-phases %standard-phases
2444 (add-before 'check 'patch-tests
2445 (lambda* (#:key inputs #:allow-other-keys)
2446 (substitute* "test/gentestfiles.rb"
2447 (("/usr/bin/zip")
2448 (string-append
2449 (assoc-ref inputs "zip") "/bin/zip")))
2450 (substitute* "test/input_stream_test.rb"
2451 (("/usr/bin/env ruby") (which "ruby")))
2452 #t)))))
2453 (native-inputs
2454 `(("bundler" ,bundler)
2455 ("ruby-simplecov" ,ruby-simplecov)
2456 ("zip" ,zip)
2457 ("unzip" ,unzip)))
2458 (synopsis "Ruby module is for reading and writing zip files")
2459 (description
2460 "The rubyzip module provides ways to read from and create zip files.")
2461 (home-page "http://github.com/rubyzip/rubyzip")
2462 (license license:bsd-2)))
2463
2464 (define-public ruby-simplecov-html
2465 (package
2466 (name "ruby-simplecov-html")
2467 (version "0.10.2")
2468 (source (origin
2469 (method url-fetch)
2470 (uri (rubygems-uri "simplecov-html" version))
2471 (sha256
2472 (base32
2473 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2474 (build-system ruby-build-system)
2475 (arguments `(#:tests? #f)) ; there are no tests
2476 (native-inputs
2477 `(("bundler" ,bundler)))
2478 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2479 (description "This package provides the default HTML formatter for
2480 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2481 (home-page "https://github.com/colszowka/simplecov-html")
2482 (license license:expat)))
2483
2484 (define-public ruby-simplecov
2485 (package
2486 (name "ruby-simplecov")
2487 (version "0.17.1")
2488 (source (origin
2489 (method url-fetch)
2490 (uri (rubygems-uri "simplecov" version))
2491 (sha256
2492 (base32
2493 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2494 (build-system ruby-build-system)
2495 ;; Simplecov depends on rubocop for code style checking at build time.
2496 ;; Rubocop needs simplecov at build time.
2497 (arguments `(#:tests? #f))
2498 (propagated-inputs
2499 `(("ruby-json" ,ruby-json)
2500 ("ruby-docile" ,ruby-docile)
2501 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2502 (native-inputs
2503 `(("bundler" ,bundler)))
2504 (synopsis "Code coverage framework for Ruby")
2505 (description "SimpleCov is a code coverage framework for Ruby with a
2506 powerful configuration library and automatic merging of coverage across test
2507 suites.")
2508 (home-page "https://github.com/colszowka/simplecov")
2509 (license license:expat)))
2510
2511 (define-public ruby-useragent
2512 (package
2513 (name "ruby-useragent")
2514 (version "0.16.10")
2515 (source (origin
2516 (method url-fetch)
2517 (uri (rubygems-uri "useragent" version))
2518 (sha256
2519 (base32
2520 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2521 (build-system ruby-build-system)
2522 (arguments
2523 '(#:tests? #f)) ; no test suite
2524 (synopsis "HTTP user agent parser for Ruby")
2525 (description "UserAgent is a Ruby library that parses and compares HTTP
2526 User Agents.")
2527 (home-page "https://github.com/gshutler/useragent")
2528 (license license:expat)))
2529
2530 (define-public ruby-backports
2531 (package
2532 (name "ruby-backports")
2533 (version "3.11.4")
2534 (source
2535 (origin
2536 (method url-fetch)
2537 (uri (rubygems-uri "backports" version))
2538 (sha256
2539 (base32
2540 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2541 (build-system ruby-build-system)
2542 (arguments
2543 '(;; TODO: This should be default, but there is one test failure
2544 #:test-target "all_spec"))
2545 (native-inputs
2546 `(("ruby-mspec" ,ruby-mspec)
2547 ("ruby-activesupport" ,ruby-activesupport)))
2548 (synopsis "Backports of the features in newer Ruby versions")
2549 (description
2550 "Backports enables more compatibility across Ruby versions by providing
2551 backports of some features.")
2552 (home-page "https://github.com/marcandre/backports")
2553 (license license:expat)))
2554
2555 (define-public ruby-bacon
2556 (package
2557 (name "ruby-bacon")
2558 (version "1.2.0")
2559 (source (origin
2560 (method url-fetch)
2561 (uri (rubygems-uri "bacon" version))
2562 (sha256
2563 (base32
2564 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2565 (build-system ruby-build-system)
2566 (synopsis "Small RSpec clone")
2567 (description "Bacon is a small RSpec clone providing all essential
2568 features.")
2569 (home-page "https://github.com/chneukirchen/bacon")
2570 (license license:expat)))
2571
2572 (define-public ruby-bacon-bits
2573 (package
2574 (name "ruby-bacon-bits")
2575 (version "0.1.0")
2576 (source
2577 (origin
2578 (method url-fetch)
2579 (uri (rubygems-uri "bacon-bits" version))
2580 (sha256
2581 (base32
2582 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2583 (build-system ruby-build-system)
2584 (arguments
2585 ;; No tests
2586 '(#:tests? #f))
2587 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2588 (synopsis "Extensions to Bacon, for disabling tests, before and after
2589 blocks and more")
2590 (description
2591 "This extends the bacon testing framework with useful extensions to
2592 disable tests, have before and after blocks that run once and more.")
2593 (home-page "https://github.com/cldwalker/bacon-bits")
2594 (license license:expat)))
2595
2596 (define-public ruby-bacon-colored-output
2597 (package
2598 (name "ruby-bacon-colored-output")
2599 (version "1.1.1")
2600 (source
2601 (origin
2602 (method url-fetch)
2603 (uri (rubygems-uri "bacon-colored_output" version))
2604 (sha256
2605 (base32
2606 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2607 (build-system ruby-build-system)
2608 (arguments
2609 '(;; No included tests
2610 #:tests? #f))
2611 (propagated-inputs
2612 `(("ruby-bacon" ,ruby-bacon)))
2613 (synopsis "Colored output for Bacon test framework")
2614 (description
2615 "This package adds color through ANSI escape codes to Bacon test
2616 output.")
2617 (home-page "https://github.com/whitequark/bacon-colored_output")
2618 (license license:expat)))
2619
2620 (define-public ruby-connection-pool
2621 (package
2622 (name "ruby-connection-pool")
2623 (version "2.2.2")
2624 (source (origin
2625 (method url-fetch)
2626 (uri (rubygems-uri "connection_pool" version))
2627 (sha256
2628 (base32
2629 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2630 (build-system ruby-build-system)
2631 (native-inputs
2632 `(("bundler" ,bundler)))
2633 (synopsis "Generic connection pool for Ruby")
2634 (description "Connection_pool provides a generic connection pooling
2635 interface for Ruby programs.")
2636 (home-page "https://github.com/mperham/connection_pool")
2637 (license license:expat)))
2638
2639 (define-public ruby-fast-gettext
2640 (package
2641 (name "ruby-fast-gettext")
2642 (version "2.0.3")
2643 (home-page "https://github.com/grosser/fast_gettext")
2644 (source (origin
2645 (method git-fetch)
2646 (uri (git-reference (url home-page)
2647 (commit (string-append "v" version))))
2648 (file-name (git-file-name name version))
2649 (sha256
2650 (base32
2651 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
2652 (build-system ruby-build-system)
2653 (arguments
2654 '(#:test-target "spec"
2655 #:phases (modify-phases %standard-phases
2656 (add-before 'check 'remove-version-constraints
2657 (lambda _
2658 (delete-file "Gemfile.lock")
2659 #t))
2660 (add-before 'check 'remove-activerecord-test
2661 (lambda _
2662 ;; FIXME: This test fails because ActiveRecord depends on
2663 ;; a different version of ruby-sqlite than the currently
2664 ;; available one.
2665 (delete-file
2666 "spec/fast_gettext/translation_repository/db_spec.rb")
2667 #t))
2668 (add-before 'check 'disable-i18n-test
2669 (lambda _
2670 ;; XXX: This test checks i18n intricasies with Rails 3 and
2671 ;; automatically disables itself for Rails 4.0, but does
2672 ;; not know about newer versions as it has not been updated
2673 ;; since 2014. Disable for later versions of Rails too.
2674 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
2675 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
2676 "ActiveRecord::VERSION::MINOR == 0"))
2677 "ActiveRecord::VERSION::MAJOR >= 4"))
2678 #t)))))
2679 (native-inputs
2680 `(;; For tests.
2681 ("ruby-activerecord" ,ruby-activerecord)
2682 ("ruby-activesupport" ,ruby-activesupport)
2683 ("ruby-bump" ,ruby-bump)
2684 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
2685 ("ruby-i18n" ,ruby-i18n)
2686 ("ruby-rubocop" ,ruby-rubocop)
2687 ("ruby-rspec" ,ruby-rspec)
2688 ("ruby-single-cov" ,ruby-single-cov)
2689 ("ruby-sqlite3" ,ruby-sqlite3)
2690 ("ruby-wwtd" ,ruby-wwtd)))
2691 (synopsis "Fast implementation of @code{GetText}")
2692 (description
2693 "This package provides an alternative implementation of the Ruby
2694 @code{GetText} library that is approximately 12x faster yet thread safe.")
2695 ;; Some parts are covered by the Ruby license, see file headers.
2696 (license (list license:expat license:ruby))))
2697
2698 (define-public ruby-net-http-persistent
2699 (package
2700 (name "ruby-net-http-persistent")
2701 (version "3.0.0")
2702 (source (origin
2703 (method url-fetch)
2704 (uri (rubygems-uri "net-http-persistent" version))
2705 (sha256
2706 (base32
2707 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2708 (build-system ruby-build-system)
2709 (native-inputs
2710 `(("ruby-connection-pool" ,ruby-connection-pool)
2711 ("ruby-hoe" ,ruby-hoe)))
2712 (synopsis "Persistent HTTP connection manager")
2713 (description "Net::HTTP::Persistent manages persistent HTTP connections
2714 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2715 (home-page "https://github.com/drbrain/net-http-persistent")
2716 (license license:expat)))
2717
2718 (define-public ruby-power-assert
2719 (package
2720 (name "ruby-power-assert")
2721 (version "1.1.5")
2722 (source (origin
2723 (method url-fetch)
2724 (uri (rubygems-uri "power_assert" version))
2725 (sha256
2726 (base32
2727 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2728 (build-system ruby-build-system)
2729 (arguments
2730 '(#:tests? #f)) ; No included tests
2731 (native-inputs
2732 `(("bundler" ,bundler)))
2733 (synopsis "Assert library with descriptive assertion messages")
2734 (description "Power-assert is an assertion library providing descriptive
2735 assertion messages for tests.")
2736 (home-page "https://github.com/k-tsj/power_assert")
2737 (license (list license:bsd-2 license:ruby))))
2738
2739 (define-public ruby-powerpack
2740 (package
2741 (name "ruby-powerpack")
2742 (version "0.1.2")
2743 (source
2744 (origin
2745 (method url-fetch)
2746 (uri (rubygems-uri "powerpack" version))
2747 (sha256
2748 (base32
2749 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2750 (build-system ruby-build-system)
2751 (arguments
2752 '(#:test-target "spec"))
2753 (native-inputs
2754 `(("bundler" ,bundler)
2755 ("ruby-rspec" ,ruby-rspec)
2756 ("ruby-yard" ,ruby-yard)))
2757 (synopsis "Useful extensions to core Ruby classes")
2758 (description
2759 "This package provides a few useful extensions to core Ruby classes,
2760 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2761 @code{String}.")
2762 (home-page "https://github.com/bbatsov/powerpack")
2763 (license license:expat)))
2764
2765 (define-public ruby-locale
2766 (package
2767 (name "ruby-locale")
2768 (version "2.1.2")
2769 (source (origin
2770 (method url-fetch)
2771 (uri (rubygems-uri "locale" version))
2772 (sha256
2773 (base32
2774 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2775 (build-system ruby-build-system)
2776 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2777 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2778 ;; dependency cycle we disable tests.
2779 (arguments `(#:tests? #f))
2780 (native-inputs
2781 `(("bundler" ,bundler)
2782 ("ruby-yard" ,ruby-yard)))
2783 (synopsis "Ruby library providing basic localization APIs")
2784 (description
2785 "Ruby-Locale is the pure ruby library which provides basic APIs for
2786 localization.")
2787 (home-page "https://github.com/ruby-gettext/locale")
2788 (license (list license:lgpl3+ license:ruby))))
2789
2790 (define-public ruby-temple
2791 (package
2792 (name "ruby-temple")
2793 (version "0.8.2")
2794 (source
2795 (origin
2796 (method url-fetch)
2797 (uri (rubygems-uri "temple" version))
2798 (sha256
2799 (base32
2800 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
2801 (build-system ruby-build-system)
2802 (native-inputs
2803 `(("ruby-tilt" ,ruby-tilt)
2804 ("ruby-bacon" ,ruby-bacon)
2805 ("ruby-erubis" ,ruby-erubis)))
2806 (synopsis "Template compilation framework in Ruby")
2807 (description
2808 "Temple is an abstraction and framework for compiling templates to pure
2809 Ruby.")
2810 (home-page "https://github.com/judofyr/temple")
2811 (license license:expat)))
2812
2813 (define-public ruby-text
2814 (package
2815 (name "ruby-text")
2816 (version "1.3.1")
2817 (source (origin
2818 (method url-fetch)
2819 (uri (rubygems-uri "text" version))
2820 (sha256
2821 (base32
2822 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2823 (build-system ruby-build-system)
2824 (synopsis "Collection of text algorithms for Ruby")
2825 (description
2826 "This package provides a collection of text algorithms: Levenshtein,
2827 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2828 (home-page "https://github.com/threedaymonk/text")
2829 (license license:expat)))
2830
2831 (define-public ruby-gettext
2832 (package
2833 (name "ruby-gettext")
2834 (version "3.1.7")
2835 (source (origin
2836 (method url-fetch)
2837 (uri (rubygems-uri "gettext" version))
2838 (sha256
2839 (base32
2840 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2841 (build-system ruby-build-system)
2842 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2843 ;; which needs ruby-gettext. To break the dependency cycle we disable
2844 ;; tests.
2845 (arguments `(#:tests? #f))
2846 (propagated-inputs
2847 `(("ruby-locale" ,ruby-locale)
2848 ("ruby-text" ,ruby-text)))
2849 (native-inputs
2850 `(("bundler" ,bundler)
2851 ("ruby-yard" ,ruby-yard)))
2852 (synopsis "GNU gettext-like program for Ruby")
2853 (description
2854 "Gettext is a GNU gettext-like program for Ruby. The catalog
2855 file (po-file) used is the same as that used by GNU gettext, allowing you to
2856 use GNU gettext tools for maintenance.")
2857 (home-page "https://ruby-gettext.github.com/")
2858 (license (list license:lgpl3+ license:ruby))))
2859
2860 (define-public ruby-packnga
2861 (package
2862 (name "ruby-packnga")
2863 (version "1.0.4")
2864 (source (origin
2865 (method url-fetch)
2866 (uri (rubygems-uri "packnga" version))
2867 (sha256
2868 (base32
2869 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2870 (build-system ruby-build-system)
2871 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2872 ;; To break the dependency cycle we disable tests.
2873 (arguments `(#:tests? #f))
2874 (propagated-inputs
2875 `(("ruby-gettext" ,ruby-gettext)
2876 ("ruby-yard" ,ruby-yard)))
2877 (native-inputs
2878 `(("bundler" ,bundler)))
2879 (synopsis "Utility library to package internationalized libraries")
2880 (description
2881 "Packnga is a library to translate to many languages using YARD.")
2882 (home-page "http://ranguba.org/packnga/")
2883 (license license:lgpl2.0+)))
2884
2885 (define-public ruby-test-construct
2886 (package
2887 (name "ruby-test-construct")
2888 (version "2.0.1")
2889 (source
2890 (origin
2891 (method url-fetch)
2892 (uri (rubygems-uri "test_construct" version))
2893 (sha256
2894 (base32
2895 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2896 (build-system ruby-build-system)
2897 (native-inputs
2898 `(("bundler" ,bundler)
2899 ("ruby-mocha" ,ruby-mocha)
2900 ("ruby-rspec" ,ruby-rspec)))
2901 (synopsis "Creates temporary files and directories for testing")
2902 (description
2903 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2904 temporary files and directories during tests.")
2905 (home-page "https://github.com/bhb/test_construct")
2906 (license license:expat)))
2907
2908 (define-public ruby-test-unit
2909 (package
2910 (name "ruby-test-unit")
2911 (version "3.2.5")
2912 (source (origin
2913 (method url-fetch)
2914 (uri (rubygems-uri "test-unit" version))
2915 (sha256
2916 (base32
2917 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2918 (build-system ruby-build-system)
2919 (propagated-inputs
2920 `(("ruby-power-assert" ,ruby-power-assert)))
2921 (native-inputs
2922 `(("bundler" ,bundler)
2923 ("ruby-packnga" ,ruby-packnga)
2924 ("ruby-yard" ,ruby-yard)))
2925 (synopsis "Unit testing framework for Ruby")
2926 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2927 on xUnit principles. These were originally designed by Kent Beck, creator of
2928 extreme programming software development methodology, for Smalltalk's SUnit.
2929 It allows writing tests, checking results and automated testing in Ruby.")
2930 (home-page "https://test-unit.github.io/")
2931 (license (list license:psfl license:ruby))))
2932
2933 (define-public ruby-markaby
2934 (package
2935 (name "ruby-markaby")
2936 (version "0.9.0")
2937 (source
2938 (origin
2939 (method url-fetch)
2940 (uri (rubygems-uri "markaby" version))
2941 (sha256
2942 (base32
2943 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2944 (build-system ruby-build-system)
2945 (arguments
2946 '(#:phases
2947 (modify-phases %standard-phases
2948 ;; Run rspec manually without using the Rakefile, as the versions of
2949 ;; Rake and RSpec 2 are incompatible:
2950 ;;
2951 ;; NoMethodError: undefined method `last_comment'
2952 (replace 'check
2953 (lambda* (#:key tests? #:allow-other-keys)
2954 (when tests?
2955 (invoke "rspec"))
2956 #t)))))
2957 (propagated-inputs
2958 `(("ruby-builder" ,ruby-builder)))
2959 (native-inputs
2960 `(("bundler" ,bundler)
2961 ("ruby-rspec" ,ruby-rspec-2)))
2962 (synopsis "Write HTML pages in pure Ruby")
2963 (description
2964 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2965 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2966 mixture of HTML and additional ERB syntax.")
2967 (home-page "https://markaby.github.io/")
2968 (license license:expat)))
2969
2970 (define-public ruby-maruku
2971 (package
2972 (name "ruby-maruku")
2973 (version "0.7.3")
2974 (source
2975 (origin
2976 (method url-fetch)
2977 (uri (rubygems-uri "maruku" version))
2978 (sha256
2979 (base32
2980 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2981 (build-system ruby-build-system)
2982 (arguments
2983 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2984 #:tests? #f
2985 #:phases
2986 (modify-phases %standard-phases
2987 (replace 'check
2988 (lambda* (#:key tests? #:allow-other-keys)
2989 (when tests?
2990 (invoke "rspec"))
2991 #t)))))
2992 (native-inputs
2993 `(("ruby-rspec" ,ruby-rspec)
2994 ("ruby-simplecov" ,ruby-simplecov)
2995 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2996 (synopsis "Markdown interpreter in Ruby")
2997 (description
2998 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2999 HTML, and PDF through LaTeX.")
3000 (home-page "https://github.com/bhollis/maruku")
3001 (license license:expat)))
3002
3003 (define-public ruby-metaclass
3004 (package
3005 (name "ruby-metaclass")
3006 (version "0.0.4")
3007 (source (origin
3008 (method url-fetch)
3009 (uri (rubygems-uri "metaclass" version))
3010 (sha256
3011 (base32
3012 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3013 (build-system ruby-build-system)
3014 (arguments
3015 `(#:phases
3016 (modify-phases %standard-phases
3017 (add-after 'unpack 'add-test-unit-to-search-path
3018 (lambda* (#:key inputs #:allow-other-keys)
3019 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3020 (substitute* "Rakefile"
3021 (("t\\.libs << \"test\"" line)
3022 (string-append line "; t.libs << \""
3023 test-unit "/lib/ruby/vendor_ruby"
3024 "/gems/test-unit-"
3025 ,(package-version ruby-test-unit)
3026 "/lib\""))))
3027 #t)))))
3028 (native-inputs
3029 `(("bundler" ,bundler)
3030 ("ruby-test-unit" ,ruby-test-unit)))
3031 (synopsis "Ruby library adding metaclass method to all objects")
3032 (description
3033 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3034 objects.")
3035 (home-page "https://github.com/floehopper/metaclass")
3036 (license license:expat)))
3037
3038 (define-public ruby-mkmf-lite
3039 (package
3040 (name "ruby-mkmf-lite")
3041 (version "0.3.2")
3042 (source (origin
3043 (method url-fetch)
3044 (uri (rubygems-uri "mkmf-lite" version))
3045 (sha256
3046 (base32
3047 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3048 (build-system ruby-build-system)
3049 (propagated-inputs
3050 `(("ruby-ptools" ,ruby-ptools)))
3051 (synopsis "Lightweight alternative to @code{mkmf}")
3052 (description
3053 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3054 for use as a library. It does not create packages, builds, or log files of
3055 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3056 to check for the presence of header files, constants, and so on.")
3057 (home-page "https://github.com/djberg96/mkmf-lite")
3058 (license license:asl2.0)))
3059
3060 (define-public ruby-mspec
3061 (package
3062 (name "ruby-mspec")
3063 (version "1.9.1")
3064 (source
3065 (origin
3066 (method url-fetch)
3067 (uri (rubygems-uri "mspec" version))
3068 (sha256
3069 (base32
3070 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3071 (build-system ruby-build-system)
3072 (arguments
3073 '(;; TODO: 3 test failures
3074 ;; ./spec/mocks/mock_spec.rb:82
3075 ;; ./spec/utils/name_map_spec.rb:151
3076 ;; ./spec/utils/name_map_spec.rb:155
3077 #:tests? #f
3078 #:phases
3079 (modify-phases %standard-phases
3080 (add-after 'extract-gemspec 'change-dependency-constraints
3081 (lambda _
3082 (substitute* "mspec.gemspec"
3083 (("rake.*") "rake>)\n")
3084 (("rspec.*") "rspec>)\n"))
3085 #t))
3086 (replace 'check
3087 (lambda* (#:key tests? #:allow-other-keys)
3088 (when tests?
3089 (invoke "rspec" "spec"))
3090 #t)))))
3091 (native-inputs
3092 `(("bundler" ,bundler)
3093 ("ruby-rake" ,ruby-rake)
3094 ("ruby-rspec" ,ruby-rspec)))
3095 (synopsis "MSpec is a specialized framework for RubySpec")
3096 (description
3097 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3098 for basic features. MSpec contains additional features that assist in writing
3099 specs for Ruby implementations in ruby/spec.")
3100 (home-page "http://rubyspec.org")
3101 (license license:expat)))
3102
3103 (define-public ruby-mysql2
3104 (package
3105 (name "ruby-mysql2")
3106 (version "0.5.2")
3107 (source
3108 (origin
3109 (method git-fetch)
3110 (uri (git-reference
3111 (url "https://github.com/brianmario/mysql2")
3112 (commit version)))
3113 (file-name (git-file-name name version))
3114 (sha256
3115 (base32
3116 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3117 (build-system ruby-build-system)
3118 (arguments
3119 '(;; TODO: Tests require a running MySQL/MariaDB service
3120 #:tests? #f
3121 #:phases
3122 (modify-phases %standard-phases
3123 (replace 'replace-git-ls-files
3124 (lambda _
3125 (substitute* "mysql2.gemspec"
3126 (("git ls-files .*`") "find . -type f |sort`"))
3127 #t))
3128 (add-before 'install 'set-MAKEFLAGS
3129 (lambda* (#:key outputs #:allow-other-keys)
3130 (setenv "MAKEFLAGS"
3131 (string-append
3132 "V=1 "
3133 "prefix=" (assoc-ref outputs "out")))
3134 #t))
3135 ;; Move the 'check phase to after 'install, as then you can test
3136 ;; using the installed mysql2 gem in the store.
3137 (delete 'check)
3138 (add-after 'install 'check
3139 (lambda* (#:key outputs tests? #:allow-other-keys)
3140 (setenv "GEM_PATH"
3141 (string-append
3142 (getenv "GEM_PATH")
3143 ":"
3144 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3145 (when tests?
3146 (invoke "rspec"))
3147 #t)))))
3148 (inputs
3149 `(("mariadb" ,mariadb "lib")
3150 ("mariadb-dev" ,mariadb "dev")
3151 ("zlib" ,zlib)))
3152 (native-inputs
3153 `(("ruby-rspec" ,ruby-rspec)
3154 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3155 (synopsis "MySQL library for Ruby, binding to libmysql")
3156 (description
3157 "This package provides a simple, fast MySQL library for Ruby, binding to
3158 libmysql.")
3159 (home-page "https://github.com/brianmario/mysql2")
3160 (license license:expat)))
3161
3162 (define-public ruby-blankslate
3163 (package
3164 (name "ruby-blankslate")
3165 (version "3.1.3")
3166 (source (origin
3167 (method url-fetch)
3168 (uri (rubygems-uri "blankslate" version))
3169 (sha256
3170 (base32
3171 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3172 (build-system ruby-build-system)
3173 (arguments
3174 `(#:phases
3175 (modify-phases %standard-phases
3176 (replace 'check
3177 (lambda _ (invoke "rspec" "spec/"))))))
3178 (native-inputs
3179 `(("bundler" ,bundler)
3180 ("ruby-rspec" ,ruby-rspec)))
3181 (synopsis "Abstract base class with no predefined methods")
3182 (description
3183 "BlankSlate provides an abstract base class with no predefined
3184 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3185 as a base class when writing classes that depend upon
3186 @code{method_missing} (e.g. dynamic proxies).")
3187 (home-page "https://github.com/masover/blankslate")
3188 (license license:expat)))
3189
3190 (define-public ruby-bond
3191 (package
3192 (name "ruby-bond")
3193 (version "0.5.1")
3194 (source
3195 (origin
3196 (method url-fetch)
3197 (uri (rubygems-uri "bond" version))
3198 (sha256
3199 (base32
3200 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3201 (build-system ruby-build-system)
3202 (native-inputs
3203 `(("ruby-bacon" ,ruby-bacon)
3204 ("ruby-bacon-bits" ,ruby-bacon-bits)
3205 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3206 (synopsis "Bond can provide custom autocompletion for arguments, methods
3207 and more")
3208 (description
3209 "Bond can autocomplete argument(s) to methods, uniquely completing per
3210 module, per method and per argument. Bond provides a configuration system and
3211 a DSL for creating custom completions and completion rules. Bond can also
3212 load completions that ship with gems. Bond is able to offer more than irb's
3213 completion since it uses the full line of input when completing as opposed to
3214 irb's last-word approach.")
3215 (home-page "http://tagaholic.me/bond/")
3216 (license license:expat)))
3217
3218 (define-public ruby-idn-ruby
3219 (package
3220 (name "ruby-idn-ruby")
3221 (version "0.1.0")
3222 (source
3223 (origin
3224 (method url-fetch)
3225 (uri (rubygems-uri "idn-ruby" version))
3226 (sha256
3227 (base32
3228 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3229 (build-system ruby-build-system)
3230 (arguments
3231 '(#:phases
3232 (modify-phases %standard-phases
3233 (delete 'check)
3234 (add-after 'install 'check
3235 (lambda* (#:key tests? outputs #:allow-other-keys)
3236 (when tests?
3237 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3238 (name-and-version (basename gem-file ".gem")))
3239 (apply invoke
3240 "ruby" "--verbose"
3241 (string-append "-I"
3242 (assoc-ref outputs "out")
3243 "/lib/ruby/vendor_ruby/gems/"
3244 name-and-version
3245 "/lib")
3246 (find-files "./test" ".*\\.rb"))))
3247 #t)))))
3248 (inputs
3249 `(("libidn" ,libidn)))
3250 (synopsis "Ruby Bindings for the GNU LibIDN library")
3251 (description
3252 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3253 Stringprep, Punycode and IDNA specifications. These are used to encode and
3254 decode internationalized domain + names according to the IDNA2003
3255 specifications.
3256
3257 Included are the most important parts of the Stringprep, Punycode and IDNA
3258 APIs like performing Stringprep processings, encoding to and decoding from
3259 Punycode strings and converting entire domain names to and from the ACE
3260 encoded form.")
3261 (home-page "https://github.com/deepfryed/idn-ruby")
3262 (license license:asl2.0)))
3263
3264 (define-public ruby-instantiator
3265 (package
3266 (name "ruby-instantiator")
3267 (version "0.0.7")
3268 (source (origin
3269 (method url-fetch)
3270 (uri (rubygems-uri "instantiator" version))
3271 (sha256
3272 (base32
3273 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3274 (build-system ruby-build-system)
3275 (arguments
3276 `(#:phases
3277 (modify-phases %standard-phases
3278 (add-after 'unpack 'add-test-unit-to-search-path
3279 (lambda* (#:key inputs #:allow-other-keys)
3280 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3281 (substitute* "Rakefile"
3282 (("t\\.libs << \"test\"" line)
3283 (string-append line "; t.libs << \""
3284 test-unit "/lib/ruby/vendor_ruby"
3285 "/gems/test-unit-"
3286 ,(package-version ruby-test-unit)
3287 "/lib\""))))
3288 #t)))))
3289 (propagated-inputs
3290 `(("ruby-blankslate" ,ruby-blankslate)))
3291 (native-inputs
3292 `(("bundler" ,bundler)
3293 ("ruby-test-unit" ,ruby-test-unit)))
3294 (synopsis "Instantiate an arbitrary Ruby class")
3295 (description
3296 "Instantiator lets you instantiate an arbitrary Ruby class without
3297 knowing anything about the constructor.")
3298 (home-page "https://github.com/floehopper/instantiator")
3299 (license license:expat)))
3300
3301 (define-public ruby-introspection
3302 (package
3303 (name "ruby-introspection")
3304 (version "0.0.4")
3305 (source (origin
3306 (method url-fetch)
3307 (uri (rubygems-uri "introspection" version))
3308 (sha256
3309 (base32
3310 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3311 (build-system ruby-build-system)
3312 (arguments
3313 `(#:phases
3314 (modify-phases %standard-phases
3315 (add-after 'unpack 'add-test-unit-to-search-path
3316 (lambda* (#:key inputs #:allow-other-keys)
3317 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3318 (substitute* "Rakefile"
3319 (("t\\.libs << \"test\"" line)
3320 (string-append line "; t.libs << \""
3321 test-unit "/lib/ruby/vendor_ruby"
3322 "/gems/test-unit-"
3323 ,(package-version ruby-test-unit)
3324 "/lib\""))))
3325 #t)))))
3326 (propagated-inputs
3327 `(("ruby-instantiator" ,ruby-instantiator)
3328 ("ruby-metaclass" ,ruby-metaclass)))
3329 (native-inputs
3330 `(("bundler" ,bundler)
3331 ("ruby-blankslate" ,ruby-blankslate)
3332 ("ruby-test-unit" ,ruby-test-unit)))
3333 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
3334 (description
3335 "Introspection provides tools to inspect the hierarchy of method
3336 definitions on a Ruby object.")
3337 (home-page "https://github.com/floehopper/introspection")
3338 (license license:expat)))
3339
3340 (define-public ruby-redcarpet
3341 (package
3342 (name "ruby-redcarpet")
3343 (version "3.5.0")
3344 (source (origin
3345 (method url-fetch)
3346 (uri (rubygems-uri "redcarpet" version))
3347 (sha256
3348 (base32
3349 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
3350 (build-system ruby-build-system)
3351 (arguments
3352 `(#:phases
3353 (modify-phases %standard-phases
3354 ;; The gem archive does not include the conformance tests.
3355 (add-after 'unpack 'disable-conformance-tests
3356 (lambda _
3357 (substitute* "Rakefile"
3358 (("task :test => %w\\[test:unit test:conformance\\]")
3359 "task :test => %w[test:unit]"))
3360 #t)))))
3361 (native-inputs
3362 `(("bundler" ,bundler)
3363 ("ruby-test-unit" ,ruby-test-unit)
3364 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3365 (synopsis "Extensible Markdown to (X)HTML converter")
3366 (description
3367 "Redcarpet is an extensible Ruby library for Markdown processing and
3368 conversion to (X)HTML.")
3369 (home-page "https://github.com/vmg/redcarpet")
3370 (license license:expat)))
3371
3372 (define-public ruby-rerun
3373 (package
3374 (name "ruby-rerun")
3375 (version "0.13.0")
3376 (source
3377 (origin
3378 (method url-fetch)
3379 (uri (rubygems-uri "rerun" version))
3380 (sha256
3381 (base32
3382 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
3383 (build-system ruby-build-system)
3384 (arguments
3385 '(#:tests? #f)) ; No included tests
3386 (propagated-inputs
3387 `(("ruby-listen" ,ruby-listen)))
3388 (synopsis "Run a process, and restart when some monitored files change")
3389 (description
3390 "Rerun is a tool to launch programs, then monitor the file system, and
3391 restart the program when any of the monitored files change. It's written in
3392 Ruby, but can be used for all programs.")
3393 (home-page "https://github.com/alexch/rerun/")
3394 (license license:expat)))
3395
3396 (define-public ruby-maxitest
3397 (package
3398 (name "ruby-maxitest")
3399 (version "3.6.0")
3400 (home-page "https://github.com/grosser/maxitest")
3401 (source (origin
3402 ;; Pull from git because the gem does not contain tests.
3403 (method git-fetch)
3404 (uri (git-reference
3405 (url home-page)
3406 (commit (string-append "v" version))))
3407 (file-name (git-file-name name version))
3408 (sha256
3409 (base32
3410 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
3411 (build-system ruby-build-system)
3412 (arguments
3413 '(#:test-target "default"
3414 #:phases (modify-phases %standard-phases
3415 (replace 'replace-git-ls-files
3416 (lambda _
3417 (substitute* "maxitest.gemspec"
3418 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
3419 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
3420 #t))
3421 (add-before 'check 'remove-version-constraints
3422 (lambda _
3423 ;; Don't use specific versions of dependencies, instead
3424 ;; take whatever is available in Guix.
3425 (delete-file "Gemfile.lock")
3426 #t))
3427 (add-before 'check 'add-mtest-on-PATH
3428 (lambda _
3429 ;; Tests use 'mtest' which is not automatically added on
3430 ;; PATH.
3431 (setenv "PATH" (string-append (getcwd) "/bin:"
3432 (getenv "PATH")))
3433 #t)))))
3434 (native-inputs
3435 `(("ps" ,procps)
3436 ("ruby-bump" ,ruby-bump)
3437 ("ruby-byebug" ,ruby-byebug)
3438 ("ruby-rspec" ,ruby-rspec)
3439 ("ruby-wwtd" ,ruby-wwtd)))
3440 (propagated-inputs
3441 `(("ruby-minitest" ,ruby-minitest)))
3442 (synopsis "Minitest with extra features")
3443 (description
3444 "Maxitest is a wrapper around Minitest with extra functionality such
3445 as timeouts, an @command{mtest} executable that can run tests by line
3446 number, support for interrupted tests, better backtraces, and more.")
3447 (license license:expat)))
3448
3449 (define-public ruby-mocha
3450 (package
3451 (name "ruby-mocha")
3452 (version "1.11.2")
3453 (source (origin
3454 (method url-fetch)
3455 (uri (rubygems-uri "mocha" version))
3456 (sha256
3457 (base32
3458 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
3459 (build-system ruby-build-system)
3460 (arguments
3461 `(#:phases
3462 (modify-phases %standard-phases
3463 (add-before 'check 'remove-rubocop-dependency
3464 (lambda _
3465 ;; Disable dependency on Rubocop, which is just a linter,
3466 ;; and would introduce a circular dependency.
3467 (substitute* "mocha.gemspec"
3468 ((".*rubocop.*")
3469 "true\n"))
3470 #t)))))
3471 (native-inputs
3472 `(("ruby-introspection" ,ruby-introspection)))
3473 (synopsis "Mocking and stubbing library for Ruby")
3474 (description
3475 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3476 allows mocking and stubbing of methods on real (non-mock) classes.")
3477 (home-page "http://gofreerange.com/mocha/docs")
3478 ;; Mocha can be used with either license at the users choice.
3479 (license (list license:expat license:ruby))))
3480
3481 (define-public ruby-mocha-on-bacon
3482 (package
3483 (name "ruby-mocha-on-bacon")
3484 (version "0.2.3")
3485 (source
3486 (origin
3487 (method url-fetch)
3488 (uri (rubygems-uri "mocha-on-bacon" version))
3489 (sha256
3490 (base32
3491 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3492 (build-system ruby-build-system)
3493 (arguments
3494 ;; rubygems.org release missing tests
3495 '(#:tests? #f))
3496 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3497 (synopsis "Mocha adapter for Bacon")
3498 (description
3499 "This package provides a Mocha adapter for Bacon, allowing you to use the
3500 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3501 (home-page
3502 "https://github.com/alloy/mocha-on-bacon")
3503 (license license:expat)))
3504
3505 (define-public ruby-net-ssh
3506 (package
3507 (name "ruby-net-ssh")
3508 (version "4.2.0")
3509 (source (origin
3510 (method url-fetch)
3511 (uri (rubygems-uri "net-ssh" version))
3512 (sha256
3513 (base32
3514 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3515 (build-system ruby-build-system)
3516 (native-inputs
3517 `(("bundler" ,bundler)
3518 ("ruby-mocha" ,ruby-mocha)
3519 ("ruby-test-unit" ,ruby-test-unit)))
3520 (synopsis "Ruby implementation of the SSH2 client protocol")
3521 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3522 client protocol. It allows you to write programs that invoke and interact
3523 with processes on remote servers, via SSH2.")
3524 (home-page "https://github.com/net-ssh/net-ssh")
3525 (license license:expat)))
3526
3527 (define-public ruby-net-scp
3528 (package
3529 (name "ruby-net-scp")
3530 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3531 (version "1.2.2.rc2")
3532 (source
3533 (origin
3534 (method git-fetch)
3535 (uri (git-reference
3536 (url "https://github.com/net-ssh/net-scp")
3537 (commit (string-append "v" version))))
3538 (file-name (git-file-name name version))
3539 (sha256
3540 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3541 (build-system ruby-build-system)
3542 (native-inputs
3543 `(("bundler" ,bundler)
3544 ("ruby-test-unit" ,ruby-test-unit)
3545 ("ruby-mocha" ,ruby-mocha)))
3546 (propagated-inputs
3547 `(("ruby-net-ssh" ,ruby-net-ssh)))
3548 (synopsis "Pure-Ruby SCP client library")
3549 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3550 client protocol.")
3551 (home-page "https://github.com/net-ssh/net-scp")
3552 (license license:expat)))
3553
3554 (define-public ruby-minitest
3555 (package
3556 (name "ruby-minitest")
3557 (version "5.11.3")
3558 (source (origin
3559 (method url-fetch)
3560 (uri (rubygems-uri "minitest" version))
3561 (sha256
3562 (base32
3563 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3564 (build-system ruby-build-system)
3565 (native-inputs
3566 `(("ruby-hoe" ,ruby-hoe)))
3567 (synopsis "Small test suite library for Ruby")
3568 (description "Minitest provides a complete suite of Ruby testing
3569 facilities supporting TDD, BDD, mocking, and benchmarking.")
3570 (home-page "https://github.com/seattlerb/minitest")
3571 (license license:expat)))
3572
3573 ;; This is the last release of Minitest 4, which is used by some packages.
3574 (define-public ruby-minitest-4
3575 (package (inherit ruby-minitest)
3576 (version "4.7.5")
3577 (source (origin
3578 (method url-fetch)
3579 (uri (rubygems-uri "minitest" version))
3580 (sha256
3581 (base32
3582 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3583 (arguments
3584 `(#:phases
3585 (modify-phases %standard-phases
3586 (add-after 'unpack 'remove-unsupported-method
3587 (lambda _
3588 (substitute* "Rakefile"
3589 (("self\\.rubyforge_name = .*") ""))
3590 #t))
3591 (add-after 'build 'exclude-failing-tests
3592 (lambda _
3593 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3594 ;; Fixnum.
3595 (delete-file "test/minitest/test_minitest_spec.rb")
3596 #t)))))))
3597
3598 (define-public ruby-minitest-around
3599 (package
3600 (name "ruby-minitest-around")
3601 (version "0.5.0")
3602 (source
3603 (origin
3604 (method url-fetch)
3605 (uri (rubygems-uri "minitest-around" version))
3606 (sha256
3607 (base32
3608 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3609 (build-system ruby-build-system)
3610 (arguments
3611 '(#:phases
3612 (modify-phases %standard-phases
3613 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3614 (lambda _
3615 (substitute* "minitest-around.gemspec"
3616 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3617 #t)))))
3618 (propagated-inputs
3619 `(("ruby-minitest" ,ruby-minitest)))
3620 (native-inputs
3621 `(("bundler" ,bundler)
3622 ("ruby-cucumber" ,ruby-cucumber)
3623 ("ruby-bump" ,ruby-bump)
3624 ("ruby-test-construct" ,ruby-test-construct)))
3625 (synopsis "Run code around tests in Minitest")
3626 (description
3627 "This library provides a way to run code around tests in Minitest,
3628 written using either the unit test or spec style.")
3629 (home-page "https://github.com/splattael/minitest-around")
3630 (license license:expat)))
3631
3632 (define-public ruby-minitest-sprint
3633 (package
3634 (name "ruby-minitest-sprint")
3635 (version "1.1.0")
3636 (source (origin
3637 (method url-fetch)
3638 (uri (rubygems-uri "minitest-sprint" version))
3639 (sha256
3640 (base32
3641 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3642 (build-system ruby-build-system)
3643 (native-inputs
3644 `(("ruby-hoe" ,ruby-hoe)
3645 ("ruby-minitest" ,ruby-minitest)))
3646 (synopsis "Fast test suite runner for minitest")
3647 (description "Minitest-sprint is a test runner for minitest that makes it
3648 easier to re-run individual failing tests.")
3649 (home-page "https://github.com/seattlerb/minitest-sprint")
3650 (license license:expat)))
3651
3652 (define-public ruby-minitest-bacon
3653 (package
3654 (name "ruby-minitest-bacon")
3655 (version "1.0.3")
3656 (source (origin
3657 (method url-fetch)
3658 (uri (rubygems-uri "minitest-bacon" version))
3659 (sha256
3660 (base32
3661 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3662 (build-system ruby-build-system)
3663 (native-inputs
3664 `(("ruby-hoe" ,ruby-hoe)))
3665 (inputs
3666 `(("ruby-minitest" ,ruby-minitest)))
3667 (synopsis "Bacon compatibility library for minitest")
3668 (description "Minitest-bacon extends minitest with bacon-like
3669 functionality, making it easier to migrate test suites from bacon to minitest.")
3670 (home-page "https://github.com/seattlerb/minitest-bacon")
3671 (license license:expat)))
3672
3673 (define-public ruby-minitest-focus
3674 (package
3675 (name "ruby-minitest-focus")
3676 (version "1.1.2")
3677 (source
3678 (origin
3679 (method url-fetch)
3680 (uri (rubygems-uri "minitest-focus" version))
3681 (sha256
3682 (base32
3683 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3684 (build-system ruby-build-system)
3685 (propagated-inputs
3686 `(("ruby-minitest" ,ruby-minitest)))
3687 (native-inputs
3688 `(("ruby-hoe" ,ruby-hoe)))
3689 (synopsis "Allows a few specific tests to be focused on")
3690 (description
3691 "@code{minitest-focus} gives the ability focus on a few tests with ease
3692 without having to use command-line arguments. It introduces a @code{focus}
3693 class method for use in testing classes, specifying that the next defined test
3694 is to be run.")
3695 (home-page "https://github.com/seattlerb/minitest-focus")
3696 (license license:expat)))
3697
3698 (define-public ruby-minitest-pretty-diff
3699 ;; Use git reference because gem is out of date and does not contain testing
3700 ;; script. There are no releases on GitHub.
3701 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3702 (package
3703 (name "ruby-minitest-pretty-diff")
3704 (version (string-append "0.1-1." (string-take commit 8)))
3705 (source (origin
3706 (method git-fetch)
3707 (uri (git-reference
3708 (url "https://github.com/adammck/minitest-pretty_diff")
3709 (commit commit)))
3710 (file-name (string-append name "-" version "-checkout"))
3711 (sha256
3712 (base32
3713 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3714 (build-system ruby-build-system)
3715 (arguments
3716 `(#:phases
3717 (modify-phases %standard-phases
3718 (replace 'check
3719 (lambda _
3720 (invoke "script/test"))))))
3721 (native-inputs
3722 `(("bundler" ,bundler)
3723 ("ruby-turn" ,ruby-turn)))
3724 (synopsis "Pretty-print hashes and arrays in MiniTest")
3725 (description
3726 "@code{minitest-pretty_diff} monkey-patches
3727 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3728 diffing them. This makes it easier to spot differences between nested
3729 structures when tests fail.")
3730 (home-page "https://github.com/adammck/minitest-pretty_diff")
3731 (license license:expat))))
3732
3733 (define-public ruby-minitest-moar
3734 (package
3735 (name "ruby-minitest-moar")
3736 (version "0.0.4")
3737 (source
3738 (origin
3739 (method url-fetch)
3740 (uri (rubygems-uri "minitest-moar" version))
3741 (sha256
3742 (base32
3743 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3744 (build-system ruby-build-system)
3745 (arguments
3746 `(#:phases
3747 (modify-phases %standard-phases
3748 (add-before 'check 'clean-dependencies
3749 (lambda _
3750 ;; Remove all gems defined in the Gemfile because these are not
3751 ;; truly needed.
3752 (substitute* "Gemfile"
3753 (("gem .*") ""))
3754 ;; Remove byebug as not needed to run tests.
3755 (substitute* "test/test_helper.rb"
3756 (("require 'byebug'") ""))
3757 #t)))))
3758 (native-inputs
3759 `(("bundler" ,bundler)
3760 ("ruby-minitest" ,ruby-minitest)))
3761 (synopsis "Extra features and changes to MiniTest")
3762 (description "@code{MiniTest Moar} add some additional features and
3763 changes some default behaviours in MiniTest. For instance, Moar replaces the
3764 MiniTest @code{Object#stub} with a global @code{stub} method.")
3765 (home-page "https://github.com/dockyard/minitest-moar")
3766 (license license:expat)))
3767
3768 (define-public ruby-minitest-bonus-assertions
3769 (package
3770 (name "ruby-minitest-bonus-assertions")
3771 (version "3.0")
3772 (source
3773 (origin
3774 (method url-fetch)
3775 (uri (rubygems-uri "minitest-bonus-assertions" version))
3776 (sha256
3777 (base32
3778 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3779 (build-system ruby-build-system)
3780 (arguments
3781 `(#:phases
3782 (modify-phases %standard-phases
3783 (add-before 'check 'clean-dependencies
3784 (lambda _
3785 ;; Remove unneeded require statement that would entail another
3786 ;; dependency.
3787 (substitute* "test/minitest_config.rb"
3788 (("require 'minitest/bisect'") ""))
3789 #t)))))
3790 (native-inputs
3791 `(("ruby-hoe" ,ruby-hoe)
3792 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3793 ("ruby-minitest-focus" ,ruby-minitest-focus)
3794 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3795 (synopsis "Bonus assertions for @code{Minitest}")
3796 (description
3797 "Minitest bonus assertions provides extra MiniTest assertions. For
3798 instance, it provides @code{assert_true}, @code{assert_false} and
3799 @code{assert_set_equal}.")
3800 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3801 (license license:expat)))
3802
3803 (define-public ruby-minitest-reporters
3804 (package
3805 (name "ruby-minitest-reporters")
3806 (version "1.3.6")
3807 (source
3808 (origin
3809 (method url-fetch)
3810 (uri (rubygems-uri "minitest-reporters" version))
3811 (sha256
3812 (base32
3813 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3814 (build-system ruby-build-system)
3815 (arguments
3816 '(#:phases
3817 (modify-phases %standard-phases
3818 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3819 ;; including it as an input can lead to circular dependencies.
3820 (add-after 'unpack 'remove-rubocop-from-Rakefile
3821 (lambda _
3822 (substitute* "Rakefile"
3823 (("require 'rubocop/rake\\_task'") "")
3824 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3825 #t))
3826 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3827 (lambda _
3828 (substitute* "minitest-reporters.gemspec"
3829 ((".*%q<rubocop>.*") "\n"))
3830 #t)))))
3831 (propagated-inputs
3832 `(("ruby-ansi" ,ruby-ansi)
3833 ("ruby-builder" ,ruby-builder)
3834 ("ruby-minitest" ,ruby-minitest)
3835 ("ruby-progressbar" ,ruby-progressbar)))
3836 (native-inputs
3837 `(("bundler" ,bundler)
3838 ("ruby-maruku" ,ruby-maruku)))
3839 (synopsis "Enhanced reporting for Minitest tests")
3840 (description
3841 "@code{minitest/reporters} provides a custom Minitest runner to improve
3842 how the test state is reported. A number of different reporters are
3843 available, including a spec reporter, progress bar reporter, a HTML
3844 reporter.")
3845 (home-page "https://github.com/kern/minitest-reporters")
3846 (license license:expat)))
3847
3848 (define-public ruby-minitest-rg
3849 (package
3850 (name "ruby-minitest-rg")
3851 (version "5.2.0")
3852 (source
3853 (origin
3854 (method url-fetch)
3855 (uri (rubygems-uri "minitest-rg" version))
3856 (sha256
3857 (base32
3858 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3859 (build-system ruby-build-system)
3860 (arguments
3861 ;; Some tests fail even outside Guix, so disable tests.
3862 ;; https://github.com/blowmage/minitest-rg/issues/12
3863 ;; https://github.com/blowmage/minitest-rg/pull/13
3864 `(#:tests? #f))
3865 (propagated-inputs
3866 `(("ruby-minitest" ,ruby-minitest)))
3867 (synopsis "Coloured output for Minitest")
3868 (description
3869 "@code{minitest-rg} changes the colour of the output from Minitest.")
3870 (home-page "https://blowmage.com/minitest-rg/")
3871 (license license:expat)))
3872
3873 (define-public ruby-minitest-hooks
3874 (package
3875 (name "ruby-minitest-hooks")
3876 (version "1.4.2")
3877 (source
3878 (origin
3879 (method url-fetch)
3880 (uri (rubygems-uri "minitest-hooks" version))
3881 (sha256
3882 (base32
3883 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3884 (build-system ruby-build-system)
3885 (arguments
3886 '(#:test-target "spec"))
3887 (native-inputs
3888 `(("ruby-sequel" ,ruby-sequel)
3889 ("ruby-sqlite3" ,ruby-sqlite3)))
3890 (synopsis "Hooks for the minitest framework")
3891 (description
3892 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3893 @code{around_all} hooks for Minitest. This allows, for instance, running each
3894 suite of specs inside a database transaction, running each spec inside its own
3895 savepoint inside that transaction. This can significantly speed up testing
3896 for specs that share expensive database setup code.")
3897 (home-page "https://github.com/jeremyevans/minitest-hooks")
3898 (license license:expat)))
3899
3900 (define-public ruby-daemons
3901 (package
3902 (name "ruby-daemons")
3903 (version "1.2.5")
3904 (source (origin
3905 (method url-fetch)
3906 (uri (rubygems-uri "daemons" version))
3907 (sha256
3908 (base32
3909 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3910 (build-system ruby-build-system)
3911 (arguments
3912 `(#:tests? #f)) ; no test suite
3913 (synopsis "Daemonize Ruby programs")
3914 (description "Daemons provides a way to wrap existing Ruby scripts to be
3915 run as a daemon and to be controlled by simple start/stop/restart commands.")
3916 (home-page "https://github.com/thuehlinger/daemons")
3917 (license license:expat)))
3918
3919 (define-public ruby-data_uri
3920 (package
3921 (name "ruby-data_uri")
3922 (version "0.1.0")
3923 (source
3924 (origin
3925 (method url-fetch)
3926 (uri (rubygems-uri "data_uri" version))
3927 (sha256
3928 (base32
3929 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3930 (build-system ruby-build-system)
3931 (synopsis "URI class for parsing data URIs")
3932 (description
3933 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3934 embedded inside a URI. The URI::Data class provides support for parsing these
3935 URIs using the normal URI.parse method.")
3936 (home-page "https://github.com/dball/data_uri")
3937 (license license:expat)))
3938
3939 (define-public ruby-deep-merge
3940 (package
3941 (name "ruby-deep-merge")
3942 (version "1.2.1")
3943 (home-page "https://github.com/danielsdeleo/deep_merge")
3944 ;; The Rubygem source does not contain the gemspec required for tests.
3945 (source (origin
3946 (method git-fetch)
3947 (uri (git-reference (url home-page) (commit version)))
3948 (file-name (git-file-name name version))
3949 (sha256
3950 (base32
3951 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
3952 (build-system ruby-build-system)
3953 (native-inputs
3954 `(("ruby-minitest" ,ruby-minitest)))
3955 (synopsis "Recursively merge hashes")
3956 (description
3957 "Deep Merge is a set of utility functions for @code{Hash}. It permits
3958 you to merge elements inside a hash together recursively.")
3959 (license license:expat)))
3960
3961 (define-public ruby-git
3962 (package
3963 (name "ruby-git")
3964 (version "1.3.0")
3965 (source (origin
3966 (method url-fetch)
3967 (uri (rubygems-uri "git" version))
3968 (sha256
3969 (base32
3970 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3971 (build-system ruby-build-system)
3972 (arguments
3973 `(#:tests? #f ; no tests
3974 #:phases (modify-phases %standard-phases
3975 (add-after 'install 'patch-git-binary
3976 (lambda* (#:key inputs outputs #:allow-other-keys)
3977 ;; Make the default git binary an absolute path to the
3978 ;; store.
3979 (let ((git (string-append (assoc-ref inputs "git")
3980 "/bin/git"))
3981 (config (string-append
3982 (assoc-ref outputs "out")
3983 "/lib/ruby/vendor_ruby/gems/git-"
3984 ,version "/lib/git/config.rb")))
3985 (substitute* (list config)
3986 (("'git'")
3987 (string-append "'" git "'")))
3988 #t))))))
3989 (inputs
3990 `(("git" ,git)))
3991 (synopsis "Ruby wrappers for Git")
3992 (description "Ruby/Git is a Ruby library that can be used to create, read
3993 and manipulate Git repositories by wrapping system calls to the git binary.")
3994 (home-page "https://github.com/schacon/ruby-git")
3995 (license license:expat)))
3996
3997 (define-public ruby-hocon
3998 (package
3999 (name "ruby-hocon")
4000 (version "1.3.1")
4001 (home-page "https://github.com/puppetlabs/ruby-hocon")
4002 (source (origin
4003 (method git-fetch)
4004 (uri (git-reference (url home-page) (commit version)))
4005 (file-name (git-file-name name version))
4006 (sha256
4007 (base32
4008 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4009 (build-system ruby-build-system)
4010 (arguments
4011 '(#:phases (modify-phases %standard-phases
4012 (replace 'check
4013 (lambda* (#:key tests? #:allow-other-keys)
4014 (if tests?
4015 (invoke "rspec")
4016 (format #t "test suite not run~%"))
4017 #t)))))
4018 (native-inputs
4019 `(("bundler" ,bundler)
4020 ("ruby-rspec" ,ruby-rspec)))
4021 (synopsis "HOCON config library")
4022 (description
4023 "This package provides Ruby support for the @acronym{HOCON,
4024 Human-Optimized Config Object Notation} configuration file format. It
4025 supports parsing and modifying HOCON and JSON files, and rendering parsed
4026 objects back to a @code{String}.")
4027 (license license:asl2.0)))
4028
4029 (define-public ruby-slop
4030 (package
4031 (name "ruby-slop")
4032 (version "4.5.0")
4033 (source (origin
4034 (method url-fetch)
4035 (uri (rubygems-uri "slop" version))
4036 (sha256
4037 (base32
4038 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4039 (build-system ruby-build-system)
4040 (native-inputs
4041 `(("ruby-minitest" ,ruby-minitest)))
4042 (synopsis "Ruby command line option parser")
4043 (description "Slop provides a Ruby domain specific language for gathering
4044 options and parsing command line flags.")
4045 (home-page "https://github.com/leejarvis/slop")
4046 (license license:expat)))
4047
4048 (define-public ruby-slop-3
4049 (package (inherit ruby-slop)
4050 (version "3.6.0")
4051 (source (origin
4052 (method url-fetch)
4053 (uri (rubygems-uri "slop" version))
4054 (sha256
4055 (base32
4056 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4057
4058 (define-public ruby-multi-xml
4059 (package
4060 (name "ruby-multi-xml")
4061 (version "0.6.0")
4062 (source
4063 (origin
4064 (method url-fetch)
4065 (uri (rubygems-uri "multi_xml" version))
4066 (sha256
4067 (base32
4068 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4069 (build-system ruby-build-system)
4070 (arguments
4071 '(#:tests? #f)) ; No included tests
4072 (synopsis "Swappable XML backends for Ruby")
4073 (description
4074 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4075 Nokogiri, Ox, or REXML.")
4076 (home-page "https://github.com/sferik/multi_xml")
4077 (license license:expat)))
4078
4079 (define-public ruby-multipart-post
4080 (package
4081 (name "ruby-multipart-post")
4082 (version "2.0.0")
4083 (source (origin
4084 (method url-fetch)
4085 (uri (rubygems-uri "multipart-post" version))
4086 (sha256
4087 (base32
4088 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4089 (build-system ruby-build-system)
4090 (native-inputs
4091 `(("bundler" ,bundler)))
4092 (synopsis "Multipart POST library for Ruby")
4093 (description "Multipart-Post Adds multipart POST capability to Ruby's
4094 net/http library.")
4095 (home-page "https://github.com/nicksieger/multipart-post")
4096 (license license:expat)))
4097
4098 (define-public ruby-multi-json
4099 (package
4100 (name "ruby-multi-json")
4101 (version "1.13.1")
4102 (source
4103 (origin
4104 (method git-fetch)
4105 ;; Tests are not distributed at rubygems.org so download from GitHub
4106 ;; instead.
4107 (uri (git-reference
4108 (url "https://github.com/intridea/multi_json")
4109 (commit (string-append "v" version))))
4110 (file-name (git-file-name name version))
4111 (sha256
4112 (base32
4113 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4114 (build-system ruby-build-system)
4115 (arguments
4116 `(#:phases
4117 (modify-phases %standard-phases
4118 (add-after 'unpack 'remove-signing-key-reference
4119 (lambda _
4120 (substitute* "multi_json.gemspec"
4121 ((".*spec.signing_key.*") ""))
4122 #t)))))
4123 (native-inputs
4124 `(("bundler" ,bundler)
4125 ("ruby-rspec" ,ruby-rspec)
4126 ("ruby-yard" ,ruby-yard)
4127 ("ruby-json-pure" ,ruby-json-pure)
4128 ("ruby-oj" ,ruby-oj)
4129 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4130 (synopsis "Common interface to multiple JSON libraries for Ruby")
4131 (description
4132 "This package provides a common interface to multiple JSON libraries,
4133 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4134 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4135 (home-page "https://github.com/intridea/multi_json")
4136 (license license:expat)))
4137
4138 (define-public ruby-multi-test
4139 (package
4140 (name "ruby-multi-test")
4141 (version "0.1.2")
4142 (source
4143 (origin
4144 (method url-fetch)
4145 (uri (rubygems-uri "multi_test" version))
4146 (sha256
4147 (base32
4148 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4149 (build-system ruby-build-system)
4150 (arguments
4151 '(;; Tests require different sets of specific gem versions to be available,
4152 ;; and there is no gemfile that specifies the newest versions of
4153 ;; dependencies to be tested.
4154 #:tests? #f))
4155 (synopsis
4156 "Interface to testing libraries loaded into a running Ruby process")
4157 (description
4158 "@code{multi_test} provides a uniform interface onto whatever testing
4159 libraries that have been loaded into a running Ruby process to help control
4160 rogue test/unit/autorun requires.")
4161 (home-page "https://github.com/cucumber/multi_test")
4162 (license license:expat)))
4163
4164 (define-public ruby-arel
4165 (package
4166 (name "ruby-arel")
4167 (version "9.0.0")
4168 (source (origin
4169 (method url-fetch)
4170 (uri (rubygems-uri "arel" version))
4171 (sha256
4172 (base32
4173 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4174 (build-system ruby-build-system)
4175 (arguments '(#:tests? #f)) ; no tests
4176 (home-page "https://github.com/rails/arel")
4177 (synopsis "SQL AST manager for Ruby")
4178 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4179 Ruby. It simplifies the generation of complex SQL queries and adapts to
4180 various relational database implementations.")
4181 (license license:expat)))
4182
4183 (define-public ruby-marcel
4184 (package
4185 (name "ruby-marcel")
4186 (version "0.3.3")
4187 (source
4188 (origin
4189 (method url-fetch)
4190 (uri (rubygems-uri "marcel" version))
4191 (sha256
4192 (base32
4193 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4194 (build-system ruby-build-system)
4195 (arguments
4196 '(;; No included tests
4197 #:tests? #f))
4198 (propagated-inputs
4199 `(("ruby-mimemagic" ,ruby-mimemagic)))
4200 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4201 (description
4202 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4203 Extensions} type detection using magic numbers, filenames, and extensions")
4204 (home-page "https://github.com/basecamp/marcel")
4205 (license license:expat)))
4206
4207 (define-public ruby-minitar
4208 ;; We package from the GitHub source to fix the security issue reported at
4209 ;; https://github.com/halostatue/minitar/issues/16.
4210 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4211 (package
4212 (name "ruby-minitar")
4213 (version (string-append "0.5.4-1." (string-take commit 8)))
4214 (source
4215 (origin
4216 (method git-fetch)
4217 (uri (git-reference
4218 (url "https://github.com/halostatue/minitar")
4219 (commit commit)))
4220 (file-name (string-append name "-" version "-checkout"))
4221 (sha256
4222 (base32
4223 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4224 (build-system ruby-build-system)
4225 (arguments
4226 '(#:tests? #f)) ; missing a gemspec
4227 (synopsis "Ruby library and utility for handling tar archives")
4228 (description
4229 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4230 that provides the ability to deal with POSIX tar archive files.")
4231 (home-page "http://www.github.com/atoulme/minitar")
4232 (license (list license:gpl2+ license:ruby)))))
4233
4234 (define-public ruby-mini-portile
4235 (package
4236 (name "ruby-mini-portile")
4237 (version "0.6.2")
4238 (source
4239 (origin
4240 (method url-fetch)
4241 (uri (rubygems-uri "mini_portile" version))
4242 (sha256
4243 (base32
4244 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4245 (build-system ruby-build-system)
4246 (arguments
4247 '(#:tests? #f)) ; tests require network access
4248 (synopsis "Ports system for Ruby developers")
4249 (description "Mini-portile is a port/recipe system for Ruby developers.
4250 It provides a standard way to compile against specific versions of libraries
4251 to reproduce user environments.")
4252 (home-page "https://github.com/flavorjones/mini_portile")
4253 (license license:expat)))
4254
4255 (define-public ruby-mini-portile-2
4256 (package (inherit ruby-mini-portile)
4257 (version "2.4.0")
4258 (source (origin
4259 (method url-fetch)
4260 (uri (rubygems-uri "mini_portile2" version))
4261 (sha256
4262 (base32
4263 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4264
4265 (define-public ruby-nokogiri
4266 (package
4267 (name "ruby-nokogiri")
4268 (version "1.10.9")
4269 (source (origin
4270 (method url-fetch)
4271 (uri (rubygems-uri "nokogiri" version))
4272 (sha256
4273 (base32
4274 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4275 (build-system ruby-build-system)
4276 (arguments
4277 ;; Tests fail because Nokogiri can only test with an installed extension,
4278 ;; and also because many test framework dependencies are missing.
4279 `(#:tests? #f
4280 #:gem-flags (list "--" "--use-system-libraries"
4281 (string-append "--with-xml2-include="
4282 (assoc-ref %build-inputs "libxml2")
4283 "/include/libxml2" ))
4284 #:phases
4285 (modify-phases %standard-phases
4286 (add-before 'build 'patch-extconf
4287 ;; 'pkg-config' is not included in the GEM_PATH during
4288 ;; installation, so we add it directly to the load path.
4289 (lambda* (#:key inputs #:allow-other-keys)
4290 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4291 (substitute* "ext/nokogiri/extconf.rb"
4292 (("gem 'pkg-config'.*")
4293 (string-append "$:.unshift '"
4294 pkg-config "/lib/ruby/vendor_ruby"
4295 "/gems/pkg-config-"
4296 ,(package-version ruby-pkg-config)
4297 "/lib'\n"))))
4298 #t)))))
4299 (native-inputs
4300 `(("ruby-hoe" ,ruby-hoe)))
4301 (inputs
4302 `(("zlib" ,zlib)
4303 ("libxml2" ,libxml2)
4304 ("libxslt" ,libxslt)))
4305 (propagated-inputs
4306 `(("ruby-mini-portile" ,ruby-mini-portile-2)
4307 ("ruby-pkg-config" ,ruby-pkg-config)))
4308 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
4309 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
4310 both CSS3 selector and XPath 1.0 support.")
4311 (home-page "http://www.nokogiri.org/")
4312 (license license:expat)))
4313
4314 (define-public ruby-method-source
4315 (package
4316 (name "ruby-method-source")
4317 (version "1.0.0")
4318 (source
4319 (origin
4320 (method url-fetch)
4321 (uri (rubygems-uri "method_source" version))
4322 (sha256
4323 (base32
4324 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
4325 (build-system ruby-build-system)
4326 (arguments
4327 `(#:test-target "spec"))
4328 (native-inputs
4329 `(("ruby-rspec" ,ruby-rspec)
4330 ("git" ,git)))
4331 (synopsis "Retrieve the source code for Ruby methods")
4332 (description "Method_source retrieves the source code for Ruby methods.
4333 Additionally, it can extract source code from Proc and Lambda objects or just
4334 extract comments.")
4335 (home-page "https://github.com/banister/method_source")
4336 (license license:expat)))
4337
4338 (define-public ruby-coderay
4339 (package
4340 (name "ruby-coderay")
4341 (version "1.1.2")
4342 (source
4343 (origin
4344 (method url-fetch)
4345 (uri (rubygems-uri "coderay" version))
4346 (sha256
4347 (base32
4348 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
4349 (build-system ruby-build-system)
4350 (arguments
4351 '(#:tests? #f)) ; missing test files
4352 (synopsis "Ruby syntax highlighting library")
4353 (description "Coderay is a Ruby library that provides syntax highlighting
4354 for select languages.")
4355 (home-page "http://coderay.rubychan.de")
4356 (license license:expat)))
4357
4358 (define-public ruby-cuke-modeler
4359 (package
4360 (name "ruby-cuke-modeler")
4361 (version "3.1.0")
4362 (source
4363 (origin
4364 (method url-fetch)
4365 (uri (rubygems-uri "cuke_modeler" version))
4366 (sha256
4367 (base32
4368 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
4369 (build-system ruby-build-system)
4370 (arguments `(#:tests? #f)) ;no test suite in gem
4371 (propagated-inputs
4372 `(("ruby-gherkin" ,ruby-gherkin)))
4373 (synopsis "Gherkin test suite analysis tool")
4374 (description "CukeModeler facilitates modeling a test suite that is
4375 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
4376 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
4377 the @code{cucumber-gherkin} generates when parsing features, as well as
4378 providing models for feature files and directories in order to be able to have
4379 a fully traversable model tree of a test suite's structure. These models can
4380 then be analyzed or manipulated more easily than the underlying AST layer.")
4381 (home-page "https://github.com/enkessler/cuke_modeler")
4382 (license license:expat)))
4383
4384 (define-public ruby-parallel-tests
4385 (package
4386 (name "ruby-parallel-tests")
4387 (version "3.0.0")
4388 (home-page "https://github.com/grosser/parallel_tests")
4389 (source (origin
4390 (method git-fetch)
4391 (uri (git-reference
4392 (url home-page)
4393 (commit (string-append "v" version))))
4394 (file-name (string-append name version))
4395 (sha256
4396 (base32
4397 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
4398 (build-system ruby-build-system)
4399 (arguments
4400 '(#:test-target "default"
4401 #:phases (modify-phases %standard-phases
4402 (add-after 'patch-source-shebangs 'patch-shell-invokations
4403 (lambda _
4404 (substitute* '("lib/parallel_tests/tasks.rb"
4405 "spec/parallel_tests/tasks_spec.rb")
4406 (("/bin/sh") (which "sh"))
4407 (("/bin/bash") (which "bash")))
4408 #t))
4409 (add-before 'check 'remove-version-constraints
4410 (lambda _
4411 ;; Remove hard coded version constraints, instead just
4412 ;; use whatever versions are available in Guix.
4413 (delete-file "Gemfile.lock")
4414 (substitute* "Gemfile"
4415 (("'minitest',.*")
4416 "'minitest'\n")
4417 (("'cucumber',.*")
4418 "'cucumber'\n"))
4419 #t))
4420 (add-before 'check 'disable-rails-test
4421 (lambda _
4422 ;; XXX: This test attempts to download and run the test
4423 ;; suites of multiple Rails versions(!) directly.
4424 (delete-file "spec/rails_spec.rb")
4425 #t))
4426 (add-before 'check 'set-HOME
4427 (lambda _
4428 ;; Some tests check the output of Bundler, and fail when
4429 ;; Bundler warns that /homeless-shelter does not exist.
4430 (setenv "HOME" "/tmp")
4431 #t)))))
4432 (native-inputs
4433 `(("ruby-bump" ,ruby-bump)
4434 ("ruby-cucumber" ,ruby-cucumber)
4435 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
4436 ("ruby-minitest" ,ruby-minitest)
4437 ("ruby-rake" ,ruby-rake)
4438 ("ruby-rspec" ,ruby-rspec)
4439 ("ruby-spinach" ,ruby-spinach)))
4440 (propagated-inputs
4441 `(("ruby-parallel" ,ruby-parallel)))
4442 (synopsis "Run tests in parallel")
4443 (description
4444 "This package can speed up @code{Test::Unit}, @code{RSpec},
4445 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
4446 across multiple CPU cores.")
4447 (license license:expat)))
4448
4449 (define-public ruby-parser
4450 (package
4451 (name "ruby-parser")
4452 (version "2.6.0.0")
4453 (source
4454 (origin
4455 (method url-fetch)
4456 (uri (rubygems-uri "parser" version))
4457 (sha256
4458 (base32
4459 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
4460 (build-system ruby-build-system)
4461 (native-inputs
4462 `(("bundler" ,bundler)
4463 ("ruby-cliver" ,ruby-cliver)
4464 ("ruby-simplecov" ,ruby-simplecov)
4465 ("ruby-racc" ,ruby-racc)))
4466 (inputs
4467 `(("ragel" ,ragel)))
4468 (propagated-inputs
4469 `(("ruby-ast" ,ruby-ast)))
4470 (synopsis "Ruby parser written in pure Ruby")
4471 (description
4472 "This package provides a Ruby parser written in pure Ruby.")
4473 (home-page "https://github.com/whitequark/parser")
4474 (license license:expat)))
4475
4476 (define-public ruby-sexp-processor
4477 (package
4478 (name "ruby-sexp-processor")
4479 (version "4.15.0")
4480 (source
4481 (origin
4482 (method url-fetch)
4483 (uri (rubygems-uri "sexp_processor" version))
4484 (sha256
4485 (base32
4486 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
4487 (build-system ruby-build-system)
4488 (native-inputs
4489 ;; TODO: Add ruby-minitest-proveit once available.
4490 `(("hoe" ,ruby-hoe)))
4491 (synopsis "ParseTree fork which includes generic S-exp processing tools")
4492 (description "The sexp_processor package is derived from ParseTree, but
4493 contrary to ParseTree, it includes all the generic S-exp processing tools.
4494 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
4495 @code{Environment}")
4496 (home-page "https://github.com/seattlerb/sexp_processor")
4497 (license license:expat)))
4498
4499 (define-public ruby-ruby-parser
4500 (package
4501 (name "ruby-ruby-parser")
4502 (version "3.14.2")
4503 (source
4504 (origin
4505 (method url-fetch)
4506 (uri (rubygems-uri "ruby_parser" version))
4507 (sha256
4508 (base32
4509 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
4510 (build-system ruby-build-system)
4511 (native-inputs
4512 `(("hoe" ,ruby-hoe)
4513 ("racc" ,ruby-racc)
4514 ("unifdef" ,unifdef)))
4515 (propagated-inputs
4516 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
4517 (home-page "https://github.com/seattlerb/ruby_parser/")
4518 (synopsis "Ruby parser written in pure Ruby")
4519 (description "The ruby_parser (RP) package provides a Ruby parser written
4520 in pure Ruby. It outputs S-expressions which can be manipulated and converted
4521 back to Ruby via the @code{ruby2ruby} library.")
4522 (license license:expat)))
4523
4524 (define-public ruby-prawn-manual-builder
4525 (package
4526 (name "ruby-prawn-manual-builder")
4527 (version "0.3.1")
4528 (source
4529 (origin
4530 (method url-fetch)
4531 (uri (rubygems-uri "prawn-manual_builder" version))
4532 (sha256
4533 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
4534 (build-system ruby-build-system)
4535 (arguments
4536 '(#:tests? #f ; no included tests
4537 #:phases
4538 (modify-phases %standard-phases
4539 (add-after 'extract-gemspec 'patch-gemspec
4540 (lambda _
4541 (substitute* ".gemspec"
4542 ;; Loosen the requirement for pdf-inspector
4543 (("~> 1\\.0\\.7") ">= 0")))))))
4544 (propagated-inputs
4545 `(("ruby-coderay" ,ruby-coderay)))
4546 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
4547 (description
4548 "This package provides a tool for writing manuals for Prawn and Prawn
4549 accessories")
4550 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
4551 (license (list
4552 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
4553 license:gpl2
4554 license:gpl3))))
4555
4556 (define-public ruby-progress_bar
4557 (package
4558 (name "ruby-progress_bar")
4559 (version "1.1.0")
4560 (source
4561 (origin
4562 (method url-fetch)
4563 (uri (rubygems-uri "progress_bar" version))
4564 (sha256
4565 (base32
4566 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
4567 (build-system ruby-build-system)
4568 (arguments
4569 '(#:test-target "spec"))
4570 (propagated-inputs
4571 `(("ruby-highline" ,ruby-highline)
4572 ("ruby-options" ,ruby-options)))
4573 (native-inputs
4574 `(("bundler" ,bundler)
4575 ("ruby-rspec" ,ruby-rspec)
4576 ("ruby-timecop" ,ruby-timecop)))
4577 (synopsis
4578 "Ruby library for displaying progress bars")
4579 (description
4580 "ProgressBar is a simple library for displaying progress bars. The
4581 maximum value is configurable, and additional information can be displayed
4582 like the percentage completion, estimated time remaining, elapsed time and
4583 rate.")
4584 (home-page "https://github.com/paul/progress_bar")
4585 (license license:wtfpl2)))
4586
4587 (define-public ruby-dep
4588 (package
4589 (name "ruby-dep")
4590 (version "1.5.0")
4591 (source
4592 (origin
4593 (method url-fetch)
4594 (uri (rubygems-uri "ruby_dep" version))
4595 (sha256
4596 (base32
4597 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
4598 (build-system ruby-build-system)
4599 (arguments
4600 '(#:tests? #f)) ; No included tests
4601 (synopsis "Creates a version constraint of supported Rubies")
4602 (description
4603 "This package helps create a version constraint of supported Rubies,
4604 suitable for a gemspec file.")
4605 (home-page "https://github.com/e2/ruby_dep")
4606 (license license:expat)))
4607
4608 (define-public ruby-progressbar
4609 (package
4610 (name "ruby-progressbar")
4611 (version "1.10.1")
4612 (source
4613 (origin
4614 (method url-fetch)
4615 (uri (rubygems-uri "ruby-progressbar" version))
4616 (sha256
4617 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
4618 (build-system ruby-build-system)
4619 (arguments
4620 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
4621 #:tests? #f))
4622 (synopsis "Text progress bar library for Ruby")
4623 (description
4624 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
4625 The output can be customized with a formatting system.")
4626 (home-page "https://github.com/jfelchner/ruby-progressbar")
4627 (license license:expat)))
4628
4629 (define-public ruby-pry
4630 (package
4631 (name "ruby-pry")
4632 (version "0.13.1")
4633 (source
4634 (origin
4635 (method url-fetch)
4636 (uri (rubygems-uri "pry" version))
4637 (sha256
4638 (base32
4639 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
4640 (build-system ruby-build-system)
4641 (arguments
4642 '(#:tests? #f)) ; no tests
4643 (propagated-inputs
4644 `(("ruby-coderay" ,ruby-coderay)
4645 ("ruby-method-source" ,ruby-method-source)))
4646 (synopsis "Ruby REPL")
4647 (description "Pry is an IRB alternative and runtime developer console for
4648 Ruby. It features syntax highlighting, a plugin architecture, runtime
4649 invocation, and source and documentation browsing.")
4650 (home-page "https://cobaltbluemedia.com/pryrepl/")
4651 (license license:expat)))
4652
4653 (define-public ruby-single-cov
4654 (package
4655 (name "ruby-single-cov")
4656 (version "1.3.2")
4657 (home-page "https://github.com/grosser/single_cov")
4658 (source (origin
4659 (method git-fetch)
4660 (uri (git-reference (url home-page)
4661 (commit (string-append "v" version))))
4662 (file-name (git-file-name name version))
4663 (sha256
4664 (base32
4665 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
4666 (build-system ruby-build-system)
4667 (arguments
4668 '(#:test-target "default"
4669 #:phases (modify-phases %standard-phases
4670 (replace 'replace-git-ls-files
4671 (lambda _
4672 (substitute* "single_cov.gemspec"
4673 (("`git ls-files lib/ bin/ MIT-LICENSE`")
4674 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
4675 #t))
4676 (add-before 'check 'remove-version-constraints
4677 (lambda _
4678 (delete-file "Gemfile.lock")
4679 #t))
4680 (add-before 'check 'make-files-writable
4681 (lambda _
4682 ;; Tests need to create local directories and open files
4683 ;; with write permissions.
4684 (for-each make-file-writable
4685 (find-files "specs" #:directories? #t))
4686 #t))
4687 (add-before 'check 'disable-failing-test
4688 (lambda _
4689 ;; XXX: This test copies assets from minitest, but can
4690 ;; not cope with the files being read-only. Just skip
4691 ;; it for now.
4692 (substitute* "specs/single_cov_spec.rb"
4693 (("it \"complains when coverage is bad\"")
4694 "xit \"complains when coverage is bad\""))
4695 #t)))))
4696 (native-inputs
4697 `(("ruby-bump" ,ruby-bump)
4698 ("ruby-minitest" ,ruby-minitest)
4699 ("ruby-rspec" ,ruby-rspec)
4700 ("ruby-simplecov" ,ruby-simplecov)))
4701 (synopsis "Code coverage reporting tool")
4702 (description
4703 "This package provides actionable code coverage reports for Ruby
4704 projects. It has very little overhead and can be easily integrated with
4705 development tools to catch coverage problems early.")
4706 (license license:expat)))
4707
4708 (define-public ruby-guard
4709 (package
4710 (name "ruby-guard")
4711 (version "2.13.0")
4712 (source (origin
4713 (method git-fetch)
4714 ;; The gem does not include a Rakefile, nor does it contain a
4715 ;; gemspec file, nor does it come with the tests. This is why
4716 ;; we fetch the tarball from Github.
4717 (uri (git-reference
4718 (url "https://github.com/guard/guard")
4719 (commit (string-append "v" version))))
4720 (file-name (git-file-name name version))
4721 (sha256
4722 (base32
4723 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
4724 (build-system ruby-build-system)
4725 (arguments
4726 `(#:tests? #f ; tests require cucumber
4727 #:phases
4728 (modify-phases %standard-phases
4729 (add-after 'unpack 'remove-git-ls-files
4730 (lambda* (#:key outputs #:allow-other-keys)
4731 (substitute* "guard.gemspec"
4732 (("git ls-files -z") "find . -type f -print0"))
4733 #t))
4734 (replace 'build
4735 (lambda _
4736 (invoke "gem" "build" "guard.gemspec"))))))
4737 (propagated-inputs
4738 `(("ruby-formatador" ,ruby-formatador)
4739 ("ruby-listen" ,ruby-listen)
4740 ("ruby-lumberjack" ,ruby-lumberjack)
4741 ("ruby-nenv" ,ruby-nenv)
4742 ("ruby-notiffany" ,ruby-notiffany)
4743 ("ruby-pry" ,ruby-pry)
4744 ("ruby-shellany" ,ruby-shellany)
4745 ("ruby-thor" ,ruby-thor)))
4746 (native-inputs
4747 `(("bundler" ,bundler)
4748 ("ruby-rspec" ,ruby-rspec)))
4749 (synopsis "Tool to handle events on file system modifications")
4750 (description
4751 "Guard is a command line tool to easily handle events on file system
4752 modifications. Guard automates various tasks by running custom rules whenever
4753 file or directories are modified.")
4754 (home-page "https://guardgem.org/")
4755 (license license:expat)))
4756
4757 (define-public ruby-spinach
4758 (package
4759 (name "ruby-spinach")
4760 (version "0.11.0")
4761 (home-page "http://github.com/codegram/spinach")
4762 (source (origin
4763 (method url-fetch)
4764 (uri (rubygems-uri "spinach" version))
4765 (sha256
4766 (base32
4767 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
4768 (build-system ruby-build-system)
4769 (arguments
4770 ;; FIXME: Disable tests altogether because they depend on 'capybara'
4771 ;; which in turn depends on many other unpackaged gems. Enable once
4772 ;; capybara is available.
4773 '(#:tests? #f))
4774 (propagated-inputs
4775 `(("ruby-colorize" ,ruby-colorize)
4776 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
4777 ("ruby-json" ,ruby-json)))
4778 (synopsis "Gherkin-based BDD framework")
4779 (description
4780 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
4781 framework that leverages the expressive @code{Gherkin} language to help you
4782 define executable specifications of your code.")
4783 (license license:expat)))
4784
4785 (define-public ruby-tilt
4786 (package
4787 (name "ruby-tilt")
4788 (version "2.0.10")
4789 (source
4790 (origin
4791 (method git-fetch) ;the distributed gem lacks tests
4792 (uri (git-reference
4793 (url "https://github.com/rtomayko/tilt")
4794 (commit (string-append "v" version))))
4795 (file-name (git-file-name name version))
4796 (sha256
4797 (base32
4798 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
4799 (build-system ruby-build-system)
4800 (arguments
4801 '(#:phases
4802 (modify-phases %standard-phases
4803 (add-after 'unpack 'remove-some-dependencies
4804 (lambda _
4805 (substitute* "Gemfile"
4806 ;; TODO ronn is used for generating the manual
4807 (("gem 'ronn'.*") "\n")
4808 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4809 ;; pass it in as a native-input
4810 (("gem 'haml'.*") "\n")
4811 ;; TODO Not all of these gems are packaged for Guix yet:
4812 ;; less, coffee-script, livescript, babel-transpiler,
4813 ;; typescript-node
4814 (("if can_execjs") "if false")
4815 ;; Disable the secondary group to reduce the number of
4816 ;; dependencies. None of the normal approaches work, so patch
4817 ;; the Gemfile instead.
4818 (("group :secondary") "[].each"))
4819 #t)))))
4820 (propagated-inputs
4821 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
4822 ("ruby-sassc" ,ruby-sassc)))
4823 (native-inputs
4824 `(("bundler" ,bundler)
4825 ("ruby-yard" ,ruby-yard)
4826 ("ruby-builder" ,ruby-builder)
4827 ("ruby-erubis" ,ruby-erubis)
4828 ("ruby-markaby" ,ruby-markaby)))
4829 (synopsis "Generic interface to multiple Ruby template engines")
4830 (description
4831 "Tilt is a thin interface over a number of different Ruby template
4832 engines in an attempt to make their usage as generic as possible.")
4833 (home-page "https://github.com/rtomayko/tilt/")
4834 (license license:expat)))
4835
4836 (define-public ruby-thread-safe
4837 (package
4838 (name "ruby-thread-safe")
4839 (version "0.3.6")
4840 (source
4841 (origin
4842 (method url-fetch)
4843 (uri (rubygems-uri "thread_safe" version))
4844 (sha256
4845 (base32
4846 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4847 (build-system ruby-build-system)
4848 (arguments
4849 '(#:tests? #f)) ; needs simplecov, among others
4850 (synopsis "Thread-safe utilities for Ruby")
4851 (description "The thread_safe library provides thread-safe collections and
4852 utilities for Ruby.")
4853 (home-page "https://github.com/ruby-concurrency/thread_safe")
4854 (license license:asl2.0)))
4855
4856 (define-public ruby-tzinfo
4857 (package
4858 (name "ruby-tzinfo")
4859 (version "1.2.4")
4860 (source
4861 (origin
4862 (method url-fetch)
4863 (uri (rubygems-uri "tzinfo" version))
4864 (sha256
4865 (base32
4866 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4867 (build-system ruby-build-system)
4868 (arguments
4869 '(#:phases
4870 (modify-phases %standard-phases
4871 (add-after 'unpack 'skip-safe-tests
4872 (lambda _
4873 (substitute* "test/test_utils.rb"
4874 (("def safe_test\\(options = \\{\\}\\)")
4875 "def safe_test(options = {})
4876 skip('The Guix build environment has an unsafe load path')"))
4877 #t)))))
4878 (propagated-inputs
4879 `(("ruby-thread-safe" ,ruby-thread-safe)))
4880 (synopsis "Time zone library for Ruby")
4881 (description "TZInfo is a Ruby library that provides daylight savings
4882 aware transformations between times in different time zones.")
4883 (home-page "https://tzinfo.github.io")
4884 (license license:expat)))
4885
4886 (define-public ruby-tzinfo-data
4887 (package
4888 (name "ruby-tzinfo-data")
4889 (version "1.2017.3")
4890 (source
4891 (origin
4892 (method git-fetch)
4893 ;; Download from GitHub because the rubygems version does not contain
4894 ;; Rakefile or tests.
4895 (uri (git-reference
4896 (url "https://github.com/tzinfo/tzinfo-data")
4897 (commit (string-append "v" version))))
4898 (file-name (git-file-name name version))
4899 (sha256
4900 (base32
4901 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4902 ;; Remove the known test failure.
4903 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4904 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4905 (patches (search-patches
4906 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4907 (build-system ruby-build-system)
4908 (propagated-inputs
4909 `(("ruby-tzinfo" ,ruby-tzinfo)))
4910 (synopsis "Data from the IANA Time Zone database")
4911 (description
4912 "This library provides @code{TZInfo::Data}, which contains data from the
4913 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4914 (home-page "https://tzinfo.github.io")
4915 (license license:expat)))
4916
4917 (define-public ruby-rb-inotify
4918 (package
4919 (name "ruby-rb-inotify")
4920 (version "0.9.10")
4921 (source
4922 (origin
4923 (method url-fetch)
4924 (uri (rubygems-uri "rb-inotify" version))
4925 (sha256
4926 (base32
4927 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4928 (build-system ruby-build-system)
4929 (arguments
4930 '(#:tests? #f ; there are no tests
4931 #:phases
4932 (modify-phases %standard-phases
4933 ;; Building the gemspec with rake is not working here since it is
4934 ;; generated with Jeweler. It is also unnecessary because the
4935 ;; existing gemspec does not use any development tools to generate a
4936 ;; list of files.
4937 (replace 'build
4938 (lambda _
4939 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4940 (propagated-inputs
4941 `(("ruby-ffi" ,ruby-ffi)))
4942 (native-inputs
4943 `(("ruby-yard" ,ruby-yard)))
4944 (synopsis "Ruby wrapper for Linux's inotify")
4945 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4946 kernel subsystem for monitoring changes to files and directories.")
4947 (home-page "https://github.com/nex3/rb-inotify")
4948 (license license:expat)))
4949
4950 (define-public ruby-pry-editline
4951 (package
4952 (name "ruby-pry-editline")
4953 (version "1.1.2")
4954 (source (origin
4955 (method url-fetch)
4956 (uri (rubygems-uri "pry-editline" version))
4957 (sha256
4958 (base32
4959 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4960 (build-system ruby-build-system)
4961 (arguments `(#:tests? #f)) ; no tests included
4962 (native-inputs
4963 `(("bundler" ,bundler)))
4964 (synopsis "Open the current REPL line in an editor")
4965 (description
4966 "This gem provides a plugin for the Ruby REPL to enable opening the
4967 current line in an external editor.")
4968 (home-page "https://github.com/tpope/pry-editline")
4969 (license license:expat)))
4970
4971 (define-public ruby-sdoc
4972 (package
4973 (name "ruby-sdoc")
4974 (version "1.1.0")
4975 (source (origin
4976 (method url-fetch)
4977 (uri (rubygems-uri "sdoc" version))
4978 (sha256
4979 (base32
4980 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
4981 (build-system ruby-build-system)
4982 (arguments
4983 `(#:phases
4984 (modify-phases %standard-phases
4985 (add-before 'check 'set-rubylib-and-patch-gemfile
4986 (lambda _
4987 (setenv "RUBYLIB" "lib")
4988 (substitute* "sdoc.gemspec"
4989 (("s.add_runtime_dependency.*") "\n")
4990 (("s.add_dependency.*") "\n"))
4991 (substitute* "Gemfile"
4992 (("gem \"rake\".*")
4993 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4994 #t)))))
4995 (propagated-inputs
4996 `(("ruby-json" ,ruby-json)))
4997 (native-inputs
4998 `(("bundler" ,bundler)
4999 ("ruby-minitest" ,ruby-minitest)
5000 ("ruby-hoe" ,ruby-hoe)))
5001 (synopsis "Generate searchable RDoc documentation")
5002 (description
5003 "SDoc is an RDoc documentation generator to build searchable HTML
5004 documentation for Ruby code.")
5005 (home-page "https://github.com/voloko/sdoc")
5006 (license license:expat)))
5007
5008 (define-public ruby-tins
5009 (package
5010 (name "ruby-tins")
5011 (version "1.15.0")
5012 (source (origin
5013 (method url-fetch)
5014 (uri (rubygems-uri "tins" version))
5015 (sha256
5016 (base32
5017 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5018 (build-system ruby-build-system)
5019 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5020 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5021 ;; the gemspec.
5022 (arguments
5023 `(#:tests? #f ; there are no tests
5024 #:phases
5025 (modify-phases %standard-phases
5026 (replace 'build
5027 (lambda _
5028 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5029 ;; causes an error.
5030 (substitute* "tins.gemspec"
5031 (("\"lib/spruz\", ") ""))
5032 (invoke "gem" "build" "tins.gemspec"))))))
5033 (synopsis "Assorted tools for Ruby")
5034 (description "Tins is a Ruby library providing assorted tools.")
5035 (home-page "https://github.com/flori/tins")
5036 (license license:expat)))
5037
5038 (define-public ruby-gem-hadar
5039 (package
5040 (name "ruby-gem-hadar")
5041 (version "1.9.1")
5042 (source (origin
5043 (method url-fetch)
5044 (uri (rubygems-uri "gem_hadar" version))
5045 (sha256
5046 (base32
5047 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5048 (build-system ruby-build-system)
5049 ;; This gem needs itself at development time. We disable rebuilding of the
5050 ;; gemspec to avoid this loop.
5051 (arguments
5052 `(#:tests? #f ; there are no tests
5053 #:phases
5054 (modify-phases %standard-phases
5055 (replace 'build
5056 (lambda _
5057 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5058 (propagated-inputs
5059 `(("git" ,git)
5060 ("ruby-tins" ,ruby-tins)
5061 ("ruby-yard" ,ruby-yard)))
5062 (synopsis "Library for the development of Ruby gems")
5063 (description
5064 "This library contains some useful functionality to support the
5065 development of Ruby gems.")
5066 (home-page "https://github.com/flori/gem_hadar")
5067 (license license:expat)))
5068
5069 (define-public ruby-minitest-tu-shim
5070 (package
5071 (name "ruby-minitest-tu-shim")
5072 (version "1.3.3")
5073 (source (origin
5074 (method url-fetch)
5075 (uri (rubygems-uri "minitest_tu_shim" version))
5076 (sha256
5077 (base32
5078 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5079 (build-system ruby-build-system)
5080 (arguments
5081 `(#:phases
5082 (modify-phases %standard-phases
5083 (add-after 'unpack 'fix-test-include-path
5084 (lambda* (#:key inputs #:allow-other-keys)
5085 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5086 (substitute* "Rakefile"
5087 (("Hoe\\.add_include_dirs .*")
5088 (string-append "Hoe.add_include_dirs \""
5089 minitest "/lib/ruby/vendor_ruby"
5090 "/gems/minitest-"
5091 ,(package-version ruby-minitest-4)
5092 "/lib" "\""))))
5093 #t))
5094 (add-before 'check 'fix-test-assumptions
5095 (lambda _
5096 ;; The test output includes the file name, so a couple of tests
5097 ;; fail. Changing the regular expressions slightly fixes this
5098 ;; problem.
5099 (substitute* "test/test_mini_test.rb"
5100 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5101 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5102 (("gsub\\(/.*, 'FILE:LINE'\\)")
5103 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5104 #t)))))
5105 (propagated-inputs
5106 `(("ruby-minitest-4" ,ruby-minitest-4)))
5107 (native-inputs
5108 `(("ruby-hoe" ,ruby-hoe)))
5109 (synopsis "Adapter library between minitest and test/unit")
5110 (description
5111 "This library bridges the gap between the small and fast minitest and
5112 Ruby's large and slower test/unit.")
5113 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5114 (license license:expat)))
5115
5116 (define-public ruby-term-ansicolor
5117 (package
5118 (name "ruby-term-ansicolor")
5119 (version "1.6.0")
5120 (source (origin
5121 (method url-fetch)
5122 (uri (rubygems-uri "term-ansicolor" version))
5123 (sha256
5124 (base32
5125 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5126 (build-system ruby-build-system)
5127 ;; Rebuilding the gemspec seems to require git, even though this is not a
5128 ;; git repository, so we just build the gem from the existing gemspec.
5129 (arguments
5130 `(#:phases
5131 (modify-phases %standard-phases
5132 (add-after 'unpack 'fix-test
5133 (lambda -
5134 (substitute* "tests/hsl_triple_test.rb"
5135 (("0\\\\\\.0%")
5136 "0\\.?0?%"))))
5137 (replace 'build
5138 (lambda _
5139 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5140 (propagated-inputs
5141 `(("ruby-tins" ,ruby-tins)))
5142 (native-inputs
5143 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5144 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5145 (synopsis "Ruby library to control the attributes of terminal output")
5146 (description
5147 "This Ruby library uses ANSI escape sequences to control the attributes
5148 of terminal output.")
5149 (home-page "https://flori.github.io/term-ansicolor/")
5150 ;; There is no mention of the "or later" clause.
5151 (license license:gpl2)))
5152
5153 (define-public ruby-terraform
5154 (package
5155 (name "ruby-terraform")
5156 (version "0.22.0")
5157 (source
5158 (origin
5159 (method url-fetch)
5160 (uri (rubygems-uri "ruby-terraform" version))
5161 (sha256
5162 (base32
5163 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5164 (build-system ruby-build-system)
5165 (arguments
5166 '(#:tests? #f)) ; No included tests
5167 (propagated-inputs
5168 `(("ruby-lino" ,ruby-lino)))
5169 (synopsis "Ruby wrapper around the Terraform command line interface")
5170 (description
5171 "This package provides a Ruby wrapper around the Terraform command line
5172 interface so that Terraform can be more easily invoked from Ruby code.")
5173 (home-page "https://github.com/infrablocks/ruby_terraform")
5174 (license license:expat)))
5175
5176 (define-public ruby-pstree
5177 (package
5178 (name "ruby-pstree")
5179 (version "0.1.0")
5180 (source (origin
5181 (method url-fetch)
5182 (uri (rubygems-uri "pstree" version))
5183 (sha256
5184 (base32
5185 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5186 (build-system ruby-build-system)
5187 (native-inputs
5188 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5189 ("bundler" ,bundler)))
5190 (synopsis "Create a process tree data structure")
5191 (description
5192 "This library uses the output of the @code{ps} command to create a
5193 process tree data structure for the current host.")
5194 (home-page "https://github.com/flori/pstree")
5195 ;; There is no mention of the "or later" clause.
5196 (license license:gpl2)))
5197
5198 (define-public ruby-utils
5199 (package
5200 (name "ruby-utils")
5201 (version "0.9.0")
5202 (source (origin
5203 (method url-fetch)
5204 (uri (rubygems-uri "utils" version))
5205 (sha256
5206 (base32
5207 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5208 (build-system ruby-build-system)
5209 (propagated-inputs
5210 `(("ruby-tins" ,ruby-tins)
5211 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5212 ("ruby-pstree" ,ruby-pstree)
5213 ("ruby-pry-editline" ,ruby-pry-editline)))
5214 (native-inputs
5215 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5216 ("bundler" ,bundler)))
5217 (synopsis "Command line tools for working with Ruby")
5218 (description
5219 "This package provides assorted command line tools that may be useful
5220 when working with Ruby code.")
5221 (home-page "https://github.com/flori/utils")
5222 ;; There is no mention of the "or later" clause.
5223 (license license:gpl2)))
5224
5225 (define-public ruby-jaro-winkler
5226 (package
5227 (name "ruby-jaro-winkler")
5228 (version "1.5.4")
5229 (source
5230 (origin
5231 (method url-fetch)
5232 (uri (rubygems-uri "jaro_winkler" version))
5233 (sha256
5234 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5235 (build-system ruby-build-system)
5236 (arguments
5237 '(#:tests? #f)) ; no included tests
5238 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5239 (description
5240 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5241 algorithm. It is written as a C extension and will fallback to a pure Ruby
5242 implementation on platforms where this is unsupported.")
5243 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5244 (license license:expat)))
5245
5246 (define-public ruby-json
5247 (package
5248 (name "ruby-json")
5249 (version "2.1.0")
5250 (source
5251 (origin
5252 (method url-fetch)
5253 (uri (rubygems-uri "json" version))
5254 (sha256
5255 (base32
5256 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5257 (build-system ruby-build-system)
5258 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5259 (synopsis "JSON library for Ruby")
5260 (description "This Ruby library provides a JSON implementation written as
5261 a native C extension.")
5262 (home-page "http://json-jruby.rubyforge.org/")
5263 (license (list license:ruby license:gpl2)))) ; GPL2 only
5264
5265 (define-public ruby-json-pure
5266 (package
5267 (name "ruby-json-pure")
5268 (version "2.2.0")
5269 (source (origin
5270 (method url-fetch)
5271 (uri (rubygems-uri "json_pure" version))
5272 (sha256
5273 (base32
5274 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5275 (build-system ruby-build-system)
5276 (arguments
5277 `(#:phases
5278 (modify-phases %standard-phases
5279 (add-after 'unpack 'fix-rakefile
5280 (lambda _
5281 (substitute* "Rakefile"
5282 ;; Since this is not a git repository, do not call 'git'.
5283 (("`git ls-files`") "`find . -type f |sort`")
5284 ;; Loosen dependency constraint.
5285 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5286 #t))
5287 (add-after 'replace-git-ls-files 'regenerate-gemspec
5288 (lambda _
5289 ;; Regenerate gemspec so loosened dependency constraints are
5290 ;; propagated.
5291 (invoke "rake" "gemspec")))
5292 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5293 (lambda _
5294 ;; This gemspec doesn't look to be generated by the above
5295 ;; command, so patch it separately.
5296 (substitute* "json-java.gemspec"
5297 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5298 "%q<test-unit>.freeze, [\">= 2.0\"]"))
5299 #t)))))
5300 (native-inputs
5301 `(("bundler" ,bundler)
5302 ("ragel" ,ragel)
5303 ("ruby-simplecov" ,ruby-simplecov)
5304 ("ruby-test-unit" ,ruby-test-unit)))
5305 (synopsis "JSON implementation in pure Ruby")
5306 (description
5307 "This package provides a JSON implementation written in pure Ruby.")
5308 (home-page "https://flori.github.com/json/")
5309 (license license:ruby)))
5310
5311 (define-public ruby-jwt
5312 (package
5313 (name "ruby-jwt")
5314 (version "2.1.0")
5315 (source
5316 (origin
5317 (method url-fetch)
5318 (uri (rubygems-uri "jwt" version))
5319 (sha256
5320 (base32
5321 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
5322 (build-system ruby-build-system)
5323 (arguments
5324 '(#:test-target "test"
5325 #:phases
5326 (modify-phases %standard-phases
5327 (add-after 'unpack 'remove-unnecessary-dependencies
5328 (lambda _
5329 (substitute* "spec/spec_helper.rb"
5330 (("require 'simplecov.*") "\n")
5331 ;; Use [].each to disable running the SimpleCov configuration
5332 ;; block
5333 (("SimpleCov\\.configure") "[].each")
5334 (("require 'codeclimate-test-reporter'") "")
5335 (("require 'codacy-coverage'") "")
5336 (("Codacy::Reporter\\.start") ""))
5337 #t)))))
5338 (native-inputs
5339 `(("bundler" ,bundler)
5340 ("ruby-rspec" ,ruby-rspec)
5341 ("ruby-rbnacl" ,ruby-rbnacl)))
5342 (synopsis "Ruby implementation of the JSON Web Token standard")
5343 (description
5344 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
5345 @acronym{JWT, JSON Web Token} standard.")
5346 (home-page "https://github.com/jwt/ruby-jwt")
5347 (license license:expat)))
5348
5349 ;; Even though this package only provides bindings for a Mac OSX API it is
5350 ;; required by "ruby-listen" at runtime.
5351 (define-public ruby-rb-fsevent
5352 (package
5353 (name "ruby-rb-fsevent")
5354 (version "0.10.3")
5355 (source (origin
5356 (method url-fetch)
5357 (uri (rubygems-uri "rb-fsevent" version))
5358 (sha256
5359 (base32
5360 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
5361 (build-system ruby-build-system)
5362 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
5363 ;; "listen", which needs "rb-fsevent" at runtime.
5364 (arguments `(#:tests? #f))
5365 (synopsis "FSEvents API with signals catching")
5366 (description
5367 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
5368 (home-page "https://rubygems.org/gems/rb-fsevent")
5369 (license license:expat)))
5370
5371 (define-public ruby-listen
5372 (package
5373 (name "ruby-listen")
5374 (version "3.2.0")
5375 (source
5376 (origin
5377 ;; The gem does not include a Rakefile, so fetch from the Git
5378 ;; repository.
5379 (method git-fetch)
5380 (uri (git-reference
5381 (url "https://github.com/guard/listen")
5382 (commit (string-append "v" version))))
5383 (file-name (git-file-name name version))
5384 (sha256
5385 (base32
5386 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
5387 (build-system ruby-build-system)
5388 (arguments
5389 `(#:test-target "spec"
5390 #:phases
5391 (modify-phases %standard-phases
5392 (add-after 'unpack 'fix-files-in-gemspec
5393 (lambda _
5394 (substitute* "listen.gemspec"
5395 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
5396 #t))
5397 (add-before 'check 'remove-unnecessary-dependencies'
5398 (lambda _
5399 (substitute* "Rakefile"
5400 ;; Rubocop is for code linting, and is unnecessary for running
5401 ;; the tests.
5402 ((".*rubocop.*") ""))
5403 #t)))))
5404 (native-inputs
5405 `(("bundler" ,bundler)
5406 ("ruby-rspec" ,ruby-rspec)))
5407 (inputs
5408 `(;; ruby-thor is used for the command line interface, and is referenced
5409 ;; in the wrapper, and therefore just needs to be an input.
5410 ("ruby-thor" ,ruby-thor)))
5411 (propagated-inputs
5412 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
5413 ("ruby-rb-inotify" ,ruby-rb-inotify)
5414 ("ruby-dep" ,ruby-dep)))
5415 (synopsis "Listen to file modifications")
5416 (description "The Listen gem listens to file modifications and notifies
5417 you about the changes.")
5418 (home-page "https://github.com/guard/listen")
5419 (license license:expat)))
5420
5421 (define-public ruby-loofah
5422 (package
5423 (name "ruby-loofah")
5424 (version "2.2.3")
5425 (source
5426 (origin
5427 (method url-fetch)
5428 (uri (rubygems-uri "loofah" version))
5429 (sha256
5430 (base32
5431 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
5432 (build-system ruby-build-system)
5433 (arguments
5434 '(#:phases
5435 (modify-phases %standard-phases
5436 (add-after 'unpack 'remove-unnecessary-dependencies
5437 (lambda _
5438 ;; concourse is a development tool which is unused, so remove it
5439 ;; so it's not required.
5440 (substitute* "Gemfile"
5441 ((".*\"concourse\".*") "\n"))
5442 (substitute* "Rakefile"
5443 (("require 'concourse'") "")
5444 (("Concourse\\.new.*") "\n"))
5445 #t)))))
5446 (native-inputs
5447 `(("ruby-hoe" ,ruby-hoe)
5448 ("ruby-rr" ,ruby-rr)))
5449 (propagated-inputs
5450 `(("ruby-nokogiri" ,ruby-nokogiri)
5451 ("ruby-crass" ,ruby-crass)))
5452 (synopsis "Ruby library for manipulating and transforming HTML/XML")
5453 (description
5454 "Loofah is a general library for manipulating and transforming HTML/XML
5455 documents and fragments. It's built on top of Nokogiri and libxml2.")
5456 (home-page "https://github.com/flavorjones/loofah")
5457 (license license:expat)))
5458
5459 (define-public ruby-activesupport
5460 (package
5461 (name "ruby-activesupport")
5462 (version "5.2.2.1")
5463 (source
5464 (origin
5465 (method url-fetch)
5466 (uri (rubygems-uri "activesupport" version))
5467 (sha256
5468 (base32
5469 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
5470 (build-system ruby-build-system)
5471 (arguments
5472 `(#:phases
5473 (modify-phases %standard-phases
5474 (replace 'check
5475 (lambda _
5476 ;; There are no tests, instead attempt to load the library.
5477 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
5478 (propagated-inputs
5479 `(("ruby-concurrent" ,ruby-concurrent)
5480 ("ruby-i18n" ,ruby-i18n)
5481 ("ruby-minitest" ,ruby-minitest)
5482 ("ruby-tzinfo" ,ruby-tzinfo)
5483 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
5484 (synopsis "Ruby on Rails utility library")
5485 (description "ActiveSupport is a toolkit of support libraries and Ruby
5486 core extensions extracted from the Rails framework. It includes support for
5487 multibyte strings, internationalization, time zones, and testing.")
5488 (home-page "http://www.rubyonrails.org")
5489 (license license:expat)))
5490
5491 (define-public ruby-crass
5492 (package
5493 (name "ruby-crass")
5494 (version "1.0.6")
5495 (home-page "https://github.com/rgrove/crass")
5496 (source (origin
5497 ;; The gem does not contain tests, so pull from git.
5498 (method git-fetch)
5499 (uri (git-reference
5500 (url home-page)
5501 (commit (string-append "v" version))))
5502 (file-name (git-file-name name version))
5503 (sha256
5504 (base32
5505 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
5506 (build-system ruby-build-system)
5507 (synopsis "Pure Ruby CSS parser")
5508 (description
5509 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
5510 (license license:expat)))
5511
5512 (define-public ruby-nokogumbo
5513 (package
5514 (name "ruby-nokogumbo")
5515 (version "2.0.2")
5516 (source (origin
5517 ;; We use the git reference, because there's no Rakefile in the
5518 ;; published gem and the tarball on Github is outdated.
5519 (method git-fetch)
5520 (uri (git-reference
5521 (url "https://github.com/rubys/nokogumbo")
5522 (commit (string-append "v" version))))
5523 (file-name (string-append name "-" version "-checkout"))
5524 (sha256
5525 (base32
5526 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
5527 (build-system ruby-build-system)
5528 (native-inputs
5529 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5530 (inputs
5531 `(("gumbo-parser" ,gumbo-parser)))
5532 (propagated-inputs
5533 `(("ruby-nokogiri" ,ruby-nokogiri)))
5534 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
5535 (description
5536 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
5537 access the result as a Nokogiri parsed document.")
5538 (home-page "https://github.com/rubys/nokogumbo/")
5539 (license license:asl2.0)))
5540
5541 (define-public ruby-sanitize
5542 (package
5543 (name "ruby-sanitize")
5544 (version "5.1.0")
5545 (home-page "https://github.com/rgrove/sanitize")
5546 (source (origin
5547 (method git-fetch)
5548 ;; The gem does not include the Rakefile, so we download the
5549 ;; source from Github.
5550 (uri (git-reference
5551 (url home-page)
5552 (commit (string-append "v" version))))
5553 (file-name (git-file-name name version))
5554 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
5555 (sha256
5556 (base32
5557 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
5558 (build-system ruby-build-system)
5559 (propagated-inputs
5560 `(("ruby-crass" ,ruby-crass)
5561 ("ruby-nokogiri" ,ruby-nokogiri)
5562 ("ruby-nokogumbo" ,ruby-nokogumbo)))
5563 (native-inputs
5564 `(("ruby-minitest" ,ruby-minitest)))
5565 (synopsis "Whitelist-based HTML and CSS sanitizer")
5566 (description
5567 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
5568 acceptable elements, attributes, and CSS properties, Sanitize will remove all
5569 unacceptable HTML and/or CSS from a string.")
5570 (license license:expat)))
5571
5572 (define-public ruby-oj
5573 (package
5574 (name "ruby-oj")
5575 (version "3.10.1")
5576 (source
5577 (origin
5578 (method git-fetch)
5579 ;; Version on rubygems.org does not contain Rakefile, so download from
5580 ;; GitHub instead.
5581 (uri (git-reference
5582 (url "https://github.com/ohler55/oj")
5583 (commit (string-append "v" version))))
5584 (file-name (git-file-name name version))
5585 (sha256
5586 (base32
5587 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
5588 (build-system ruby-build-system)
5589 (arguments
5590 '(#:test-target "test_all"
5591 #:phases
5592 (modify-phases %standard-phases
5593 (add-before 'check 'disable-bundler
5594 (lambda _
5595 (substitute* "Rakefile"
5596 (("Bundler\\.with_clean_env") "1.times")
5597 (("bundle exec ") "")))))))
5598 (native-inputs
5599 `(("bundler" ,bundler)
5600 ("ruby-rspec" ,ruby-rspec)
5601 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5602 (synopsis "JSON parser for Ruby optimized for speed")
5603 (description
5604 "Oj is a JSON parser and generator for Ruby, where the encoding and
5605 decoding of JSON is implemented as a C extension to Ruby.")
5606 (home-page "http://www.ohler.com/oj/")
5607 (license (list license:expat ; Ruby code
5608 license:bsd-3)))) ; extension code
5609
5610 (define-public ruby-ox
5611 (package
5612 (name "ruby-ox")
5613 (version "2.6.0")
5614 (source
5615 (origin
5616 (method url-fetch)
5617 (uri (rubygems-uri "ox" version))
5618 (sha256
5619 (base32
5620 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
5621 (build-system ruby-build-system)
5622 (arguments
5623 '(#:tests? #f)) ; no tests
5624 (synopsis "Optimized XML library for Ruby")
5625 (description
5626 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
5627 written as a native C extension. It was designed to be an alternative to
5628 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
5629 alternative to Marshal for Object serialization. ")
5630 (home-page "http://www.ohler.com/ox")
5631 (license license:expat)))
5632
5633 (define-public ruby-redcloth
5634 (package
5635 (name "ruby-redcloth")
5636 (version "4.3.2")
5637 (source (origin
5638 (method url-fetch)
5639 (uri (rubygems-uri "RedCloth" version))
5640 (sha256
5641 (base32
5642 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
5643 (build-system ruby-build-system)
5644 (arguments
5645 `(#:tests? #f ; no tests
5646 #:phases
5647 (modify-phases %standard-phases
5648 ;; Redcloth has complicated rake tasks to build various versions for
5649 ;; multiple targets using RVM. We don't want this so we just use the
5650 ;; existing gemspec.
5651 (replace 'build
5652 (lambda _
5653 (invoke "gem" "build" "redcloth.gemspec"))))))
5654 (native-inputs
5655 `(("bundler" ,bundler)
5656 ("ruby-diff-lcs" ,ruby-diff-lcs)
5657 ("ruby-rspec-2" ,ruby-rspec-2)))
5658 (synopsis "Textile markup language parser for Ruby")
5659 (description
5660 "RedCloth is a Ruby parser for the Textile markup language.")
5661 (home-page "http://redcloth.org")
5662 (license license:expat)))
5663
5664 (define-public ruby-pg
5665 (package
5666 (name "ruby-pg")
5667 (version "1.1.4")
5668 (source
5669 (origin
5670 (method url-fetch)
5671 (uri (rubygems-uri "pg" version))
5672 (sha256
5673 (base32
5674 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
5675 (build-system ruby-build-system)
5676 (arguments
5677 '(#:test-target "spec"))
5678 (native-inputs
5679 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5680 ("ruby-hoe" ,ruby-hoe)
5681 ("ruby-rspec" ,ruby-rspec)))
5682 (inputs
5683 `(("postgresql" ,postgresql)))
5684 (synopsis "Ruby interface to PostgreSQL")
5685 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
5686 with PostgreSQL 9.0 and later.")
5687 (home-page "https://bitbucket.org/ged/ruby-pg")
5688 (license license:ruby)))
5689
5690 (define-public ruby-byebug
5691 (package
5692 (name "ruby-byebug")
5693 (version "9.0.6")
5694 (source
5695 (origin
5696 (method url-fetch)
5697 (uri (rubygems-uri "byebug" version))
5698 (sha256
5699 (base32
5700 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
5701 (build-system ruby-build-system)
5702 (arguments
5703 '(#:tests? #f)) ; no tests
5704 (synopsis "Debugger for Ruby 2")
5705 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
5706 TracePoint C API for execution control and the Debug Inspector C API for call
5707 stack navigation. The core component provides support that front-ends can
5708 build on. It provides breakpoint handling and bindings for stack frames among
5709 other things and it comes with a command line interface.")
5710 (home-page "https://github.com/deivid-rodriguez/byebug")
5711 (license license:bsd-2)))
5712
5713 ;;; TODO: Make it the default byebug in core-updates.
5714 (define-public ruby-byebug-11
5715 (package
5716 (inherit ruby-byebug)
5717 (name "ruby-byebug")
5718 (version "11.1.3")
5719 (source
5720 (origin
5721 (method git-fetch)
5722 (uri (git-reference
5723 (url "https://github.com/deivid-rodriguez/byebug")
5724 (commit (string-append "v" version))))
5725 (file-name (git-file-name name version))
5726 (sha256
5727 (base32
5728 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
5729 (modules '((guix build utils)))
5730 (snippet
5731 '(begin
5732 ;; Remove wrappers that try to setup a bundle environment.
5733 (with-directory-excursion "bin"
5734 (for-each delete-file '("bundle" "rake" "rubocop"))
5735 ;; ruby-minitest doesn't come with a launcher, so fix the one
5736 ;; provided.
5737 (substitute* "minitest"
5738 (("load File\\.expand_path\\(\"bundle\".*") "")
5739 (("require \"bundler/setup\".*") "")))
5740 #t))))
5741 (arguments
5742 `(#:tests? #t
5743 #:phases
5744 (modify-phases %standard-phases
5745 (add-after 'unpack 'skip-tmp-path-sensitive-test
5746 (lambda _
5747 (substitute* "test/commands/where_test.rb"
5748 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
5749 "unless true\n"))
5750 #t))
5751 (add-before 'build 'compile
5752 (lambda _
5753 (invoke "rake" "compile")))
5754 (add-before 'check 'set-home
5755 (lambda _
5756 (setenv "HOME" (getcwd))
5757 #t)))))
5758 (native-inputs
5759 `(("bundler" ,bundler)
5760 ("ruby-chandler" ,ruby-chandler)
5761 ("ruby-minitest" ,ruby-minitest)
5762 ("ruby-pry" ,ruby-pry)
5763 ("ruby-rake-compiler" ,ruby-rake-compiler)
5764 ("ruby-rubocop" ,ruby-rubocop)
5765 ("ruby-yard" ,ruby-yard)))))
5766
5767 (define-public ruby-netrc
5768 (package
5769 (name "ruby-netrc")
5770 (version "0.11.0")
5771 (source (origin
5772 (method url-fetch)
5773 (uri (rubygems-uri "netrc" version))
5774 (sha256
5775 (base32
5776 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
5777 (build-system ruby-build-system)
5778 (arguments
5779 `(#:phases
5780 (modify-phases %standard-phases
5781 (replace 'check
5782 ;; There is no Rakefile and minitest can only run one file at once,
5783 ;; so we have to iterate over all test files.
5784 (lambda _
5785 (map (lambda (file)
5786 (invoke "ruby" "-Itest" file))
5787 (find-files "./test" "test_.*\\.rb")))))))
5788 (native-inputs
5789 `(("ruby-minitest" ,ruby-minitest)))
5790 (synopsis "Library to read and update netrc files")
5791 (description
5792 "This library can read and update netrc files, preserving formatting
5793 including comments and whitespace.")
5794 (home-page "https://github.com/geemus/netrc")
5795 (license license:expat)))
5796
5797 (define-public ruby-unf-ext
5798 (package
5799 (name "ruby-unf-ext")
5800 (version "0.0.7.6")
5801 (source (origin
5802 (method url-fetch)
5803 (uri (rubygems-uri "unf_ext" version))
5804 (sha256
5805 (base32
5806 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
5807 (build-system ruby-build-system)
5808 (arguments
5809 `(#:phases
5810 (modify-phases %standard-phases
5811 (add-after 'build 'build-ext
5812 (lambda _ (invoke "rake" "compile:unf_ext")))
5813 (add-before 'check 'lose-rake-compiler-dock-dependency
5814 (lambda _
5815 ;; rake-compiler-dock is listed in the gemspec, but only
5816 ;; required when cross-compiling.
5817 (substitute* "unf_ext.gemspec"
5818 ((".*rake-compiler-dock.*") ""))
5819 #t)))))
5820 (native-inputs
5821 `(("bundler" ,bundler)
5822 ("ruby-rake-compiler" ,ruby-rake-compiler)
5823 ("ruby-test-unit" ,ruby-test-unit)))
5824 (synopsis "Unicode normalization form support library")
5825 (description
5826 "This package provides unicode normalization form support for Ruby.")
5827 (home-page "https://github.com/knu/ruby-unf_ext")
5828 (license license:expat)))
5829
5830 (define-public ruby-tdiff
5831 ;; Use a newer than released snapshot so that rspec-2 is not required.
5832 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5833 (package
5834 (name "ruby-tdiff")
5835 (version (string-append "0.3.3-1." (string-take commit 8)))
5836 (source (origin
5837 (method git-fetch)
5838 (uri (git-reference
5839 (url "https://github.com/postmodern/tdiff")
5840 (commit commit)))
5841 (file-name (string-append name "-" version "-checkout"))
5842 (sha256
5843 (base32
5844 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5845 (build-system ruby-build-system)
5846 (native-inputs
5847 `(("ruby-rspec" ,ruby-rspec)
5848 ("ruby-yard" ,ruby-yard)
5849 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5850 (synopsis "Calculate the differences between two tree-like structures")
5851 (description
5852 "This library provides functions to calculate the differences between two
5853 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5854 (home-page "https://github.com/postmodern/tdiff")
5855 (license license:expat))))
5856
5857 (define-public ruby-nokogiri-diff
5858 ;; Use a newer than released snapshot so that rspec-2 is not required.
5859 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5860 (package
5861 (name "ruby-nokogiri-diff")
5862 (version (string-append "0.2.0-1." (string-take commit 8)))
5863 (source (origin
5864 (method git-fetch)
5865 (uri (git-reference
5866 (url "https://github.com/postmodern/nokogiri-diff")
5867 (commit commit)))
5868 (file-name (string-append name "-" version "-checkout"))
5869 (sha256
5870 (base32
5871 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5872 (build-system ruby-build-system)
5873 (propagated-inputs
5874 `(("ruby-tdiff" ,ruby-tdiff)
5875 ("ruby-nokogiri" ,ruby-nokogiri)))
5876 (native-inputs
5877 `(("ruby-rspec" ,ruby-rspec)
5878 ("ruby-yard" ,ruby-yard)
5879 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5880 (synopsis "Calculate the differences between two XML/HTML documents")
5881 (description
5882 "@code{Nokogiri::Diff} adds the ability to calculate the
5883 differences (added or removed nodes) between two XML/HTML documents.")
5884 (home-page "https://github.com/postmodern/nokogiri-diff")
5885 (license license:expat))))
5886
5887 (define-public ruby-racc
5888 (package
5889 (name "ruby-racc")
5890 (version "1.4.14")
5891 (source
5892 (origin
5893 (method url-fetch)
5894 (uri (rubygems-uri "racc" version))
5895 (sha256
5896 (base32
5897 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5898 (build-system ruby-build-system)
5899 (native-inputs
5900 `(("ruby-hoe" ,ruby-hoe)
5901 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5902 (synopsis "LALR(1) parser generator for Ruby")
5903 (description
5904 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5905 generates Ruby program.")
5906 (home-page "http://i.loveruby.net/en/projects/racc/")
5907 (license (list
5908 ;; Generally licensed under the LGPL2.1, and some files also
5909 ;; available under the same license as Ruby.
5910 license:lgpl2.1
5911 license:ruby))))
5912
5913 (define-public ruby-rack
5914 (package
5915 (name "ruby-rack")
5916 (version "2.0.6")
5917 (source
5918 (origin
5919 (method git-fetch)
5920 ;; Download from GitHub so that the patch can be applied.
5921 (uri (git-reference
5922 (url "https://github.com/rack/rack")
5923 (commit version)))
5924 (file-name (git-file-name name version))
5925 (sha256
5926 (base32
5927 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5928 ;; Ignore test which fails inside the build environment but works
5929 ;; outside.
5930 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5931 (build-system ruby-build-system)
5932 (arguments
5933 '(#:phases
5934 (modify-phases %standard-phases
5935 (add-before 'check 'fix-tests
5936 (lambda _
5937 ;; A few of the tests use the length of a file on disk for
5938 ;; Content-Length and Content-Range headers. However, this file
5939 ;; has a shebang in it which an earlier phase patches, growing
5940 ;; the file size from 193 to 239 bytes when the store prefix is
5941 ;; "/gnu/store".
5942 (let ((size-diff (- (string-length (which "ruby"))
5943 (string-length "/usr/bin/env ruby"))))
5944 (substitute* '("test/spec_file.rb")
5945 (("193")
5946 (number->string (+ 193 size-diff)))
5947 (("bytes(.)22-33" all delimiter)
5948 (string-append "bytes"
5949 delimiter
5950 (number->string (+ 22 size-diff))
5951 "-"
5952 (number->string (+ 33 size-diff))))))
5953 #t))
5954 (add-before 'reset-gzip-timestamps 'make-files-writable
5955 (lambda* (#:key outputs #:allow-other-keys)
5956 ;; Make sure .gz files are writable so that the
5957 ;; 'reset-gzip-timestamps' phase can do its work.
5958 (let ((out (assoc-ref outputs "out")))
5959 (for-each make-file-writable
5960 (find-files out "\\.gz$"))
5961 #t))))))
5962 (native-inputs
5963 `(("ruby-minitest" ,ruby-minitest)
5964 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5965 ("which" ,which)))
5966 (propagated-inputs
5967 `(("ruby-concurrent" ,ruby-concurrent)))
5968 (synopsis "Unified web application interface for Ruby")
5969 (description "Rack provides a minimal, modular and adaptable interface for
5970 developing web applications in Ruby. By wrapping HTTP requests and responses,
5971 it unifies the API for web servers, web frameworks, and software in between
5972 into a single method call.")
5973 (home-page "https://rack.github.io/")
5974 (license license:expat)))
5975
5976 (define-public ruby-rack-test
5977 (package
5978 (name "ruby-rack-test")
5979 (version "0.8.3")
5980 (source
5981 (origin
5982 (method url-fetch)
5983 (uri (rubygems-uri "rack-test" version))
5984 (sha256
5985 (base32
5986 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5987 (build-system ruby-build-system)
5988 (arguments
5989 ;; Disable tests because of circular dependencies: requires sinatra,
5990 ;; which requires rack-protection, which requires rack-test. Instead
5991 ;; simply require the library.
5992 `(#:phases
5993 (modify-phases %standard-phases
5994 (replace 'check
5995 (lambda _
5996 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5997 (propagated-inputs
5998 `(("ruby-rack" ,ruby-rack)))
5999 (synopsis "Testing API for Rack applications")
6000 (description
6001 "Rack::Test is a small, simple testing API for Rack applications. It can
6002 be used on its own or as a reusable starting point for Web frameworks and
6003 testing libraries to build on.")
6004 (home-page "https://github.com/rack-test/rack-test")
6005 (license license:expat)))
6006
6007 (define-public ruby-rack-protection
6008 (package
6009 (name "ruby-rack-protection")
6010 (version "2.0.5")
6011 (source
6012 (origin
6013 (method url-fetch)
6014 (uri (rubygems-uri "rack-protection" version))
6015 (sha256
6016 (base32
6017 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6018 (build-system ruby-build-system)
6019 (arguments
6020 '(;; Tests missing from the gem.
6021 #:tests? #f))
6022 (propagated-inputs
6023 `(("ruby-rack" ,ruby-rack)))
6024 (native-inputs
6025 `(("bundler" ,bundler)
6026 ("ruby-rspec" ,ruby-rspec-2)
6027 ("ruby-rack-test" ,ruby-rack-test)))
6028 (synopsis "Rack middleware that protects against typical web attacks")
6029 (description "Rack middleware that can be used to protect against typical
6030 web attacks. It can protect all Rack apps, including Rails. For instance, it
6031 protects against cross site request forgery, cross site scripting,
6032 clickjacking, directory traversal, session hijacking and IP spoofing.")
6033 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6034 (license license:expat)))
6035
6036 (define-public ruby-rainbow
6037 (package
6038 (name "ruby-rainbow")
6039 (version "3.0.0")
6040 (source
6041 (origin
6042 (method url-fetch)
6043 (uri (rubygems-uri "rainbow" version))
6044 (sha256
6045 (base32
6046 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6047 (build-system ruby-build-system)
6048 (arguments
6049 '(#:phases
6050 (modify-phases %standard-phases
6051 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6052 ;; the Rakefile.
6053 (replace 'check
6054 (lambda* (#:key tests? #:allow-other-keys)
6055 (when tests?
6056 (invoke "rspec"))
6057 #t)))))
6058 (native-inputs
6059 `(("bundler" ,bundler)
6060 ("ruby-rspec" ,ruby-rspec)))
6061 (synopsis "Colorize printed text on ANSI terminals")
6062 (description
6063 "@code{rainbow} provides a string presenter object to colorize strings by
6064 wrapping them in ANSI escape codes.")
6065 (home-page "https://github.com/sickill/rainbow")
6066 (license license:expat)))
6067
6068 (define-public ruby-rr
6069 (package
6070 (name "ruby-rr")
6071 (version "1.2.1")
6072 (source
6073 (origin
6074 (method url-fetch)
6075 (uri (rubygems-uri "rr" version))
6076 (sha256
6077 (base32
6078 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6079 (build-system ruby-build-system)
6080 (arguments
6081 '(#:tests? #f)) ; test files not included
6082 (native-inputs
6083 `(("bundler" ,bundler)
6084 ("ruby-rspec" ,ruby-rspec)))
6085 (synopsis "Ruby test double framework")
6086 (description
6087 "RR is a test double framework that features a rich selection of double
6088 techniques and a terse syntax.")
6089 (home-page "https://rr.github.io/rr/")
6090 (license license:expat)))
6091
6092 (define-public ruby-rest-client
6093 (package
6094 (name "ruby-rest-client")
6095 (version "2.0.2")
6096 (source
6097 (origin
6098 (method url-fetch)
6099 (uri (rubygems-uri "rest-client" version))
6100 (sha256
6101 (base32
6102 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6103 (build-system ruby-build-system)
6104 (arguments
6105 '(#:phases
6106 (modify-phases %standard-phases
6107 (add-before 'check 'remove-unnecessary-development-dependencies
6108 (lambda _
6109 (substitute* "rest-client.gemspec"
6110 ;; Remove rubocop as it's unused. Rubocop also indirectly
6111 ;; depends on this package through ruby-parser and ruby-ast so
6112 ;; this avoids a dependency loop.
6113 ((".*rubocop.*") "\n")
6114 ;; Remove pry as it's unused, it's a debugging tool
6115 ((".*pry.*") "\n")
6116 ;; Remove an unnecessarily strict rdoc dependency
6117 ((".*rdoc.*") "\n"))
6118 #t))
6119 (add-before 'check 'delete-network-dependent-tests
6120 (lambda _
6121 (delete-file "spec/integration/request_spec.rb")
6122 (delete-file "spec/integration/httpbin_spec.rb")
6123 #t)))))
6124 (propagated-inputs
6125 `(("ruby-http-cookie" ,ruby-http-cookie)
6126 ("ruby-mime-types" ,ruby-mime-types)
6127 ("ruby-netrc" ,ruby-netrc)))
6128 (native-inputs
6129 `(("bundler" ,bundler)
6130 ("ruby-webmock" ,ruby-webmock-2)
6131 ("ruby-rspec" ,ruby-rspec)))
6132 (synopsis "Simple HTTP and REST client for Ruby")
6133 (description
6134 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6135 inspired by the Sinatra microframework style of specifying actions:
6136 @code{get}, @code{put}, @code{post}, @code{delete}.")
6137 (home-page "https://github.com/rest-client/rest-client")
6138 (license license:expat)))
6139
6140 (define-public ruby-rubocop
6141 (package
6142 (name "ruby-rubocop")
6143 (version "0.77.0")
6144 (source
6145 (origin
6146 (method url-fetch)
6147 (uri (rubygems-uri "rubocop" version))
6148 (sha256
6149 (base32
6150 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
6151 (build-system ruby-build-system)
6152 (arguments
6153 '(;; No included tests
6154 #:tests? #f))
6155 (propagated-inputs
6156 `(("ruby-parser" ,ruby-parser)
6157 ("ruby-powerpack" ,ruby-powerpack)
6158 ("ruby-rainbow" ,ruby-rainbow)
6159 ("ruby-progressbar" ,ruby-progressbar)
6160 ("ruby-parallel" ,ruby-parallel)
6161 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
6162 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
6163 (synopsis "Ruby code style checking tool")
6164 (description
6165 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
6166 the community-driven Ruby Style Guide.")
6167 (home-page "https://github.com/rubocop-hq/rubocop")
6168 (license license:expat)))
6169
6170 (define-public ruby-contest
6171 (package
6172 (name "ruby-contest")
6173 (version "0.1.3")
6174 (source
6175 (origin
6176 (method url-fetch)
6177 (uri (rubygems-uri "contest" version))
6178 (sha256
6179 (base32
6180 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
6181 (build-system ruby-build-system)
6182 (synopsis "Write declarative tests using nested contexts")
6183 (description
6184 "Contest allows writing declarative @code{Test::Unit} tests using nested
6185 contexts without performance penalties.")
6186 (home-page "https://github.com/citrusbyte/contest")
6187 (license license:expat)))
6188
6189 (define-public ruby-creole
6190 (package
6191 (name "ruby-creole")
6192 (version "0.5.0")
6193 (source
6194 (origin
6195 (method url-fetch)
6196 (uri (rubygems-uri "creole" version))
6197 (sha256
6198 (base32
6199 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
6200 (build-system ruby-build-system)
6201 (native-inputs
6202 `(("ruby-bacon" ,ruby-bacon)))
6203 (synopsis "Creole markup language converter")
6204 (description
6205 "Creole is a lightweight markup language and this library for converting
6206 creole to @code{HTML}.")
6207 (home-page "https://github.com/minad/creole")
6208 (license license:ruby)))
6209
6210 (define-public ruby-docile
6211 (package
6212 (name "ruby-docile")
6213 (version "1.1.5")
6214 (source
6215 (origin
6216 (method url-fetch)
6217 (uri (rubygems-uri "docile" version))
6218 (sha256
6219 (base32
6220 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
6221 (build-system ruby-build-system)
6222 (arguments
6223 '(#:tests? #f)) ; needs github-markup, among others
6224 (synopsis "Ruby EDSL helper library")
6225 (description "Docile is a Ruby library that provides an interface for
6226 creating embedded domain specific languages (EDSLs) that manipulate existing
6227 Ruby classes.")
6228 (home-page "https://ms-ati.github.io/docile/")
6229 (license license:expat)))
6230
6231 (define-public ruby-middleware
6232 (package
6233 (name "ruby-middleware")
6234 (version "0.1.0")
6235 (source
6236 (origin
6237 (method url-fetch)
6238 (uri (rubygems-uri "middleware" version))
6239 (sha256
6240 (base32
6241 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
6242 (build-system ruby-build-system)
6243 (arguments '(#:tests? #f)) ;no test suite
6244 (synopsis "Implementation of a middleware abstraction for Ruby")
6245 (description "Middleware is a generalized implementation of a middleware
6246 abstraction for Ruby.")
6247 (home-page "https://github.com/mitchellh/middleware")
6248 (license license:expat)))
6249
6250 (define-public ruby-benchmark-ips
6251 (package
6252 (name "ruby-benchmark-ips")
6253 (version "2.8.2")
6254 (source
6255 (origin
6256 (method url-fetch)
6257 (uri (rubygems-uri "benchmark-ips" version))
6258 (sha256
6259 (base32
6260 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
6261 (build-system ruby-build-system)
6262 (native-inputs
6263 `(("ruby-hoe" ,ruby-hoe)))
6264 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
6265 (description "Benchmark-ips enhances the Ruby Benchmark module with the
6266 iterations per second count. For short snippets of code, it can automatically
6267 figure out how many times to run the code to get interesting data.")
6268 (home-page "https://github.com/evanphx/benchmark-ips")
6269 (license license:expat)))
6270
6271 (define-public ruby-ffi-rzmq-core
6272 (package
6273 (name "ruby-ffi-rzmq-core")
6274 (version "1.0.7")
6275 (source
6276 (origin
6277 (method url-fetch)
6278 (uri (rubygems-uri "ffi-rzmq-core" version))
6279 (sha256
6280 (base32
6281 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
6282 (build-system ruby-build-system)
6283 (arguments
6284 `(#:phases
6285 (modify-phases %standard-phases
6286 (add-after 'unpack 'patch-libzmq-search-path
6287 (lambda* (#:key inputs #:allow-other-keys)
6288 (let ((zeromq (assoc-ref inputs "zeromq")))
6289 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
6290 (("/usr/local/lib")
6291 (string-append zeromq "/lib")))
6292 #t)))
6293 (replace 'check
6294 (lambda _
6295 (invoke "rspec"))))))
6296 (native-inputs
6297 `(("ruby-rspec" ,ruby-rspec)))
6298 (inputs
6299 `(("zeromq" ,zeromq)))
6300 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
6301 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
6302 (description "This library only provides the FFI wrapper for the ZeroMQ
6303 networking library. It can be used to implement a Ruby API for the ZeroMQ
6304 library.")
6305 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
6306 (license license:expat)))
6307
6308 (define-public ruby-ffi-rzmq
6309 (package
6310 (name "ruby-ffi-rzmq")
6311 (version "2.0.7")
6312 (source
6313 (origin
6314 (method url-fetch)
6315 (uri (rubygems-uri "ffi-rzmq" version))
6316 (sha256
6317 (base32
6318 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
6319 (build-system ruby-build-system)
6320 (arguments '(#:tests? #t
6321 #:phases (modify-phases %standard-phases
6322 (replace 'check
6323 (lambda _
6324 (invoke "rspec"))))))
6325 (native-inputs
6326 `(("ruby-rspec" ,ruby-rspec)))
6327 (propagated-inputs
6328 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
6329 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
6330 (description "This library provides a high-level API that wraps the ZeroMQ
6331 networking library using the Ruby foreign function interface (FFI). It is a
6332 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
6333 for FFI.")
6334 (home-page "https://github.com/chuckremes/ffi-rzmq")
6335 (license license:expat)))
6336
6337 (define-public ruby-sawyer
6338 (package
6339 (name "ruby-sawyer")
6340 (version "0.8.2")
6341 (source
6342 (origin
6343 (method url-fetch)
6344 (uri (rubygems-uri "sawyer" version))
6345 (sha256
6346 (base32
6347 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
6348 (build-system ruby-build-system)
6349 (propagated-inputs
6350 `(("ruby-addressable" ,ruby-addressable)
6351 ("ruby-faraday" ,ruby-faraday)))
6352 (synopsis "Experimental hypermedia agent for Ruby")
6353 (description "Sawyer is an experimental hypermedia agent for Ruby built on
6354 top of Faraday.")
6355 (home-page "https://github.com/lostisland/sawyer")
6356 (license license:expat)))
6357
6358 (define-public ruby-octokit
6359 (package
6360 (name "ruby-octokit")
6361 (version "4.18.0")
6362 (source
6363 (origin
6364 (method url-fetch)
6365 (uri (rubygems-uri "octokit" version))
6366 (sha256
6367 (base32
6368 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
6369 (build-system ruby-build-system)
6370 (arguments '(#:tests? #f)) ;no test suite in the gem release
6371 (propagated-inputs
6372 `(("ruby-faraday" ,ruby-faraday)
6373 ("ruby-sawyer" ,ruby-sawyer)))
6374 (synopsis "Ruby toolkit for the GitHub API")
6375 (description "Octokit wraps the GitHub API in a flat API client that
6376 follows Ruby conventions and requires little knowledge of REST.")
6377 (home-page "https://github.com/octokit/octokit.rb")
6378 (license license:expat)))
6379
6380 (define-public ruby-chandler
6381 (package
6382 (name "ruby-chandler")
6383 (version "0.9.0")
6384 (source
6385 (origin
6386 (method url-fetch)
6387 (uri (rubygems-uri "chandler" version))
6388 (sha256
6389 (base32
6390 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
6391 (build-system ruby-build-system)
6392 (native-inputs
6393 `(("ruby-rubocop" ,ruby-rubocop)))
6394 (propagated-inputs
6395 `(("ruby-netrc" ,ruby-netrc)
6396 ("ruby-octokit" ,ruby-octokit)))
6397 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
6398 (description "Chandler syncs a project's CHANGELOG file entries to
6399 GitHub's release notes to remove the need of manually entering release
6400 notes.")
6401 (home-page "https://github.com/mattbrictson/chandler")
6402 (license license:expat)))
6403
6404 (define-public ruby-pry-byebug
6405 (package
6406 (name "ruby-pry-byebug")
6407 (version "3.9.0")
6408 (source
6409 (origin
6410 (method git-fetch)
6411 (uri (git-reference
6412 (url "https://github.com/deivid-rodriguez/pry-byebug")
6413 (commit (string-append "v" version))))
6414 (file-name (git-file-name name version))
6415 (sha256
6416 (base32
6417 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
6418 (build-system ruby-build-system)
6419 (arguments
6420 `(#:phases (modify-phases %standard-phases
6421 (add-before 'check 'set-home
6422 (lambda _
6423 (setenv "HOME" (getcwd))
6424 #t)))))
6425 (native-inputs
6426 `(("ruby-chandler" ,ruby-chandler)
6427 ("ruby-rubocop" ,ruby-rubocop)
6428 ("ruby-simplecov" ,ruby-simplecov)))
6429 (propagated-inputs
6430 `(("ruby-byebug" ,ruby-byebug-11)
6431 ("ruby-pry" ,ruby-pry)))
6432 (synopsis "Step-by-step debugging and stack navigation in Pry")
6433 (description "This package adds step-by-step debugging and stack
6434 navigation capabilities to @code{pry}, using @code{byebug}.")
6435 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
6436 (license license:expat)))
6437
6438 (define-public ruby-binding-of-caller
6439 (package
6440 (name "ruby-binding-of-caller")
6441 (version "0.8.0")
6442 (source
6443 (origin
6444 (method url-fetch)
6445 (uri (rubygems-uri "binding_of_caller" version))
6446 (sha256
6447 (base32
6448 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
6449 (build-system ruby-build-system)
6450 ;; Attempting to run the test suite fails with a rake deprecation error
6451 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
6452 (arguments '(#:tests? #f))
6453 (propagated-inputs
6454 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
6455 (synopsis "Retrieve the binding of a method's caller")
6456 (description "The @code{binding_of_caller} module provides the
6457 @code{Binding#of_caller} method. It allows accessing bindings from upper
6458 frames in the call stack and can evaluate code in that context.")
6459 (home-page "https://github.com/banister/binding_of_caller")
6460 (license license:expat)))
6461
6462 (define-public ruby-pry-stack-explorer
6463 (package
6464 (name "ruby-pry-stack-explorer")
6465 (version "0.5.1")
6466 (source
6467 (origin
6468 (method url-fetch)
6469 (uri (rubygems-uri "pry-stack_explorer" version))
6470 (sha256
6471 (base32
6472 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
6473 (build-system ruby-build-system)
6474 (arguments '(#:tests? #f)) ;no test suite in gem release
6475 (propagated-inputs
6476 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
6477 ("ruby-pry" ,ruby-pry)))
6478 (synopsis "Call-stack navigation plugin for the Pry REPL")
6479 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
6480 add support to navigate the call-stack.")
6481 (home-page "https://github.com/pry/pry-stack_explorer")
6482 (license license:expat)))
6483
6484 (define-public ruby-varint
6485 (package
6486 (name "ruby-varint")
6487 (version "0.1.1")
6488 (source
6489 (origin
6490 (method url-fetch)
6491 (uri (rubygems-uri "varint" version))
6492 (sha256
6493 (base32
6494 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
6495 (build-system ruby-build-system)
6496 (arguments '(#:tests? #f)) ;no test suite
6497 (synopsis "Variable length integers (varint) C extension for Ruby")
6498 (description "This package provides a small C extension to speed up
6499 variable length integers (varint) in Ruby Protocol Buffers.")
6500 (home-page "https://github.com/liquidm/varint")
6501 (license license:bsd-3)))
6502
6503 (define-public ruby-ruby-prof
6504 (package
6505 (name "ruby-ruby-prof")
6506 (version "1.4.1")
6507 (source
6508 (origin
6509 (method url-fetch)
6510 (uri (rubygems-uri "ruby-prof" version))
6511 (sha256
6512 (base32
6513 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
6514 (build-system ruby-build-system)
6515 (arguments
6516 `(#:phases
6517 (modify-phases %standard-phases
6518 (add-after 'unpack 'patch-rakefile
6519 ;; This fixes the following error: "NameError: uninitialized
6520 ;; constant Bundler::GemHelper" (see:
6521 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
6522 (lambda _
6523 (substitute* "Rakefile"
6524 ((".*require \"bundler/setup\".*" all)
6525 (string-append all " require 'bundler/gem_tasks'\n")))
6526 #t))
6527 ;; The LineNumbersTest test fails non-deterministically (see:
6528 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
6529 (add-after 'extract-gemspec 'delete-flaky-test
6530 (lambda _
6531 (delete-file "test/line_number_test.rb")
6532 (substitute* "ruby-prof.gemspec"
6533 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
6534 #t))
6535 (add-before 'check 'compile
6536 (lambda _
6537 (invoke "rake" "compile"))))))
6538 (native-inputs
6539 `(("bundler" ,bundler)
6540 ("ruby-minitest" ,ruby-minitest)
6541 ("ruby-rake-compiler" ,ruby-rake-compiler)
6542 ("ruby-rdoc" ,ruby-rdoc)))
6543 (synopsis "Fast code profiler for Ruby")
6544 (description "RubyProf is a fast code profiler for Ruby. Its features
6545 include:
6546 @table @asis
6547 @item Speed
6548 Being a C extension, it is many times faster than the standard Ruby profiler.
6549 @item Measurement Modes
6550 It can measure program wall time, process time, object allocations and memory
6551 usage.
6552 @item Reports
6553 A variety of text and cross-referenced HTML reports can be generated.
6554 @item Threads
6555 Profiling multiple threads simultaneously is supported.
6556 @end table")
6557 (home-page "https://github.com/ruby-prof/ruby-prof")
6558 (license license:bsd-2)))
6559
6560 (define-public ruby-cucumber-messages
6561 (package
6562 (name "ruby-cucumber-messages")
6563 (version "12.2.0")
6564 (source (origin
6565 (method git-fetch)
6566 (uri (git-reference
6567 (url "https://github.com/cucumber/messages-ruby")
6568 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
6569 (file-name (git-file-name name version))
6570 (sha256
6571 (base32
6572 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
6573 (build-system ruby-build-system)
6574 (arguments
6575 `(#:phases (modify-phases %standard-phases
6576 (add-after 'unpack 'patch-protobuf.rb
6577 (lambda _
6578 (substitute* "rake/protobuf.rb"
6579 (("load 'protobuf/tasks/compile.rake'")
6580 "require 'protobuf/tasks'"))
6581 #t))
6582 (add-before 'build 'compile
6583 (lambda _
6584 (substitute* "Makefile"
6585 (("bundle exec ") "")
6586 (("include default.mk.*" all)
6587 (string-append "#" all)))
6588 (invoke "make")))
6589 (replace 'check
6590 (lambda _
6591 (invoke "rspec"))))))
6592 (propagated-inputs
6593 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
6594 (native-inputs
6595 `(("ruby-rspec" ,ruby-rspec)))
6596 (home-page "https://github.com/cucumber/messages-ruby")
6597 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
6598 (description "Cucumber Messages for Ruby is a library which allows
6599 serialization and deserialization of the protocol buffer messages used in
6600 Cucumber.")
6601 (license license:expat)))
6602
6603 (define-public ruby-gherkin
6604 (package
6605 (name "ruby-gherkin")
6606 (version "14.0.1")
6607 (source (origin
6608 (method git-fetch)
6609 (uri (git-reference
6610 (url "https://github.com/cucumber/gherkin-ruby")
6611 (commit (string-append "v" version))))
6612 (file-name (git-file-name name version))
6613 (sha256
6614 (base32
6615 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
6616 (build-system ruby-build-system)
6617 (native-inputs
6618 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6619 ("ruby-rspec" ,ruby-rspec)))
6620 (arguments
6621 `(#:test-target "spec"))
6622 (synopsis "Gherkin parser for Ruby")
6623 (description "Gherkin is a parser and compiler for the Gherkin language.
6624 It is intended be used by all Cucumber implementations to parse
6625 @file{.feature} files.")
6626 (home-page "https://github.com/cucumber/gherkin-ruby")
6627 (license license:expat)))
6628
6629 (define-public ruby-gherkin-ruby
6630 (package
6631 (name "ruby-gherkin-ruby")
6632 (version "0.3.2")
6633 (home-page "http://github.com/codegram/gherkin-ruby")
6634 (source (origin
6635 (method url-fetch)
6636 (uri (rubygems-uri "gherkin-ruby" version))
6637 (sha256
6638 (base32
6639 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
6640 (build-system ruby-build-system)
6641 (synopsis "Pure Ruby Gherkin parser")
6642 (description
6643 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
6644 200 lines of code.")
6645 ;; XXX: No license information anywhere but Readme.md.
6646 (license license:expat)))
6647
6648 (define-public ruby-aruba
6649 (package
6650 (name "ruby-aruba")
6651 (version "0.14.14")
6652 (source
6653 (origin
6654 (method url-fetch)
6655 (uri (rubygems-uri "aruba" version))
6656 (sha256
6657 (base32
6658 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
6659 (build-system ruby-build-system)
6660 (arguments
6661 '(#:test-target "spec"
6662 #:phases
6663 (modify-phases %standard-phases
6664 (add-after 'unpack 'patch
6665 (lambda _
6666 (substitute* "spec/aruba/api_spec.rb"
6667 ;; This resolves some errors in the specs
6668 ;;
6669 ;; undefined method `parse' for Time:Class
6670 (("require 'spec_helper'")
6671 "require 'spec_helper'\nrequire 'time'"))
6672 ;; Avoid shebang issues in this spec file
6673 (substitute* "spec/aruba/matchers/command_spec.rb"
6674 (("/usr/bin/env bash")
6675 (which "bash")))
6676 #t))
6677 (add-before 'check 'remove-unnecessary-dependencies
6678 (lambda _
6679 (substitute* "Gemfile"
6680 ((".*byebug.*") "\n")
6681 ((".*pry.*") "\n")
6682 ((".*yaml.*") "\n")
6683 ((".*bcat.*") "\n")
6684 ((".*kramdown.*") "\n")
6685 ((".*rubocop.*") "\n")
6686 ((".*cucumber-pro.*") "\n")
6687 ((".*cucumber.*") "\n")
6688 ((".*license_finder.*") "\n")
6689 ((".*rake.*") "gem 'rake'\n")
6690 ((".*relish.*") "\n"))
6691 (substitute* "aruba.gemspec"
6692 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
6693 "spec.add_runtime_dependency 'cucumber'"))
6694 #t))
6695 (add-before 'check 'set-home
6696 (lambda _ (setenv "HOME" "/tmp") #t)))))
6697 (native-inputs
6698 `(("bundler" ,bundler)
6699 ("ruby-rspec" ,ruby-rspec)
6700 ("ruby-fuubar" ,ruby-fuubar)
6701 ("ruby-simplecov" ,ruby-simplecov)))
6702 (propagated-inputs
6703 `(("ruby-childprocess" ,ruby-childprocess)
6704 ("ruby-contracts" ,ruby-contracts)
6705 ("ruby-cucumber" ,ruby-cucumber)
6706 ("ruby-ffi" ,ruby-ffi)
6707 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
6708 ("ruby-thor" ,ruby-thor)
6709 ("ruby-yard" ,ruby-yard)))
6710 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
6711 (description
6712 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
6713 command-line applications. It supports applications written in any
6714 language.")
6715 (home-page "https://github.com/cucumber/aruba")
6716 (license license:expat)))
6717
6718 ;; A version of ruby-aruba without tests run so that circular dependencies can
6719 ;; be avoided.
6720 (define ruby-aruba-without-tests
6721 (package
6722 (inherit ruby-aruba)
6723 (arguments '(#:tests? #f))
6724 (propagated-inputs
6725 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
6726 ,@(alist-delete "ruby-cucumber"
6727 (package-propagated-inputs ruby-aruba))))
6728 (native-inputs '())))
6729
6730 (define-public ruby-sys-uname
6731 (package
6732 (name "ruby-sys-uname")
6733 (version "1.2.1")
6734 (source
6735 (origin
6736 (method url-fetch)
6737 (uri (rubygems-uri "sys-uname" version))
6738 (sha256
6739 (base32
6740 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
6741 (build-system ruby-build-system)
6742 (arguments
6743 `(#:test-target "spec"))
6744 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
6745 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
6746 (synopsis "Ruby interface for gathering system information")
6747 (description "The sys-uname library provides an interface for gathering
6748 information about your current platform. It allows retrieving information
6749 such as the OS name, OS version, system name, etc.")
6750 (home-page "https://github.com/djberg96/sys-uname")
6751 (license license:asl2.0)))
6752
6753 (define-public ruby-cucumber-create-meta
6754 (package
6755 (name "ruby-cucumber-create-meta")
6756 (version "1.0.0")
6757 (source
6758 (origin
6759 (method url-fetch)
6760 (uri (rubygems-uri "cucumber-create-meta" version))
6761 (sha256
6762 (base32
6763 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
6764 (build-system ruby-build-system)
6765 (arguments
6766 `(#:phases (modify-phases %standard-phases
6767 (add-after 'extract-gemspec 'relax-version-requirements
6768 (lambda _
6769 (substitute* ".gemspec"
6770 ((" 12\\.2")
6771 " 12.1"))
6772 #t))
6773 (replace 'check
6774 (lambda _
6775 (invoke "rspec"))))))
6776 (native-inputs
6777 `(("ruby-rspec" ,ruby-rspec)))
6778 (propagated-inputs
6779 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6780 ("ruby-sys-uname" ,ruby-sys-uname)))
6781 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
6782 (description "The @code{createMeta} utility function allows generating
6783 system-specific @code{Meta} messages for Cucumber Ruby.")
6784 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
6785 (license license:expat)))
6786
6787 (define-public ruby-cucumber-html-formatter
6788 (package
6789 (name "ruby-cucumber-html-formatter")
6790 (version "7.0.0")
6791 (source
6792 (origin
6793 (method url-fetch)
6794 (uri (rubygems-uri "cucumber-html-formatter" version))
6795 (sha256
6796 (base32
6797 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
6798 (build-system ruby-build-system)
6799 (arguments
6800 `(#:phases (modify-phases %standard-phases
6801 (replace 'check
6802 (lambda _
6803 (invoke "rspec"))))))
6804 (native-inputs
6805 `(("ruby-rspec" ,ruby-rspec)))
6806 (propagated-inputs
6807 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
6808 (synopsis "HTML formatter for Cucumber")
6809 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
6810 runs. It is built on top of cucumber-react and works with any Cucumber
6811 implementation with a protocol buffer formatter that outputs Cucumber
6812 messages.")
6813 (home-page "https://github.com/cucumber/cucumber/tree/\
6814 master/html-formatter/ruby")
6815 (license license:expat)))
6816
6817 (define-public ruby-cucumber
6818 (package
6819 (name "ruby-cucumber")
6820 (version "4.1.0")
6821 (source
6822 (origin
6823 (method git-fetch)
6824 (uri (git-reference
6825 (url "https://github.com/cucumber/cucumber-ruby")
6826 (commit (string-append "v" version))))
6827 (file-name (git-file-name name version))
6828 (sha256
6829 (base32
6830 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
6831 (build-system ruby-build-system)
6832 (arguments
6833 '(#:test-target "default"
6834 #:phases
6835 (modify-phases %standard-phases
6836 (add-after 'unpack 'disable-rubocop
6837 ;; Rubocop lint check fails with our more recent version.
6838 (lambda _
6839 (substitute* "Rakefile"
6840 (("spec cucumber rubocop")
6841 "spec cucumber"))
6842 #t))
6843 (add-after 'extract-gemspec 'strip-version-requirements
6844 (lambda _
6845 (delete-file "Gemfile") ;do not use Bundler
6846 (substitute* "cucumber.gemspec"
6847 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6848 (string-append stripped "\n")))
6849 #t))
6850 (add-before 'check 'set-home
6851 (lambda _
6852 (setenv "HOME" (getcwd))
6853 #t)))))
6854 (propagated-inputs
6855 `(("ruby-builder" ,ruby-builder)
6856 ("ruby-cucumber-core" ,ruby-cucumber-core)
6857 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
6858 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
6859 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
6860 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
6861 ("ruby-diff-lcs" ,ruby-diff-lcs)
6862 ("ruby-gherkin" ,ruby-gherkin)
6863 ("ruby-multi-json" ,ruby-multi-json)
6864 ("ruby-multi-test" ,ruby-multi-test)))
6865 (native-inputs
6866 `(;; Use a untested version of aruba, to avoid a circular dependency, as
6867 ;; ruby-aruba depends on ruby-cucumber.
6868 ("ruby-aruba", ruby-aruba-without-tests)
6869 ("ruby-rspec" ,ruby-rspec)
6870 ("ruby-pry" ,ruby-pry)
6871 ("ruby-nokogiri" ,ruby-nokogiri)
6872 ("ruby-rubocop" ,ruby-rubocop)))
6873 (synopsis "Describe automated tests in plain language")
6874 (description "Cucumber is a tool for running automated tests written in
6875 plain language. It's designed to support a Behaviour Driven Development (BDD)
6876 software development workflow.")
6877 (home-page "https://cucumber.io/")
6878 (license license:expat)))
6879
6880 (define ruby-cucumber-without-tests
6881 (package (inherit ruby-cucumber)
6882 (arguments
6883 '(#:tests? #f))
6884 (native-inputs
6885 '())))
6886
6887 (define-public ruby-coveralls
6888 (package
6889 (name "ruby-coveralls")
6890 (version "0.8.23")
6891 (source
6892 (origin
6893 (method url-fetch)
6894 (uri (rubygems-uri "coveralls" version))
6895 (sha256
6896 (base32
6897 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
6898 (build-system ruby-build-system)
6899 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
6900 ;; because of its nonfree, Hippocratic derived license.
6901 (arguments '(#:tests? #f))
6902 (propagated-inputs
6903 `(("ruby-json" ,ruby-json)
6904 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
6905 ("ruby-thor" ,ruby-thor)
6906 ("ruby-tins" ,ruby-tins)))
6907 (synopsis "Ruby implementation of the Coveralls API")
6908 (description "This package provides a Ruby implementation of the Coveralls
6909 API.")
6910 (home-page "https://coveralls.io")
6911 (license license:expat)))
6912
6913 (define-public ruby-unindent
6914 (package
6915 (name "ruby-unindent")
6916 (version "1.0")
6917 (source
6918 (origin
6919 (method url-fetch)
6920 (uri (rubygems-uri "unindent" version))
6921 (sha256
6922 (base32
6923 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
6924 (build-system ruby-build-system)
6925 (synopsis "Ruby method to unindent strings")
6926 (description "This module provides a @code{String#unindent} Ruby method to
6927 unindent strings, which can be useful to unindent multiline strings embedded
6928 in already-indented code.")
6929 (home-page "https://github.com/mynyml/unindent")
6930 (license license:expat)))
6931
6932 (define-public ruby-cucumber-core
6933 (package
6934 (name "ruby-cucumber-core")
6935 (version "7.1.0")
6936 (source
6937 (origin
6938 (method git-fetch)
6939 (uri (git-reference
6940 (url "https://github.com/cucumber/cucumber-ruby-core")
6941 (commit (string-append "v" version))))
6942 (file-name (git-file-name name version))
6943 (sha256
6944 (base32
6945 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
6946 (build-system ruby-build-system)
6947 (arguments
6948 `(#:test-target "spec"
6949 #:phases
6950 (modify-phases %standard-phases
6951 (add-after 'extract-gemspec 'relax-version-requirements
6952 (lambda _
6953 (substitute* "cucumber-core.gemspec"
6954 (("'cucumber-tag-expressions',.*")
6955 "'cucumber-tag-expressions', '>=2.0.0'\n"))
6956 #t)))))
6957 (native-inputs
6958 `(("ruby-rspec" ,ruby-rspec)
6959 ("ruby-coveralls" ,ruby-coveralls)
6960 ("ruby-rubocop" ,ruby-rubocop)
6961 ("ruby-simplecov" ,ruby-simplecov)
6962 ("ruby-unindent" ,ruby-unindent)))
6963 (propagated-inputs
6964 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6965 ("ruby-gherkin" ,ruby-gherkin)
6966 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
6967 (synopsis "Core library for the Cucumber BDD app")
6968 (description "Cucumber is a tool for running automated tests
6969 written in plain language. Because they're written in plain language,
6970 they can be read by anyone on your team. Because they can be read by
6971 anyone, you can use them to help improve communication, collaboration
6972 and trust on your team.")
6973 (home-page "https://cucumber.io/")
6974 (license license:expat)))
6975
6976 (define-public ruby-cucumber-expressions
6977 (package
6978 (name "ruby-cucumber-expressions")
6979 (version "10.2.0")
6980 (source
6981 (origin
6982 (method git-fetch)
6983 (uri (git-reference
6984 (url "https://github.com/cucumber/cucumber-expressions-ruby")
6985 (commit (string-append "v" version))))
6986 (file-name (git-file-name name version))
6987 (sha256
6988 (base32
6989 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
6990 (build-system ruby-build-system)
6991 (arguments
6992 '(#:test-target "spec"))
6993 (native-inputs
6994 `(("ruby-rspec" ,ruby-rspec)
6995 ("ruby-simplecov" ,ruby-simplecov)))
6996 (synopsis "Simpler alternative to Regular Expressions")
6997 (description "Cucumber Expressions offer similar functionality to Regular
6998 Expressions, with a syntax that is easier to read and write. Cucumber
6999 Expressions are extensible with parameter types.")
7000 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7001 (license license:expat)))
7002
7003 (define-public ruby-cucumber-wire
7004 (package
7005 (name "ruby-cucumber-wire")
7006 (version "3.1.0")
7007 (source
7008 (origin
7009 (method url-fetch)
7010 (uri (rubygems-uri "cucumber-wire" version))
7011 (sha256
7012 (base32
7013 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
7014 (build-system ruby-build-system)
7015 (arguments
7016 '(#:tests? #f ;tests use cucumber, causing a cycle
7017 #:phases
7018 (modify-phases %standard-phases
7019 (add-after 'extract-gemspec 'relax-version-requirements
7020 (lambda _
7021 (substitute* ".gemspec"
7022 ((" 10\\.1") " 10.2"))
7023 #t)))))
7024 (propagated-inputs
7025 `(("ruby-cucumber-core" ,ruby-cucumber-core)
7026 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
7027 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7028 (synopsis "Cucumber wire protocol plugin")
7029 (description "Cucumber's wire protocol allows step definitions to be
7030 implemented and invoked on any platform.")
7031 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
7032 (license license:expat)))
7033
7034 (define-public ruby-cucumber-tag-expressions
7035 (package
7036 (name "ruby-cucumber-tag-expressions")
7037 (version "3.0.0")
7038 (source
7039 (origin
7040 (method git-fetch)
7041 (uri (git-reference
7042 (url "https://github.com/cucumber/tag-expressions-ruby")
7043 (commit (string-append "v" version))))
7044 (file-name (git-file-name name version))
7045 (sha256
7046 (base32
7047 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
7048 (build-system ruby-build-system)
7049 (arguments
7050 `(#:test-target "spec"))
7051 (native-inputs
7052 `(("ruby-rspec" ,ruby-rspec)))
7053 (synopsis "Cucumber tag expressions for Ruby")
7054 (description "Cucumber tag expression parser for Ruby. A tag expression
7055 is an infix boolean expression used by Cucumber.")
7056 (home-page "https://github.com/cucumber/tag-expressions-ruby")
7057 (license license:expat)))
7058
7059 (define-public ruby-bindex
7060 (package
7061 (name "ruby-bindex")
7062 (version "0.5.0")
7063 (source
7064 (origin
7065 (method url-fetch)
7066 (uri (rubygems-uri "bindex" version))
7067 (sha256
7068 (base32
7069 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
7070 (build-system ruby-build-system)
7071 (arguments
7072 '(#:test-target "default"))
7073 (native-inputs
7074 `(("bundler" ,bundler)
7075 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7076 (synopsis "Provides access for bindings relating to Ruby exceptions")
7077 (description
7078 "@code{bindex} provides a way to access the bindings that relate to
7079 exceptions in Ruby, providing more information about the context in which the
7080 exception occurred.")
7081 (home-page "https://github.com/gsamokovarov/bindex")
7082 (license license:expat)))
7083
7084 (define-public ruby-bio-logger
7085 (package
7086 (name "ruby-bio-logger")
7087 (version "1.0.1")
7088 (source
7089 (origin
7090 (method url-fetch)
7091 (uri (rubygems-uri "bio-logger" version))
7092 (sha256
7093 (base32
7094 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
7095 (build-system ruby-build-system)
7096 (arguments
7097 `(#:tests? #f)) ; rake errors, missing shoulda
7098 (propagated-inputs
7099 `(("ruby-log4r" ,ruby-log4r)))
7100 (synopsis "Log4r wrapper for Ruby")
7101 (description "Bio-logger is a wrapper around Log4r adding extra logging
7102 features such as filtering and fine grained logging.")
7103 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
7104 (license license:expat)))
7105
7106 (define-public ruby-yajl-ruby
7107 (package
7108 (name "ruby-yajl-ruby")
7109 (version "1.4.1")
7110 (source
7111 (origin
7112 (method url-fetch)
7113 (uri (rubygems-uri "yajl-ruby" version))
7114 (sha256
7115 (base32
7116 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
7117 (build-system ruby-build-system)
7118 (arguments
7119 '(#:test-target "spec"
7120 #:phases
7121 (modify-phases %standard-phases
7122 (add-before 'check 'patch-test-to-update-load-path
7123 (lambda _
7124 (substitute* "spec/parsing/large_number_spec.rb"
7125 (("require \"yajl\"")
7126 "$LOAD_PATH << 'lib'; require 'yajl'"))
7127 #t)))))
7128 (native-inputs
7129 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7130 ("ruby-rspec" ,ruby-rspec)))
7131 (synopsis "Streaming JSON parsing and encoding library for Ruby")
7132 (description
7133 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
7134 is compatible with the JSON gem, so yajl-ruby can act as a drop in
7135 replacement.
7136
7137 A modified copy of yajl is used, and included in the package.")
7138 (home-page "https://github.com/brianmario/yajl-ruby")
7139 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
7140 license:bsd-3)))) ; Included, modified copy of yajl
7141
7142 (define-public ruby-yard
7143 (package
7144 (name "ruby-yard")
7145 (version "0.9.25")
7146 (source
7147 (origin
7148 (method git-fetch)
7149 ;; Tests do not pass if we build from the distributed gem.
7150 (uri (git-reference
7151 (url "https://github.com/lsegal/yard")
7152 (commit (string-append "v" version))))
7153 (file-name (git-file-name name version))
7154 (sha256
7155 (base32
7156 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
7157 (build-system ruby-build-system)
7158 (arguments
7159 ;; Note: Tests are willfully disabled to alleviate dependency cycle
7160 ;; problems.
7161 `(#:tests? #f))
7162 (synopsis "Documentation generation tool for Ruby")
7163 (description "YARD is a documentation generation tool for the Ruby
7164 programming language. It enables the user to generate consistent, usable
7165 documentation that can be exported to a number of formats very easily, and
7166 also supports extending for custom Ruby constructs such as custom class level
7167 definitions.")
7168 (home-page "https://yardoc.org")
7169 (license license:expat)))
7170
7171 (define-public ruby-yard-with-tests
7172 (package
7173 (inherit ruby-yard)
7174 (name "ruby-yard-with-tests")
7175 (arguments
7176 (substitute-keyword-arguments (package-arguments ruby-yard)
7177 ((#:tests? _ #t) #t)
7178 ((#:test-target _ "default") "default")
7179 ((#:phases phases '%standard-phases)
7180 `(modify-phases ,phases
7181 (add-before 'check 'prepare-for-tests
7182 (lambda* (#:key tests? #:allow-other-keys)
7183 (when tests?
7184 (substitute* "Rakefile"
7185 ((".*[Ss]amus.*") ""))
7186 ;; Delete the Gemfile to avoid errors relating to it.
7187 (delete-file "Gemfile")
7188 ;; $HOME needs to be set to somewhere writeable for tests to
7189 ;; run.
7190 (setenv "HOME" "/tmp"))
7191 #t))))))
7192 (native-inputs
7193 `(("ruby-rspec" ,ruby-rspec)
7194 ("ruby-rack" ,ruby-rack)
7195 ("ruby-redcloth" ,ruby-redcloth)
7196 ("ruby-asciidoc" ,ruby-asciidoctor)))))
7197
7198 (define-public ruby-spectroscope
7199 (package
7200 (name "ruby-spectroscope")
7201 (version "0.1.0")
7202 (source
7203 (origin
7204 (method url-fetch)
7205 (uri (rubygems-uri "spectroscope" version))
7206 (sha256
7207 (base32
7208 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
7209 (build-system ruby-build-system)
7210 (arguments
7211 `(#:phases
7212 (modify-phases %standard-phases
7213 (replace 'check
7214 (lambda _
7215 (with-output-to-file ".test"
7216 (lambda _
7217 (display
7218 "\
7219 require 'ae/should'
7220 require 'rspec'
7221
7222 include RSpec
7223
7224 Test.run :default do |run|
7225 run.files << 'spec/*_spec.rb'
7226 end")))
7227 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
7228 (native-inputs
7229 `(("ruby-ae" ,ruby-ae)
7230 ("ruby-rspec" ,ruby-rspec)))
7231 (propagated-inputs
7232 `(("ruby-rubytest" ,ruby-rubytest)))
7233 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
7234 (description "Spectroscope is a Behavior-Driven Development (BDD)
7235 framework built on RubyTest, designed to emulate RSpec in most respects. It
7236 is assertion framework independent so any number of assertion systems can be
7237 used, such as Assay or AE.")
7238 (home-page "http://rubyworks.github.com/spectroscope/")
7239 (license license:bsd-2)))
7240
7241 (define-public ruby-tomparse
7242 (package
7243 (name "ruby-tomparse")
7244 (version "0.4.2")
7245 (source
7246 (origin
7247 (method url-fetch)
7248 (uri (rubygems-uri "tomparse" version))
7249 (sha256
7250 (base32
7251 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
7252 (build-system ruby-build-system)
7253 ;; TODO: Tests require citron and rulebow, not yet packaged.
7254 (arguments '(#:tests? #f))
7255 (synopsis "TomDoc parser for Ruby")
7256 (description "TomParse is a TomDoc parser for Ruby. It takes a code
7257 comment as input and parses it into a convenient object-oriented structure in
7258 accordance with the TomDoc standard. See
7259 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
7260 TomDoc format.")
7261 (home-page "http://rubyworks.github.com/tomparse/")
7262 (license license:bsd-2)))
7263
7264 (define-public ruby-yard-tomdoc
7265 (package
7266 (name "ruby-yard-tomdoc")
7267 (version "0.7.1")
7268 (source
7269 (origin
7270 (method url-fetch)
7271 (uri (rubygems-uri "yard-tomdoc" version))
7272 (sha256
7273 (base32
7274 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
7275 (build-system ruby-build-system)
7276 (arguments
7277 `(#:phases (modify-phases %standard-phases
7278 (replace 'check
7279 (lambda _
7280 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
7281 (native-inputs
7282 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
7283 ("ruby-spectroscope" ,ruby-spectroscope)
7284 ("ruby-ae" ,ruby-ae)))
7285 (propagated-inputs
7286 `(("ruby-tomparse" ,ruby-tomparse)
7287 ("ruby-yard" ,ruby-yard)))
7288 (synopsis "TomDoc syntax for YARD")
7289 (description "This module adds support for the TomDoc documentation format
7290 to YARD, a documentation generation tool for Ruby.")
7291 (home-page "http://rubyworks.github.com/yard-tomdoc/")
7292 (license license:expat)))
7293
7294 (define-public ruby-clap
7295 (package
7296 (name "ruby-clap")
7297 (version "1.0.0")
7298 (source (origin
7299 (method url-fetch)
7300 (uri (rubygems-uri "clap" version))
7301 (sha256
7302 (base32
7303 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
7304 (build-system ruby-build-system)
7305 ;; Clap needs cutest for running tests, but cutest needs clap.
7306 (arguments `(#:tests? #f))
7307 (synopsis "Command line argument parsing for simple applications")
7308 (description
7309 "Clap provides command line argument parsing features. It covers the
7310 simple case of executing code based on the flags or parameters passed.")
7311 (home-page "https://github.com/djanowski/cutest")
7312 (license license:expat)))
7313
7314 (define-public ruby-cutest
7315 (package
7316 (name "ruby-cutest")
7317 (version "1.2.2")
7318 (source (origin
7319 (method url-fetch)
7320 (uri (rubygems-uri "cutest" version))
7321 (sha256
7322 (base32
7323 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
7324 (build-system ruby-build-system)
7325 (propagated-inputs
7326 `(("ruby-clap" ,ruby-clap)))
7327 (synopsis "Run tests in separate processes")
7328 (description
7329 "Cutest runs tests in separate processes to avoid shared state.")
7330 (home-page "https://github.com/djanowski/cutest")
7331 (license license:expat)))
7332
7333 (define-public ruby-pygmentize
7334 (package
7335 (name "ruby-pygmentize")
7336 (version "0.0.3")
7337 (source (origin
7338 (method url-fetch)
7339 (uri (rubygems-uri "pygmentize" version))
7340 (sha256
7341 (base32
7342 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
7343 (build-system ruby-build-system)
7344 (arguments
7345 `(#:phases
7346 (modify-phases %standard-phases
7347 (add-after 'unpack 'fix-pygmentize-path
7348 (lambda _
7349 (substitute* "lib/pygmentize.rb"
7350 (("\"/usr/bin/env python.*")
7351 (string-append "\"" (which "pygmentize") "\"\n")))
7352 #t))
7353 (add-after 'build 'do-not-use-vendor-directory
7354 (lambda _
7355 ;; Remove bundled pygments sources
7356 ;; FIXME: ruby-build-system does not support snippets.
7357 (delete-file-recursively "vendor")
7358 (substitute* "pygmentize.gemspec"
7359 (("\"vendor/\\*\\*/\\*\",") ""))
7360 #t)))))
7361 (inputs
7362 `(("pygments" ,python-pygments)))
7363 (native-inputs
7364 `(("ruby-cutest" ,ruby-cutest)
7365 ("ruby-nokogiri" ,ruby-nokogiri)))
7366 (synopsis "Thin Ruby wrapper around pygmentize")
7367 (description
7368 "Pygmentize provides a simple way to call pygmentize from within a Ruby
7369 application.")
7370 (home-page "https://github.com/djanowski/pygmentize")
7371 (license license:expat)))
7372
7373 (define-public ruby-eventmachine
7374 (package
7375 (name "ruby-eventmachine")
7376 (version "1.2.7")
7377 (source
7378 (origin
7379 (method url-fetch)
7380 (uri (rubygems-uri "eventmachine" version))
7381 (sha256
7382 (base32
7383 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
7384 (build-system ruby-build-system)
7385 (arguments
7386 '(#:tests? #f)) ; test suite tries to connect to google.com
7387 (native-inputs
7388 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
7389 (synopsis "Single-threaded network event framework for Ruby")
7390 (description
7391 "EventMachine implements a single-threaded engine for arbitrary network
7392 communications. EventMachine wraps all interactions with sockets, allowing
7393 programs to concentrate on the implementation of network protocols. It can be
7394 used to create both network servers and clients.")
7395 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
7396 (home-page "https://github.com/eventmachine/eventmachine")
7397 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
7398
7399 (define-public ruby-ruby-engine
7400 (package
7401 (name "ruby-ruby-engine")
7402 (version "2.0.0")
7403 (source
7404 (origin
7405 (method url-fetch)
7406 (uri (rubygems-uri "ruby_engine" version))
7407 (sha256
7408 (base32
7409 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
7410 (build-system ruby-build-system)
7411 (arguments
7412 `(#:phases
7413 (modify-phases %standard-phases
7414 (add-after 'extract-gemspec 'clean-up
7415 (lambda _
7416 (delete-file "Gemfile.lock")
7417 (substitute* "ruby_engine.gemspec"
7418 ;; Remove unnecessary imports that would entail further
7419 ;; dependencies.
7420 ((".*<rdoc.*") "")
7421 ((".*<rubygems-tasks.*") "")
7422 ;; Remove extraneous .gem file
7423 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
7424 (("\"Gemfile.lock\".freeze, ") "")
7425 ;; Soften rake dependency
7426 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
7427 "%q<rake>.freeze, [\">= 10.0\"]")
7428 ;; Soften the rspec dependency
7429 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
7430 "%q<rspec>.freeze, [\">= 2.4\"]"))
7431 (substitute* "Rakefile"
7432 (("require 'rubygems/tasks'") "")
7433 (("Gem::Tasks.new") ""))
7434 ;; Remove extraneous .gem file that otherwise gets installed.
7435 (delete-file-recursively "pkg")
7436 #t)))))
7437 (native-inputs
7438 `(("bundler" ,bundler)
7439 ("ruby-rake" ,ruby-rake)
7440 ("ruby-rspec" ,ruby-rspec)))
7441 (synopsis "Simplifies checking for Ruby implementation")
7442 (description
7443 "@code{ruby_engine} provides an RubyEngine class that can be used to
7444 check which implementation of Ruby is in use. It can provide the interpreter
7445 name and provides query methods such as @{RubyEngine.mri?}.")
7446 (home-page "https://github.com/janlelis/ruby_engine")
7447 (license license:expat)))
7448
7449 (define-public ruby-turn
7450 (package
7451 (name "ruby-turn")
7452 (version "0.9.7")
7453 (source
7454 (origin
7455 (method url-fetch)
7456 (uri (rubygems-uri "turn" version))
7457 (sha256
7458 (base32
7459 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
7460 (build-system ruby-build-system)
7461 (arguments
7462 `(#:phases
7463 (modify-phases %standard-phases
7464 ;; Tests fail because turn changes its environment so can no longer
7465 ;; find test/unit. Instead simply test if the executable runs
7466 ;; without issue.
7467 (replace 'check
7468 (lambda _
7469 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
7470 (propagated-inputs
7471 `(("ruby-ansi" ,ruby-ansi)
7472 ("ruby-minitest" ,ruby-minitest-4)))
7473 (synopsis "Alternate set of alternative runners for MiniTest")
7474 (description
7475 "TURN provides a set of alternative runners for MiniTest which are both
7476 colorful and informative. TURN displays each test on a separate line with
7477 failures being displayed immediately instead of at the end of the tests. Note
7478 that TURN is no longer being maintained.")
7479 (home-page "https://rubygems.org/gems/turn")
7480 (license license:expat)))
7481
7482 (define-public ruby-mimemagic
7483 (package
7484 (name "ruby-mimemagic")
7485 (version "0.3.3")
7486 (source
7487 (origin
7488 (method url-fetch)
7489 (uri (rubygems-uri "mimemagic" version))
7490 (sha256
7491 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
7492 (build-system ruby-build-system)
7493 (arguments
7494 '(#:phases
7495 (modify-phases %standard-phases
7496 ;; This phase breaks the tests, as it patches some of the test data.
7497 (delete 'patch-source-shebangs))))
7498 (native-inputs
7499 `(("ruby-bacon" ,ruby-bacon)))
7500 (synopsis "Ruby library for MIME detection by extension or content")
7501 (description
7502 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
7503 extension or content, using the freedesktop.org.xml shared-mime-info
7504 database.")
7505 (home-page "https://github.com/minad/mimemagic")
7506 (license license:expat)))
7507
7508 (define-public ruby-mime-types-data
7509 (package
7510 (name "ruby-mime-types-data")
7511 (version "3.2016.0521")
7512 (source
7513 (origin
7514 (method url-fetch)
7515 (uri (rubygems-uri "mime-types-data" version))
7516 (sha256
7517 (base32
7518 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
7519 (build-system ruby-build-system)
7520 (native-inputs
7521 `(("ruby-hoe" ,ruby-hoe)))
7522 (synopsis "Registry for information about MIME media type definitions")
7523 (description
7524 "@code{mime-types-data} provides a registry for information about
7525 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
7526 be used with the Ruby mime-types library or other software to determine
7527 defined filename extensions for MIME types, or to use filename extensions to
7528 look up the likely MIME type definitions.")
7529 (home-page "https://github.com/mime-types/mime-types-data/")
7530 (license license:expat)))
7531
7532 (define-public ruby-mime-types
7533 (package
7534 (name "ruby-mime-types")
7535 (version "3.1")
7536 (source
7537 (origin
7538 (method url-fetch)
7539 (uri (rubygems-uri "mime-types" version))
7540 (sha256
7541 (base32
7542 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
7543 (build-system ruby-build-system)
7544 (propagated-inputs
7545 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
7546 (native-inputs
7547 `(("ruby-hoe" ,ruby-hoe)
7548 ("ruby-fivemat" ,ruby-fivemat)
7549 ("ruby-minitest-focus" ,ruby-minitest-focus)
7550 ("ruby-minitest-rg" ,ruby-minitest-rg)
7551 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
7552 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
7553 (synopsis "Library and registry for MIME content type definitions")
7554 (description "The mime-types library provides a library and registry for
7555 information about Multipurpose Internet Mail Extensions (MIME) content type
7556 definitions. It can be used to determine defined filename extensions for MIME
7557 types, or to use filename extensions to look up the likely MIME type
7558 definitions.")
7559 (home-page "https://github.com/mime-types/ruby-mime-types")
7560 (license license:expat)))
7561
7562 (define-public ruby-fivemat
7563 (package
7564 (name "ruby-fivemat")
7565 (version "1.3.7")
7566 (source
7567 (origin
7568 (method url-fetch)
7569 (uri (rubygems-uri "fivemat" version))
7570 (sha256
7571 (base32
7572 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
7573 (build-system ruby-build-system)
7574 (arguments
7575 `(#:tests? #f)) ; no tests
7576 (synopsis "Each test file given its own line of dots")
7577 (description
7578 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
7579 its own line of dots during testing. It aims to provide test output that is
7580 neither too verbose nor too minimal.")
7581 (home-page "https://github.com/tpope/fivemat")
7582 (license license:expat)))
7583
7584 (define-public ruby-sqlite3
7585 (package
7586 (name "ruby-sqlite3")
7587 (version "1.4.2")
7588 (source
7589 (origin
7590 (method url-fetch)
7591 (uri (rubygems-uri "sqlite3" version))
7592 (sha256
7593 (base32
7594 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
7595 (build-system ruby-build-system)
7596 (arguments
7597 `(#:phases
7598 (modify-phases %standard-phases
7599 (add-before 'check 'add-gemtest-file
7600 ;; This file exists in the repository but is not distributed.
7601 (lambda _ (invoke "touch" ".gemtest"))))))
7602 (inputs
7603 `(("sqlite" ,sqlite)))
7604 (native-inputs
7605 `(("ruby-hoe" ,ruby-hoe)
7606 ("ruby-rake-compiler" ,ruby-rake-compiler)
7607 ("ruby-mini-portile" ,ruby-mini-portile)))
7608 (synopsis "Interface with SQLite3 databases")
7609 (description
7610 "This module allows Ruby programs to interface with the SQLite3 database
7611 engine.")
7612 (home-page
7613 "https://github.com/sparklemotion/sqlite3-ruby")
7614 (license license:bsd-3)))
7615
7616 (define-public ruby-shoulda-context
7617 (package
7618 (name "ruby-shoulda-context")
7619 (version "1.2.2")
7620 (source
7621 (origin
7622 (method url-fetch)
7623 (uri (rubygems-uri "shoulda-context" version))
7624 (sha256
7625 (base32
7626 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
7627 (build-system ruby-build-system)
7628 (arguments
7629 `(#:phases
7630 (modify-phases %standard-phases
7631 (replace 'check
7632 (lambda _
7633 ;; Do not run tests to avoid circular dependence with rails.
7634 ;; Instead just import the library to test.
7635 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
7636 (synopsis "Test::Unit context framework extracted from Shoulda")
7637 (description
7638 "@code{shoulda-context} is the context framework extracted from Shoulda.
7639 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
7640 context, setup, and should blocks combine to produce natural test method
7641 names.")
7642 (home-page "https://github.com/thoughtbot/shoulda-context")
7643 (license license:expat)))
7644
7645 (define-public ruby-shoulda-matchers
7646 (package
7647 (name "ruby-shoulda-matchers")
7648 (version "3.1.2")
7649 (source
7650 (origin
7651 (method url-fetch)
7652 (uri (rubygems-uri "shoulda-matchers" version))
7653 (sha256
7654 (base32
7655 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
7656 (build-system ruby-build-system)
7657 (arguments
7658 `(#:phases
7659 (modify-phases %standard-phases
7660 (replace 'check
7661 (lambda _
7662 ;; Do not run tests to avoid circular dependence with rails. Instead
7663 ;; just import the library to test.
7664 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
7665 (propagated-inputs
7666 `(("ruby-activesupport" ,ruby-activesupport)))
7667 (synopsis "Collection of testing matchers extracted from Shoulda")
7668 (description
7669 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
7670 test common Rails functionality. These tests would otherwise be much longer,
7671 more complex, and error-prone.")
7672 (home-page "https://github.com/thoughtbot/shoulda-matchers")
7673 (license license:expat)))
7674
7675 (define-public ruby-shoulda-matchers-2
7676 (package
7677 (inherit ruby-shoulda-matchers)
7678 (version "2.8.0")
7679 (source (origin
7680 (method url-fetch)
7681 (uri (rubygems-uri "shoulda-matchers" version))
7682 (sha256
7683 (base32
7684 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
7685
7686 (define-public ruby-shoulda
7687 (package
7688 (name "ruby-shoulda")
7689 (version "3.5.0")
7690 (source
7691 (origin
7692 (method url-fetch)
7693 (uri (rubygems-uri "shoulda" version))
7694 (sha256
7695 (base32
7696 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
7697 (build-system ruby-build-system)
7698 (arguments
7699 `(#:phases
7700 (modify-phases %standard-phases
7701 (replace 'check
7702 ;; Don't run tests to avoid circular dependence with rails. Instead
7703 ;; just import the library to test.
7704 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
7705 (propagated-inputs
7706 `(("ruby-shoulda-context" ,ruby-shoulda-context)
7707 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
7708 (synopsis "Context framework and matchers for testing")
7709 (description
7710 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
7711 @code{shoulda-matchers} providing tools for writing tests.")
7712 (home-page "https://github.com/thoughtbot/shoulda")
7713 (license license:expat)))
7714
7715 (define-public ruby-unf
7716 (package
7717 (name "ruby-unf")
7718 (version "0.1.4")
7719 (source
7720 (origin
7721 (method url-fetch)
7722 (uri (rubygems-uri "unf" version))
7723 (sha256
7724 (base32
7725 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
7726 (build-system ruby-build-system)
7727 (arguments
7728 `(#:phases
7729 (modify-phases %standard-phases
7730 (add-before 'check 'add-dependency-to-bundler
7731 (lambda _
7732 ;; test-unit is required but not provided by the bundler
7733 ;; environment. This is fixed in the upstream repository but fix
7734 ;; has not been released.
7735 (substitute* "Gemfile"
7736 (("^gemspec") "gem 'test-unit'\ngemspec"))
7737 #t)))))
7738 (propagated-inputs
7739 `(("ruby-unf-ext" ,ruby-unf-ext)))
7740 (native-inputs
7741 `(("ruby-shoulda" ,ruby-shoulda)
7742 ("bundler" ,bundler)
7743 ("ruby-test-unit" ,ruby-test-unit)))
7744 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
7745 (description
7746 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
7747 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
7748 @code{java.text.Normalizer} on JRuby.")
7749 (home-page "https://github.com/knu/ruby-unf")
7750 (license license:bsd-2)))
7751
7752 (define-public ruby-warden
7753 (package
7754 (name "ruby-warden")
7755 (version "1.2.8")
7756 (source
7757 (origin
7758 (method url-fetch)
7759 (uri (rubygems-uri "warden" version))
7760 (sha256
7761 (base32
7762 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
7763 (build-system ruby-build-system)
7764 (arguments
7765 '(#:tests? #f)) ; No included tests
7766 (propagated-inputs
7767 `(("ruby-rack" ,ruby-rack)))
7768 (synopsis "Rack middleware providing authentication")
7769 (description
7770 "Warden is a Rack-based middleware that provides a mechanism for
7771 authentication in Ruby web applications.")
7772 (home-page "https://github.com/wardencommunity/warden")
7773 (license license:expat)))
7774
7775 (define-public ruby-warden-oauth2
7776 (package
7777 (name "ruby-warden-oauth2")
7778 (version "0.0.1")
7779 (source
7780 (origin
7781 (method url-fetch)
7782 (uri (rubygems-uri "warden-oauth2" version))
7783 (sha256
7784 (base32
7785 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
7786 (build-system ruby-build-system)
7787 (arguments
7788 '(#:test-target "spec"
7789 #:phases
7790 (modify-phases %standard-phases
7791 (add-after 'unpack 'remove-unnecessary-dependencies
7792 (lambda _
7793 (substitute* "Gemfile"
7794 ;; All of these gems relate to development, and are unnecessary
7795 ;; when running the tests
7796 (("gem 'guard-bundler'") "")
7797 (("gem 'guard'") "")
7798 (("gem 'guard-rspec'") "")
7799 (("gem 'rb-fsevent'") "")
7800 (("gem 'pry'") "")
7801 (("gem 'growl'") ""))
7802 #t))
7803 ;; The test suite doesn't work with rspec@2, and this is incompatible
7804 ;; with the current version of Rake, so invoke Rspec directly
7805 (replace 'check
7806 (lambda* (#:key tests? #:allow-other-keys)
7807 (when tests?
7808 (invoke "bundle" "exec" "rspec"))
7809 #t)))))
7810 (propagated-inputs
7811 `(("ruby-warden" ,ruby-warden)))
7812 (native-inputs
7813 `(("bundler" ,bundler)
7814 ("ruby-rspec" ,ruby-rspec-2)
7815 ("ruby-rack-test" ,ruby-rack-test)))
7816 (synopsis "OAuth 2.0 strategies for Warden")
7817 (description
7818 "This library extends Warden to support OAuth 2.0 authorized API
7819 requests.")
7820 (home-page "https://github.com/opperator/warden-oauth2")
7821 (license license:expat)))
7822
7823 (define-public ruby-webmock-2
7824 (package
7825 (name "ruby-webmock")
7826 (version "2.3.2")
7827 (source
7828 (origin
7829 (method url-fetch)
7830 (uri (rubygems-uri "webmock" version))
7831 (sha256
7832 (base32
7833 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
7834 (build-system ruby-build-system)
7835 (native-inputs
7836 `(("bundler" ,bundler)
7837 ("ruby-rspec" ,ruby-rspec)))
7838 (propagated-inputs
7839 `(("ruby-addressable" ,ruby-addressable)
7840 ("ruby-crack" ,ruby-crack)
7841 ("ruby-hashdiff" ,ruby-hashdiff)))
7842 (synopsis "Allows stubbing and setting expectations on HTTP requests")
7843 (description
7844 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
7845 requests. This is useful when testing software.")
7846 (home-page "https://github.com/bblimke/webmock")
7847 (license license:expat)))
7848
7849 (define-public ruby-unicode-display-width
7850 (package
7851 (name "ruby-unicode-display-width")
7852 (version "1.6.0")
7853 (source
7854 (origin
7855 (method url-fetch)
7856 (uri (rubygems-uri "unicode-display_width" version))
7857 (sha256
7858 (base32
7859 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
7860 (build-system ruby-build-system)
7861 (arguments
7862 '(;; Test data not included.
7863 #:tests? #f))
7864 (synopsis "Determine the monospace display width of Ruby strings")
7865 (description
7866 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
7867 display width of strings in Ruby.")
7868 (home-page "https://github.com/janlelis/unicode-display_width")
7869 (license license:expat)))
7870
7871 ;; There is another gem called 'ruby-version' so we use an underscore in this
7872 ;; name
7873 (define-public ruby_version
7874 (package
7875 (name "ruby_version")
7876 (version "1.0.2")
7877 (source
7878 (origin
7879 (method url-fetch)
7880 (uri (rubygems-uri "ruby_version" version))
7881 (sha256
7882 (base32
7883 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
7884 (build-system ruby-build-system)
7885 (arguments
7886 `(#:phases
7887 (modify-phases %standard-phases
7888 (add-before 'check 'fix-dependencies
7889 (lambda _
7890 ;; Remove the Gemfile.lock, as we want to use Guix packages at
7891 ;; whatever versions.
7892 (delete-file "Gemfile.lock")
7893 ;; Remove the included gem files as they unnecessary.
7894 (delete-file-recursively "pkg/")
7895 ;; Accept any version of rake, rdoc and rspec
7896 (substitute* "ruby_version.gemspec"
7897 (("%q<rake.*") "%q<rake>)\n")
7898 (("%q<rdoc.*") "%q<rdoc>)\n")
7899 (("%q<rspec.*") "%q<rspec>)\n"))
7900 ;; Do not use bundler.
7901 (substitute* "Rakefile"
7902 (("Bundler\\.setup.*") "nil\n"))
7903 #t)))))
7904 (native-inputs
7905 `(("ruby-rdoc" ,ruby-rdoc)
7906 ("ruby-rspec" ,ruby-rspec)
7907 ("ruby-rubygems-tasks", ruby-rubygems-tasks)))
7908 (synopsis "Ruby library to help check the Ruby version")
7909 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
7910 checking for the right Ruby version in software.")
7911 (home-page "https://github.com/janlelis/ruby_version")
7912 (license license:expat)))
7913
7914 (define-public ruby-websocket-driver
7915 (package
7916 (name "ruby-websocket-driver")
7917 (version "0.7.1")
7918 (source
7919 (origin
7920 (method url-fetch)
7921 (uri (rubygems-uri "websocket-driver" version))
7922 (sha256
7923 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
7924 (build-system ruby-build-system)
7925 (arguments
7926 '(#:tests? #f)) ; no included tests
7927 (propagated-inputs
7928 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
7929 (synopsis "WebSocket protocol handler with pluggable I/O")
7930 (description
7931 "@code{websocket-driver} provides a complete implementation of the
7932 WebSocket protocols that can be hooked up to any TCP library")
7933 (home-page "https://github.com/faye/websocket-driver-ruby")
7934 (license license:expat)))
7935
7936 (define-public ruby-websocket-extensions
7937 (package
7938 (name "ruby-websocket-extensions")
7939 (version "0.1.3")
7940 (source
7941 (origin
7942 (method url-fetch)
7943 (uri (rubygems-uri "websocket-extensions" version))
7944 (sha256
7945 (base32
7946 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
7947 (build-system ruby-build-system)
7948 (arguments
7949 '(;; No included tests
7950 #:tests? #f))
7951 (synopsis "Generic extension manager for WebSocket connections")
7952 (description
7953 "@code{websocket-extensions} provides a container for registering
7954 extension plugins.")
7955 (home-page "https://github.com/faye/websocket-extensions-ruby")
7956 (license license:expat)))
7957
7958 (define-public ruby-domain-name
7959 (package
7960 (name "ruby-domain-name")
7961 (version "0.5.20180417")
7962 (source
7963 (origin
7964 (method url-fetch)
7965 (uri (rubygems-uri "domain_name" version))
7966 (sha256
7967 (base32
7968 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
7969 (build-system ruby-build-system)
7970 (arguments
7971 `(#:phases
7972 (modify-phases %standard-phases
7973 (add-before 'check 'fix-versions
7974 (lambda _
7975 ;; Fix NameError that appears to already be fixed upstream.
7976 (substitute* "Rakefile"
7977 (("DomainName::VERSION")
7978 "Bundler::GemHelper.gemspec.version"))
7979 ;; Loosen unnecessarily strict test-unit version specification.
7980 (substitute* "domain_name.gemspec"
7981 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
7982 #t)))))
7983 (propagated-inputs
7984 `(("ruby-unf" ,ruby-unf)))
7985 (native-inputs
7986 `(("ruby-shoulda" ,ruby-shoulda)
7987 ("bundler" ,bundler)
7988 ("ruby-test-unit" ,ruby-test-unit)))
7989 (synopsis "Domain name manipulation library")
7990 (description
7991 "@code{domain_name} is a Domain name manipulation library. It parses a
7992 domain name ready for extracting the registered domain and TLD (Top Level
7993 Domain). It can also be used for cookie domain validation based on the Public
7994 Suffix List.")
7995 (home-page "https://github.com/knu/ruby-domain_name")
7996 (license license:bsd-2)))
7997
7998 (define-public ruby-http-cookie
7999 (package
8000 (name "ruby-http-cookie")
8001 (version "1.0.3")
8002 (source
8003 (origin
8004 (method url-fetch)
8005 (uri (rubygems-uri "http-cookie" version))
8006 (sha256
8007 (base32
8008 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
8009 (build-system ruby-build-system)
8010 (arguments
8011 `(#:phases
8012 (modify-phases %standard-phases
8013 (add-before 'check 'add-dependency-to-bundler
8014 (lambda _
8015 ;; Fix NameError
8016 (substitute* "Rakefile"
8017 (("HTTP::Cookie::VERSION")
8018 "Bundler::GemHelper.gemspec.version"))
8019 #t)))))
8020 (propagated-inputs
8021 `(("ruby-domain-name" ,ruby-domain-name)))
8022 (native-inputs
8023 `(("rubysimplecov" ,ruby-simplecov)
8024 ("bundler" ,bundler)
8025 ("ruby-sqlite3" ,ruby-sqlite3)
8026 ("ruby-test-unit" ,ruby-test-unit)))
8027 (synopsis "Handle HTTP Cookies based on RFC 6265")
8028 (description
8029 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
8030 RFC 6265. It has been designed with security, standards compliance and
8031 compatibility in mind, to behave just the same as today's major web browsers.
8032 It has built-in support for the legacy @code{cookies.txt} and
8033 @code{cookies.sqlite} formats of Mozilla Firefox.")
8034 (home-page "https://github.com/sparklemotion/http-cookie")
8035 (license license:expat)))
8036
8037 (define-public ruby-httpclient
8038 (package
8039 (name "ruby-httpclient")
8040 (version "2.8.3")
8041 (source
8042 (origin
8043 (method url-fetch)
8044 (uri (rubygems-uri "httpclient" version))
8045 (sha256
8046 (base32
8047 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
8048 (build-system ruby-build-system)
8049 (arguments
8050 '(;; TODO: Some tests currently fail
8051 ;; ------
8052 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
8053 ;; 2 omissions, 0 notifications
8054 ;; 91.866% passed
8055 ;; ------
8056 ;; 6.49 tests/s, 22.41 assertions/s
8057 #:tests? #f
8058 #:phases
8059 (modify-phases %standard-phases
8060 (replace 'check
8061 (lambda* (#:key tests? #:allow-other-keys)
8062 (if tests?
8063 (invoke "ruby"
8064 "-Ilib"
8065 "test/runner.rb")
8066 #t))))))
8067 (native-inputs
8068 `(("ruby-rack" ,ruby-rack)))
8069 (synopsis
8070 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
8071 (description
8072 "The @code{httpclient} ruby library provides functionality related to
8073 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
8074 Cookie, multithreading and authentication (digest, NTLM) support.
8075
8076 Also provided is a @command{httpclient} command, which can perform HTTP
8077 requests either using arguments or with an interactive prompt.")
8078 (home-page "https://github.com/nahi/httpclient")
8079 (license license:ruby)))
8080
8081 (define-public ruby-ansi
8082 (package
8083 (name "ruby-ansi")
8084 (version "1.5.0")
8085 (source
8086 (origin
8087 (method git-fetch)
8088 ;; Fetch from GitHub as the gem does not contain testing code.
8089 (uri (git-reference
8090 (url "https://github.com/rubyworks/ansi")
8091 (commit version)))
8092 (file-name (git-file-name name version))
8093 (sha256
8094 (base32
8095 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
8096 (build-system ruby-build-system)
8097 (arguments
8098 `(#:phases
8099 (modify-phases %standard-phases
8100 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
8101 ;; cycle ansi, qed, ansi. Instead simply test that the library can
8102 ;; be require'd.
8103 (replace 'check
8104 (lambda _
8105 (invoke "ruby" "-Ilib" "-r" "ansi")))
8106 (add-before 'validate-runpath 'replace-broken-symlink
8107 (lambda* (#:key outputs #:allow-other-keys)
8108 (let* ((out (assoc-ref outputs "out"))
8109 (file (string-append
8110 out "/lib/ruby/vendor_ruby/gems/ansi-"
8111 ,version "/lib/ansi.yml")))
8112 ;; XXX: This symlink is broken since ruby 2.4.
8113 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
8114 (delete-file file)
8115 (symlink "../.index" file)
8116 #t))))))
8117 (synopsis "ANSI escape code related libraries")
8118 (description
8119 "This package is a collection of ANSI escape code related libraries
8120 enabling ANSI colorization and stylization of console output. Included in the
8121 library are the @code{Code} module, which defines ANSI codes as constants and
8122 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
8123 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
8124 @code{Terminal} module which provides information about the current output
8125 device.")
8126 (home-page "https://rubyworks.github.io/ansi/")
8127 (license license:bsd-2)))
8128
8129 (define-public ruby-systemu
8130 (package
8131 (name "ruby-systemu")
8132 (version "2.6.5")
8133 (source
8134 (origin
8135 (method url-fetch)
8136 (uri (rubygems-uri "systemu" version))
8137 (sha256
8138 (base32
8139 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
8140 (build-system ruby-build-system)
8141 (arguments
8142 `(#:phases
8143 (modify-phases %standard-phases
8144 (add-before 'check 'set-version
8145 (lambda _
8146 (setenv "VERSION" ,version)
8147 #t)))))
8148 (synopsis "Capture of stdout/stderr and handling of child processes")
8149 (description
8150 "Systemu can be used on any platform to return status, stdout, and stderr
8151 of any command. Unlike other methods like @code{open3} and @code{popen4}
8152 there is no danger of full pipes or threading issues hanging your process or
8153 subprocess.")
8154 (home-page "https://github.com/ahoward/systemu")
8155 (license license:ruby)))
8156
8157 (define-public ruby-bio-commandeer
8158 (package
8159 (name "ruby-bio-commandeer")
8160 (version "0.4.0")
8161 (source
8162 (origin
8163 (method url-fetch)
8164 (uri (rubygems-uri "bio-commandeer" version))
8165 (sha256
8166 (base32
8167 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
8168 (build-system ruby-build-system)
8169 (arguments
8170 `(#:phases
8171 (modify-phases %standard-phases
8172 (replace 'check
8173 ;; Run test without calling 'rake' so that jeweler is
8174 ;; not required as an input.
8175 (lambda _
8176 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
8177 (propagated-inputs
8178 `(("ruby-bio-logger" ,ruby-bio-logger)
8179 ("ruby-systemu" ,ruby-systemu)))
8180 (native-inputs
8181 `(("bundler" ,bundler)
8182 ("ruby-rspec" ,ruby-rspec)))
8183 (synopsis "Simplified running of shell commands from within Ruby")
8184 (description
8185 "Bio-commandeer provides an opinionated method of running shell commands
8186 from within Ruby. The advantage of bio-commandeer over other methods of
8187 running external commands is that when something goes wrong, messages printed
8188 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
8189 detail to ease debugging.")
8190 (home-page "https://github.com/wwood/bioruby-commandeer")
8191 (license license:expat)))
8192
8193 (define-public ruby-rubytest
8194 (package
8195 (name "ruby-rubytest")
8196 (version "0.8.1")
8197 (source
8198 (origin
8199 (method url-fetch)
8200 (uri (rubygems-uri "rubytest" version))
8201 (sha256
8202 (base32
8203 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
8204 (build-system ruby-build-system)
8205 (arguments
8206 ;; Disable regular testing to break the cycle rubytest, qed, brass,
8207 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
8208 ;; simply test that the library can be require'd.
8209 `(#:phases
8210 (modify-phases %standard-phases
8211 (replace 'check
8212 (lambda _
8213 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
8214 (propagated-inputs
8215 `(("ruby-ansi" ,ruby-ansi)))
8216 (synopsis "Universal test harness for Ruby")
8217 (description
8218 "Rubytest is a testing meta-framework for Ruby. It can handle any
8219 compliant test framework and can run tests from multiple frameworks in a
8220 single pass.")
8221 (home-page "https://rubyworks.github.io/rubytest")
8222 (license license:bsd-2)))
8223
8224 (define-public ruby-brass
8225 (package
8226 (name "ruby-brass")
8227 (version "1.2.1")
8228 (source
8229 (origin
8230 (method url-fetch)
8231 (uri (rubygems-uri "brass" version))
8232 (sha256
8233 (base32
8234 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
8235 (build-system ruby-build-system)
8236 (arguments
8237 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
8238 ;; Instead simply test that the library can be require'd.
8239 `(#:phases
8240 (modify-phases %standard-phases
8241 (replace 'check
8242 (lambda _
8243 (invoke "ruby" "-Ilib" "-r" "brass"))))))
8244 (synopsis "Basic foundational assertions framework")
8245 (description
8246 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
8247 foundational assertions framework for other assertion and test frameworks to
8248 make use of.")
8249 (home-page "https://rubyworks.github.io/brass")
8250 (license license:bsd-2)))
8251
8252 (define-public ruby-qed
8253 (package
8254 (name "ruby-qed")
8255 (version "2.9.2")
8256 (source
8257 (origin
8258 (method url-fetch)
8259 (uri (rubygems-uri "qed" version))
8260 (sha256
8261 (base32
8262 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
8263 (build-system ruby-build-system)
8264 (arguments
8265 ;; Disable testing to break the cycle qed, ansi, qed, among others.
8266 ;; Instead simply test that the executable runs using --copyright.
8267 `(#:phases
8268 (modify-phases %standard-phases
8269 (replace 'check
8270 (lambda _
8271 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
8272 (propagated-inputs
8273 `(("ruby-ansi" ,ruby-ansi)
8274 ("ruby-brass" ,ruby-brass)))
8275 (synopsis "Test framework utilizing literate programming techniques")
8276 (description
8277 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
8278 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
8279 Development} (BDD) utilizing Literate Programming techniques. QED sits
8280 somewhere between lower-level testing tools like @code{Test::Unit} and
8281 requirement specifications systems like Cucumber.")
8282 (home-page "https://rubyworks.github.io/qed")
8283 (license license:bsd-2)))
8284
8285 (define-public ruby-que
8286 (package
8287 (name "ruby-que")
8288 (version "1.0.0.beta3")
8289 (source
8290 (origin
8291 (method url-fetch)
8292 (uri (rubygems-uri "que" version))
8293 (sha256
8294 (base32
8295 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
8296 (build-system ruby-build-system)
8297 (arguments
8298 '(#:tests? #f)) ; No included tests
8299 (synopsis "Job queue using PostgreSQL written in Ruby")
8300 (description
8301 "This package provides a job queue that uses PostgreSQL for storing jobs
8302 and locking between worker processes.")
8303 (home-page "https://github.com/chanks/que")
8304 (license license:expat)))
8305
8306 (define-public ruby-ae
8307 (package
8308 (name "ruby-ae")
8309 (version "1.8.2")
8310 (source
8311 (origin
8312 (method git-fetch)
8313 ;; Fetch from github so tests are included.
8314 (uri (git-reference
8315 (url "https://github.com/rubyworks/ae")
8316 (commit version)))
8317 (file-name (git-file-name name version))
8318 (sha256
8319 (base32
8320 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
8321 (build-system ruby-build-system)
8322 (arguments
8323 `(#:phases
8324 (modify-phases %standard-phases
8325 (replace 'check
8326 (lambda _ (invoke "qed")))
8327 (add-before 'validate-runpath 'replace-broken-symlink
8328 (lambda* (#:key outputs #:allow-other-keys)
8329 (let* ((out (assoc-ref outputs "out"))
8330 (file (string-append
8331 out "/lib/ruby/vendor_ruby/gems/ae-"
8332 ,version "/lib/ae.yml")))
8333 ;; XXX: This symlink is broken since ruby 2.4.
8334 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
8335 (delete-file file)
8336 (symlink "../.index" file)
8337 #t))))))
8338 (propagated-inputs
8339 `(("ruby-ansi" ,ruby-ansi)))
8340 (native-inputs
8341 `(("ruby-qed" ,ruby-qed)))
8342 (synopsis "Assertions library")
8343 (description
8344 "Assertive Expressive (AE) is an assertions library specifically designed
8345 for reuse by other test frameworks.")
8346 (home-page "https://rubyworks.github.io/ae/")
8347 (license license:bsd-2)))
8348
8349 (define-public ruby-lemon
8350 (package
8351 (name "ruby-lemon")
8352 (version "0.9.1")
8353 (source
8354 (origin
8355 (method url-fetch)
8356 (uri (rubygems-uri "lemon" version))
8357 (sha256
8358 (base32
8359 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
8360 (build-system ruby-build-system)
8361 (arguments
8362 `(#:phases
8363 (modify-phases %standard-phases
8364 (replace 'check (lambda _ (invoke "qed"))))))
8365 (propagated-inputs
8366 `(("ruby-ae" ,ruby-ae)
8367 ("ruby-ansi" ,ruby-ansi)
8368 ("ruby-rubytest" ,ruby-rubytest)))
8369 (native-inputs
8370 `(("ruby-qed" ,ruby-qed)))
8371 (synopsis "Test framework correlating code structure and test unit")
8372 (description
8373 "Lemon is a unit testing framework that enforces highly formal
8374 case-to-class and unit-to-method test construction. This enforcement can help
8375 focus concern on individual units of behavior.")
8376 (home-page "https://rubyworks.github.io/lemon")
8377 (license license:bsd-2)))
8378
8379 (define-public ruby-rubytest-cli
8380 (package
8381 (name "ruby-rubytest-cli")
8382 (version "0.2.0")
8383 (source
8384 (origin
8385 (method url-fetch)
8386 (uri (rubygems-uri "rubytest-cli" version))
8387 (sha256
8388 (base32
8389 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
8390 (build-system ruby-build-system)
8391 (arguments
8392 `(#:tests? #f)) ; no tests
8393 (propagated-inputs
8394 `(("ruby-ansi" ,ruby-ansi)
8395 ("ruby-rubytest" ,ruby-rubytest)))
8396 (synopsis "Command-line interface for rubytest")
8397 (description
8398 "Rubytest CLI is a command-line interface for running tests for
8399 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
8400 (home-page "https://rubyworks.github.io/rubytest-cli")
8401 (license license:bsd-2)))
8402
8403 (define-public ruby-hashery
8404 (package
8405 (name "ruby-hashery")
8406 (version "2.1.2")
8407 (source
8408 (origin
8409 (method url-fetch)
8410 (uri (rubygems-uri "hashery" version))
8411 (sha256
8412 (base32
8413 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
8414 (build-system ruby-build-system)
8415 (arguments
8416 `(#:phases
8417 (modify-phases %standard-phases
8418 (replace 'check
8419 (lambda _
8420 (invoke "qed")
8421 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8422 (native-inputs
8423 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8424 ("ruby-qed" ,ruby-qed)
8425 ("ruby-lemon" ,ruby-lemon)))
8426 (synopsis "Hash-like classes with extra features")
8427 (description
8428 "The Hashery is a tight collection of @code{Hash}-like classes.
8429 Included are the auto-sorting @code{Dictionary} class, the efficient
8430 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
8431 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
8432 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
8433 standard @code{Hash} making it possible to subclass and augment to fit any
8434 specific use case.")
8435 (home-page "https://rubyworks.github.io/hashery")
8436 (license license:bsd-2)))
8437
8438 (define-public ruby-rc4
8439 (package
8440 (name "ruby-rc4")
8441 (version "0.1.5")
8442 (source
8443 (origin
8444 (method url-fetch)
8445 (uri (rubygems-uri "ruby-rc4" version))
8446 (sha256
8447 (base32
8448 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
8449 (build-system ruby-build-system)
8450 (arguments
8451 `(#:phases
8452 (modify-phases %standard-phases
8453 (replace 'check
8454 (lambda _
8455 (invoke "rspec" "spec/rc4_spec.rb"))))))
8456 (native-inputs
8457 `(("ruby-rspec" ,ruby-rspec-2)))
8458 (synopsis "Implementation of the RC4 algorithm")
8459 (description
8460 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
8461 (home-page "https://github.com/caiges/Ruby-RC4")
8462 (license license:expat)))
8463
8464 (define-public ruby-afm
8465 (package
8466 (name "ruby-afm")
8467 (version "0.2.2")
8468 (source
8469 (origin
8470 (method url-fetch)
8471 (uri (rubygems-uri "afm" version))
8472 (sha256
8473 (base32
8474 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
8475 (build-system ruby-build-system)
8476 (native-inputs
8477 `(("bundler" ,bundler)))
8478 (synopsis "Read Adobe Font Metrics (afm) files")
8479 (description
8480 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
8481 files and use the data therein.")
8482 (home-page "https://github.com/halfbyte/afm")
8483 (license license:expat)))
8484
8485 (define-public ruby-ascii85
8486 (package
8487 (name "ruby-ascii85")
8488 (version "1.0.3")
8489 (source
8490 (origin
8491 (method url-fetch)
8492 (uri (rubygems-uri "Ascii85" version))
8493 (sha256
8494 (base32
8495 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
8496 (build-system ruby-build-system)
8497 (native-inputs
8498 `(("bundler" ,bundler)))
8499 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
8500 (description
8501 "This library provides methods to encode and decode Ascii85
8502 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
8503 @dfn{Portable Document Format} (PDF) file formats.")
8504 (home-page "https://github.com/datawraith/ascii85gem")
8505 (license license:expat)))
8506
8507 (define-public ruby-ttfunk
8508 (package
8509 (name "ruby-ttfunk")
8510 (version "1.5.1")
8511 (source
8512 (origin
8513 (method git-fetch)
8514 ;; fetch from github as the gem does not contain testing code
8515 (uri (git-reference
8516 (url "https://github.com/prawnpdf/ttfunk")
8517 (commit version)))
8518 (file-name (git-file-name name version))
8519 (sha256
8520 (base32
8521 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
8522 (build-system ruby-build-system)
8523 (arguments
8524 `(#:test-target "spec"
8525 #:phases
8526 (modify-phases %standard-phases
8527 (add-before 'build 'remove-ssh
8528 (lambda _
8529 ;; remove dependency on an ssh key pair that doesn't exist
8530 (substitute* "ttfunk.gemspec"
8531 (("spec.signing_key.*") ""))
8532 #t))
8533 (add-before 'check 'remove-rubocop
8534 (lambda _
8535 ;; remove rubocop as a dependency as not needed for testing
8536 (substitute* "ttfunk.gemspec"
8537 (("spec.add_development_dependency\\('rubocop'.*") ""))
8538 (substitute* "Rakefile"
8539 (("require 'rubocop/rake_task'") "")
8540 (("RuboCop::RakeTask.new") ""))
8541 #t)))))
8542 (native-inputs
8543 `(("ruby-rspec" ,ruby-rspec)
8544 ("ruby-yard" ,ruby-yard)
8545 ("bundler" ,bundler)))
8546 (synopsis "Font metrics parser for the Prawn PDF generator")
8547 (description
8548 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
8549 part of the Prawn PDF generator.")
8550 (home-page "https://github.com/prawnpdf/ttfunk")
8551 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
8552 ;; for details."
8553 (license (list license:gpl2 license:gpl3 license:ruby))))
8554
8555 (define-public ruby-puma
8556 (package
8557 (name "ruby-puma")
8558 (version "3.9.1")
8559 (source
8560 (origin
8561 (method git-fetch)
8562 ;; Fetch from GitHub because distributed gem does not contain tests.
8563 (uri (git-reference
8564 (url "https://github.com/puma/puma")
8565 (commit (string-append "v" version))))
8566 (file-name (git-file-name name version))
8567 (sha256
8568 (base32
8569 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
8570 (build-system ruby-build-system)
8571 (arguments
8572 `(#:tests? #f ; Tests require an out-dated version of minitest.
8573 #:phases
8574 (modify-phases %standard-phases
8575 (add-before 'build 'fix-gemspec
8576 (lambda _
8577 (substitute* "puma.gemspec"
8578 (("git ls-files") "find * |sort"))
8579 #t)))))
8580 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
8581 (description
8582 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
8583 for Ruby/Rack applications. Puma is intended for use in both development and
8584 production environments. In order to get the best throughput, it is highly
8585 recommended that you use a Ruby implementation with real threads like Rubinius
8586 or JRuby.")
8587 (home-page "https://puma.io/")
8588 (license license:expat)))
8589
8590 (define-public ruby-hoe-git
8591 (package
8592 (name "ruby-hoe-git")
8593 (version "1.6.0")
8594 (source
8595 (origin
8596 (method url-fetch)
8597 (uri (rubygems-uri "hoe-git" version))
8598 (sha256
8599 (base32
8600 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
8601 (build-system ruby-build-system)
8602 (propagated-inputs
8603 `(("ruby-hoe" ,ruby-hoe)
8604 ("git" ,git)))
8605 (synopsis "Hoe plugins for tighter Git integration")
8606 (description
8607 "This package provides a set of Hoe plugins for tighter Git integration.
8608 It provides tasks to automate release tagging and pushing and changelog
8609 generation.")
8610 (home-page "https://github.com/jbarnette/hoe-git")
8611 (license license:expat)))
8612
8613 (define-public ruby-sequel
8614 (package
8615 (name "ruby-sequel")
8616 (version "4.49.0")
8617 (source
8618 (origin
8619 (method url-fetch)
8620 (uri (rubygems-uri "sequel" version))
8621 (sha256
8622 (base32
8623 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
8624 (build-system ruby-build-system)
8625 (arguments
8626 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
8627 (synopsis "Database toolkit for Ruby")
8628 (description "Sequel provides thread safety, connection pooling and a
8629 concise DSL for constructing SQL queries and table schemas. It includes a
8630 comprehensive ORM layer for mapping records to Ruby objects and handling
8631 associated records.")
8632 (home-page "https://sequel.jeremyevans.net")
8633 (license license:expat)))
8634
8635 (define-public ruby-timecop
8636 (package
8637 (name "ruby-timecop")
8638 (version "0.9.1")
8639 (source
8640 (origin
8641 (method url-fetch)
8642 (uri (rubygems-uri "timecop" version))
8643 (sha256
8644 (base32
8645 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
8646 (build-system ruby-build-system)
8647 (arguments
8648 `(#:phases
8649 (modify-phases %standard-phases
8650 (add-before 'check 'set-check-rubylib
8651 (lambda _
8652 ;; Set RUBYLIB so timecop tests finds its own lib.
8653 (setenv "RUBYLIB" "lib")
8654 #t)))))
8655 (native-inputs
8656 `(("bundler" ,bundler)
8657 ("ruby-minitest-rg" ,ruby-minitest-rg)
8658 ("ruby-mocha" ,ruby-mocha)
8659 ("ruby-activesupport" ,ruby-activesupport)))
8660 (synopsis "Test mocks for time-dependent functions")
8661 (description
8662 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
8663 making it easier to test time-dependent code. It provides a unified method to
8664 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
8665 call.")
8666 (home-page "https://github.com/travisjeffery/timecop")
8667 (license license:expat)))
8668
8669 (define-public ruby-concurrent
8670 (package
8671 (name "ruby-concurrent")
8672 (version "1.1.5")
8673 (source
8674 (origin
8675 (method git-fetch)
8676 ;; Download from GitHub because the rubygems version does not contain
8677 ;; Rakefile.
8678 (uri (git-reference
8679 (url "https://github.com/ruby-concurrency/concurrent-ruby")
8680 (commit (string-append "v" version))))
8681 (file-name (git-file-name name version))
8682 (sha256
8683 (base32
8684 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
8685 (build-system ruby-build-system)
8686 (arguments
8687 `(#:test-target "ci"
8688 #:phases
8689 (modify-phases %standard-phases
8690 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
8691 (lambda _
8692 ;; Delete extra gemspec files so 'first-gemspec' chooses the
8693 ;; correct one.
8694 (delete-file "concurrent-ruby-edge.gemspec")
8695 (delete-file "concurrent-ruby-ext.gemspec")
8696 #t))
8697 (replace 'replace-git-ls-files
8698 (lambda _
8699 ;; XXX: The default substitution made by this phase is not fully
8700 ;; compatible with "git ls-files". The latter produces file names
8701 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
8702 ;; which gives "./lib/foo". That difference in turn breaks the
8703 ;; comparison against a glob pattern in this script.
8704 (substitute* "concurrent-ruby.gemspec"
8705 (("git ls-files") "find * -type f | sort"))
8706 #t))
8707 (add-before 'build 'remove-jar-from-gemspec
8708 (lambda _
8709 ;; The gemspec wants to include a JAR file that we do not build
8710 ;; nor need.
8711 (substitute* "concurrent-ruby.gemspec"
8712 (("'lib/concurrent/concurrent_ruby.jar'")
8713 ""))
8714 #t))
8715 (add-before 'build 'remove-rake_compiler_dock-dependency
8716 (lambda _
8717 ;; This library is only used when building for non-MRI targets.
8718 (substitute* "Rakefile"
8719 (("require 'rake_compiler_dock'")
8720 ""))
8721 #t))
8722 (add-before 'check 'remove-timecop-dependency
8723 ;; Remove timecop-dependent tests as having timecop as a depedency
8724 ;; causes circular depedencies.
8725 (lambda _
8726 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
8727 (delete-file "spec/concurrent/scheduled_task_spec.rb")
8728 #t)))))
8729 (native-inputs
8730 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8731 ("ruby-rspec" ,ruby-rspec)))
8732 (synopsis "Concurrency tools for Ruby")
8733 (description
8734 "This library provides modern concurrency tools including agents,
8735 futures, promises, thread pools, actors, supervisors, and more. It is
8736 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
8737 patterns.")
8738 (home-page "http://www.concurrent-ruby.com")
8739 (license license:expat)))
8740
8741 (define-public ruby-pkg-config
8742 (package
8743 (name "ruby-pkg-config")
8744 (version "1.2.5")
8745 (source
8746 (origin
8747 (method url-fetch)
8748 (uri (rubygems-uri "pkg-config" version))
8749 (sha256
8750 (base32
8751 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
8752 (build-system ruby-build-system)
8753 (arguments
8754 ;; Tests require extra files not included in the gem.
8755 `(#:tests? #f))
8756 (synopsis "Detect libraries for compiling Ruby native extensions")
8757 (description
8758 "@code{pkg-config} can be used in your extconf.rb to properly detect need
8759 libraries for compiling Ruby native extensions.")
8760 (home-page "https://github.com/ruby-gnome2/pkg-config")
8761 (license license:lgpl2.0+)))
8762
8763 (define-public ruby-net-http-digest-auth
8764 (package
8765 (name "ruby-net-http-digest-auth")
8766 (version "1.4.1")
8767 (source
8768 (origin
8769 (method url-fetch)
8770 (uri (rubygems-uri "net-http-digest_auth" version))
8771 (sha256
8772 (base32
8773 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
8774 (build-system ruby-build-system)
8775 (native-inputs
8776 `(("ruby-hoe" ,ruby-hoe)))
8777 (synopsis "RFC 2617 HTTP digest authentication library")
8778 (description
8779 "This library implements HTTP's digest authentication scheme based on
8780 RFC 2617. This enables the use of the digest authentication scheme instead
8781 of the more insecure basic authentication scheme.")
8782 (home-page "https://github.com/drbrain/net-http-digest_auth")
8783 (license license:expat)))
8784
8785 (define-public ruby-mail
8786 (package
8787 (name "ruby-mail")
8788 (version "2.6.6")
8789 (source
8790 (origin
8791 (method url-fetch)
8792 (uri (rubygems-uri "mail" version))
8793 (sha256
8794 (base32
8795 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
8796 (build-system ruby-build-system)
8797 (propagated-inputs
8798 `(("ruby-mime-types" ,ruby-mime-types)))
8799 (arguments
8800 ;; Tests require extra gems not included in the Gemfile.
8801 ;; XXX: Try enabling this for the next version with mini_mime.
8802 `(#:tests? #f))
8803 (synopsis "Mail library for Ruby")
8804 (description
8805 "Mail is an internet library for Ruby that is designed to handle email
8806 generation, parsing and sending. The purpose of this library is to provide
8807 a single point of access to handle all email functions, including sending
8808 and receiving emails. All network type actions are done through proxy
8809 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
8810
8811 Mail has been designed with a very simple object oriented system that
8812 really opens up the email messages you are parsing, if you know what you
8813 are doing, you can fiddle with every last bit of your email directly.")
8814 (home-page "https://github.com/mikel/mail")
8815 (license license:expat)))
8816
8817 (define-public ruby-mathn
8818 (package
8819 (name "ruby-mathn")
8820 (version "0.1.0")
8821 (source
8822 (origin
8823 (method url-fetch)
8824 (uri (rubygems-uri "mathn" version))
8825 (sha256
8826 (base32
8827 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
8828 (build-system ruby-build-system)
8829 (native-inputs
8830 `(("bundler" ,bundler)
8831 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8832 (synopsis "Extends math operations for increased precision")
8833 (description
8834 "This gem makes mathematical operations more precise in Ruby and
8835 integrates other mathematical standard libraries. Prior to Ruby 2.5,
8836 @code{mathn} was part of the Ruby standard library.")
8837 (home-page "https://github.com/ruby/mathn")
8838 (license license:bsd-2)))
8839
8840 (define-public ruby-code-statistics
8841 (package
8842 (name "ruby-code-statistics")
8843 (version "0.2.13")
8844 (source
8845 (origin
8846 (method url-fetch)
8847 (uri (rubygems-uri "code_statistics" version))
8848 (sha256
8849 (base32
8850 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
8851 (build-system ruby-build-system)
8852 (arguments
8853 `(#:tests? #f)) ; Not all test code is included in gem.
8854 (synopsis "Port of the rails 'rake stats' method")
8855 (description
8856 "This gem is a port of the rails 'rake stats' method so it can be made
8857 more robust and work for non rails projects.")
8858 (home-page "http://github.com/danmayer/code_statistics")
8859 (license license:expat)))
8860
8861 (define-public ruby-rubypants
8862 (package
8863 (name "ruby-rubypants")
8864 (version "0.6.0")
8865 (source (origin
8866 (method url-fetch)
8867 (uri (rubygems-uri "rubypants" version))
8868 (sha256
8869 (base32
8870 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
8871 (build-system ruby-build-system)
8872 (arguments
8873 '(#:tests? #f)) ; need Codecov
8874 (synopsis "Port of the smart-quotes library SmartyPants")
8875 (description
8876 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
8877 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
8878 and BBEdit that easily translates plain ASCII punctuation characters into
8879 smart typographic punctuation HTML entities.")
8880 (home-page "https://github.com/jmcnevin/rubypants")
8881 (license license:bsd-2)))
8882
8883 (define-public ruby-org-ruby
8884 (package
8885 (name "ruby-org-ruby")
8886 (version "0.9.12")
8887 (source (origin
8888 (method url-fetch)
8889 (uri (rubygems-uri "org-ruby" version))
8890 (sha256
8891 (base32
8892 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
8893 (build-system ruby-build-system)
8894 (arguments
8895 '(#:tests? #f)) ; no rakefile
8896 (propagated-inputs
8897 `(("ruby-rubypants" ,ruby-rubypants)))
8898 (synopsis "Org-mode parser written in Ruby")
8899 (description
8900 "Org-ruby is an org-mode parser written in Ruby. The most significant
8901 thing this library does today is convert org-mode files to HTML or Textile or
8902 Markdown.")
8903 (home-page "https://github.com/wallyqs/org-ruby")
8904 (license license:expat)))
8905
8906 (define-public ruby-rake
8907 (package
8908 (name "ruby-rake")
8909 (version "13.0.1")
8910 (source
8911 (origin
8912 (method url-fetch)
8913 (uri (rubygems-uri "rake" version))
8914 (sha256
8915 (base32
8916 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
8917 (build-system ruby-build-system)
8918 (native-inputs
8919 `(("bundler" ,bundler)))
8920 (synopsis "Rake is a Make-like program implemented in Ruby")
8921 (description
8922 "Rake is a Make-like program where tasks and dependencies are specified
8923 in standard Ruby syntax.")
8924 (home-page "https://github.com/ruby/rake")
8925 (license license:expat)))
8926
8927 (define-public ruby-childprocess
8928 (package
8929 (name "ruby-childprocess")
8930 (version "3.0.0")
8931 (source
8932 (origin
8933 (method url-fetch)
8934 (uri (rubygems-uri "childprocess" version))
8935 (sha256
8936 (base32
8937 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
8938 (build-system ruby-build-system)
8939 (arguments
8940 `(#:tests? #f))
8941 (native-inputs
8942 `(("bundler" ,bundler)
8943 ("ruby-rspec" ,ruby-rspec)))
8944 (propagated-inputs
8945 `(("ruby-ffi" ,ruby-ffi)))
8946 (synopsis "Control external programs running in the background, in Ruby")
8947 (description "@code{childprocess} provides a gem to control external
8948 programs running in the background, in Ruby.")
8949 (home-page "https://github.com/enkessler/childprocess")
8950 (license license:expat)))
8951
8952 (define-public ruby-public-suffix
8953 (package
8954 (name "ruby-public-suffix")
8955 (version "4.0.1")
8956 (source (origin
8957 (method url-fetch)
8958 (uri (rubygems-uri "public_suffix" version))
8959 (sha256
8960 (base32
8961 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
8962 (build-system ruby-build-system)
8963 (arguments
8964 '(#:phases
8965 (modify-phases %standard-phases
8966 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
8967 ;; including it as an input can lead to circular dependencies.
8968 (add-after 'unpack 'remove-rubocop-from-Rakefile
8969 (lambda _
8970 (substitute* "Rakefile"
8971 (("require \"rubocop/rake\\_task\"") "")
8972 (("RuboCop::RakeTask\\.new") ""))
8973 #t)))))
8974 (native-inputs
8975 `(("bundler" ,bundler)
8976 ("ruby-yard" ,ruby-yard)
8977 ("ruby-mocha" ,ruby-mocha)
8978 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
8979 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
8980 (synopsis "Domain name parser")
8981 (description "The gem @code{public_suffix} is a domain name parser,
8982 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
8983 is one under which Internet users can (or historically could) directly
8984 register names. Some examples of public suffixes are @code{.com},
8985 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
8986 all known public suffixes.")
8987 (license license:expat)))
8988
8989 (define-public ruby-addressable
8990 (package
8991 (name "ruby-addressable")
8992 (version "2.7.0")
8993 (source (origin
8994 (method url-fetch)
8995 (uri (rubygems-uri "addressable" version))
8996 (sha256
8997 (base32
8998 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
8999 (build-system ruby-build-system)
9000 (arguments
9001 '(#:test-target "spec"
9002 #:phases
9003 (modify-phases %standard-phases
9004 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
9005 (lambda _
9006 (substitute* "Gemfile"
9007 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
9008 ((".*launchy.*") "")
9009 ((".*rake.*") "gem 'rake'\n")
9010 ((".*redcarpet.*") ""))
9011 #t))
9012 (add-before 'check 'delete-network-dependent-test
9013 (lambda _
9014 (delete-file "spec/addressable/net_http_compat_spec.rb")
9015 #t)))))
9016 (native-inputs
9017 `(("ruby-rspec" ,ruby-rspec)
9018 ("bundler" ,bundler)
9019 ("ruby-idn-ruby" ,ruby-idn-ruby)
9020 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
9021 ("ruby-rspec-its", ruby-rspec-its-minimal)
9022 ("ruby-yard" ,ruby-yard)
9023 ("ruby-simplecov" ,ruby-simplecov)))
9024 (propagated-inputs
9025 `(("ruby-public-suffix" ,ruby-public-suffix)))
9026 (home-page "https://github.com/sporkmonger/addressable")
9027 (synopsis "Alternative URI implementation")
9028 (description "Addressable is a replacement for the URI implementation that
9029 is part of Ruby's standard library. It more closely conforms to RFC 3986,
9030 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
9031 (license license:asl2.0)))
9032
9033 (define-public ruby-colorize
9034 (package
9035 (name "ruby-colorize")
9036 (version "0.8.1")
9037 (source (origin
9038 (method url-fetch)
9039 (uri (rubygems-uri "colorize" version))
9040 (sha256
9041 (base32
9042 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
9043 (build-system ruby-build-system)
9044 (arguments
9045 '(#:phases (modify-phases %standard-phases
9046 (add-before 'check 'remove-codeclimate-dependency
9047 (lambda _
9048 (substitute* "test/test_colorize.rb"
9049 ;; Do not hook the tests into the online CodeClimate
9050 ;; service which is unnecessary for these tests.
9051 (("require 'codeclimate-test-reporter'")
9052 "")
9053 (("CodeClimate.*") ""))
9054 #t)))))
9055 (synopsis "Add color effects to the @code{String} class")
9056 (description
9057 "This package extends the @code{String} class and adds a
9058 @code{ColorizedString} with methods to set text color, background color,
9059 and text effects.")
9060 (home-page "http://github.com/fazibear/colorize")
9061 (license license:gpl2+)))
9062
9063 (define-public ruby-colorator
9064 (package
9065 (name "ruby-colorator")
9066 (version "1.1.0")
9067 (source (origin
9068 (method url-fetch)
9069 (uri (rubygems-uri "colorator" version))
9070 (sha256
9071 (base32
9072 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
9073 (build-system ruby-build-system)
9074 (arguments
9075 ;; No test target
9076 `(#:tests? #f))
9077 (home-page "http://octopress.org/colorator/")
9078 (synopsis "Terminal color library")
9079 (description "Colorator is a Ruby gem that helps you colorize your text
9080 for the terminal.")
9081 (license license:expat)))
9082
9083 (define-public ruby-command-line-reporter
9084 (package
9085 (name "ruby-command-line-reporter")
9086 (version "4.0.1")
9087 (source (origin
9088 (method url-fetch)
9089 (uri (rubygems-uri "command_line_reporter" version))
9090 (sha256
9091 (base32
9092 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
9093 (build-system ruby-build-system)
9094 (arguments
9095 ;; No Rakefile
9096 `(#:tests? #f
9097 #:phases
9098 (modify-phases %standard-phases
9099 (add-before 'build 'fix-dependencies
9100 (lambda _
9101 (substitute* ".gemspec"
9102 ;; colored is unmaintained
9103 (("colored") "colorator")
9104 ;; colorator version
9105 (("= 1.2") "= 1.1"))
9106 #t)))))
9107 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
9108 (home-page "https://github.com/wbailey/command_line_reporter")
9109 (synopsis "Report production while executing Ruby scripts")
9110 (description "This gem provides a DSL that makes it easy to write reports
9111 of various types in ruby. It eliminates the need to litter your source with
9112 puts statements, instead providing a more readable, expressive interface to
9113 your application.")
9114 (license license:asl2.0)))
9115
9116 (define-public ruby-command-line-reporter-3
9117 (package
9118 (inherit ruby-command-line-reporter)
9119 (version "3.3.6")
9120 (source (origin
9121 (method url-fetch)
9122 (uri (rubygems-uri "command_line_reporter" version))
9123 (sha256
9124 (base32
9125 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
9126
9127 (define-public ruby-kpeg
9128 (package
9129 (name "ruby-kpeg")
9130 (version "1.1.0")
9131 (source
9132 (origin
9133 (method url-fetch)
9134 (uri (rubygems-uri "kpeg" version))
9135 (sha256
9136 (base32
9137 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
9138 (build-system ruby-build-system)
9139 (native-inputs
9140 `(("ruby-hoe" ,ruby-hoe)))
9141 (synopsis "PEG library for Ruby")
9142 (description "KPeg is a simple PEG library for Ruby. It provides an API as
9143 well as native grammar to build the grammar. KPeg supports direct left
9144 recursion of rules via the
9145 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
9146 technique.")
9147 (home-page "https://github.com/evanphx/kpeg")
9148 (license license:expat)))
9149
9150 (define-public ruby-rdoc
9151 (package
9152 (name "ruby-rdoc")
9153 (version "6.2.0")
9154 (source
9155 (origin
9156 (method git-fetch)
9157 (uri (git-reference
9158 (url "https://github.com/ruby/rdoc")
9159 (commit (string-append "v" version))))
9160 (file-name (git-file-name name version))
9161 (sha256
9162 (base32
9163 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
9164 (build-system ruby-build-system)
9165 (arguments
9166 `(#:phases
9167 (modify-phases %standard-phases
9168 (add-after 'unpack 'patch-gemspec
9169 ;; TODO: Remove after next release is tagged.
9170 (lambda _
9171 (substitute* "rdoc.gemspec"
9172 (("\"lib/rdoc/generator/template/darkfish/js/\
9173 jquery\\.js\", ") ""))
9174 #t))
9175 (add-before 'build 'generate
9176 ;; 'gem build' doesn't honor Rakefile dependencies (see:
9177 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
9178 (lambda _
9179 (invoke "rake" "generate"))))))
9180 (native-inputs
9181 `(("bundler" ,bundler)
9182 ("ruby-kpeg" ,ruby-kpeg)
9183 ("ruby-racc" ,ruby-racc)
9184 ("ruby-rubocop" ,ruby-rubocop)))
9185 (home-page "https://ruby.github.io/rdoc/")
9186 (synopsis "HTML and command-line documentation utility")
9187 (description "RDoc produces HTML and command-line documentation for Ruby
9188 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
9189 documentation from the command-line.")
9190 (license license:gpl2+)))
9191
9192 (define-public ruby-sass-listen
9193 (package
9194 (name "ruby-sass-listen")
9195 (version "4.0.0")
9196 (source (origin
9197 (method url-fetch)
9198 (uri (rubygems-uri "sass-listen" version))
9199 (sha256
9200 (base32
9201 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
9202 (build-system ruby-build-system)
9203 (arguments
9204 ;; No test target
9205 `(#:tests? #f))
9206 (propagated-inputs
9207 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
9208 ("ruby-rb-inotify" ,ruby-rb-inotify)))
9209 (home-page "https://github.com/sass/listen")
9210 (synopsis "File modification notification library")
9211 (description "The Listen gem listens to file modifications and notifies you
9212 about the changes.")
9213 (license license:expat)))
9214
9215 (define-public ruby-terminfo
9216 (package
9217 (name "ruby-terminfo")
9218 (version "0.1.1")
9219 (source
9220 (origin
9221 (method url-fetch)
9222 (uri (rubygems-uri "ruby-terminfo" version))
9223 (sha256
9224 (base32
9225 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
9226 (build-system ruby-build-system)
9227 (arguments
9228 `(#:test-target "test"
9229 ;; Rakefile requires old packages and would need modification to
9230 ;; work with current software.
9231 #:tests? #f))
9232 (inputs
9233 `(("ncurses" ,ncurses)))
9234 (native-inputs
9235 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
9236 ("ruby-rdoc" ,ruby-rdoc)))
9237 (home-page "http://www.a-k-r.org/ruby-terminfo/")
9238 (synopsis "Terminfo binding for Ruby")
9239 (description "Ruby-terminfo provides terminfo binding for Ruby.")
9240 (license license:bsd-3)))
9241
9242 (define-public ruby-diffy
9243 (package
9244 (name "ruby-diffy")
9245 (version "3.2.1")
9246 (source
9247 (origin
9248 (method url-fetch)
9249 (uri (rubygems-uri "diffy" version))
9250 (sha256
9251 (base32
9252 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
9253 (build-system ruby-build-system)
9254 (arguments
9255 ;; No tests
9256 `(#:tests? #f))
9257 (native-inputs
9258 `(("ruby-rspec" ,ruby-rspec)))
9259 (home-page "https://github.com/samg/diffy")
9260 (synopsis "Convenient diffing in ruby")
9261 (description "Diffy provides a convenient way to generate a diff from two
9262 strings or files.")
9263 (license license:expat)))
9264
9265 (define-public ruby-sass-spec
9266 (package
9267 (name "ruby-sass-spec")
9268 (version "3.5.4")
9269 (source
9270 (origin
9271 (method git-fetch)
9272 (uri (git-reference
9273 (url "https://github.com/sass/sass-spec")
9274 (commit (string-append "v" version))))
9275 (file-name (git-file-name name version))
9276 (sha256
9277 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
9278 (build-system ruby-build-system)
9279 (propagated-inputs
9280 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
9281 ("ruby-diffy" ,ruby-diffy)
9282 ("ruby-terminfo" ,ruby-terminfo)))
9283 (arguments
9284 `(;; This package contains tests for a sass implementation, and the to
9285 ;; avoid any circular dependencies, the tests are not run here
9286 #:tests? #f
9287 #:phases
9288 (modify-phases %standard-phases
9289 (add-after 'unpack 'patch-test
9290 (lambda _
9291 (delete-file "spec/values/colors/alpha_hex-3.5/error")
9292 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
9293 (("string") "color")))))))
9294 (home-page "https://github.com/sass/sass-spec")
9295 (synopsis "Test suite for Sass")
9296 (description "Sass Spec is a test suite for Sass. Test cases are all in
9297 the @file{spec} directory.")
9298 (license license:expat)))
9299
9300 (define-public ruby-sass
9301 (package
9302 (name "ruby-sass")
9303 (version "3.6.0")
9304 (source (origin
9305 (method url-fetch)
9306 (uri (rubygems-uri "sass" version))
9307 (sha256
9308 (base32
9309 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
9310 (build-system ruby-build-system)
9311 (propagated-inputs
9312 `(("ruby-sass-listen" ,ruby-sass-listen)))
9313 (native-inputs
9314 `(("ruby-sass-spec" ,ruby-sass-spec)
9315 ("ruby-mathn" ,ruby-mathn)))
9316 (home-page "https://sass-lang.com/")
9317 (synopsis "CSS extension language")
9318 (description "Sass is a CSS extension language. It extends CSS with
9319 features that don't exist yet like variables, nesting, mixins and inheritance.")
9320 (license license:expat)))
9321
9322 (define-public ruby-sassc
9323 (package
9324 (name "ruby-sassc")
9325 (version "2.2.1")
9326 (source
9327 (origin
9328 (method url-fetch)
9329 (uri (rubygems-uri "sassc" version))
9330 (sha256
9331 (base32
9332 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
9333 (build-system ruby-build-system)
9334 (arguments
9335 '(#:modules ((guix build ruby-build-system)
9336 (guix build utils)
9337 (ice-9 textual-ports))
9338 #:phases
9339 (modify-phases %standard-phases
9340 ;; TODO: This would be better as a snippet, but the ruby-build-system
9341 ;; doesn't seem to support that
9342 (add-after 'unpack 'remove-libsass
9343 (lambda _
9344 (delete-file-recursively "ext")
9345 (with-atomic-file-replacement "sassc.gemspec"
9346 (lambda (in out)
9347 (let* ((gemspec (get-string-all in))
9348 (index (string-contains gemspec "libsass_dir")))
9349 (display (string-append
9350 (string-take gemspec index)
9351 "\nend\n")
9352 out))))
9353 #t))
9354 (add-after 'unpack 'dont-check-the-libsass-version
9355 (lambda _
9356 (substitute* "test/native_test.rb"
9357 (("assert_equal.*Native\\.version") ""))
9358 #t))
9359 (add-after 'unpack 'remove-git-from-gemspec
9360 (lambda _
9361 (substitute* "sassc.gemspec"
9362 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
9363 #t))
9364 (add-after 'unpack 'remove-extensions-from-gemspec
9365 (lambda _
9366 (substitute* "sassc.gemspec"
9367 (("\\[\"ext/extconf.rb\"\\]") "[]"))
9368 #t))
9369 (add-after 'unpack 'fix-Rakefile
9370 (lambda _
9371 (substitute* "Rakefile"
9372 (("test: 'compile:libsass'") ":test"))
9373 #t))
9374 (add-after 'unpack 'remove-unnecessary-dependencies
9375 (lambda _
9376 (substitute* "test/test_helper.rb"
9377 (("require \"pry\"") ""))
9378 #t))
9379 (add-before 'build 'patch-native.rb
9380 (lambda* (#:key inputs #:allow-other-keys)
9381 (substitute* "lib/sassc/native.rb"
9382 ((".*gem_root = spec.gem_dir") "")
9383 (("ffi_lib .*\n")
9384 (string-append
9385 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
9386 #t))
9387 ;; The gemspec still references the libsass files, so just keep the
9388 ;; one in the gem.
9389 (delete 'extract-gemspec))))
9390 (propagated-inputs
9391 `(("ruby-ffi" ,ruby-ffi)
9392 ("ruby-rake" ,ruby-rake)))
9393 (inputs
9394 `(("libsass" ,libsass)))
9395 (native-inputs
9396 `(("bundler" ,bundler)
9397 ("ruby-rake-compiler" ,ruby-rake-compiler)
9398 ("ruby-minitest-around" ,ruby-minitest-around)
9399 ("ruby-test-construct" ,ruby-test-construct)))
9400 (synopsis "Use libsss from Ruby")
9401 (description
9402 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
9403 bindings to the libsass library. This enables rendering
9404 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
9405 (home-page "https://github.com/sass/sassc-ruby")
9406 (license license:expat)))
9407
9408 (define-public ruby-jekyll-sass-converter
9409 (package
9410 (name "ruby-jekyll-sass-converter")
9411 (version "1.5.2")
9412 (source (origin
9413 (method url-fetch)
9414 (uri (rubygems-uri "jekyll-sass-converter" version))
9415 (sha256
9416 (base32
9417 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
9418 (build-system ruby-build-system)
9419 (propagated-inputs
9420 `(("ruby-sass" ,ruby-sass)))
9421 (arguments
9422 ;; No rakefile
9423 `(#:tests? #f))
9424 (home-page "https://github.com/jekyll/jekyll-sass-converter")
9425 (synopsis "Sass converter for Jekyll")
9426 (description "This gem provide built-in support for the Sass converter
9427 in Jekyll.")
9428 (license license:expat)))
9429
9430 (define-public ruby-jekyll-watch
9431 (package
9432 (name "ruby-jekyll-watch")
9433 (version "2.1.2")
9434 (source (origin
9435 (method url-fetch)
9436 (uri (rubygems-uri "jekyll-watch" version))
9437 (sha256
9438 (base32
9439 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
9440 (build-system ruby-build-system)
9441 (propagated-inputs
9442 `(("ruby-listen" ,ruby-listen)))
9443 (arguments
9444 ;; No rakefile
9445 `(#:tests? #f))
9446 (home-page "https://github.com/jekyll/jekyll-watch")
9447 (synopsis "Jekyll auto-rebuild support")
9448 (description "This gems add the @code{--watch} switch to the jekyll CLI
9449 interface. It allows Jekyll to rebuild your site when a file changes.")
9450 (license license:expat)))
9451
9452 (define-public ruby-parallel
9453 (package
9454 (name "ruby-parallel")
9455 (version "1.13.0")
9456 (source
9457 (origin
9458 (method git-fetch)
9459 (uri (git-reference
9460 (url "https://github.com/grosser/parallel")
9461 (commit (string-append "v" version))))
9462 (file-name (git-file-name name version))
9463 (sha256
9464 (base32
9465 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
9466 (build-system ruby-build-system)
9467 (arguments
9468 `(;; TODO 3 test failures
9469 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
9470 ;; open unnecessary pipes
9471 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
9472 ;; SQLite in processes
9473 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
9474 ;; SQLite in threads
9475 #:tests? #f
9476 #:test-target "rspec-rerun:spec"
9477 #:phases
9478 (modify-phases %standard-phases
9479 (add-after 'unpack 'patch-Gemfile
9480 (lambda _
9481 (substitute* "Gemfile"
9482 (("gem 'rspec-legacy_formatters'") "")
9483 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
9484 (add-before 'check 'delete-Gemfile.lock
9485 (lambda _
9486 ;; Bundler isn't being used for fetching dependendencies, so
9487 ;; delete the Gemfile.lock
9488 (delete-file "Gemfile.lock")
9489 #t))
9490 (add-before 'build 'patch-gemspec
9491 (lambda _
9492 (substitute* "parallel.gemspec"
9493 (("git ls-files") "find"))
9494 #t)))))
9495 (native-inputs
9496 `(("ruby-rspec" ,ruby-rspec)
9497 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
9498 ("bundler" ,bundler)
9499 ("ruby-activerecord" ,ruby-activerecord)
9500 ("ruby-progressbar" ,ruby-progressbar)
9501 ("ruby-bump" ,ruby-bump)
9502 ("procps" ,procps)
9503 ("lsof" ,lsof)
9504 ("ruby-mysql2" ,ruby-mysql2)
9505 ("ruby-sqlite3" ,ruby-sqlite3)
9506 ("ruby-i18n" ,ruby-i18n)))
9507 (home-page "https://github.com/grosser/parallel")
9508 (synopsis "Parallel processing in Ruby")
9509 (description "Parallel allows you to run any code in parallel Processes
9510 (to use all CPUs) or Threads(to speedup blocking operations). It is best
9511 suited for map-reduce or e.g. parallel downloads/uploads.")
9512 (license license:expat)))
9513
9514 (define-public ruby-cane
9515 (package
9516 (name "ruby-cane")
9517 (version "3.0.0")
9518 (source (origin
9519 (method url-fetch)
9520 (uri (rubygems-uri "cane" version))
9521 (sha256
9522 (base32
9523 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
9524 (build-system ruby-build-system)
9525 (arguments `(#:tests? #f)); No rakefile
9526 (home-page "https://github.com/square/cane")
9527 (propagated-inputs
9528 `(("ruby-parallel" ,ruby-parallel)))
9529 (synopsis "Code quality threshold checking")
9530 (description "Cane fails your build if code quality thresholds are not met.")
9531 (license license:asl2.0)))
9532
9533 (define-public ruby-morecane
9534 (package
9535 (name "ruby-morecane")
9536 (version "0.2.0")
9537 (source (origin
9538 (method url-fetch)
9539 (uri (rubygems-uri "morecane" version))
9540 (sha256
9541 (base32
9542 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
9543 (build-system ruby-build-system)
9544 (home-page "https://github.com/yob/morecane")
9545 (arguments `(#:tests? #f)); No rakefile
9546 (propagated-inputs
9547 `(("ruby-parallel" ,ruby-parallel)))
9548 (synopsis "Extra checks for cane")
9549 (description "The cane gem provides a great framework for running quality
9550 checks over your ruby project as part of continuous integration build. It
9551 comes with a few checks out of the box, but also provides an API for loading
9552 custom checks. This gem provides a set of additional checks.")
9553 (license license:expat)))
9554
9555 (define-public ruby-pdf-reader
9556 (package
9557 (name "ruby-pdf-reader")
9558 (version "2.1.0")
9559 (source (origin
9560 (method url-fetch)
9561 (uri (rubygems-uri "pdf-reader" version))
9562 (sha256
9563 (base32
9564 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
9565 (build-system ruby-build-system)
9566 (arguments `(#:test-target "spec"))
9567 (native-inputs
9568 `(("bundler" ,bundler)
9569 ("ruby-rspec" ,ruby-rspec)
9570 ("ruby-cane" ,ruby-cane)
9571 ("ruby-morecane" ,ruby-morecane)))
9572 (propagated-inputs
9573 `(("ruby-afm" ,ruby-afm)
9574 ("ruby-ascii85" ,ruby-ascii85)
9575 ("ruby-hashery" ,ruby-hashery)
9576 ("ruby-rc4" ,ruby-rc4)
9577 ("ruby-ttfunk" ,ruby-ttfunk)))
9578 (home-page "https://github.com/yob/pdf-reader")
9579 (synopsis "PDF parser in Ruby")
9580 (description "The PDF::Reader library implements a PDF parser conforming as
9581 much as possible to the PDF specification from Adobe. It provides programmatic
9582 access to the contents of a PDF file with a high degree of flexibility.")
9583 (license license:gpl3+)))
9584
9585 (define-public ruby-pdf-inspector
9586 (package
9587 (name "ruby-pdf-inspector")
9588 (version "1.3.0")
9589 (source (origin
9590 (method url-fetch)
9591 (uri (rubygems-uri "pdf-inspector" version))
9592 (sha256
9593 (base32
9594 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
9595 (build-system ruby-build-system)
9596 (propagated-inputs
9597 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
9598 (arguments `(#:tests? #f)); No rakefile
9599 (home-page "https://github.com/prawnpdf/pdf-inspector")
9600 (synopsis "Analysis classes for inspecting PDF output")
9601 (description "This library provides a number of PDF::Reader based tools for
9602 use in testing PDF output. Presently, the primary purpose of this tool is to
9603 support the tests found in Prawn, a pure Ruby PDF generation library.")
9604 (license license:gpl3+)))
9605
9606 (define-public ruby-pdf-core
9607 (package
9608 (name "ruby-pdf-core")
9609 (version "0.8.1")
9610 (source (origin
9611 (method url-fetch)
9612 (uri (rubygems-uri "pdf-core" version))
9613 (sha256
9614 (base32
9615 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
9616 (build-system ruby-build-system)
9617 (arguments
9618 ; No test target
9619 `(#:tests? #f))
9620 (home-page "https://github.com/prawnpdf/pdf-core")
9621 (synopsis "Low level PDF features for Prawn")
9622 (description "This is an experimental gem that extracts low-level PDF
9623 functionality from Prawn.")
9624 (license license:gpl3+)))
9625
9626 (define-public ruby-prawn
9627 (package
9628 (name "ruby-prawn")
9629 (version "2.2.2")
9630 (source (origin
9631 (method url-fetch)
9632 (uri (rubygems-uri "prawn" version))
9633 (sha256
9634 (base32
9635 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
9636 (build-system ruby-build-system)
9637 (arguments
9638 ; No tests
9639 `(#:tests? #f
9640 #:phases
9641 (modify-phases %standard-phases
9642 (add-before 'build 'fix-dependencies
9643 (lambda _
9644 (substitute* "prawn.gemspec"
9645 (("~> 0.7.0") "~> 0.7"))
9646 #t)))))
9647 (propagated-inputs
9648 `(("ruby-pdf-core" ,ruby-pdf-core)
9649 ("ruby-ttfunk" ,ruby-ttfunk)))
9650 (native-inputs
9651 `(("bundler" ,bundler)
9652 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
9653 ("ruby-rspec" ,ruby-rspec)
9654 ("ruby-simplecov" ,ruby-simplecov)
9655 ("ruby-yard" ,ruby-yard)))
9656 (home-page "http://prawnpdf.org/api-docs/2.0/")
9657 (synopsis "PDF generation for Ruby")
9658 (description "Prawn is a pure Ruby PDF generation library.")
9659 (license license:gpl3+)))
9660
9661 (define-public ruby-prawn-table
9662 (package
9663 (name "ruby-prawn-table")
9664 (version "0.2.2")
9665 (source (origin
9666 (method url-fetch)
9667 (uri (rubygems-uri "prawn-table" version))
9668 (sha256
9669 (base32
9670 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
9671 (build-system ruby-build-system)
9672 (propagated-inputs
9673 `(("ruby-prawn" ,ruby-prawn)
9674 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
9675 (native-inputs
9676 `(("bundler" ,bundler)
9677 ("ruby-yard" ,ruby-yard)
9678 ("ruby-mocha" ,ruby-mocha)
9679 ("ruby-coderay" ,ruby-coderay)
9680 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
9681 ("ruby-simplecov" ,ruby-simplecov)
9682 ("ruby-rspec-2" ,ruby-rspec-2)))
9683 (arguments
9684 '(;; TODO: 1 test fails
9685 ;; Failure/Error: pdf.page_count.should == 1
9686 ;; expected: 1
9687 ;; got: 2 (using ==)
9688 ;; # ./spec/table_spec.rb:1308
9689 ;;
9690 ;; 225 examples, 1 failure
9691 #:tests? #f
9692 #:phases
9693 (modify-phases %standard-phases
9694 (add-before 'check 'patch-gemspec
9695 (lambda _
9696 (substitute* "prawn-table.gemspec"
9697 ;; Loosen the requirement for pdf-inspector
9698 (("~> 1\\.1\\.0") ">= 0")
9699 ;; Loosen the requirement for pdf-reader
9700 (("~> 1\\.2") ">= 0"))))
9701 (replace 'check
9702 (lambda* (#:key tests? #:allow-other-keys)
9703 (when tests?
9704 (invoke "rspec"))
9705 #t)))))
9706 (home-page "https://github.com/prawnpdf/prawn-table")
9707 (synopsis "Tables support for Prawn")
9708 (description "This gem provides tables support for Prawn.")
9709 (license license:gpl3+)))
9710
9711 (define-public ruby-kramdown
9712 (package
9713 (name "ruby-kramdown")
9714 (version "1.17.0")
9715 (source (origin
9716 (method url-fetch)
9717 (uri (rubygems-uri "kramdown" version))
9718 (sha256
9719 (base32
9720 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
9721 (build-system ruby-build-system)
9722 (arguments `(#:tests? #f)); FIXME: some test failures
9723 (native-inputs
9724 `(("ruby-prawn" ,ruby-prawn)
9725 ("ruby-prawn-table" ,ruby-prawn-table)))
9726 (home-page "https://kramdown.gettalong.org/")
9727 (synopsis "Markdown parsing and converting library")
9728 (description "Kramdown is a library for parsing and converting a superset
9729 of Markdown. It is completely written in Ruby, supports standard Markdown
9730 (with some minor modifications) and various extensions that have been made
9731 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
9732 (license license:expat)))
9733
9734 (define-public ruby-http-parser.rb
9735 (package
9736 (name "ruby-http-parser.rb")
9737 (version "0.6.0")
9738 (source
9739 (origin
9740 (method url-fetch)
9741 (uri (rubygems-uri "http_parser.rb" version))
9742 (sha256
9743 (base32
9744 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
9745 (build-system ruby-build-system)
9746 (arguments
9747 ;; No tests
9748 `(#:tests? #f))
9749 (native-inputs
9750 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9751 ("ruby-rspec" ,ruby-rspec)))
9752 (home-page "https://github.com/tmm1/http_parser.rb")
9753 (synopsis "HTTP parser un Ruby")
9754 (description "This gem is a simple callback-based HTTP request/response
9755 parser for writing http servers, clients and proxies.")
9756 (license license:expat)))
9757
9758 (define-public ruby-em-websocket
9759 (package
9760 (name "ruby-em-websocket")
9761 (version "0.5.1")
9762 (source
9763 (origin
9764 (method url-fetch)
9765 (uri (rubygems-uri "em-websocket" version))
9766 (sha256
9767 (base32
9768 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
9769 (build-system ruby-build-system)
9770 (arguments
9771 ;; No tests
9772 `(#:tests? #f))
9773 (propagated-inputs
9774 `(("ruby-eventmachine" ,ruby-eventmachine)
9775 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
9776 (native-inputs
9777 `(("bundler" ,bundler)
9778 ("ruby-rspec" ,ruby-rspec)))
9779 (home-page "https://github.com/igrigorik/em-websocket")
9780 (synopsis "EventMachine based WebSocket server")
9781 (description "Em-websocket is an EventMachine based WebSocket server
9782 implementation.")
9783 (license license:expat)))
9784
9785 (define-public ruby-rouge
9786 (package
9787 (name "ruby-rouge")
9788 (version "3.13.0")
9789 (source (origin
9790 (method url-fetch)
9791 (uri (rubygems-uri "rouge" version))
9792 (sha256
9793 (base32
9794 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
9795 (build-system ruby-build-system)
9796 (arguments `(#:tests? #f)); No rakefile
9797 (home-page "http://rouge.jneen.net/")
9798 (synopsis "Code highlighter")
9799 (description "Rouge is a code highlighter written in Ruby. It supports more
9800 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
9801 is compatible with stylesheets designed for pygments.")
9802 (license (list
9803 ;; rouge is licensed under expat
9804 license:expat
9805 ;; pygments is licensed under bsd-2
9806 license:bsd-2))))
9807
9808 (define-public ruby-rouge-2
9809 (package
9810 (inherit ruby-rouge)
9811 (version "2.2.1")
9812 (source (origin
9813 (method url-fetch)
9814 (uri (rubygems-uri "rouge" version))
9815 (sha256
9816 (base32
9817 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
9818
9819 (define-public ruby-hashie
9820 (package
9821 (name "ruby-hashie")
9822 (version "3.6.0")
9823 (source (origin
9824 (method url-fetch)
9825 (uri (rubygems-uri "hashie" version))
9826 (sha256
9827 (base32
9828 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
9829 (build-system ruby-build-system)
9830 (native-inputs
9831 `(("bundler" ,bundler)))
9832 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
9833 (home-page "https://github.com/intridea/hashie")
9834 (synopsis "Extensions to Ruby Hashes")
9835 (description "Hashie is a collection of classes and mixins that make Ruby
9836 hashes more powerful.")
9837 (license license:expat)))
9838
9839 (define-public ruby-heredoc-unindent
9840 (package
9841 (name "ruby-heredoc-unindent")
9842 (version "1.2.0")
9843 (source (origin
9844 (method url-fetch)
9845 (uri (rubygems-uri "heredoc_unindent" version))
9846 (sha256
9847 (base32
9848 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
9849 (build-system ruby-build-system)
9850 (native-inputs
9851 `(("ruby-hoe" ,ruby-hoe)))
9852 (home-page "https://github.com/adrianomitre/heredoc_unindent")
9853 (synopsis "Heredoc indentation cleaner")
9854 (description "This gem removes common margin from indented strings, such
9855 as the ones produced by indented heredocs. In other words, it strips out
9856 leading whitespace chars at the beginning of each line, but only as much as
9857 the line with the smallest margin.
9858
9859 It is acknowledged that many strings defined by heredocs are just code and
9860 fact is that most parsers are insensitive to indentation. If, however, the
9861 strings are to be used otherwise, be it for printing or testing, the extra
9862 indentation will probably be an issue and hence this gem.")
9863 (license license:expat)))
9864
9865 (define-public ruby-safe-yaml
9866 (package
9867 (name "ruby-safe-yaml")
9868 (version "1.0.5")
9869 (source
9870 (origin
9871 (method git-fetch)
9872 (uri (git-reference
9873 (url "https://github.com/dtao/safe_yaml")
9874 (commit version)))
9875 (file-name (git-file-name name version))
9876 (sha256
9877 (base32
9878 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
9879 (build-system ruby-build-system)
9880 (native-inputs
9881 `(("ruby-rspec" ,ruby-rspec)
9882 ("ruby-hashie" ,ruby-hashie)
9883 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
9884 (arguments
9885 '(#:test-target "spec"
9886 #:phases
9887 (modify-phases %standard-phases
9888 (add-before 'check 'set-TZ
9889 (lambda _
9890 ;; This test is dependent on the timezone
9891 ;; spec/transform/to_date_spec.rb:35
9892 ;; # SafeYAML::Transform::ToDate converts times to the local
9893 ;; timezone
9894 (setenv "TZ" "UTC-11")
9895 #t)))))
9896 (home-page "https://github.com/dtao/safe_yaml")
9897 (synopsis "YAML parser")
9898 (description "The SafeYAML gem provides an alternative implementation of
9899 YAML.load suitable for accepting user input in Ruby applications.")
9900 (license license:expat)))
9901
9902 (define-public ruby-mercenary
9903 (package
9904 (name "ruby-mercenary")
9905 (version "0.3.6")
9906 (source (origin
9907 (method url-fetch)
9908 (uri (rubygems-uri "mercenary" version))
9909 (sha256
9910 (base32
9911 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
9912 (build-system ruby-build-system)
9913 (arguments `(#:test-target "spec"))
9914 (native-inputs
9915 `(("bundler" ,bundler)))
9916 (home-page "https://github.com/jekyll/mercenary")
9917 (synopsis "Command-line apps library in Ruby")
9918 (description "Mercenary is a lightweight and flexible library for writing
9919 command-line apps in Ruby.")
9920 (license license:expat)))
9921
9922 (define-public ruby-liquid
9923 (package
9924 (name "ruby-liquid")
9925 (version "4.0.0")
9926 (source (origin
9927 (method url-fetch)
9928 (uri (rubygems-uri "liquid" version))
9929 (sha256
9930 (base32
9931 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
9932 (build-system ruby-build-system)
9933 (arguments `(#:tests? #f)); No rakefile
9934 (home-page "https://shopify.github.io/liquid/")
9935 (synopsis "Template language")
9936 (description "Liquid is a template language written in Ruby. It is used
9937 to load dynamic content on storefronts.")
9938 (license license:expat)))
9939
9940 (define-public ruby-forwardable-extended
9941 (package
9942 (name "ruby-forwardable-extended")
9943 (version "2.6.0")
9944 (source (origin
9945 (method url-fetch)
9946 (uri (rubygems-uri "forwardable-extended" version))
9947 (sha256
9948 (base32
9949 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
9950 (build-system ruby-build-system)
9951 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
9952 (home-page "https://github.com/envygeeks/forwardable-extended")
9953 (synopsis "Delegation to hashes and instance variables in Forwardable")
9954 (description "Forwardable Extended provides more @code{Forwardable}
9955 methods for your source as @code{Forwardable::Extended}.")
9956 (license license:expat)))
9957
9958 (define-public ruby-pathutil
9959 (package
9960 (name "ruby-pathutil")
9961 (version "0.16.2")
9962 (source (origin
9963 (method url-fetch)
9964 (uri (rubygems-uri "pathutil" version))
9965 (sha256
9966 (base32
9967 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
9968 (build-system ruby-build-system)
9969 (propagated-inputs
9970 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
9971 (native-inputs
9972 `(("bundler" ,bundler)
9973 ("ruby-rspec" ,ruby-rspec)))
9974 ;; Fails with: cannot load such file --
9975 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
9976 (arguments `(#:tests? #f))
9977 (home-page "https://github.com/envygeeks/pathutil")
9978 (synopsis "Extended implementation of Pathname")
9979 (description "Pathutil tries to be a faster pure Ruby implementation of
9980 Pathname.")
9981 (license license:expat)))
9982
9983 (define-public jekyll
9984 (package
9985 (name "jekyll")
9986 (version "3.8.6")
9987 (source (origin
9988 (method url-fetch)
9989 (uri (rubygems-uri "jekyll" version))
9990 (sha256
9991 (base32
9992 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
9993 (build-system ruby-build-system)
9994 (arguments
9995 ;; No rakefile, but a test subdirectory.
9996 `(#:tests? #f
9997 #:phases
9998 (modify-phases %standard-phases
9999 (add-before 'build 'fix-i18n
10000 (lambda _
10001 (substitute* ".gemspec"
10002 (("~> 0.7") ">= 0.7"))
10003 #t)))))
10004 (propagated-inputs
10005 `(("ruby-addressable" ,ruby-addressable)
10006 ("ruby-colorator" ,ruby-colorator)
10007 ("ruby-em-websocket" ,ruby-em-websocket)
10008 ("ruby-i18n" ,ruby-i18n)
10009 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
10010 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
10011 ("ruby-kramdown" ,ruby-kramdown)
10012 ("ruby-liquid" ,ruby-liquid)
10013 ("ruby-mercenary" ,ruby-mercenary)
10014 ("ruby-pathutil" ,ruby-pathutil)
10015 ("ruby-rouge" ,ruby-rouge-2)
10016 ("ruby-safe-yaml" ,ruby-safe-yaml)))
10017 (home-page "https://jekyllrb.com/")
10018 (synopsis "Static site generator")
10019 (description "Jekyll is a simple, blog aware, static site generator.")
10020 (license license:expat)))
10021
10022 (define-public ruby-jekyll-paginate-v2
10023 (package
10024 (name "ruby-jekyll-paginate-v2")
10025 (version "2.0.0")
10026 (source (origin
10027 (method url-fetch)
10028 (uri (rubygems-uri "jekyll-paginate-v2" version))
10029 (sha256
10030 (base32
10031 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
10032 (build-system ruby-build-system)
10033 (propagated-inputs
10034 `(("jekyll" ,jekyll)))
10035 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
10036 (synopsis "Pagination Generator for Jekyll 3")
10037 (description "The Pagination Generator forms the core of the pagination
10038 logic in Jekyll. It calculates and generates the pagination pages.")
10039 (license license:expat)))
10040
10041 (define-public ruby-faraday
10042 (package
10043 (name "ruby-faraday")
10044 (version "0.15.4")
10045 (source
10046 (origin
10047 (method url-fetch)
10048 (uri (rubygems-uri "faraday" version))
10049 (sha256
10050 (base32
10051 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
10052 (build-system ruby-build-system)
10053 (arguments
10054 '(#:tests? #f))
10055 (propagated-inputs
10056 `(("ruby-multipart-post" ,ruby-multipart-post)))
10057 (synopsis "Ruby HTTP/REST API client library")
10058 (description
10059 "Faraday is a HTTP/REST API client library which provides a common
10060 interface over different adapters.")
10061 (home-page "https://github.com/lostisland/faraday")
10062 (license license:expat)))
10063
10064 (define-public ruby-nio4r
10065 (package
10066 (name "ruby-nio4r")
10067 (version "2.5.2")
10068 (source
10069 (origin
10070 (method url-fetch)
10071 (uri (rubygems-uri "nio4r" version))
10072 (sha256
10073 (base32
10074 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
10075 (build-system ruby-build-system)
10076 (arguments
10077 '(#:phases
10078 (modify-phases %standard-phases
10079 (add-after 'unpack 'remove-unnecessary-dependencies
10080 (lambda _
10081 (substitute* "spec/spec_helper.rb"
10082 ;; Coveralls is for uploading test coverage information to an
10083 ;; online service, and thus unnecessary for building the Guix
10084 ;; package
10085 (("require \"coveralls\"") "")
10086 (("Coveralls\\.wear!") "")
10087 ;; Remove rspec/retry as we are not retrying the tests
10088 (("require \"rspec/retry\"") "")
10089 (("config\\.display_try_failure_messages = true") "")
10090 (("config\\.verbose_retry = true") ""))
10091 #t))
10092 (add-before 'check 'compile
10093 (lambda _
10094 (invoke "rake" "compile")
10095 #t))
10096 (replace 'check
10097 (lambda* (#:key tests? #:allow-other-keys)
10098 (when tests?
10099 (invoke "rspec"))
10100 #t)))))
10101 (native-inputs
10102 `(("bundler" ,bundler)
10103 ("ruby-rake-compiler" ,ruby-rake-compiler)
10104 ("ruby-rspec" ,ruby-rspec)
10105 ("ruby-rubocop" ,ruby-rubocop)))
10106 (synopsis "New I/O for Ruby")
10107 (description
10108 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
10109 for scalable network clients and servers.")
10110 (home-page "https://github.com/socketry/nio4r")
10111 (license license:expat)))
10112
10113 (define-public ruby-globalid
10114 (package
10115 (name "ruby-globalid")
10116 (version "0.4.2")
10117 (source
10118 (origin
10119 (method url-fetch)
10120 (uri (rubygems-uri "globalid" version))
10121 (sha256
10122 (base32
10123 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
10124 (build-system ruby-build-system)
10125 (arguments
10126 '(;; No included tests
10127 #:tests? #f))
10128 (propagated-inputs
10129 `(("ruby-activesupport" ,ruby-activesupport)))
10130 (synopsis "Generate URIs idenfitying model instances in Ruby")
10131 (description
10132 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
10133 uniquely identify it.")
10134 (home-page "https://rubyonrails.org/")
10135 (license license:expat)))
10136
10137 (define-public ruby-sprockets
10138 (package
10139 (name "ruby-sprockets")
10140 (version "3.7.2")
10141 (source
10142 (origin
10143 (method url-fetch)
10144 (uri (rubygems-uri "sprockets" version))
10145 (sha256
10146 (base32
10147 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
10148 (build-system ruby-build-system)
10149 (arguments
10150 '(;; No included tests
10151 #:tests? #f))
10152 (propagated-inputs
10153 `(("ruby-concurrent" ,ruby-concurrent)
10154 ("ruby-rack" ,ruby-rack)))
10155 (synopsis "Sprockets is a Rack-based asset packaging system")
10156 (description
10157 "Sprockets is a Rack-based asset packaging system that concatenates and
10158 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
10159 (home-page "https://github.com/rails/sprockets")
10160 (license license:expat)))
10161
10162 (define-public ruby-mustermann
10163 (package
10164 (name "ruby-mustermann")
10165 (version "1.0.3")
10166 (source
10167 (origin
10168 (method url-fetch)
10169 (uri (rubygems-uri "mustermann" version))
10170 (sha256
10171 (base32
10172 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
10173 (build-system ruby-build-system)
10174 (arguments
10175 ;; No tests.
10176 '(#:tests? #f))
10177 (synopsis "Library implementing patterns that behave like regular expressions")
10178 (description "Given a string pattern, Mustermann will turn it into an
10179 object that behaves like a regular expression and has comparable performance
10180 characteristics.")
10181 (home-page "https://github.com/sinatra/mustermann")
10182 (license license:expat)))
10183
10184 (define-public ruby-htmlentities
10185 (package
10186 (name "ruby-htmlentities")
10187 (version "4.3.4")
10188 (source
10189 (origin
10190 (method url-fetch)
10191 (uri (rubygems-uri "htmlentities" version))
10192 (sha256
10193 (base32
10194 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
10195 (build-system ruby-build-system)
10196 (arguments
10197 `(#:phases
10198 (modify-phases %standard-phases
10199 (replace 'check
10200 (lambda _
10201 (map (lambda (file)
10202 (invoke "ruby" "-Itest" file))
10203 (find-files "./test" ".*_test\\.rb")))))))
10204 (synopsis "Encode and decode (X)HTML entities")
10205 (description
10206 "This package provides a module for encoding and decoding (X)HTML
10207 entities.")
10208 (home-page "https://github.com/threedaymonk/htmlentities")
10209 (license license:expat)))
10210
10211 (define-public ruby-sinatra
10212 (package
10213 (name "ruby-sinatra")
10214 (version "2.0.8.1")
10215 (source
10216 (origin
10217 (method url-fetch)
10218 (uri (rubygems-uri "sinatra" version))
10219 (sha256
10220 (base32
10221 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
10222 (build-system ruby-build-system)
10223 (arguments
10224 `(#:phases
10225 (modify-phases %standard-phases
10226 ;; See: https://github.com/sinatra/sinatra/issues/1578.
10227 (add-after 'extract-gemspec 'fix-slow-doc-generation
10228 (lambda _
10229 (substitute* "sinatra.gemspec"
10230 (("\"README.rdoc\"\\.freeze," all)
10231 (string-append all " \"--exclude=.*\\.md\".freeze,")))
10232 #t)))))
10233 (propagated-inputs
10234 `(("ruby-mustermann" ,ruby-mustermann)
10235 ("ruby-rack" ,ruby-rack)
10236 ("ruby-rack-protection" ,ruby-rack-protection)
10237 ("ruby-tilt" ,ruby-tilt)))
10238 (synopsis "DSL for quick web applications creation in Ruby")
10239 (description
10240 "Sinatra is a DSL for quickly creating web applications in Ruby with
10241 minimal effort.")
10242 (home-page "http://sinatrarb.com/")
10243 (license license:expat)))
10244
10245 (define-public ruby-thin
10246 (package
10247 (name "ruby-thin")
10248 (version "1.7.2")
10249 (source
10250 (origin
10251 (method url-fetch)
10252 (uri (rubygems-uri "thin" version))
10253 (sha256
10254 (base32
10255 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
10256 (build-system ruby-build-system)
10257 (arguments
10258 ;; No tests.
10259 '(#:tests? #f))
10260 (propagated-inputs
10261 `(("ruby-daemons" ,ruby-daemons)
10262 ("ruby-eventmachine" ,ruby-eventmachine)
10263 ("ruby-rack" ,ruby-rack)))
10264 (synopsis "Thin and fast web server for Ruby")
10265 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
10266 @itemize
10267 @item the Mongrel parser,
10268 @item Event Machine, a network I/O library with high scalability, performance
10269 and stability,
10270 @item Rack, a minimal interface between webservers and Ruby frameworks.
10271 @end itemize\n")
10272 (home-page "https://github.com/macournoyer/thin")
10273 (license license:ruby)))
10274
10275 (define-public ruby-skinny
10276 (package
10277 (name "ruby-skinny")
10278 (version "0.2.4")
10279 (source
10280 (origin
10281 (method url-fetch)
10282 (uri (rubygems-uri "skinny" version))
10283 (sha256
10284 (base32
10285 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
10286 (build-system ruby-build-system)
10287 (arguments
10288 '(#:tests? #f ; No included tests
10289 #:phases
10290 (modify-phases %standard-phases
10291 (add-before 'build 'patch-gemspec
10292 (lambda _
10293 (substitute* ".gemspec"
10294 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
10295 "<eventmachine>, [\">= 1.0.0\"")
10296 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
10297 #t)))))
10298 (propagated-inputs
10299 `(("ruby-eventmachine" ,ruby-eventmachine)
10300 ("ruby-thin" ,ruby-thin)))
10301 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
10302 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
10303 the Thin library.")
10304 (home-page "https://github.com/sj26/skinny")
10305 (license license:expat)))
10306
10307 (define-public ruby-sys-filesystem
10308 (package
10309 (name "ruby-sys-filesystem")
10310 (version "1.3.4")
10311 (source (origin
10312 (method url-fetch)
10313 (uri (rubygems-uri "sys-filesystem" version))
10314 (sha256
10315 (base32
10316 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
10317 (build-system ruby-build-system)
10318 (arguments
10319 '(#:phases (modify-phases %standard-phases
10320 (add-before 'check 'set-HOME
10321 (lambda _
10322 ;; Some tests attempt to stat $HOME. Let them.
10323 (setenv "HOME" "/tmp")
10324 #t)))))
10325 (propagated-inputs
10326 `(("ruby-ffi" ,ruby-ffi)))
10327 (native-inputs
10328 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
10329 (synopsis "Gather file system information")
10330 (description
10331 "The @code{sys-filesystem} library provides a cross-platform interface
10332 for gathering file system information, such as disk space and mount points.")
10333 (home-page "https://github.com/djberg96/sys-filesystem")
10334 (license license:asl2.0)))
10335
10336 (define-public mailcatcher
10337 (package
10338 (name "mailcatcher")
10339 (version "0.7.1")
10340 (source
10341 (origin
10342 (method url-fetch)
10343 (uri (rubygems-uri "mailcatcher" version))
10344 (sha256
10345 (base32
10346 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
10347 (build-system ruby-build-system)
10348 (arguments
10349 ;; Tests require web/assets which is not included in the output. We
10350 ;; might be able to fix this by adding the Git repository to the GEM_PATH
10351 ;; of the tests. See ruby-mysql2.
10352 '(#:tests? #f
10353 #:phases
10354 (modify-phases %standard-phases
10355 (add-before 'build 'patch-gemspec
10356 (lambda _
10357 (substitute* ".gemspec"
10358 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
10359 "<eventmachine>, [\">= 1.0.9.1")
10360 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
10361 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
10362 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
10363 #t))
10364 (add-before 'build 'loosen-dependency-contraint
10365 (lambda _
10366 (substitute* "lib/mail_catcher.rb"
10367 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
10368 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
10369 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
10370 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
10371 #t)))))
10372 (inputs
10373 `(("ruby-eventmachine" ,ruby-eventmachine)
10374 ("ruby-mail" ,ruby-mail)
10375 ("ruby-rack" ,ruby-rack)
10376 ("ruby-sinatra" ,ruby-sinatra)
10377 ("ruby-skinny" ,ruby-skinny)
10378 ("ruby-sqlite3" ,ruby-sqlite3)
10379 ("ruby-thin" ,ruby-thin)))
10380 (synopsis "SMTP server which catches messages to display them a browser")
10381 (description
10382 "MailCatcher runs a super simple SMTP server which catches any message
10383 sent to it to display in a web interface. Run mailcatcher, set your favourite
10384 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
10385 then check out http://127.0.0.1:1080 to see the mail.")
10386 (home-page "https://mailcatcher.me")
10387 (license license:expat)))
10388
10389 (define-public ruby-backport
10390 (package
10391 (name "ruby-backport")
10392 (version "1.1.2")
10393 (source
10394 (origin
10395 ;; The gem does not include test code, so fetch from the Git repository.
10396 (method git-fetch)
10397 (uri (git-reference
10398 (url "https://github.com/castwide/backport")
10399 (commit (string-append "v" version))))
10400 (file-name (git-file-name name version))
10401 (sha256
10402 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
10403 (build-system ruby-build-system)
10404 (arguments
10405 `(#:test-target "spec"))
10406 (native-inputs
10407 `(("bundler" ,bundler)
10408 ("ruby-rspec" ,ruby-rspec)))
10409 (inputs
10410 `(("ruby-simplecov" ,ruby-simplecov)))
10411 (synopsis "Pure Ruby library for event-driven IO")
10412 (description
10413 "This package provides a pure Ruby library for event-driven IO.")
10414 (home-page "https://github.com/castwide/backport")
10415 (license license:expat)))
10416
10417 (define-public ruby-json-schema
10418 (package
10419 (name "ruby-json-schema")
10420 (version "2.8.1")
10421 (source
10422 (origin
10423 (method url-fetch)
10424 (uri (rubygems-uri "json-schema" version))
10425 (sha256
10426 (base32
10427 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
10428 (build-system ruby-build-system)
10429 (arguments
10430 `(#:tests? #f ; no tests
10431 #:phases
10432 (modify-phases %standard-phases
10433 (replace 'build
10434 (lambda _
10435 (invoke "gem" "build" ".gemspec"))))))
10436 (propagated-inputs
10437 `(("ruby-addressable" ,ruby-addressable)))
10438 (synopsis "Ruby JSON Schema Validator")
10439 (description "This library provides Ruby with an interface for validating
10440 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
10441 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
10442 is also included.")
10443 (home-page "https://github.com/ruby-json-schema/json-schema")
10444 (license license:expat)))
10445
10446 (define-public swagger-diff
10447 (package
10448 (name "swagger-diff")
10449 (version "1.1.2")
10450 (source
10451 (origin
10452 (method url-fetch)
10453 (uri (rubygems-uri "swagger-diff" version))
10454 (sha256
10455 (base32
10456 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
10457 (build-system ruby-build-system)
10458 (arguments
10459 `(#:test-target "spec"
10460 #:phases
10461 (modify-phases %standard-phases
10462 ;; Don't run or require rubocop, the code linting tool, as this is a
10463 ;; bit unnecessary.
10464 (add-after 'unpack 'dont-run-rubocop
10465 (lambda _
10466 (substitute* "Rakefile"
10467 ((".*rubocop.*") "")
10468 ((".*RuboCop.*") ""))
10469 #t)))))
10470 (propagated-inputs
10471 `(("ruby-json-schema" ,ruby-json-schema)))
10472 (native-inputs
10473 `(("bundler" ,bundler)
10474 ("ruby-rspec-core" ,ruby-rspec-core)
10475 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
10476 (synopsis
10477 "Compare Open API Initiative specification files")
10478 (description
10479 "Swagger::Diff is a utility for comparing two different Open API
10480 Initiative (OAI) specifications (formerly known as Swagger specifications).
10481 It is intended to determine whether a newer API specification is
10482 backwards-compatible with an older API specification.")
10483 (home-page "https://github.com/civisanalytics/swagger-diff")
10484 (license license:bsd-3)))
10485
10486 (define-public ruby-reverse-markdown
10487 (package
10488 (name "ruby-reverse-markdown")
10489 (version "1.1.0")
10490 (source
10491 (origin
10492 (method url-fetch)
10493 (uri (rubygems-uri "reverse_markdown" version))
10494 (sha256
10495 (base32
10496 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
10497 (build-system ruby-build-system)
10498 (propagated-inputs
10499 `(("ruby-nokogiri" ,ruby-nokogiri)))
10500 (native-inputs
10501 `(("bundler" ,bundler)
10502 ("ruby-rspec" ,ruby-rspec)
10503 ("ruby-kramdown" ,ruby-kramdown)
10504 ("ruby-simplecov" ,ruby-simplecov)))
10505 (arguments
10506 `(#:phases
10507 (modify-phases %standard-phases
10508 (replace 'check
10509 (lambda* (#:key tests? #:allow-other-keys)
10510 (when tests?
10511 (invoke "rspec"))
10512 #t)))))
10513 (synopsis "Convert HTML into Markdown")
10514 (description
10515 "This Ruby module allows you to map simple HTML back into
10516 Markdown---e.g., if you want to import existing HTML data in your
10517 application.")
10518 (home-page "https://github.com/xijo/reverse_markdown")
10519 (license license:wtfpl2)))
10520
10521 (define-public ruby-solargraph
10522 (package
10523 (name "ruby-solargraph")
10524 (version "0.36.0")
10525 (source
10526 (origin
10527 (method url-fetch)
10528 (uri (rubygems-uri "solargraph" version))
10529 (sha256
10530 (base32
10531 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
10532 (build-system ruby-build-system)
10533 (propagated-inputs
10534 `(("ruby-backport" ,ruby-backport)
10535 ("bundler" ,bundler)
10536 ("ruby-htmlentities" ,ruby-htmlentities)
10537 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
10538 ("ruby-maruku" ,ruby-maruku)
10539 ("ruby-nokogiri" ,ruby-nokogiri)
10540 ("ruby-parser" ,ruby-parser)
10541 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
10542 ("ruby-rubocop" ,ruby-rubocop)
10543 ("ruby-thor" ,ruby-thor)
10544 ("ruby-tilt" ,ruby-tilt)
10545 ("ruby-yard" ,ruby-yard)))
10546 (native-inputs
10547 `(("ruby-rspec" ,ruby-rspec)
10548 ("ruby-pry" ,ruby-pry)
10549 ("ruby-simplecov" ,ruby-simplecov)
10550 ("ruby-webmock" ,ruby-webmock-2)))
10551 ;; FIXME: can't figure out how to run the tests properly:
10552
10553 ;; An error occurred while loading spec_helper.
10554 ;; Failure/Error: return gem_original_require(path)
10555 ;; LoadError:
10556 ;; cannot load such file -- spec_helper
10557 (arguments
10558 '(#:tests? #f
10559 #:phases
10560 (modify-phases %standard-phases
10561 (replace 'check
10562 (lambda* (#:key tests? #:allow-other-keys)
10563 (when tests?
10564 (invoke "rspec"))
10565 #t)))))
10566 (synopsis
10567 "IDE tools for code completion, inline documentation, and static analysis")
10568 (description
10569 "Solargraph provides a comprehensive suite of tools for Ruby
10570 programming: intellisense, diagnostics, inline documentation, and type
10571 checking.")
10572 (home-page "https://solargraph.org/")
10573 (license license:expat)))
10574
10575 (define-public ruby-wayback-machine-downloader
10576 (package
10577 (name "ruby-wayback-machine-downloader")
10578 (version "2.2.1")
10579 (source
10580 (origin
10581 (method url-fetch)
10582 (uri (rubygems-uri
10583 "wayback_machine_downloader"
10584 version))
10585 (sha256
10586 (base32
10587 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
10588 (build-system ruby-build-system)
10589 (arguments
10590 '(#:tests? #f)) ; no tests
10591 (synopsis "Download archived websites from the Wayback Machine")
10592 (description
10593 "Wayback Machine Downloader is a command line tool for downloading
10594 websites from the Internet Archive's Wayback Machine (archive.org).
10595 It allows fine grained control over what to download by specifying
10596 which snapshots to consider and what files to include.")
10597 (home-page
10598 "https://github.com/hartator/wayback-machine-downloader")
10599 (license license:expat)))
10600
10601 (define-public ruby-wwtd
10602 (package
10603 (name "ruby-wwtd")
10604 (version "1.4.1")
10605 (home-page "http://github.com/grosser/wwtd")
10606 (source (origin
10607 (method git-fetch)
10608 (uri (git-reference
10609 (url home-page)
10610 (commit (string-append "v" version))))
10611 (file-name (git-file-name name version))
10612 (sha256
10613 (base32
10614 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
10615 (modules '((guix build utils)))
10616 (snippet
10617 '(begin
10618 ;; Remove bundled library.
10619 (delete-file "spec/rake-12.3.0.gem")
10620 #t))))
10621 (build-system ruby-build-system)
10622 (arguments
10623 '(;; XXX: Tests need multiple versions of ruby, wants to run
10624 ;; `bundle install`, etc.
10625 #:tests? #f
10626 #:phases (modify-phases %standard-phases
10627 (replace 'replace-git-ls-files
10628 (lambda _
10629 (substitute* "wwtd.gemspec"
10630 (("git ls-files lib/ bin/`")
10631 "find lib/ bin/ -type f |sort`"))
10632 #t))
10633 (add-before 'check 'remove-version-constraints
10634 (lambda _
10635 (delete-file "Gemfile.lock")
10636 #t))
10637 (replace 'check
10638 (lambda* (#:key tests? #:allow-other-keys)
10639 (if tests?
10640 (invoke "rspec" "spec/")
10641 (format #t "test suite not run~%"))
10642 #t)))))
10643 (native-inputs
10644 `(("ruby-bump" ,ruby-bump)
10645 ("ruby-rspec" ,ruby-rspec)))
10646 (synopsis "Run @file{.travis.yml} files locally")
10647 (description
10648 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
10649 defined in @file{.travis.yml} on your local machine, using @code{rvm},
10650 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
10651 (license license:expat)))