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