projects/guix·blob version-1.2.0 · refs

11713 lines · 419.2 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014, 2015 Pjotr Prins <[email protected]>
3;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <[email protected]>
4;;; Copyright © 2014, 2015 Mark H Weaver <[email protected]>
5;;; Copyright © 2014, 2015 David Thompson <[email protected]>
6;;; Copyright © 2015, 2019 Ricardo Wurmus <[email protected]>
7;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <[email protected]>
8;;; Copyright © 2017 Nikita <[email protected]>
9;;; Copyright © 2017, 2019, 2020 Marius Bakke <[email protected]>
10;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <[email protected]>
11;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <[email protected]>
12;;; Copyright © 2017 Clément Lassieur <[email protected]>
13;;; Copyright © 2017, 2018, 2019 Christopher Baines <[email protected]>
14;;; Copyright © 2018 Vasile Dumitrascu <[email protected]>
15;;; Copyright © 2018 Alex Vong <[email protected]>
16;;; Copyright © 2019 Pierre Neidhardt <[email protected]>
17;;; Copyright © 2019 Mikhail Kirillov <[email protected]>
18;;; Copyright © 2019 Jelle Licht <[email protected]>
19;;; Copyright © 2019 Brian Leung <[email protected]>
20;;; Copyright © 2019 Collin J. Doering <[email protected]>
21;;; Copyright © 2019 Diego N. Barbato <[email protected]>
22;;; Copyright © 2019 Brett Gilio <[email protected]>
23;;; Copyright © 2020 Maxim Cournoyer <[email protected]>
24;;; Copyright © 2020 Nicolas Goaziou <[email protected]>
25;;; Copyright © 2020 Michael Rohleder <[email protected]>
26;;;
27;;; This file is part of GNU Guix.
28;;;
29;;; GNU Guix is free software; you can redistribute it and/or modify it
30;;; under the terms of the GNU General Public License as published by
31;;; the Free Software Foundation; either version 3 of the License, or (at
32;;; your option) any later version.
33;;;
34;;; GNU Guix is distributed in the hope that it will be useful, but
35;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37;;; GNU General Public License for more details.
38;;;
39;;; You should have received a copy of the GNU General Public License
40;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
41
42(define-module (gnu packages ruby)
43 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bison)
47 #:use-module (gnu packages c)
48 #:use-module (gnu packages check)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages crypto)
51 #:use-module (gnu packages databases)
52 #:use-module (gnu packages dbm)
53 #:use-module (gnu packages rails)
54 #:use-module (gnu packages readline)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages haskell-xyz)
57 #:use-module (gnu packages java)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages libidn)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages lsof)
62 #:use-module (gnu packages maths)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages networking)
65 #:use-module (gnu packages node)
66 #:use-module (gnu packages protobuf)
67 #:use-module (gnu packages python)
68 #:use-module (gnu packages python-xyz)
69 #:use-module (gnu packages ragel)
70 #:use-module (gnu packages rsync)
71 #:use-module (gnu packages sqlite)
72 #:use-module (gnu packages tls)
73 #:use-module (gnu packages version-control)
74 #:use-module (guix packages)
75 #:use-module (guix download)
76 #:use-module (guix git-download)
77 #:use-module (guix utils)
78 #:use-module (guix build-system gnu)
79 #:use-module (gnu packages xml)
80 #:use-module (gnu packages web)
81 #:use-module (guix build-system ruby)
82 #:use-module ((srfi srfi-1) #:select (alist-delete)))
83
84(define %prawn-project-licenses
85 ;; This set of licenses applies to most (all?) components of the Prawn
86 ;; project (it is triple licensed).
87 (list license:ruby
88 license:gpl2+
89 license:gpl3+))
90
91(define-public ruby
92 (package
93 (name "ruby")
94 (version "2.6.5")
95 (source
96 (origin
97 (method url-fetch)
98 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
99 (version-major+minor version)
100 "/ruby-" version ".tar.xz"))
101 (sha256
102 (base32
103 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
104 (modules '((guix build utils)))
105 (snippet `(begin
106 ;; Remove bundled libffi
107 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
108 #t))))
109 (build-system gnu-build-system)
110 (arguments
111 `(#:test-target "test"
112 #:configure-flags '("--enable-shared") ; dynamic linking
113 #:phases
114 (modify-phases %standard-phases
115 (add-before 'configure 'replace-bin-sh-and-remove-libffi
116 (lambda _
117 (substitute* '("Makefile.in"
118 "ext/pty/pty.c"
119 "io.c"
120 "lib/mkmf.rb"
121 "process.c"
122 "test/rubygems/test_gem_ext_configure_builder.rb"
123 "test/rdoc/test_rdoc_parser.rb"
124 "test/ruby/test_rubyoptions.rb"
125 "test/ruby/test_process.rb"
126 "test/ruby/test_system.rb"
127 "tool/rbinstall.rb")
128 (("/bin/sh") (which "sh")))
129 #t)))))
130 (inputs
131 `(("readline" ,readline)
132 ("openssl" ,openssl)
133 ("libffi" ,libffi)
134 ("gdbm" ,gdbm)))
135 (propagated-inputs
136 `(("zlib" ,zlib)))
137 (native-search-paths
138 (list (search-path-specification
139 (variable "GEM_PATH")
140 (files (list (string-append "lib/ruby/vendor_ruby"))))))
141 (synopsis "Programming language interpreter")
142 (description "Ruby is a dynamic object-oriented programming language with
143a focus on simplicity and productivity.")
144 (home-page "https://www.ruby-lang.org")
145 (license license:ruby)))
146
147(define-public ruby-2.7
148 (package
149 (inherit ruby)
150 (version "2.7.2")
151 (source
152 (origin
153 (method url-fetch)
154 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
155 (version-major+minor version)
156 "/ruby-" version ".tar.gz"))
157 (sha256
158 (base32
159 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
160 (modules '((guix build utils)))
161 (snippet `(begin
162 ;; Remove bundled libffi
163 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
164 #t))))
165 (arguments
166 `(#:test-target "test"
167 #:configure-flags '("--enable-shared") ; dynamic linking
168 #:phases
169 (modify-phases %standard-phases
170 (add-before 'configure 'replace-bin-sh-and-remove-libffi
171 (lambda _
172 (substitute* '("configure.ac"
173 "template/Makefile.in"
174 "lib/rubygems/installer.rb"
175 "ext/pty/pty.c"
176 "io.c"
177 "lib/mkmf.rb"
178 "process.c"
179 "test/rubygems/test_gem_ext_configure_builder.rb"
180 "test/rdoc/test_rdoc_parser.rb"
181 "test/ruby/test_rubyoptions.rb"
182 "test/ruby/test_process.rb"
183 "test/ruby/test_system.rb"
184 "tool/rbinstall.rb")
185 (("/bin/sh") (which "sh")))
186 #t)))))
187 (native-inputs
188 `(("autoconf" ,autoconf)))))
189
190(define-public ruby-2.5
191 (package
192 (inherit ruby)
193 (version "2.5.8")
194 (source
195 (origin
196 (method url-fetch)
197 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
198 (version-major+minor version)
199 "/ruby-" version ".tar.xz"))
200 (sha256
201 (base32
202 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
203 (modules '((guix build utils)))
204 (snippet `(begin
205 ;; Remove bundled libffi
206 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
207 #t))))))
208
209(define-public ruby-2.4
210 (package
211 (inherit ruby)
212 (version "2.4.10")
213 (source
214 (origin
215 (method url-fetch)
216 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
217 (version-major+minor version)
218 "/ruby-" version ".tar.xz"))
219 (sha256
220 (base32
221 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
222 (modules '((guix build utils)))
223 (snippet `(begin
224 ;; Remove bundled libffi
225 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
226 #t))))))
227
228(define-public mruby
229 (package
230 (name "mruby")
231 (version "2.0.0")
232 (source
233 (origin
234 (method git-fetch)
235 (uri (git-reference
236 (url "https://github.com/mruby/mruby")
237 (commit version)))
238 (file-name (git-file-name name version))
239 (sha256
240 (base32
241 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
242 (build-system gnu-build-system)
243 (arguments
244 `(#:test-target "test"
245 #:phases
246 (modify-phases %standard-phases
247 (delete 'configure)
248 (add-after 'unpack 'enable-verbose-tests
249 (lambda _
250 (substitute* "Makefile"
251 (("ruby ./minirake" m)
252 (string-append m " --verbose")))
253 #t))
254 (add-after 'unpack 'disable-broken-tests
255 (lambda _
256 (substitute* "mrbgems/mruby-io/test/io.rb"
257 (("assert\\('IO.popen.+$" m)
258 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
259 (("assert\\('IO#isatty.+$" m)
260 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
261 ;; This one is really weird. The *expected* output is all wrong.
262 (("assert\\('`cmd`.*" m)
263 (string-append m "skip \"Disable for Guix\"\n"))
264 (("echo foo")
265 (string-append (which "echo") " foo")))
266 #t))
267 ;; There is no install target
268 (replace 'install
269 (lambda* (#:key outputs #:allow-other-keys)
270 (let* ((out (assoc-ref outputs "out"))
271 (bin (string-append out "/bin"))
272 (lib (string-append out "/lib")))
273 (mkdir-p bin)
274 (copy-recursively "build/host/bin" bin)
275 (mkdir-p lib)
276 (copy-recursively "build/host/lib" lib))
277 #t)))))
278 (native-inputs
279 `(("ruby" ,ruby)
280 ("bison" ,bison)))
281 (home-page "https://github.com/mruby/mruby")
282 (synopsis "Lightweight Ruby")
283 (description "mruby is the lightweight implementation of the Ruby
284language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
285embedded within your application.")
286 (license license:expat)))
287
288(define-public ruby-commander
289 (package
290 (name "ruby-commander")
291 (version "4.4.7")
292 (source
293 (origin
294 (method url-fetch)
295 (uri (rubygems-uri "commander" version))
296 (sha256
297 (base32
298 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
299 (build-system ruby-build-system)
300 (arguments
301 `(#:test-target "spec"
302 #:phases
303 (modify-phases %standard-phases
304 ;; Don't run or require rubocop, the code linting tool, as this is a
305 ;; bit unnecessary.
306 (add-after 'unpack 'dont-run-rubocop
307 (lambda _
308 (substitute* "Rakefile"
309 ((".*rubocop.*") "")
310 ((".*RuboCop.*") ""))
311 #t)))))
312 (propagated-inputs
313 `(("ruby-highline" ,ruby-highline)))
314 (native-inputs
315 `(("bundler" ,bundler)
316 ("ruby-rspec-core" ,ruby-rspec-core)
317 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
318 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
319 ("ruby-simplecov" ,ruby-simplecov)))
320 (home-page "https://github.com/commander-rb/commander")
321 (synopsis "Library for building Ruby command-line executables")
322 (description
323 "Commander aims to be a complete solution for Ruby command-line
324executables. Commander bridges the gap between other terminal related
325libraries (OptionParser, HighLine), while providing many new features, and an
326elegant API.")
327 (license license:expat)))
328
329(define-public ruby-highline
330 (package
331 (name "ruby-highline")
332 (version "2.0.1")
333 (source
334 (origin
335 (method url-fetch)
336 (uri (rubygems-uri "highline" version))
337 (sha256
338 (base32
339 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
340 (build-system ruby-build-system)
341 (arguments
342 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
343 (native-inputs
344 `(("bundler" ,bundler)
345 ("ruby-code-statistics" ,ruby-code-statistics)))
346 (synopsis
347 "HighLine helps you build command-line interfaces")
348 (description
349 "HighLine provides a high-level IO library that provides validation,
350type conversion, and more for command-line interfaces. HighLine also includes
351a menu system for providing multiple options to the user.")
352 (home-page "https://github.com/JEG2/highline")
353 (license (list license:gpl2 license:ruby))))
354
355(define-public ruby-hoe
356 (package
357 (name "ruby-hoe")
358 (version "3.21.0")
359 (source (origin
360 (method url-fetch)
361 (uri (rubygems-uri "hoe" version))
362 (sha256
363 (base32
364 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
365 (build-system ruby-build-system)
366 (arguments
367 '(#:phases
368 (modify-phases %standard-phases
369 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
370 ;; variable is set, so unset it for the duration of the tests.
371 ;;
372 ;; TestHoe#test_possibly_better
373 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
374 ;; Expected: 2019-11-12 00:00:00 UTC
375 ;; Actual: 1970-01-01 00:00:00 UTC
376 (add-before 'check 'unset-SOURCE-DATE-EPOCH
377 (lambda _
378 (unsetenv "SOURCE_DATE_EPOCH")
379 #t))
380 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
381 (lambda _
382 (setenv "SOURCE_DATE_EPOCH" "1")
383 #t)))))
384 (synopsis "Ruby project management helper")
385 (description
386 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
387maintain, and release projects and includes a dynamic plug-in system allowing
388for easy extensibility. Hoe ships with plug-ins for all the usual project
389tasks including rdoc generation, testing, packaging, deployment, and
390announcement.")
391 (home-page "https://www.zenspider.com/projects/hoe.html")
392 (license license:expat)))
393
394(define-public ruby-rake-compiler
395 (package
396 (name "ruby-rake-compiler")
397 (version "1.1.0")
398 (source (origin
399 (method url-fetch)
400 (uri (rubygems-uri "rake-compiler" version))
401 (sha256
402 (base32
403 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
404 (build-system ruby-build-system)
405 (arguments
406 '(#:tests? #f)) ; needs cucumber
407 (synopsis "Building and packaging helper for Ruby native extensions")
408 (description "Rake-compiler provides a framework for building and
409packaging native C and Java extensions in Ruby.")
410 (home-page "https://github.com/rake-compiler/rake-compiler")
411 (license license:expat)))
412
413(define-public ruby-rsync
414 (package
415 (name "ruby-rsync")
416 (version "1.0.9")
417 (source
418 (origin
419 (method url-fetch)
420 (uri (rubygems-uri "rsync" version))
421 (sha256
422 (base32
423 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
424 (build-system ruby-build-system)
425 (arguments
426 '(#:test-target "spec"
427 #:phases
428 (modify-phases %standard-phases
429 (add-after 'unpack 'remove-coveralls-requirement
430 (lambda _
431 (substitute* "spec/spec_helper.rb"
432 (("require 'coveralls'") "")
433 (("Coveralls.wear!") ""))
434 #t)))))
435 (native-inputs
436 `(("bundler" ,bundler)
437 ("rsync" ,rsync)
438 ("ruby-rspec-core" ,ruby-rspec-core)
439 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
440 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
441 (home-page "https://github.com/jbussdieker/ruby-rsync")
442 (synopsis "Ruby wrapper around rsync")
443 (description
444 "Ruby Rsync is a Ruby library that can synchronize files between remote
445hosts by wrapping the @file{rsync} binary.")
446 (license license:expat)))
447
448(define-public ruby-i18n
449 (package
450 (name "ruby-i18n")
451 (version "1.7.0")
452 (source (origin
453 (method url-fetch)
454 (uri (rubygems-uri "i18n" version))
455 (sha256
456 (base32
457 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
458 (build-system ruby-build-system)
459 (arguments
460 '(#:tests? #f)) ; no tests
461 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
462 (synopsis "Internationalization library for Ruby")
463 (description "Ruby i18n is an internationalization and localization
464solution for Ruby programs. It features translation and localization,
465interpolation of values to translations, pluralization, customizable
466transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
467translation data, custom key/scope separator, custom exception handlers, and
468an extensible architecture with a swappable backend.")
469 (home-page "https://github.com/ruby-i18n/i18n")
470 (license license:expat)))
471
472(define-public ruby-iruby
473 (package
474 (name "ruby-iruby")
475 (version "0.3")
476 (source
477 (origin
478 (method url-fetch)
479 (uri (rubygems-uri "iruby" version))
480 (sha256
481 (base32
482 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
483 (build-system ruby-build-system)
484 (arguments
485 ;; TODO: Tests currently fail.
486 ;;
487 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
488 ;;
489 ;; 1) Failure:
490 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
491 ;; In [ expected
492 ;;
493 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
494 '(#:tests? #f
495 #:phases
496 (modify-phases %standard-phases
497 (add-after 'unpack 'patch-ipython
498 (lambda* (#:key inputs #:allow-other-keys)
499 (substitute* "lib/iruby/command.rb"
500 (("version = `")
501 (string-append
502 "version = `"
503 (assoc-ref inputs "python-ipython")
504 "/bin/"))
505 (("Kernel\\.exec\\('")
506 (string-append
507 "Kernel.exec('"
508 (assoc-ref inputs "python-ipython")
509 "/bin/")))
510 #t)))))
511 (inputs
512 `(("python-ipython" ,python-ipython)))
513 (propagated-inputs
514 `(("ruby-bond" ,ruby-bond)
515 ("ruby-data_uri" ,ruby-data_uri)
516 ("ruby-mimemagic" ,ruby-mimemagic)
517 ("ruby-multi-json" ,ruby-multi-json)
518 ("ruby-cztop" ,ruby-cztop)
519 ;; Optional inputs
520 ("ruby-pry" ,ruby-pry)))
521 (synopsis "Ruby kernel for Jupyter/IPython")
522 (description
523 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
524notebook).")
525 (home-page "https://github.com/SciRuby/iruby")
526 (license license:expat)))
527
528;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
529;; dependencies use RSpec for their test suites! To avoid these circular
530;; dependencies, we disable tests for all of the RSpec-related packages.
531(define-public ruby-rspec-support
532 (package
533 (name "ruby-rspec-support")
534 (version "3.8.0")
535 (source (origin
536 (method url-fetch)
537 (uri (rubygems-uri "rspec-support" version))
538 (sha256
539 (base32
540 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
541 (build-system ruby-build-system)
542 (arguments
543 '(#:tests? #f)) ; avoid dependency cycles
544 (synopsis "RSpec support library")
545 (description "Support utilities for RSpec gems.")
546 (home-page "https://github.com/rspec/rspec-support")
547 (license license:expat)))
548
549(define-public ruby-rspec-core
550 (package
551 (name "ruby-rspec-core")
552 (version "3.8.0")
553 (source (origin
554 (method url-fetch)
555 (uri (rubygems-uri "rspec-core" version))
556 (sha256
557 (base32
558 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
559 (build-system ruby-build-system)
560 (arguments
561 '(#:tests? #f)) ; avoid dependency cycles
562 (propagated-inputs
563 `(("ruby-rspec-support" ,ruby-rspec-support)))
564 (synopsis "RSpec core library")
565 (description "Rspec-core provides the RSpec test runner and example
566groups.")
567 (home-page "https://github.com/rspec/rspec-core")
568 (license license:expat)))
569
570(define-public ruby-rspec-core-2
571 (package (inherit ruby-rspec-core)
572 (version "2.14.8")
573 (source (origin
574 (method url-fetch)
575 (uri (rubygems-uri "rspec-core" version))
576 (sha256
577 (base32
578 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
579 (propagated-inputs `())))
580
581(define-public ruby-diff-lcs
582 (package
583 (name "ruby-diff-lcs")
584 (version "1.3")
585 (source (origin
586 (method url-fetch)
587 (uri (rubygems-uri "diff-lcs" version))
588 (sha256
589 (base32
590 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
591 (build-system ruby-build-system)
592 (arguments
593 '(#:tests? #f)) ; avoid dependency cycles
594 (synopsis "Compute the difference between two Enumerable sequences")
595 (description "Diff::LCS computes the difference between two Enumerable
596sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
597It includes utilities to create a simple HTML diff output format and a
598standard diff-like tool.")
599 (home-page "https://github.com/halostatue/diff-lcs")
600 (license license:expat)))
601
602(define-public ruby-rspec-expectations
603 (package
604 (name "ruby-rspec-expectations")
605 (version "3.8.2")
606 (source (origin
607 (method url-fetch)
608 (uri (rubygems-uri "rspec-expectations" version))
609 (sha256
610 (base32
611 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
612 (build-system ruby-build-system)
613 (arguments
614 '(#:tests? #f)) ; avoid dependency cycles
615 (propagated-inputs
616 `(("ruby-rspec-support" ,ruby-rspec-support)
617 ("ruby-diff-lcs" ,ruby-diff-lcs)))
618 (synopsis "RSpec expectations library")
619 (description "Rspec-expectations provides a simple API to express expected
620outcomes of a code example.")
621 (home-page "https://github.com/rspec/rspec-expectations")
622 (license license:expat)))
623
624(define-public ruby-rspec-expectations-2
625 (package (inherit ruby-rspec-expectations)
626 (version "2.14.5")
627 (source (origin
628 (method url-fetch)
629 (uri (rubygems-uri "rspec-expectations" version))
630 (sha256
631 (base32
632 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
633 (propagated-inputs
634 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
635
636(define-public ruby-sorcerer
637 (package
638 (name "ruby-sorcerer")
639 (version "2.0.1")
640 (source
641 (origin
642 (method url-fetch)
643 (uri (rubygems-uri "sorcerer" version))
644 (sha256
645 (base32
646 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
647 (build-system ruby-build-system)
648 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
649 (description "Sorcerer generates Ruby code from a Ripper-like abstract
650syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
651snippets of Ruby code, expressible in a single line. Longer examples may be
652re-sourced, but they will be rendered in a single-line format.")
653 (home-page "https://github.com/rspec-given/sorcerer")
654 (license license:expat)))
655
656(define-public ruby-given-core
657 (package
658 (name "ruby-given-core")
659 (version "3.8.0")
660 (source
661 (origin
662 (method url-fetch)
663 (uri (rubygems-uri "given_core" version))
664 (sha256
665 (base32
666 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
667 (build-system ruby-build-system)
668 (arguments '(#:tests? #f)) ;no test suite for the core package
669 (propagated-inputs
670 `(("ruby-sorcerer" ,ruby-sorcerer)))
671 (synopsis "Core abstractions used by rspec-given and minitest-given")
672 (description "Given_core is the basic functionality behind rspec-given and
673minitest-given, extensions that allow the use of Given/When/Then terminology
674when defining specifications.")
675 (home-page "https://github.com/rspec-given/rspec-given")
676 (license license:expat)))
677
678(define-public ruby-rspec-given
679 (package
680 (name "ruby-rspec-given")
681 (version "3.8.0")
682 (source
683 (origin
684 (method url-fetch)
685 (uri (rubygems-uri "rspec-given" version))
686 (sha256
687 (base32
688 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
689 (build-system ruby-build-system)
690 (arguments
691 `(#:test-target "rs"
692 #:phases
693 (modify-phases %standard-phases
694 (add-after 'unpack 'fix-rakefile
695 (lambda _
696 (substitute* '("Rakefile" "rakelib/gemspec.rake")
697 (("require '\\./lib/given/.*") "")
698 (("Given::VERSION") (format #f "~s" ,version))
699 ;; Fix the error: "cannot load such file -- example_helper"
700 (("sh \"rspec")
701 "sh \"rspec -Ilib:examples"))
702 #t))
703 (add-after 'extract-gemspec 'delete-failing-tests
704 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
705 (lambda _
706 (substitute* ".gemspec"
707 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
708 "")
709 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
710 ""))
711 (delete-file "spec/lib/given/natural_assertion_spec.rb")
712 (delete-file "examples/integration/failing_messages_spec.rb")
713 #t)))))
714 (native-inputs
715 `(("ruby-rspec" ,ruby-rspec)
716 ("ruby-minitest" ,ruby-minitest)))
717 (propagated-inputs
718 `(("ruby-given-core" ,ruby-given-core)
719 ("ruby-rspec" ,ruby-rspec)))
720 (synopsis "Given/When/Then for RSpec and Minitest")
721 (description "Given is an RSpec extension that allows the use of
722Given/When/Then terminology when defining specifications, in a way similar to
723the Cucumber Gherkin language.")
724 (home-page "https://github.com/rspec-given/rspec-given")
725 (license license:expat)))
726
727(define-public ruby-rspec-its
728 (package
729 (name "ruby-rspec-its")
730 (version "1.3.0")
731 (source
732 (origin
733 (method git-fetch)
734 (uri (git-reference
735 (url "https://github.com/rspec/rspec-its")
736 (commit (string-append "v" version))))
737 (file-name (git-file-name name version))
738 (sha256
739 (base32
740 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
741 (build-system ruby-build-system)
742 (arguments
743 `(#:test-target "spec"
744 #:phases
745 (modify-phases %standard-phases
746 (add-after 'unpack 'dont-install-gems-from-gemfile
747 (lambda _
748 (substitute* "Gemfile"
749 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
750 ""))
751 #t))
752 (add-before 'build 'loosen-ffi-requirement
753 (lambda _
754 ;; Accept any version of ruby-ffi.
755 (substitute* "Gemfile"
756 ((" gem 'ffi', '~> 1\\.9\\.25'")
757 " gem 'ffi'"))
758 #t))
759 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
760 (lambda _
761 (substitute* "rspec-its.gemspec"
762 (("rake.*") "rake'\n")
763 (("spec.add_development_dependency 'cucumber'.*")
764 "spec.add_development_dependency 'cucumber'\n")
765 (("bundler.*") "bundler'\n")
766 (("\"aruba.*") "'aruba'\n"))
767 #t)))))
768 (propagated-inputs
769 `(("ruby-rspec-core" ,ruby-rspec-core)
770 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
771 (native-inputs
772 `(("bundler" ,bundler)
773 ("ruby-cucumber" ,ruby-cucumber)
774 ("ruby-ffi" ,ruby-ffi)
775 ("ruby-aruba" ,ruby-aruba)))
776 (synopsis "RSpec extension that provides the @code{its} method")
777 (description
778 "RSpec::Its provides the its method as a short-hand to specify the expected
779value of an attribute. For example, one can use @code{its(:size)\\{should
780eq(1)\\}}.")
781 (home-page "https://github.com/rspec/rspec-its")
782 (license license:expat)))
783
784;;; This variant is used to break a cycle with ruby-protobuf.
785(define-public ruby-rspec-its-minimal
786 (hidden-package
787 (package
788 (inherit ruby-rspec-its)
789 (arguments
790 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
791 ((#:tests? _ #f) #f)))
792 (native-inputs '()))))
793
794(define-public ruby-rspec-mocks
795 (package
796 (name "ruby-rspec-mocks")
797 (version "3.8.0")
798 (source (origin
799 (method url-fetch)
800 (uri (rubygems-uri "rspec-mocks" version))
801 (sha256
802 (base32
803 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
804 (build-system ruby-build-system)
805 (arguments
806 '(#:tests? #f)) ; avoid dependency cycles
807 (propagated-inputs
808 `(("ruby-rspec-support" ,ruby-rspec-support)
809 ("ruby-diff-lcs" ,ruby-diff-lcs)))
810 (synopsis "RSpec stubbing and mocking library")
811 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
812support for stubbing and mocking.")
813 (home-page "https://github.com/rspec/rspec-mocks")
814 (license license:expat)))
815
816(define-public ruby-rspec-mocks-2
817 (package (inherit ruby-rspec-mocks)
818 (version "2.14.6")
819 (source (origin
820 (method url-fetch)
821 (uri (rubygems-uri "rspec-mocks" version))
822 (sha256
823 (base32
824 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
825 (propagated-inputs
826 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
827
828(define-public ruby-rspec-rerun
829 (package
830 (name "ruby-rspec-rerun")
831 (version "1.1.0")
832 (source
833 (origin
834 (method url-fetch)
835 (uri (rubygems-uri "rspec-rerun" version))
836 (sha256
837 (base32
838 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
839 (build-system ruby-build-system)
840 (arguments
841 '(;; No included tests
842 #:tests? #f))
843 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
844 (synopsis "Track failed RSpec tests to re-run them")
845 (description
846 "This package provides an automated way to track, and then re-run failed
847RSpec tests.")
848 (home-page "https://github.com/dblock/rspec-rerun")
849 (license license:expat)))
850
851(define-public ruby-rspec-wait
852 (package
853 (name "ruby-rspec-wait")
854 (version "0.0.9")
855 (source
856 (origin
857 (method url-fetch)
858 (uri (rubygems-uri "rspec-wait" version))
859 (sha256
860 (base32
861 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
862 (build-system ruby-build-system)
863 (arguments
864 '(#:phases
865 (modify-phases %standard-phases
866 (replace 'check
867 (lambda _
868 (invoke "rake" "spec"))))))
869 (native-inputs
870 `(("bundler" ,bundler)))
871 (propagated-inputs
872 `(("ruby-rspec" ,ruby-rspec)))
873 (home-page "https://github.com/laserlemon/rspec-wait")
874 (synopsis "Wait for conditions in RSpec")
875 (description
876 "RSpec::Wait strives to make it easier to test asynchronous or slow
877interactions.")
878 (license license:expat)))
879
880(define-public ruby-rspec
881 (package
882 (name "ruby-rspec")
883 (version "3.8.0")
884 (source (origin
885 (method url-fetch)
886 (uri (rubygems-uri "rspec" version))
887 (sha256
888 (base32
889 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
890 (build-system ruby-build-system)
891 (arguments
892 '(#:tests? #f)) ; avoid dependency cycles
893 (propagated-inputs
894 `(("ruby-rspec-core" ,ruby-rspec-core)
895 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
896 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
897 (synopsis "Behavior-driven development framework for Ruby")
898 (description "RSpec is a behavior-driven development (BDD) framework for
899Ruby. This meta-package includes the RSpec test runner, along with the
900expectations and mocks frameworks.")
901 (home-page "https://rspec.info/")
902 (license license:expat)))
903
904(define-public ruby-rspec-2
905 (package (inherit ruby-rspec)
906 (version "2.14.1")
907 (source (origin
908 (method url-fetch)
909 (uri (rubygems-uri "rspec" version))
910 (sha256
911 (base32
912 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
913 (propagated-inputs
914 `(("ruby-rspec-core" ,ruby-rspec-core-2)
915 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
916 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
917
918;; Bundler is yet another source of circular dependencies, so we must disable
919;; its test suite as well.
920(define-public bundler
921 (package
922 (name "bundler")
923 (version "2.1.4")
924 (source (origin
925 (method url-fetch)
926 (uri (rubygems-uri "bundler" version))
927 (sha256
928 (base32
929 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
930 (build-system ruby-build-system)
931 (arguments
932 '(#:tests? #f)) ; avoid dependency cycles
933 (synopsis "Ruby gem bundler")
934 (description "Bundler automatically downloads and installs a list of gems
935specified in a \"Gemfile\", as well as their dependencies.")
936 (home-page "https://bundler.io/")
937 (license license:expat)))
938
939(define-public ruby-builder
940 (package
941 (name "ruby-builder")
942 (version "3.2.3")
943 (source (origin
944 (method url-fetch)
945 (uri (rubygems-uri "builder" version))
946 (sha256
947 (base32
948 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
949 (build-system ruby-build-system)
950 (arguments
951 `(#:phases
952 (modify-phases %standard-phases
953 (add-after 'unpack 'do-not-use-rvm
954 (lambda _
955 (substitute* "rakelib/tags.rake"
956 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
957 #t)))))
958 (synopsis "Ruby library to create structured data")
959 (description "Builder provides a number of builder objects that make it
960easy to create structured data. Currently the following builder objects are
961supported: XML Markup and XML Events.")
962 (home-page "https://github.com/jimweirich/builder")
963 (license license:expat)))
964
965(define-public ruby-bump
966 (package
967 (name "ruby-bump")
968 (version "0.7.0")
969 (source
970 (origin
971 (method url-fetch)
972 (uri (rubygems-uri "bump" version))
973 (sha256
974 (base32
975 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
976 (build-system ruby-build-system)
977 (arguments
978 '(;; No included tests
979 #:tests? #f))
980 (synopsis "Tool for working with Rubygems")
981 (description
982 "Bump provides commands to manage Rubygem versioning, updating to the
983next patch version for example.")
984 (home-page "https://github.com/gregorym/bump")
985 (license license:expat)))
986
987(define-public ruby-rjb
988 (package
989 (name "ruby-rjb")
990 (version "1.5.5")
991 (source (origin
992 (method url-fetch)
993 (uri (rubygems-uri "rjb" version))
994 (sha256
995 (base32
996 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
997 (build-system ruby-build-system)
998 (arguments
999 `(#:tests? #f ; no rakefile
1000 #:phases
1001 (modify-phases %standard-phases
1002 (add-before 'build 'set-java-home
1003 (lambda* (#:key inputs #:allow-other-keys)
1004 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1005 #t)))))
1006 (native-inputs
1007 `(("jdk" ,icedtea "jdk")))
1008 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1009 (description "RJB is a bridge program that connects Ruby and Java via the
1010Java Native Interface.")
1011 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1012 (license license:lgpl2.1+)))
1013
1014(define-public ruby-log4r
1015 (package
1016 (name "ruby-log4r")
1017 (version "1.1.10")
1018 (source
1019 (origin
1020 (method url-fetch)
1021 (uri (rubygems-uri "log4r" version))
1022 (sha256
1023 (base32
1024 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1025 (build-system ruby-build-system)
1026 (arguments
1027 '(#:tests? #f)) ; no Rakefile in gem
1028 (synopsis "Flexible logging library for Ruby")
1029 (description "Comprehensive and flexible logging library written
1030in Ruby for use in Ruby programs. It features a hierarchical logging
1031system of any number of levels, custom level names, logger
1032inheritance, multiple output destinations per log event, execution
1033tracing, custom formatting, thread safteyness, XML and YAML
1034configuration, and more.")
1035 (home-page "http://log4r.rubyforge.org/")
1036 (license license:bsd-3)))
1037
1038(define-public ruby-atoulme-antwrap
1039 (package
1040 (name "ruby-atoulme-antwrap")
1041 (version "0.7.5")
1042 (source (origin
1043 (method url-fetch)
1044 (uri (rubygems-uri "atoulme-Antwrap" version))
1045 (sha256
1046 (base32
1047 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1048 (build-system ruby-build-system)
1049 ;; Test data required for most of the tests are not included.
1050 (arguments `(#:tests? #f))
1051 (native-inputs
1052 `(("ruby-hoe" ,ruby-hoe)))
1053 (inputs
1054 `(("ruby-rjb" ,ruby-rjb)))
1055 (synopsis "Ruby wrapper for the Ant build tool")
1056 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1057tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1058script.")
1059 (home-page "http://rubyforge.org/projects/antwrap/")
1060 (license license:expat)))
1061
1062(define-public ruby-atoulme-saikuro
1063 (package
1064 (name "ruby-atoulme-saikuro")
1065 (version "1.2.1")
1066 (source (origin
1067 (method url-fetch)
1068 (uri (rubygems-uri "atoulme-Saikuro" version))
1069 (sha256
1070 (base32
1071 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1072 (build-system ruby-build-system)
1073 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1074 ;; "saikuro" tool.
1075 (arguments `(#:tests? #f))
1076 (synopsis "Cyclomatic complexity analyzer")
1077 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1078given Ruby source code Saikuro will generate a report listing the cyclomatic
1079complexity of each method found. In addition, Saikuro counts the number of
1080lines per method and can generate a listing of the number of tokens on each
1081line of code.")
1082 (home-page "http://www.github.com/atoulme/Saikuro")
1083 ;; File headers contain the BSD-3 license and the README.rdoc says that
1084 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1085 ;; of the Expat license.
1086 (license license:bsd-3)))
1087
1088(define-public ruby-pandoc-ruby
1089 (package
1090 (name "ruby-pandoc-ruby")
1091 (version "2.1.4")
1092 (source
1093 (origin
1094 (method git-fetch) ;the gem lacks many test files
1095 (uri (git-reference
1096 (url "https://github.com/xwmx/pandoc-ruby")
1097 (commit version)))
1098 (file-name (git-file-name name version))
1099 (sha256
1100 (base32
1101 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1102 (build-system ruby-build-system)
1103 (arguments
1104 `(#:phases
1105 (modify-phases %standard-phases
1106 (add-after 'unpack 'disable-failing-tests
1107 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1108 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1109 (lambda _
1110 (substitute* "test/test_conversions.rb"
1111 (("next if from == to.*" all)
1112 (string-append
1113 all
1114 " next if ['plain', 'beamer'].include? to\n")))
1115 #t))
1116 (add-after 'unpack 'patch-pandoc-path
1117 (lambda* (#:key inputs #:allow-other-keys)
1118 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1119 "/bin/pandoc")))
1120 (substitute* "lib/pandoc-ruby.rb"
1121 (("@@pandoc_path = 'pandoc'")
1122 (format #f "@@pandoc_path = '~a'" pandoc)))
1123 (substitute* "test/test_pandoc_ruby.rb"
1124 (("('|\")pandoc" _ quote)
1125 (string-append quote pandoc))
1126 (("\\^pandoc")
1127 ".*pandoc"))
1128 #t)))
1129 (add-after 'extract-gemspec 'remove-Gemfile.lock
1130 (lambda _
1131 (delete-file "Gemfile.lock")
1132 (substitute* "pandoc-ruby.gemspec"
1133 (("Gemfile\\.lock") ""))
1134 #t)))))
1135 (native-inputs
1136 `(("ruby-mocha" ,ruby-mocha)))
1137 (inputs
1138 `(("pandoc" ,pandoc)))
1139 (synopsis "Ruby wrapper for Pandoc")
1140 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1141command line tools for converting one markup format to another. Pandoc can
1142convert documents from a variety of formats including markdown,
1143reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1144variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1145ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1146markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1147more.")
1148 (home-page "https://github.com/xwmx/pandoc-ruby")
1149 (license license:expat)))
1150
1151(define-public ruby-slim
1152 (package
1153 (name "ruby-slim")
1154 (version "4.1.0")
1155 (source
1156 (origin
1157 (method url-fetch)
1158 (uri (rubygems-uri "slim" version))
1159 (sha256
1160 (base32
1161 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1162 (build-system ruby-build-system)
1163 (arguments
1164 `(#:phases
1165 (modify-phases %standard-phases
1166 ;; See: https://github.com/slim-template/slim/issues/857 and
1167 ;; https://github.com/slim-template/slim/issues/858.
1168 (add-after 'unpack 'skip-broken-tests
1169 (lambda _
1170 (substitute* "test/core/test_embedded_engines.rb"
1171 (("def test_render_with_markdown")
1172 "def skipped_test_render_with_markdown"))
1173 (substitute* "test/translator/test_translator.rb"
1174 (("raise (\"Missing test for.*)" _ tail)
1175 (string-append "print " tail)))
1176 #t))
1177 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1178 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1179 (add-after 'unpack 'prevent-bundler-interference
1180 (lambda _
1181 (substitute* "Rakefile"
1182 (("require 'bundler/setup'") "nil")
1183 (("Bundler::GemHelper\\.install_tasks") "nil"))
1184 #t)))))
1185 (native-inputs
1186 `(("ruby-rack-test" ,ruby-rack-test)
1187 ("ruby-sinatra" ,ruby-sinatra)))
1188 (propagated-inputs
1189 `(("ruby-temple" ,ruby-temple)
1190 ("ruby-tilt" ,ruby-tilt)))
1191 (synopsis "Minimalist template language for Ruby")
1192 (description "Slim is a template language for Ruby that aims to reduce the
1193syntax to the minimum while remaining clear.")
1194 (home-page "http://slim-lang.com/")
1195 (license license:expat)))
1196
1197(define-public ruby-asciidoctor
1198 (package
1199 (name "ruby-asciidoctor")
1200 (version "2.0.10")
1201 (source
1202 (origin
1203 (method git-fetch) ;the gem release lacks a Rakefile
1204 (uri (git-reference
1205 (url "https://github.com/asciidoctor/asciidoctor")
1206 (commit (string-append "v" version))))
1207 (file-name (git-file-name name version))
1208 (sha256
1209 (base32
1210 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1211 (build-system ruby-build-system)
1212 (arguments
1213 `(#:test-target "test:all"
1214 #:phases
1215 (modify-phases %standard-phases
1216 (replace 'replace-git-ls-files
1217 (lambda _
1218 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1219 ;; git ls-files output is merged in ruby-build-system.
1220 (substitute* "asciidoctor.gemspec"
1221 (("`git ls-files -z`")
1222 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1223 #t))
1224 (add-after 'extract-gemspec 'strip-version-requirements
1225 (lambda _
1226 (delete-file "Gemfile")
1227 (substitute* "asciidoctor.gemspec"
1228 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1229 (string-append stripped "\n")))
1230 #t)))))
1231 (native-inputs
1232 `(("ruby-erubis" ,ruby-erubis)
1233 ("ruby-minitest" ,ruby-minitest)
1234 ("ruby-nokogiri" ,ruby-nokogiri)
1235 ("ruby-asciimath" ,ruby-asciimath)
1236 ("ruby-coderay" ,ruby-coderay)
1237 ("ruby-cucumber" ,ruby-cucumber)
1238 ("ruby-haml" ,ruby-haml)
1239 ("ruby-rouge" ,ruby-rouge)
1240 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1241 ("ruby-simplecov" ,ruby-simplecov)
1242 ("ruby-slim" ,ruby-slim)
1243 ("ruby-tilt" ,ruby-tilt)))
1244 (synopsis "Converter from AsciiDoc content to other formats")
1245 (description "Asciidoctor is a text processor and publishing toolchain for
1246converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1247formats.")
1248 (home-page "https://asciidoctor.org")
1249 (license license:expat)))
1250
1251(define-public ruby-prawn-icon
1252 (package
1253 (name "ruby-prawn-icon")
1254 (version "2.5.0")
1255 (source
1256 (origin
1257 (method url-fetch)
1258 (uri (rubygems-uri "prawn-icon" version))
1259 (sha256
1260 (base32
1261 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1262 (build-system ruby-build-system)
1263 (arguments
1264 `(#:test-target "spec"
1265 #:phases (modify-phases %standard-phases
1266 (add-after 'unpack 'remove-unnecessary-dependencies
1267 (lambda _
1268 (substitute* '("Rakefile" "spec/spec_helper.rb")
1269 ((".*[Bb]undler.*") "")
1270 (("^require 'rubocop.*") "")
1271 (("^RuboCop.*") ""))
1272 #t)))))
1273 (native-inputs
1274 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1275 ("ruby-pdf-reader" ,ruby-pdf-reader)
1276 ("ruby-rspec" ,ruby-rspec)
1277 ("ruby-simplecov" ,ruby-simplecov)))
1278 (propagated-inputs
1279 `(("ruby-prawn" ,ruby-prawn)))
1280 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1281 (description "@code{Prawn::Icon} provides various icon fonts including
1282FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1283toolkit.")
1284 (home-page "https://github.com/jessedoyle/prawn-icon/")
1285 (license %prawn-project-licenses)))
1286
1287(define-public ruby-css-parser
1288 (package
1289 (name "ruby-css-parser")
1290 (version "1.7.1")
1291 (source
1292 (origin
1293 (method url-fetch)
1294 (uri (rubygems-uri "css_parser" version))
1295 (sha256
1296 (base32
1297 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1298 (build-system ruby-build-system)
1299 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1300 (propagated-inputs
1301 `(("ruby-addressable" ,ruby-addressable)))
1302 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1303 (description "This package allows loading, parsing and cascading Cascading
1304Style Sheets (CSS) rule sets in Ruby.")
1305 (home-page "https://github.com/premailer/css_parser")
1306 (license license:expat)))
1307
1308(define-public ruby-prawn-svg
1309 (package
1310 (name "ruby-prawn-svg")
1311 (version "0.30.0")
1312 (source
1313 (origin
1314 (method url-fetch)
1315 (uri (rubygems-uri "prawn-svg" version))
1316 (sha256
1317 (base32
1318 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1319 (build-system ruby-build-system)
1320 (arguments
1321 `(#:phases (modify-phases %standard-phases
1322 (add-after 'unpack 'do-not-use-bundler
1323 (lambda _
1324 (substitute* "spec/spec_helper.rb"
1325 ((".*[Bb]undler.*") ""))
1326 #t))
1327 (replace 'check
1328 (lambda* (#:key tests? #:allow-other-keys)
1329 (when tests?
1330 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1331 #t)))))
1332 (native-inputs
1333 `(("ruby-rspec" ,ruby-rspec)))
1334 (propagated-inputs
1335 `(("ruby-css-parser" ,ruby-css-parser)
1336 ("ruby-prawn" ,ruby-prawn)))
1337 (synopsis "SVG renderer for the Prawn PDF library")
1338 (description "This library allows rendering Scalable Vector Graphics (SVG)
1339graphics directly into a Portable Document Format (PDF) document using the
1340Prawn module.")
1341 (home-page "https://github.com/mogest/prawn-svg")
1342 (license license:expat)))
1343
1344(define-public ruby-prawn-templates
1345 (package
1346 (name "ruby-prawn-templates")
1347 (version "0.1.2")
1348 (source
1349 (origin
1350 (method git-fetch)
1351 (uri (git-reference
1352 (url "https://github.com/prawnpdf/prawn-templates.git")
1353 (commit version)))
1354 (file-name (git-file-name name version))
1355 (sha256
1356 (base32
1357 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1358 (build-system ruby-build-system)
1359 (arguments
1360 `(#:phases (modify-phases %standard-phases
1361 (add-after 'unpack 'do-not-use-bundler
1362 (lambda _
1363 (substitute* "spec/spec_helper.rb"
1364 ((".*[Bb]undler.*") ""))
1365 #t))
1366 (replace 'check
1367 (lambda* (#:key tests? #:allow-other-keys)
1368 (when tests?
1369 (invoke "rspec"))
1370 #t)))))
1371 (native-inputs
1372 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1373 ("ruby-rspec" ,ruby-rspec)))
1374 (propagated-inputs
1375 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1376 ("ruby-prawn" ,ruby-prawn)))
1377 (synopsis "Prawn extension to include or combine PDF documents")
1378 (description "This @strong{unmaintained} package provides a Prawn
1379extension that allows including other Portable Document Format (PDF) documents
1380as background or combining several PDF documents into one. This functionality
1381used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1382of its many longstanding issues.")
1383 (home-page "https://github.com/prawnpdf/prawn-templates")
1384 (license %prawn-project-licenses)))
1385
1386(define-public ruby-polyglot
1387 (package
1388 (name "ruby-polyglot")
1389 (version "0.3.5")
1390 (source
1391 (origin
1392 (method url-fetch)
1393 (uri (rubygems-uri "polyglot" version))
1394 (sha256
1395 (base32
1396 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1397 (build-system ruby-build-system)
1398 (arguments `(#:tests? #f)) ;no test suite
1399 (synopsis "Augment @code{require} to load non-Ruby file types")
1400 (description "The Polyglot library allows a Ruby module to register a
1401loader for the file type associated with a filename extension, and it augments
1402@code{require} to find and load matching files.")
1403 (home-page "https://github.com/cjheath/polyglot")
1404 (license license:expat)))
1405
1406(define-public ruby-treetop
1407 (package
1408 (name "ruby-treetop")
1409 (version "1.6.10")
1410 (source
1411 (origin
1412 (method git-fetch) ;no test suite in distributed gem
1413 (uri (git-reference
1414 (url "https://github.com/cjheath/treetop.git")
1415 (commit (string-append "v" version))))
1416 (file-name (git-file-name name version))
1417 (sha256
1418 (base32
1419 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1420 (build-system ruby-build-system)
1421 (arguments
1422 `(#:test-target "spec"
1423 #:phases
1424 (modify-phases %standard-phases
1425 (replace 'replace-git-ls-files
1426 (lambda _
1427 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1428 ;; git ls-files output is merged in ruby-build-system.
1429 (substitute* "treetop.gemspec"
1430 (("`git ls-files -z`")
1431 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1432 #t)))))
1433 (native-inputs
1434 `(("ruby-activesupport" ,ruby-activesupport)
1435 ("ruby-rr" ,ruby-rr)
1436 ("ruby-rspec" ,ruby-rspec)))
1437 (propagated-inputs
1438 `(("ruby-polyglot" ,ruby-polyglot)))
1439 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1440 (description "This package provides a Ruby-based Parsing Expression
1441Grammar (PEG) parser generator Domain Specific Language (DSL).")
1442 (home-page "https://github.com/cjheath/treetop")
1443 (license license:expat)))
1444
1445(define-public ruby-rubocop-performance
1446 (package
1447 (name "ruby-rubocop-performance")
1448 (version "1.7.1")
1449 (source
1450 (origin
1451 (method url-fetch)
1452 (uri (rubygems-uri "rubocop-performance" version))
1453 (sha256
1454 (base32
1455 "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
1456 (build-system ruby-build-system)
1457 (arguments
1458 `(#:tests? #f)) ;no test suite in the distributed gem
1459 (propagated-inputs
1460 `(("ruby-rubocop" ,ruby-rubocop)))
1461 (synopsis "Performance optimizations checkers for Ruby code")
1462 (description "This package provides a collection of RuboCop cops to check
1463for performance optimizations in Ruby code.")
1464 (home-page "https://docs.rubocop.org/rubocop-performance/")
1465 (license license:expat)))
1466
1467(define-public ruby-gimme
1468 (let ((revision "1")
1469 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1470 (package
1471 (name "ruby-gimme")
1472 (version (git-version "0.5.0" revision commit))
1473 (source
1474 (origin
1475 (method git-fetch)
1476 (uri (git-reference
1477 (url "https://github.com/searls/gimme.git")
1478 (commit commit)))
1479 (file-name (git-file-name name version))
1480 (sha256
1481 (base32
1482 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1483 (build-system ruby-build-system)
1484 (native-inputs
1485 `(("ruby-coveralls" ,ruby-coveralls)
1486 ("ruby-cucumber" ,ruby-cucumber)
1487 ("ruby-pry" ,ruby-pry)
1488 ("ruby-simplecov" ,ruby-simplecov)
1489 ("ruby-rspec-given" ,ruby-rspec-given)))
1490 (arguments
1491 `(;; The cucumber task fails with error: "index 3 out of matches
1492 ;; (IndexError)", apparently due to our newer Cucumber version.
1493 ;; TODO: Try the "default" task with a future release.
1494 #:test-target "spec"
1495 #:phases
1496 (modify-phases %standard-phases
1497 (add-after 'extract-gemspec 'prepare-for-tests
1498 (lambda _
1499 ;; Delete failing tests (possibly due to our newer rspec
1500 ;; version).
1501 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1502 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1503 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1504 ;; Fix duplicate version requirements and de-register files.
1505 (delete-file "Gemfile")
1506 (delete-file "Gemfile.lock")
1507 (substitute* "gimme.gemspec"
1508 ((".*\"Gemfile\".*") "")
1509 ((".*\"Gemfile\\.lock\",.*") "")
1510 ((".*(rspec|cucumber).*\">= 0\".*") "")
1511 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1512 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1513 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1514 ;; All of these gems relate to development, and are
1515 ;; unnecessary when running the tests.
1516 ((".*(add|gem).*guard-.*") "")
1517 ((".*(add|gem).*jeweler.*") "")
1518 ((".*(add|gem).*pry.*") "")
1519 ((".*(add|gem).*growl.*") "")
1520 ((".*(add|gem).*rb-fsevent.*") ""))
1521 #t)))))
1522 (synopsis "Lightweight test double library for Ruby")
1523 (description "Gimme is a very lightweight test double library for Ruby,
1524based on Mockito (a mocking framework for Java). It is an opinionated (but
1525not noisy) means to facilitate test-driving by enabling the authors to specify
1526only what they care about.")
1527 (home-page "https://github.com/searls/gimme")
1528 (license license:expat))))
1529
1530(define-public ruby-standard
1531 (package
1532 (name "ruby-standard")
1533 (version "0.4.7")
1534 (source
1535 (origin
1536 (method git-fetch) ;no test suite in distributed gem
1537 (uri (git-reference
1538 (url "https://github.com/testdouble/standard.git")
1539 (commit (string-append "v" version))))
1540 (file-name (git-file-name name version))
1541 (sha256
1542 (base32
1543 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1544 (build-system ruby-build-system)
1545 (arguments
1546 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1547 `(#:tests? #f
1548 #:phases
1549 (modify-phases %standard-phases
1550 (add-after 'unpack 'relax-version-requiremens
1551 (lambda _
1552 (delete-file "Gemfile")
1553 (delete-file "Gemfile.lock")
1554 #t))
1555 (replace 'replace-git-ls-files
1556 (lambda _
1557 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1558 ;; git ls-files output is merged in ruby-build-system.
1559 (substitute* "standard.gemspec"
1560 (("`git ls-files -z`")
1561 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1562|sort -z|cut -zc3-`"))
1563 #t)))))
1564 (native-inputs
1565 `(("ruby-gimme" ,ruby-gimme)
1566 ("ruby-pry" ,ruby-pry)
1567 ("ruby-simplecov" ,ruby-simplecov)))
1568 (propagated-inputs
1569 `(("ruby-rubocop" ,ruby-rubocop)
1570 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1571 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1572 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1573to save time in the following ways:
1574@itemize
1575@item No configuration.
1576@item Automatically format code.
1577@item Catch style issues and programmer errors early.
1578@end itemize")
1579 (home-page "https://github.com/testdouble/standard")
1580 (license license:expat)))
1581
1582(define-public ruby-chunky-png
1583 (package
1584 (name "ruby-chunky-png")
1585 (version "1.3.12")
1586 (source
1587 (origin
1588 (method git-fetch)
1589 (uri (git-reference
1590 (url "https://github.com/wvanbergen/chunky_png.git")
1591 (commit (string-append "v" version))))
1592 (file-name (git-file-name name version))
1593 (sha256
1594 (base32
1595 "0hn8ap7iib47qkqdp0awmxgma11z0lmk1ca3lp7c97ykhv7ij1zs"))))
1596 (build-system ruby-build-system)
1597 (arguments
1598 `(#:test-target "spec"
1599 #:phases
1600 (modify-phases %standard-phases
1601 (add-after 'unpack 'disable-bundler
1602 (lambda _
1603 (substitute* (find-files "." "\\.rb$")
1604 (("require.*bundler/setup.*") ""))
1605 #t))
1606 (replace 'replace-git-ls-files
1607 (lambda _
1608 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1609 ;; git ls-files output is merged in ruby-build-system.
1610 (substitute* "chunky_png.gemspec"
1611 (("`git ls-files`")
1612 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1613 #t)))))
1614 (native-inputs
1615 `(("bundler" ,bundler)
1616 ("ruby-rspec" ,ruby-rspec)
1617 ("ruby-standard" ,ruby-standard)
1618 ("ruby-yard" ,ruby-yard)))
1619 (synopsis "Ruby library to handle PNG images")
1620 (description "ChunkyPNG is a pure Ruby library that can read and write
1621Portable Network Graphics (PNG) images without depending on an external image
1622library. It tries to be memory efficient and reasonably fast. It has
1623features such as:
1624@itemize
1625@item
1626Decoding support for any image that the PNG standard allows. This includes all
1627standard color modes, all bit depths, all transparency, and interlacing and
1628filtering options.
1629@item
1630Encoding support for images of all color modes (true color, grayscale, and
1631indexed) and transparency for all these color modes. The best color mode is
1632chosen automatically, based on the amount of used colors.
1633@item Read/write access to the image's pixels.
1634@item Read/write access to all image metadata that is stored in chunks.
1635@item
1636Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1637pixel, depending on the hardware).
1638@item
1639Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1640integer math and a highly optimized saving routine.
1641@item Interoperability with RMagick.
1642@end itemize")
1643 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1644 (license license:expat)))
1645
1646(define-public ruby-text-hyphen
1647 (package
1648 (name "ruby-text-hyphen")
1649 (version "1.4.1")
1650 (source
1651 (origin
1652 (method url-fetch)
1653 (uri (rubygems-uri "text-hyphen" version))
1654 (sha256
1655 (base32
1656 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1657 (build-system ruby-build-system)
1658 (native-inputs
1659 `(("ruby-hoe" ,ruby-hoe)))
1660 (synopsis "Ruby library to hyphenate words in various languages")
1661 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1662languages using Ruby-fied versions of TeX hyphenation patterns. It will
1663properly hyphenate various words according to the rules of the language the
1664word is written in. The algorithm is based on that of the TeX typesetting
1665system by Donald E. Knuth.")
1666 (home-page "https://github.com/halostatue/text-hyphen")
1667 ;; The whole is licensed under the Expat license, but parts use various
1668 ;; versions of the LaTeX Project Public License.
1669 (license license:expat)))
1670
1671(define-public ruby-open-uri-cached
1672 (package
1673 (name "ruby-open-uri-cached")
1674 (version "0.0.5")
1675 (source
1676 (origin
1677 (method url-fetch)
1678 (uri (rubygems-uri "open-uri-cached" version))
1679 (sha256
1680 (base32
1681 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1682 (build-system ruby-build-system)
1683 (arguments
1684 `(#:tests? #f)) ;no test suite
1685 (synopsis "OpenURI with transparent disk caching")
1686 (description "OpenURI with transparent disk caching, which is
1687useful to avoid making excessive queries, for example when scraping
1688web pages.")
1689 (home-page "https://github.com/tigris/open-uri-cached")
1690 (license license:expat)))
1691
1692(define-public ruby-asciidoctor-pdf
1693 ;; Use the latest commit, as the last tag doesn't build with the
1694 ;; latest Ruby dependencies in Guix.
1695 (let ((revision "1")
1696 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1697 (package
1698 (name "ruby-asciidoctor-pdf")
1699 (version (git-version "1.5.3" revision commit))
1700 (source
1701 (origin
1702 (method git-fetch) ;no test suite in the distributed gem
1703 (uri (git-reference
1704 (url "https://github.com/asciidoctor/asciidoctor-pdf.git")
1705 (commit commit)))
1706 (file-name (git-file-name name version))
1707 (sha256
1708 (base32
1709 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1710 (build-system ruby-build-system)
1711 (arguments
1712 `(#:test-target "spec"
1713 #:phases
1714 (modify-phases %standard-phases
1715 (add-after 'unpack 'remove-failing-tests
1716 ;; Two tests module fail for unknown reasons, *only* when
1717 ;; ran in the build container (see:
1718 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1719 (lambda _
1720 (delete-file "spec/audio_spec.rb")
1721 (delete-file "spec/video_spec.rb")
1722 #t))
1723 (add-after 'extract-gemspec 'strip-version-requirements
1724 (lambda _
1725 (substitute* "asciidoctor-pdf.gemspec"
1726 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1727 (string-append stripped "\n")))
1728 #t))
1729 (replace 'replace-git-ls-files
1730 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1731 ;; git ls-files output is merged in ruby-build-system.
1732 (lambda _
1733 (substitute* "asciidoctor-pdf.gemspec"
1734 (("`git ls-files -z`")
1735 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1736|sort -z|cut -zc3-`"))
1737 #t))
1738 ;; The tests rely on the Gem being installed, so move the check phase
1739 ;; after the install phase.
1740 (delete 'check)
1741 (add-after 'install 'check
1742 (lambda* (#:key outputs tests? #:allow-other-keys)
1743 (let ((new-gem (string-append (assoc-ref outputs "out")
1744 "/lib/ruby/vendor_ruby")))
1745 (setenv "GEM_PATH"
1746 (string-append (getenv "GEM_PATH") ":" new-gem))
1747 (when tests?
1748 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1749 #t))))))
1750 (native-inputs
1751 `(("ruby-chunky-png" ,ruby-chunky-png)
1752 ("ruby-coderay" ,ruby-coderay)
1753 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1754 ("ruby-rouge" ,ruby-rouge)
1755 ("ruby-rspec" ,ruby-rspec)))
1756 (propagated-inputs
1757 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1758 ("ruby-concurrent-ruby" ,ruby-concurrent)
1759 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1760 ("ruby-prawn" ,ruby-prawn)
1761 ("ruby-prawn-icon" ,ruby-prawn-icon)
1762 ("ruby-prawn-svg" ,ruby-prawn-svg)
1763 ("ruby-prawn-table" ,ruby-prawn-table)
1764 ("ruby-prawn-templates" ,ruby-prawn-templates)
1765 ("ruby-safe-yaml" ,ruby-safe-yaml)
1766 ("ruby-text-hyphen" ,ruby-text-hyphen)
1767 ("ruby-thread-safe" ,ruby-thread-safe)
1768 ("ruby-treetop" ,ruby-treetop)
1769 ("ruby-ttfunk" ,ruby-ttfunk)))
1770 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1771 (description "Asciidoctor PDF is an extension for Asciidoctor that
1772converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1773PDF library. It has features such as:
1774@itemize
1775@item Direct AsciiDoc to PDF conversion
1776@item Configuration-driven theme (style and layout)
1777@item Scalable Vector Graphics (SVG) support
1778@item PDF document outline (i.e., bookmarks)
1779@item Table of contents page(s)
1780@item Document metadata (title, authors, subject, keywords, etc.)
1781@item Internal cross reference links
1782@item Syntax highlighting with Rouge, Pygments, or CodeRay
1783@item Page numbering
1784@item Customizable running content (header and footer)
1785@item
1786“Keep together” blocks (i.e., page breaks avoided in certain block content)
1787@item Orphaned section titles avoided
1788@item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1789@item Table border settings honored
1790@item Font-based icons
1791@item Custom TrueType (TTF) fonts
1792@item Double-sided printing mode (margins alternate on recto and verso pages)
1793@end itemize")
1794 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1795 (license license:expat))))
1796
1797(define-public ruby-ast
1798 (package
1799 (name "ruby-ast")
1800 (version "2.4.1")
1801 (source
1802 (origin
1803 (method git-fetch) ;no test included in gem from v2.4.1
1804 (uri (git-reference
1805 (url "https://github.com/whitequark/ast")
1806 (commit (string-append "v" version))))
1807 (file-name (git-file-name name version))
1808 (sha256
1809 (base32
1810 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1811 (build-system ruby-build-system)
1812 (arguments
1813 '(#:phases
1814 (modify-phases %standard-phases
1815 (add-after 'unpack 'remove-coveralls-requirement
1816 (lambda _
1817 (substitute* "test/helper.rb"
1818 (("require 'coveralls'") "")
1819 (("Coveralls::SimpleCov::Formatter") ""))
1820 #t))
1821 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1822 (lambda _
1823 (substitute* "ast.gemspec"
1824 ((".*coveralls.*") "\n")
1825 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1826 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1827 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1828 #t)))))
1829 (native-inputs
1830 `(("bundler" ,bundler)
1831 ("ruby-simplecov" ,ruby-simplecov)
1832 ("ruby-json-pure" ,ruby-json-pure)
1833 ("ruby-mime-times" ,ruby-mime-types)
1834 ("ruby-yard" ,ruby-yard)
1835 ("ruby-kramdown" ,ruby-kramdown)
1836 ("ruby-rest-client" ,ruby-rest-client)
1837 ("ruby-bacon" ,ruby-bacon)
1838 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1839 ("ruby-racc" ,ruby-racc)))
1840 (synopsis "Library for working with Abstract Syntax Trees")
1841 (description
1842 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1843It does this through immutable data structures.")
1844 (home-page "https://whitequark.github.io/ast/")
1845 (license license:expat)))
1846
1847(define-public ruby-sporkmonger-rack-mount
1848 ;; Testing the addressable gem requires a newer commit than that released, so
1849 ;; use an up to date version.
1850 (let ((revision "1")
1851 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1852 (package
1853 (name "ruby-sporkmonger-rack-mount")
1854 (version (git-version "0.8.3" revision commit))
1855 (source (origin
1856 (method git-fetch)
1857 (uri (git-reference
1858 (url "https://github.com/sporkmonger/rack-mount")
1859 (commit commit)))
1860 (file-name (git-file-name name version))
1861 (sha256
1862 (base32
1863 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1864 (build-system ruby-build-system)
1865 (arguments
1866 ;; Tests currently fail so disable them.
1867 ;; https://github.com/sporkmonger/rack-mount/pull/1
1868 `(#:tests? #f))
1869 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1870 (synopsis "Stackable dynamic tree based Rack router")
1871 (description
1872 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1873continue trying routes if the response returns pass. This allows multiple
1874routes to be nested or stacked on top of each other.")
1875 (home-page "https://github.com/sporkmonger/rack-mount")
1876 (license license:expat))))
1877
1878(define-public ruby-ci-reporter
1879 (package
1880 (name "ruby-ci-reporter")
1881 (version "2.0.0")
1882 (source (origin
1883 (method url-fetch)
1884 (uri (rubygems-uri "ci_reporter" version))
1885 (sha256
1886 (base32
1887 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1888 (build-system ruby-build-system)
1889 (arguments
1890 `(#:test-target "rspec"))
1891 (propagated-inputs
1892 `(("ruby-builder" ,ruby-builder)))
1893 (native-inputs
1894 `(("bundler" ,bundler)
1895 ("ruby-rspec" ,ruby-rspec)))
1896 (synopsis "Generate XML reports of runs test")
1897 (description
1898 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1899you to generate XML reports of your test runs. The resulting files can be
1900read by a continuous integration system that understands Ant's JUnit report
1901format.")
1902 (home-page "https://github.com/nicksieger/ci_reporter")
1903 (license license:expat)))
1904
1905(define-public ruby-contracts
1906 (package
1907 (name "ruby-contracts")
1908 (version "0.16.0")
1909 (source
1910 (origin
1911 (method url-fetch)
1912 (uri (rubygems-uri "contracts" version))
1913 (sha256
1914 (base32
1915 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1916 (build-system ruby-build-system)
1917 (arguments
1918 '(#:test-target "spec"
1919 #:phases
1920 (modify-phases %standard-phases
1921 ;; Don't run or require rubocop, the code linting tool, as this is a
1922 ;; bit unnecessary.
1923 (add-after 'unpack 'dont-run-rubocop
1924 (lambda _
1925 (substitute* "Rakefile"
1926 ((".*rubocop.*") "")
1927 ((".*RuboCop.*") ""))
1928 #t)))))
1929 (native-inputs
1930 `(("ruby-rspec" ,ruby-rspec)))
1931 (synopsis "Method contracts for Ruby")
1932 (description
1933 "This library provides contracts for Ruby. A contract describes the
1934correct inputs and output for a method, and will raise an error if a incorrect
1935value is found.")
1936 (home-page "https://github.com/egonSchiele/contracts.ruby")
1937 (license license:bsd-2)))
1938
1939(define-public ruby-crack
1940 (package
1941 (name "ruby-crack")
1942 (version "0.4.3")
1943 (source
1944 (origin
1945 (method url-fetch)
1946 (uri (rubygems-uri "crack" version))
1947 (sha256
1948 (base32
1949 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1950 (build-system ruby-build-system)
1951 (arguments
1952 `(#:phases
1953 (modify-phases %standard-phases
1954 (replace 'check
1955 (lambda* (#:key tests? #:allow-other-keys)
1956 (when tests?
1957 (for-each (lambda (file)
1958 (display file)(display "\n")
1959 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1960 (find-files "test" ".*rb$")))
1961 #t)))))
1962 (propagated-inputs
1963 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1964 (synopsis "Simple JSON and XML parsing for Ruby")
1965 (description
1966 "@code{crack} provides really simple JSON and XML parsing, extracted from
1967code in Merb and Rails.")
1968 (home-page "https://github.com/jnunemaker/crack")
1969 (license license:expat)))
1970
1971(define-public ruby-cliver
1972 (package
1973 (name "ruby-cliver")
1974 (version "0.3.2")
1975 (source
1976 (origin
1977 (method url-fetch)
1978 (uri (rubygems-uri "cliver" version))
1979 (sha256
1980 (base32
1981 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1982 (build-system ruby-build-system)
1983 (arguments
1984 '(#:phases
1985 (modify-phases %standard-phases
1986 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1987 ;; would be nice, but the tests look to be incompatible:
1988 ;;
1989 ;; NoMethodError: undefined method `last_comment'
1990 (replace 'check
1991 (lambda* (#:key tests? #:allow-other-keys)
1992 (when tests?
1993 (invoke "rspec"))
1994 #t)))))
1995 (native-inputs
1996 `(("bundler" ,bundler)
1997 ("ruby-rspec" ,ruby-rspec-2)))
1998 (synopsis "Assertions for command-line dependencies in Ruby")
1999 (description
2000 "@code{cliver} provides a way to detect missing command-line
2001dependencies, including versions.")
2002 (home-page "https://github.com/yaauie/cliver")
2003 (license license:expat)))
2004
2005(define-public ruby-czmq-ffi-gen
2006 (package
2007 (name "ruby-czmq-ffi-gen")
2008 (version "0.13.0")
2009 (source
2010 (origin
2011 (method url-fetch)
2012 (uri (rubygems-uri "czmq-ffi-gen" version))
2013 (sha256
2014 (base32
2015 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2016 (build-system ruby-build-system)
2017 (arguments
2018 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2019 #:phases
2020 (modify-phases %standard-phases
2021 (add-after 'unpack 'patch-lib_dirs
2022 (lambda* (#:key inputs #:allow-other-keys)
2023 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2024 (("lib\\_dirs = \\[.*\\]")
2025 (string-append "lib_dirs = ['"
2026 (assoc-ref inputs "czmq") "/lib"
2027 "']")))
2028 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2029 (("lib\\_dirs = \\[.*\\]")
2030 (string-append "lib_dirs = ['"
2031 (assoc-ref inputs "zeromq") "/lib"
2032 "']"))))))))
2033 (inputs
2034 `(("zeromq" ,zeromq)
2035 ("czmq" ,czmq)))
2036 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2037 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2038 (description
2039 "These Ruby bindings are not intended to be directly used, but rather
2040used by higher level bindings like those provided by CZTop.")
2041 (home-page
2042 "https://github.com/paddor/czmq-ffi-gen")
2043 (license license:isc)))
2044
2045(define-public ruby-cztop
2046 (package
2047 (name "ruby-cztop")
2048 (version "0.12.2")
2049 (source
2050 (origin
2051 (method url-fetch)
2052 (uri (rubygems-uri "cztop" version))
2053 (sha256
2054 (base32
2055 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2056 (build-system ruby-build-system)
2057 (arguments
2058 '(#:test-target "spec"
2059 #:phases
2060 (modify-phases %standard-phases
2061 (add-after 'unpack 'patch-lib_paths
2062 (lambda* (#:key inputs #:allow-other-keys)
2063 (substitute* "lib/cztop/poller/zmq.rb"
2064 (("lib\\_paths = \\[.*\\]")
2065 (string-append "lib_paths = ['"
2066 (assoc-ref inputs "zeromq") "/lib"
2067 "']"))))))))
2068 (native-inputs
2069 `(("bundler" ,bundler)
2070 ("ruby-rspec" ,ruby-rspec)))
2071 (inputs
2072 `(("zeromq" ,zeromq)))
2073 (propagated-inputs
2074 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2075 (synopsis "CZMQ Ruby bindings")
2076 (description
2077 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2078CZMQ. The focus of of CZTop is on being easy to use and providing first class
2079support for security mechanisms.")
2080 (home-page "https://github.com/paddor/cztop")
2081 (license license:isc)))
2082
2083(define-public ruby-saikuro-treemap
2084 (package
2085 (name "ruby-saikuro-treemap")
2086 (version "0.2.0")
2087 (source (origin
2088 (method url-fetch)
2089 (uri (rubygems-uri "saikuro_treemap" version))
2090 (sha256
2091 (base32
2092 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2093 (build-system ruby-build-system)
2094 ;; Some of the tests fail because the generated JSON has keys in a
2095 ;; different order. This is a problem with the test suite rather than any
2096 ;; of the involved libraries.
2097 (arguments `(#:tests? #f))
2098 (propagated-inputs
2099 `(("ruby-json-pure" ,ruby-json-pure)
2100 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2101 (synopsis "Generate complexity treemap based on saikuro analysis")
2102 (description
2103 "This gem generates a treemap showing the complexity of Ruby code on
2104which it is run. It uses Saikuro under the covers to analyze Ruby code
2105complexity.")
2106 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2107 (license license:expat)))
2108
2109(define-public ruby-oauth2
2110 (package
2111 (name "ruby-oauth2")
2112 (version "1.4.2")
2113 (source
2114 (origin
2115 (method url-fetch)
2116 (uri (rubygems-uri "oauth2" version))
2117 (sha256
2118 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2119 (build-system ruby-build-system)
2120 (arguments
2121 '(#:tests? #f)) ; no included tests
2122 (propagated-inputs
2123 `(("ruby-faraday" ,ruby-faraday)
2124 ("ruby-jwt" ,ruby-jwt)
2125 ("ruby-multi-json" ,ruby-multi-json)
2126 ("ruby-multi-xml" ,ruby-multi-xml)
2127 ("ruby-rack" ,ruby-rack)))
2128 (synopsis "Ruby wrapper for the OAuth 2.0")
2129 (description
2130 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2131with a similar style to the original OAuth spec.")
2132 (home-page "https://github.com/oauth-xx/oauth2")
2133 (license license:expat)))
2134
2135(define-public ruby-omniauth
2136 (package
2137 (name "ruby-omniauth")
2138 (version "1.9.1")
2139 (source
2140 (origin
2141 (method url-fetch)
2142 (uri (rubygems-uri "omniauth" version))
2143 (sha256
2144 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2145 (build-system ruby-build-system)
2146 (arguments
2147 '(#:tests? #f)) ; No included tests
2148 (propagated-inputs
2149 `(("ruby-hashie" ,ruby-hashie)
2150 ("ruby-rack" ,ruby-rack)))
2151 (synopsis "Generalized Rack framework for multiple-provider authentication")
2152 (description
2153 "This package provides a generalized Rack framework for multiple-provider
2154authentication.")
2155 (home-page "https://github.com/omniauth/omniauth")
2156 (license license:expat)))
2157
2158(define-public ruby-omniauth-oauth2
2159 (package
2160 (name "ruby-omniauth-oauth2")
2161 (version "1.6.0")
2162 (source
2163 (origin
2164 (method url-fetch)
2165 (uri (rubygems-uri "omniauth-oauth2" version))
2166 (sha256
2167 (base32
2168 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2169 (build-system ruby-build-system)
2170 (arguments
2171 '(#:phases
2172 (modify-phases %standard-phases
2173 (add-after 'unpack 'remove-unnecessary-dependencies
2174 (lambda _
2175 ;; The coveralls gem submits coverage information to an online
2176 ;; service, and is unnecessary when running the tests
2177 (substitute* "Gemfile"
2178 ((".*coveralls\"") ""))
2179 (substitute* "spec/helper.rb"
2180 (("require \"coveralls\"") "")
2181 (("Coveralls::SimpleCov::Formatter") ""))
2182 #t)))))
2183 (propagated-inputs
2184 `(("ruby-oauth2" ,ruby-oauth2)
2185 ("ruby-omniauth" ,ruby-omniauth)))
2186 (native-inputs
2187 `(("bundler" ,bundler)
2188 ("ruby-rspec" ,ruby-rspec)
2189 ("ruby-simplecov" ,ruby-simplecov)
2190 ("ruby-rack-test" ,ruby-rack-test)
2191 ("ruby-webmock" ,ruby-webmock-2)))
2192 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2193 (description
2194 "This library provides a generic OAuth2 strategy for OmniAuth. It
2195doesn't provide a way to gather user information, so should be used as a
2196building block for authentication strategies.")
2197 (home-page "https://github.com/omniauth/omniauth-oauth2")
2198 (license license:expat)))
2199
2200(define-public ruby-open4
2201 (package
2202 (name "ruby-open4")
2203 (version "1.3.4")
2204 (source
2205 (origin
2206 (method url-fetch)
2207 (uri (rubygems-uri "open4" version))
2208 (sha256
2209 (base32
2210 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2211 (build-system ruby-build-system)
2212 (arguments
2213 '(#:phases
2214 (modify-phases %standard-phases
2215 (add-after 'unpack 'patch
2216 (lambda _
2217 (substitute* "rakefile"
2218 ;; Update the Rakefile so it works
2219 (("-rubygems") "-rrubygems")
2220 (("Config") "RbConfig"))
2221 #t))
2222 (add-before 'check 'set-LIB
2223 (lambda _
2224 ;; This is used in the rakefile when running the tests
2225 (setenv "LIB" "open4")
2226 #t)))))
2227 (synopsis "Open child processes from Ruby and manage them easily")
2228 (description
2229 "@code{Open4} is a Ruby library to run child processes and manage their
2230input and output.")
2231 (home-page "https://github.com/ahoward/open4")
2232 (license license:ruby)))
2233
2234(define-public ruby-options
2235 (package
2236 (name "ruby-options")
2237 (version "2.3.2")
2238 (source
2239 (origin
2240 (method url-fetch)
2241 (uri (rubygems-uri "options" version))
2242 (sha256
2243 (base32
2244 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2245 (build-system ruby-build-system)
2246 (arguments
2247 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2248 #:phases
2249 (modify-phases %standard-phases
2250 (add-before 'check 'set-LIB
2251 (lambda _
2252 ;; This is used in the Rakefile, and setting it avoids an issue
2253 ;; with running the tests.
2254 (setenv "LIB" "options")
2255 #t)))))
2256 (synopsis "Ruby library to parse options from *args cleanly")
2257 (description
2258 "The @code{options} library helps with parsing keyword options in Ruby
2259functions.")
2260 (home-page "https://github.com/ahoward/options")
2261 (license license:ruby)))
2262
2263(define-public ruby-erubi
2264 (package
2265 (name "ruby-erubi")
2266 (version "1.8.0")
2267 (source
2268 (origin
2269 (method url-fetch)
2270 (uri (rubygems-uri "erubi" version))
2271 (sha256
2272 (base32
2273 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2274 (build-system ruby-build-system)
2275 (synopsis "ERB template engine for Ruby")
2276 (description
2277 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2278Erubis")
2279 (home-page "https://github.com/jeremyevans/erubi")
2280 (license license:expat)))
2281
2282(define-public ruby-erubis
2283 (package
2284 (name "ruby-erubis")
2285 (version "2.7.0")
2286 (source
2287 (origin
2288 (method url-fetch)
2289 (uri (rubygems-uri "erubis" version))
2290 (sha256
2291 (base32
2292 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2293 (build-system ruby-build-system)
2294 (arguments
2295 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2296 (synopsis "Implementation of embedded Ruby (eRuby)")
2297 (description
2298 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2299features such as multi-language support, auto escaping, auto trimming spaces
2300around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2301support.")
2302 (home-page "http://www.kuwata-lab.com/erubis/")
2303 (license license:expat)))
2304
2305(define-public ruby-execjs
2306 (package
2307 (name "ruby-execjs")
2308 (version "2.7.0")
2309 (source
2310 (origin
2311 ;; fetch from github as the gem does not contain testing code
2312 (method git-fetch)
2313 (uri (git-reference
2314 (url "https://github.com/rails/execjs")
2315 (commit (string-append "v" version))))
2316 (file-name (git-file-name name version))
2317 (sha256
2318 (base32
2319 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2320 (build-system ruby-build-system)
2321 (native-inputs
2322 `(("bundler" ,bundler)
2323 ;; The test suite tests all the available backends. Currenly, this just
2324 ;; means the node backend.
2325 ;;
2326 ;; PASSED: test:node
2327 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2328 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2329 ("node" ,node)))
2330 (synopsis "Run JavaScript code from Ruby")
2331 (description
2332 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2333runtime to evaluate your JavaScript program, then returns the result to you as
2334a Ruby object.")
2335 (home-page "https://github.com/rails/execjs")
2336 (license license:expat)))
2337
2338(define-public ruby-fakefs
2339 (package
2340 (name "ruby-fakefs")
2341 (version "1.2.2")
2342 (home-page "https://github.com/fakefs/fakefs")
2343 (source (origin
2344 ;; The Rubygems release does not contain tests.
2345 (method git-fetch)
2346 (uri (git-reference
2347 (url home-page)
2348 (commit (string-append "v" version))))
2349 (file-name (git-file-name name version))
2350 (sha256
2351 (base32
2352 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2353 (build-system ruby-build-system)
2354 (arguments
2355 '(#:phases (modify-phases %standard-phases
2356 (replace 'replace-git-ls-files
2357 (lambda _
2358 (substitute* "fakefs.gemspec"
2359 (("`git ls-files lib README.md LICENSE`")
2360 "`find lib README.md LICENSE -type f | sort`"))
2361 #t))
2362 (add-before 'check 'remove-version-constraints
2363 (lambda _
2364 ;; Drop hard version requirements for test dependencies.
2365 (substitute* "fakefs.gemspec"
2366 (("(.*add_development_dependency .*), .*" _ dep)
2367 (string-append dep "\n")))
2368 #t)))))
2369 (native-inputs
2370 `(("ruby-bump" ,ruby-bump)
2371 ("ruby-maxitest" ,ruby-maxitest)
2372 ("ruby-rubocop" ,ruby-rubocop)
2373 ("ruby-rspec" ,ruby-rspec)))
2374 (synopsis "Fake file system for Ruby")
2375 (description
2376 "This package provides a fake file system for use in test suites. It
2377avoids the need for manually creating temporary directories, or dealing
2378with platform intricacies in @code{File} and @code{FileUtils}.")
2379 (license license:expat)))
2380
2381(define-public ruby-orderedhash
2382 (package
2383 (name "ruby-orderedhash")
2384 (version "0.0.6")
2385 (source (origin
2386 (method url-fetch)
2387 (uri (rubygems-uri "orderedhash" version))
2388 (sha256
2389 (base32
2390 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2391 (build-system ruby-build-system)
2392 (arguments
2393 '(#:tests? #f)) ; no test suite
2394 (synopsis "Ruby library providing an order-preserving hash")
2395 (description "Orderedhash is a Ruby library providing a hash
2396implementation that preserves the order of items and features some array-like
2397extensions.")
2398 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2399 (license license:public-domain)))
2400
2401(define-public ruby-libxml
2402 (package
2403 (name "ruby-libxml")
2404 (version "3.0.0")
2405 (source
2406 (origin
2407 (method url-fetch)
2408 (uri (rubygems-uri "libxml-ruby" version))
2409 (sha256
2410 (base32
2411 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2412 (build-system ruby-build-system)
2413 (inputs
2414 `(("zlib" ,zlib)
2415 ("libxml2" ,libxml2)))
2416 (arguments
2417 '(#:tests? #f ; test suite hangs for unknown reason
2418 #:gem-flags
2419 (list "--no-document" ; TODO: Re-enable when documentation
2420 ; generation works
2421 "--"
2422 (string-append "--with-xml2-include="
2423 (assoc-ref %build-inputs "libxml2")
2424 "/include/libxml2" ))))
2425 (synopsis "Ruby bindings for GNOME Libxml2")
2426 (description "The Libxml-Ruby project provides Ruby language bindings for
2427the GNOME Libxml2 XML toolkit.")
2428 (home-page "https://xml4r.github.com/libxml-ruby")
2429 (license license:expat)))
2430
2431(define-public ruby-lino
2432 (package
2433 (name "ruby-lino")
2434 (version "1.1.0")
2435 (source
2436 (origin
2437 (method url-fetch)
2438 (uri (rubygems-uri "lino" version))
2439 (sha256
2440 (base32
2441 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2442 (build-system ruby-build-system)
2443 (arguments
2444 '(#:tests? #f)) ; No included tests
2445 (propagated-inputs
2446 `(("ruby-hamster" ,ruby-hamster)
2447 ("ruby-open4" ,ruby-open4)))
2448 (synopsis "Build and execute commands in Ruby")
2449 (description
2450 "@code{Lino} provides an interface to run external commands. It provides
2451an interface to add options as well as managing the standard input, output and
2452error streams.")
2453 (home-page "https://github.com/tobyclemson/lino")
2454 (license license:expat)))
2455
2456(define-public ruby-xml-simple
2457 (package
2458 (name "ruby-xml-simple")
2459 (version "1.1.5")
2460 (source (origin
2461 (method url-fetch)
2462 (uri (rubygems-uri "xml-simple" version))
2463 (sha256
2464 (base32
2465 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2466 (build-system ruby-build-system)
2467 (arguments
2468 '(#:tests? #f)) ; no test suite
2469 (synopsis "Simple Ruby library for XML processing")
2470 (description "This library provides a simple API for XML processing in
2471Ruby.")
2472 (home-page "https://github.com/maik/xml-simple")
2473 (license license:ruby)))
2474
2475(define-public ruby-thor
2476 (package
2477 (name "ruby-thor")
2478 (version "1.0.1")
2479 (source (origin
2480 ;; Pull from git because the gem has no tests.
2481 (method git-fetch)
2482 (uri (git-reference
2483 (url "https://github.com/erikhuda/thor")
2484 (commit (string-append "v" version))))
2485 (file-name (git-file-name name version))
2486 (sha256
2487 (base32
2488 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2489 (build-system ruby-build-system)
2490 (arguments
2491 '(#:phases (modify-phases %standard-phases
2492 (add-after 'unpack 'fix-readline-tests
2493 (lambda _
2494 ;; Ensure Readline is initialized before running the
2495 ;; test to avoid a type clash with the mock ::Readline.
2496 ;; See <https://github.com/erikhuda/thor/pull/717>.
2497 (substitute* "spec/line_editor/readline_spec.rb"
2498 (("unless defined\\? ::Readline" all)
2499 (string-append "Thor::LineEditor::Readline.available?\n"
2500 all)))
2501 #t))
2502 (add-after 'unpack 'remove-coveralls-dependency
2503 (lambda _
2504 ;; Do not hook the test suite into the online
2505 ;; coveralls service.
2506 (substitute* "Gemfile"
2507 ((".*coveralls.*") ""))
2508 (substitute* "spec/helper.rb"
2509 (("require \"coveralls\"") "")
2510 (("Coveralls::SimpleCov::Formatter") "")
2511 ;; Also drop the WebMock dependency which is only
2512 ;; present to allow a coveralls.io connection, and
2513 ;; would otherwise introduce a circular dependency.
2514 (("require \"webmock/rspec\"") "")
2515 (("WebMock\\.disable_net_connect.*") ""))
2516 #t))
2517 (add-after 'unpack 'disable-network-tests
2518 (lambda _
2519 ;; These tests attempt to look up example.com.
2520 (substitute* "spec/actions/file_manipulation_spec.rb"
2521 (("it \"accepts (https?) remote sources" _ proto)
2522 (string-append "xit \"accepts " proto " remote sources")))
2523 #t))
2524 (add-after 'unpack 'disable-quality-tests
2525 (lambda _
2526 ;; These tests attempt to check the git repository for
2527 ;; tabs vs spaces, double vs single quotes, etc, and
2528 ;; depend on the git checkout.
2529 (delete-file "spec/quality_spec.rb")
2530 #t))
2531 (add-before 'check 'make-files-writable
2532 (lambda _
2533 ;; The tests needs rw access to the test suite.
2534 (for-each make-file-writable (find-files "spec"))
2535 #t))
2536 (replace 'check
2537 (lambda _
2538 (invoke "rspec" "spec"))))))
2539 (native-inputs
2540 `(("ruby-rspec" ,ruby-rspec)
2541 ("ruby-simplecov" ,ruby-simplecov)))
2542 (synopsis "Ruby toolkit for building command-line interfaces")
2543 (description "Thor is a toolkit for building powerful command-line
2544interfaces.")
2545 (home-page "http://whatisthor.com/")
2546 (license license:expat)))
2547
2548(define-public ruby-lumberjack
2549 (package
2550 (name "ruby-lumberjack")
2551 (version "1.0.13")
2552 (source (origin
2553 (method url-fetch)
2554 (uri (rubygems-uri "lumberjack" version))
2555 (sha256
2556 (base32
2557 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2558 (build-system ruby-build-system)
2559 (native-inputs
2560 `(("ruby-rspec" ,ruby-rspec)
2561 ("ruby-timecop" ,ruby-timecop)))
2562 (synopsis "Logging utility library for Ruby")
2563 (description "Lumberjack is a simple logging utility that can be a drop in
2564replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2565for automatically rolling log files even with multiple processes writing the
2566same log file.")
2567 (home-page "https://github.com/bdurand/lumberjack")
2568 (license license:expat)))
2569
2570(define-public ruby-rbnacl
2571 (package
2572 (name "ruby-rbnacl")
2573 (version "6.0.1")
2574 (source
2575 (origin
2576 (method url-fetch)
2577 (uri (rubygems-uri "rbnacl" version))
2578 (sha256
2579 (base32
2580 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2581 (build-system ruby-build-system)
2582 (arguments
2583 `(#:phases
2584 (modify-phases %standard-phases
2585 (add-after 'unpack 'remove-unnecessary-dependencies
2586 (lambda _
2587 ;; Coveralls relates to a network service, and Rubocop to code
2588 ;; linting and both are unnecessary to run the tests
2589 (substitute* "Gemfile"
2590 ((".*rubocop.*") "\n")
2591 ((".*guard-rspec.*") "\n")
2592 ((".*coveralls.*") "\n"))
2593 (substitute* "spec/spec_helper.rb"
2594 (("require \"coveralls\"") "")
2595 (("Coveralls.wear!") ""))
2596 #t))
2597 (add-after 'unpack 'use-libsodium-from-store
2598 (lambda* (#:key inputs #:allow-other-keys)
2599 (substitute* '("lib/rbnacl/init.rb"
2600 "lib/rbnacl/sodium.rb")
2601 (("ffi_lib \\[.+\\]")
2602 (string-append "ffi_lib [\""
2603 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2604 "\"]")))
2605 #t))
2606 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2607 (replace 'check
2608 (lambda* (#:key tests? #:allow-other-keys)
2609 (when tests?
2610 (invoke "rspec"))
2611 #t)))))
2612 (propagated-inputs
2613 `(("ruby-ffi" ,ruby-ffi)))
2614 (inputs
2615 `(("libsodium" ,libsodium)))
2616 (native-inputs
2617 `(("bundler" ,bundler)
2618 ("ruby-rspec" ,ruby-rspec)))
2619 (synopsis "Ruby FFI binding to libsodium")
2620 (description
2621 "This package provides Ruby FFI bindings to the Networking and
2622Cryptography (NaCl) library, also known as libsodium. This provides a
2623high-level toolkit for building cryptographic systems and protocols.")
2624 (home-page "https://github.com/crypto-rb/rbnacl")
2625 (license license:expat)))
2626
2627(define-public ruby-nenv
2628 (package
2629 (name "ruby-nenv")
2630 (version "0.3.0")
2631 (source (origin
2632 (method url-fetch)
2633 (uri (rubygems-uri "nenv" version))
2634 (sha256
2635 (base32
2636 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2637 (build-system ruby-build-system)
2638 (arguments
2639 `(#:tests? #f)) ; no tests included
2640 (native-inputs
2641 `(("ruby-rspec" ,ruby-rspec)
2642 ("bundler" ,bundler)))
2643 (synopsis "Ruby interface for modifying the environment")
2644 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2645and inspect the environment.")
2646 (home-page "https://github.com/e2/nenv")
2647 (license license:expat)))
2648
2649(define-public ruby-ptools
2650 (package
2651 (name "ruby-ptools")
2652 (version "1.3.5")
2653 (source (origin
2654 (method url-fetch)
2655 (uri (rubygems-uri "ptools" version))
2656 (sha256
2657 (base32
2658 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2659 (build-system ruby-build-system)
2660 (arguments
2661 '(#:phases (modify-phases %standard-phases
2662 (add-after 'unpack 'patch-/bin/ls
2663 (lambda _
2664 (substitute* "test/test_binary.rb"
2665 (("/bin/ls")
2666 (which "ls")))
2667 #t))
2668 (add-before 'install 'create-gem
2669 (lambda _
2670 ;; Do not attempt to sign the gem.
2671 (substitute* "Rakefile"
2672 (("spec\\.signing_key = .*")
2673 ""))
2674 (invoke "rake" "gem:create"))))))
2675 (synopsis "Extra methods for Ruby's @code{File} class")
2676 (description
2677 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2678class with many additional methods modelled after common POSIX tools, such as
2679@code{File.which} for finding executables, @code{File.tail} to print the last
2680lines of a file, @code{File.wc} to count words, and so on.")
2681 (home-page "https://github.com/djberg96/ptools")
2682 (license license:artistic2.0)))
2683
2684(define-public ruby-permutation
2685 (package
2686 (name "ruby-permutation")
2687 (version "0.1.8")
2688 (source (origin
2689 (method url-fetch)
2690 (uri (rubygems-uri "permutation" version))
2691 (sha256
2692 (base32
2693 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2694 (build-system ruby-build-system)
2695 (arguments
2696 `(#:phases
2697 (modify-phases %standard-phases
2698 (add-after 'unpack 'fix-rakefile
2699 (lambda _
2700 (substitute* "Rakefile"
2701 (("require 'rake/gempackagetask'")
2702 "require 'rubygems/package_task'")
2703 (("include Config") ""))
2704 #t))
2705 (replace 'check
2706 (lambda _
2707 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2708 (synopsis "Library to perform operations with sequence permutations")
2709 (description "This package provides a Ruby library to perform different
2710operations with permutations of sequences, such as strings and arrays.")
2711 (home-page "https://flori.github.io/permutation")
2712 (license license:gpl2))) ; GPL 2 only
2713
2714(define-public ruby-shellany
2715 (package
2716 (name "ruby-shellany")
2717 (version "0.0.1")
2718 (source (origin
2719 (method url-fetch)
2720 (uri (rubygems-uri "shellany" version))
2721 (sha256
2722 (base32
2723 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2724 (build-system ruby-build-system)
2725 (arguments
2726 `(#:test-target "default"
2727 #:phases
2728 (modify-phases %standard-phases
2729 (add-after 'unpack 'fix-version-test
2730 (lambda _
2731 (substitute* "spec/shellany_spec.rb"
2732 (("^RSpec") "require \"shellany\"\nRSpec"))
2733 #t)))))
2734 (native-inputs
2735 `(("ruby-rspec" ,ruby-rspec)
2736 ("ruby-nenv" ,ruby-nenv)
2737 ("bundler" ,bundler)))
2738 (synopsis "Capture command output")
2739 (description "Shellany is a Ruby library providing functions to capture
2740the output produced by running shell commands.")
2741 (home-page "https://rubygems.org/gems/shellany")
2742 (license license:expat)))
2743
2744(define-public ruby-notiffany
2745 (package
2746 (name "ruby-notiffany")
2747 (version "0.1.3")
2748 (source (origin
2749 (method url-fetch)
2750 (uri (rubygems-uri "notiffany" version))
2751 (sha256
2752 (base32
2753 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2754 (build-system ruby-build-system)
2755 ;; Tests are not included in the gem.
2756 (arguments `(#:tests? #f))
2757 (propagated-inputs
2758 `(("ruby-shellany" ,ruby-shellany)
2759 ("ruby-nenv" ,ruby-nenv)))
2760 (native-inputs
2761 `(("bundler" ,bundler)))
2762 (synopsis "Wrapper library for notification libraries")
2763 (description "Notiffany is a Ruby wrapper library for notification
2764libraries such as Libnotify.")
2765 (home-page "https://github.com/guard/notiffany")
2766 (license license:expat)))
2767
2768(define-public ruby-forking-test-runner
2769 (package
2770 (name "ruby-forking-test-runner")
2771 (version "1.6.0")
2772 (home-page "https://github.com/grosser/forking_test_runner")
2773 (source (origin
2774 (method git-fetch)
2775 (uri (git-reference (url home-page)
2776 (commit (string-append "v" version))))
2777 (file-name (git-file-name name version))
2778 (sha256
2779 (base32
2780 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2781 (build-system ruby-build-system)
2782 (arguments
2783 '(#:test-target "spec"
2784 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2785 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2786 #:tests? #f
2787 #:phases (modify-phases %standard-phases
2788 (replace 'replace-git-ls-files
2789 (lambda _
2790 (substitute* "forking_test_runner.gemspec"
2791 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2792 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2793 #t))
2794 (add-before 'check 'remove-version-constraints
2795 (lambda _
2796 ;; Ignore hard coded version constraints for the tests.
2797 (delete-file "Gemfile.lock")
2798 #t))
2799 (add-before 'check 'set-HOME
2800 (lambda _
2801 ;; Many tests invoke Bundler, and fails when Bundler
2802 ;; warns that /homeless-shelter does not exist.
2803 (setenv "HOME" "/tmp")
2804 #t)))))
2805 (native-inputs
2806 `(("ruby-activerecord" ,ruby-activerecord)
2807 ("ruby-bump" ,ruby-bump)
2808 ("ruby-rspec" ,ruby-rspec)
2809 ("ruby-sqlite3" ,ruby-sqlite3)
2810 ("ruby-wwtd" ,ruby-wwtd)))
2811 (propagated-inputs
2812 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2813 (synopsis "Run every test in a fork")
2814 (description
2815 "This package is a wrapper around @code{parallel_tests} that runs every
2816test in a fork to avoid pollution and get clean output per test.")
2817 (license license:expat)))
2818
2819(define-public ruby-formatador
2820 (package
2821 (name "ruby-formatador")
2822 (version "0.2.5")
2823 (source (origin
2824 (method url-fetch)
2825 (uri (rubygems-uri "formatador" version))
2826 (sha256
2827 (base32
2828 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2829 (build-system ruby-build-system)
2830 ;; Circular dependency: Tests require ruby-shindo, which requires
2831 ;; ruby-formatador at runtime.
2832 (arguments `(#:tests? #f))
2833 (synopsis "Ruby library to format text on stdout")
2834 (description "Formatador is a Ruby library to format text printed to the
2835standard output stream.")
2836 (home-page "https://github.com/geemus/formatador")
2837 (license license:expat)))
2838
2839(define-public ruby-fuubar
2840 (package
2841 (name "ruby-fuubar")
2842 (version "2.3.2")
2843 (source
2844 (origin
2845 ;; Fetch from the git repository, as the gem package doesn't include
2846 ;; the tests.
2847 (method git-fetch)
2848 (uri (git-reference
2849 (url "https://github.com/thekompanee/fuubar")
2850 (commit (string-append "releases/v" version))))
2851 (file-name (git-file-name name version))
2852 (sha256
2853 (base32
2854 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2855 (build-system ruby-build-system)
2856 (arguments
2857 '(;; TODO: Some tests fail, unsure why.
2858 ;; 21 examples, 7 failures
2859 #:tests? #f
2860 #:phases
2861 (modify-phases %standard-phases
2862 (add-before 'build 'delete-certificate
2863 (lambda _
2864 ;; Remove 's.cert_chain' as we do not build with a private key
2865 (substitute* "fuubar.gemspec"
2866 ((".*cert_chain.*") "")
2867 ((".*signing_key.*") ""))
2868 #t))
2869 (replace 'check
2870 (lambda* (#:key tests? #:allow-other-keys)
2871 (when tests?
2872 (invoke "rspec"))
2873 #t)))))
2874 (native-inputs
2875 `(("bundler" ,bundler)))
2876 (propagated-inputs
2877 `(("ruby-rspec-core" ,ruby-rspec-core)
2878 ("ruby-progressbar" ,ruby-progressbar)))
2879 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2880 (description
2881 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2882string of letters and dots as feedback. It also stops on the first test
2883failure.")
2884 (home-page "https://github.com/thekompanee/fuubar")
2885 (license license:expat)))
2886
2887(define-public ruby-haml
2888 (package
2889 (name "ruby-haml")
2890 (version "5.0.4")
2891 (source
2892 (origin
2893 (method url-fetch)
2894 (uri (rubygems-uri "haml" version))
2895 (sha256
2896 (base32
2897 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2898 (build-system ruby-build-system)
2899 (arguments
2900 '(#:tests? #f)) ; No included tests
2901 (propagated-inputs
2902 `(("ruby-tilt" ,ruby-tilt)
2903 ("ruby-temple" ,ruby-temple)))
2904 (synopsis "Haml is a Ruby library to generate HTML documents")
2905 (description
2906 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2907HTML or XML that is designed to express the structure of documents using
2908indentation rather than closing tags. It was originally envisioned as a
2909plugin for Ruby on Rails, but it can function as a stand-alone templating
2910engine.")
2911 (home-page "http://haml.info/")
2912 (license license:expat)))
2913
2914(define-public ruby-hamster
2915 (package
2916 (name "ruby-hamster")
2917 (version "3.0.0")
2918 (source
2919 (origin
2920 (method url-fetch)
2921 (uri (rubygems-uri "hamster" version))
2922 (sha256
2923 (base32
2924 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2925 (build-system ruby-build-system)
2926 (arguments
2927 '(#:phases
2928 (modify-phases %standard-phases
2929 (add-after 'unpack 'remove-unnecessary-dependencies
2930 (lambda _
2931 ;; pry is a debugging tool, and is unnecessary when running the
2932 ;; tests
2933 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2934 (("require 'pry'") ""))
2935 (substitute* "spec/spec_helper.rb"
2936 (("require \"pry\"") "")
2937 ;; CodeClimate is an online service, and is unnecessary for
2938 ;; running the tests
2939 (("require \"codeclimate-test-reporter\"") "")
2940 (("CodeClimate.*\n") ""))
2941 #t))
2942 ;; No Rakefile is included, so run rspec directly.
2943 (replace 'check
2944 (lambda* (#:key tests? #:allow-other-keys)
2945 (when tests?
2946 (invoke "rspec"))
2947 #t)))))
2948 (propagated-inputs
2949 `(("ruby-concurrent" ,ruby-concurrent)))
2950 (native-inputs
2951 `(("ruby-rspec" ,ruby-rspec)))
2952 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2953 (description
2954 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2955@code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2956immutable queue or stack).")
2957 (home-page "https://github.com/hamstergem/hamster")
2958 (license license:expat)))
2959
2960(define-public ruby-hashdiff
2961 (package
2962 (name "ruby-hashdiff")
2963 (version "0.3.8")
2964 (source
2965 (origin
2966 (method url-fetch)
2967 (uri (rubygems-uri "hashdiff" version))
2968 (sha256
2969 (base32
2970 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2971 (build-system ruby-build-system)
2972 (arguments
2973 '(#:phases
2974 (modify-phases %standard-phases
2975 ;; Run tests directly via rspec to avoid Rake issue:
2976 ;; NoMethodError: undefined method `last_comment'
2977 (replace 'check
2978 (lambda* (#:key tests? #:allow-other-keys)
2979 (when tests?
2980 (invoke "rspec"))
2981 #t)))))
2982 (native-inputs
2983 `(("bundler" ,bundler)
2984 ("ruby-rspec" ,ruby-rspec-2)))
2985 (synopsis "HashDiff computes the smallest difference between two hashes")
2986 (description
2987 "HashDiff is a Ruby library to compute the smallest difference between
2988two hashes.")
2989 (home-page "https://github.com/liufengyun/hashdiff")
2990 (license license:expat)))
2991
2992(define-public ruby-hydra
2993 ;; No releases yet.
2994 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
2995 (revision "0"))
2996 (package
2997 (name "ruby-hydra")
2998 (version (git-version "0.0" revision commit))
2999 (home-page "https://github.com/hyphenation/hydra")
3000 (source (origin
3001 (method git-fetch)
3002 (uri (git-reference (url home-page) (commit commit)))
3003 (file-name (git-file-name name version))
3004 (sha256
3005 (base32
3006 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3007 (build-system ruby-build-system)
3008 (arguments
3009 '(#:phases (modify-phases %standard-phases
3010 (add-after 'unpack 'make-files-writable
3011 (lambda _
3012 (for-each make-file-writable (find-files "."))
3013 #t))
3014 (replace 'check
3015 (lambda _
3016 (invoke "rspec"))))))
3017 (native-inputs
3018 `(("ruby-rspec" ,ruby-rspec)))
3019 (propagated-inputs
3020 `(("ruby-byebug" ,ruby-byebug)))
3021 (synopsis "Ruby hyphenation patterns")
3022 (description
3023 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3024 (license license:expat))))
3025
3026(define-public ruby-shindo
3027 (package
3028 (name "ruby-shindo")
3029 (version "0.3.8")
3030 (source (origin
3031 (method url-fetch)
3032 (uri (rubygems-uri "shindo" version))
3033 (sha256
3034 (base32
3035 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3036 (build-system ruby-build-system)
3037 (arguments
3038 `(#:test-target "shindo_tests"
3039 #:phases
3040 (modify-phases %standard-phases
3041 (add-after 'unpack 'fix-tests
3042 (lambda _
3043 (substitute* "tests/tests_helper.rb"
3044 (("-rubygems") ""))
3045 (substitute* "Rakefile"
3046 (("system \"shindo") "system \"./bin/shindo")
3047 ;; This test doesn't work, so we disable it.
3048 (("fail \"The build_error test should fail") "#")
3049 ((" -rubygems") ""))
3050 #t)))))
3051 (propagated-inputs
3052 `(("ruby-formatador" ,ruby-formatador)))
3053 (synopsis "Simple depth first Ruby testing")
3054 (description "Shindo is a simple depth first testing library for Ruby.")
3055 (home-page "https://github.com/geemus/shindo")
3056 (license license:expat)))
3057
3058(define-public ruby-rubygems-tasks
3059 (package
3060 (name "ruby-rubygems-tasks")
3061 (version "0.2.5")
3062 (source (origin
3063 (method url-fetch)
3064 (uri (rubygems-uri "rubygems-tasks" version))
3065 (sha256
3066 (base32
3067 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3068 (build-system ruby-build-system)
3069 ;; Tests need Internet access.
3070 (arguments `(#:tests? #f))
3071 (native-inputs
3072 `(("ruby-rspec" ,ruby-rspec)
3073 ("ruby-yard" ,ruby-yard)))
3074 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3075 (description "Rubygems-task provides Rake tasks for managing and releasing
3076Ruby Gems.")
3077 (home-page "https://github.com/postmodern/rubygems-tasks")
3078 (license license:expat)))
3079
3080(define-public ruby-rubyzip
3081 (package
3082 (name "ruby-rubyzip")
3083 (version "1.2.1")
3084 (source
3085 (origin
3086 (method url-fetch)
3087 (uri (rubygems-uri "rubyzip" version))
3088 (sha256
3089 (base32
3090 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3091 (build-system ruby-build-system)
3092 (arguments
3093 '(#:phases
3094 (modify-phases %standard-phases
3095 (add-before 'check 'patch-tests
3096 (lambda* (#:key inputs #:allow-other-keys)
3097 (substitute* "test/gentestfiles.rb"
3098 (("/usr/bin/zip")
3099 (string-append
3100 (assoc-ref inputs "zip") "/bin/zip")))
3101 (substitute* "test/input_stream_test.rb"
3102 (("/usr/bin/env ruby") (which "ruby")))
3103 #t)))))
3104 (native-inputs
3105 `(("bundler" ,bundler)
3106 ("ruby-simplecov" ,ruby-simplecov)
3107 ("zip" ,zip)
3108 ("unzip" ,unzip)))
3109 (synopsis "Ruby module is for reading and writing zip files")
3110 (description
3111 "The rubyzip module provides ways to read from and create zip files.")
3112 (home-page "https://github.com/rubyzip/rubyzip")
3113 (license license:bsd-2)))
3114
3115(define-public ruby-simplecov-html
3116 (package
3117 (name "ruby-simplecov-html")
3118 (version "0.10.2")
3119 (source (origin
3120 (method url-fetch)
3121 (uri (rubygems-uri "simplecov-html" version))
3122 (sha256
3123 (base32
3124 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3125 (build-system ruby-build-system)
3126 (arguments `(#:tests? #f)) ; there are no tests
3127 (native-inputs
3128 `(("bundler" ,bundler)))
3129 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3130 (description "This package provides the default HTML formatter for
3131the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3132 (home-page "https://github.com/colszowka/simplecov-html")
3133 (license license:expat)))
3134
3135(define-public ruby-simplecov
3136 (package
3137 (name "ruby-simplecov")
3138 (version "0.17.1")
3139 (source (origin
3140 (method url-fetch)
3141 (uri (rubygems-uri "simplecov" version))
3142 (sha256
3143 (base32
3144 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3145 (build-system ruby-build-system)
3146 ;; Simplecov depends on rubocop for code style checking at build time.
3147 ;; Rubocop needs simplecov at build time.
3148 (arguments `(#:tests? #f))
3149 (propagated-inputs
3150 `(("ruby-json" ,ruby-json)
3151 ("ruby-docile" ,ruby-docile)
3152 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3153 (native-inputs
3154 `(("bundler" ,bundler)))
3155 (synopsis "Code coverage framework for Ruby")
3156 (description "SimpleCov is a code coverage framework for Ruby with a
3157powerful configuration library and automatic merging of coverage across test
3158suites.")
3159 (home-page "https://github.com/colszowka/simplecov")
3160 (license license:expat)))
3161
3162(define-public ruby-useragent
3163 (package
3164 (name "ruby-useragent")
3165 (version "0.16.10")
3166 (source (origin
3167 (method url-fetch)
3168 (uri (rubygems-uri "useragent" version))
3169 (sha256
3170 (base32
3171 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3172 (build-system ruby-build-system)
3173 (arguments
3174 '(#:tests? #f)) ; no test suite
3175 (synopsis "HTTP user agent parser for Ruby")
3176 (description "UserAgent is a Ruby library that parses and compares HTTP
3177User Agents.")
3178 (home-page "https://github.com/gshutler/useragent")
3179 (license license:expat)))
3180
3181(define-public ruby-backports
3182 (package
3183 (name "ruby-backports")
3184 (version "3.11.4")
3185 (source
3186 (origin
3187 (method url-fetch)
3188 (uri (rubygems-uri "backports" version))
3189 (sha256
3190 (base32
3191 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3192 (build-system ruby-build-system)
3193 (arguments
3194 '(;; TODO: This should be default, but there is one test failure
3195 #:test-target "all_spec"))
3196 (native-inputs
3197 `(("ruby-mspec" ,ruby-mspec)
3198 ("ruby-activesupport" ,ruby-activesupport)))
3199 (synopsis "Backports of the features in newer Ruby versions")
3200 (description
3201 "Backports enables more compatibility across Ruby versions by providing
3202backports of some features.")
3203 (home-page "https://github.com/marcandre/backports")
3204 (license license:expat)))
3205
3206(define-public ruby-bacon
3207 (package
3208 (name "ruby-bacon")
3209 (version "1.2.0")
3210 (source (origin
3211 (method url-fetch)
3212 (uri (rubygems-uri "bacon" version))
3213 (sha256
3214 (base32
3215 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3216 (build-system ruby-build-system)
3217 (synopsis "Small RSpec clone")
3218 (description "Bacon is a small RSpec clone providing all essential
3219features.")
3220 (home-page "https://github.com/chneukirchen/bacon")
3221 (license license:expat)))
3222
3223(define-public ruby-bacon-bits
3224 (package
3225 (name "ruby-bacon-bits")
3226 (version "0.1.0")
3227 (source
3228 (origin
3229 (method url-fetch)
3230 (uri (rubygems-uri "bacon-bits" version))
3231 (sha256
3232 (base32
3233 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3234 (build-system ruby-build-system)
3235 (arguments
3236 ;; No tests
3237 '(#:tests? #f))
3238 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3239 (synopsis "Extensions to Bacon, for disabling tests, before and after
3240blocks and more")
3241 (description
3242 "This extends the bacon testing framework with useful extensions to
3243disable tests, have before and after blocks that run once and more.")
3244 (home-page "https://github.com/cldwalker/bacon-bits")
3245 (license license:expat)))
3246
3247(define-public ruby-bacon-colored-output
3248 (package
3249 (name "ruby-bacon-colored-output")
3250 (version "1.1.1")
3251 (source
3252 (origin
3253 (method url-fetch)
3254 (uri (rubygems-uri "bacon-colored_output" version))
3255 (sha256
3256 (base32
3257 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3258 (build-system ruby-build-system)
3259 (arguments
3260 '(;; No included tests
3261 #:tests? #f))
3262 (propagated-inputs
3263 `(("ruby-bacon" ,ruby-bacon)))
3264 (synopsis "Colored output for Bacon test framework")
3265 (description
3266 "This package adds color through ANSI escape codes to Bacon test
3267output.")
3268 (home-page "https://github.com/whitequark/bacon-colored_output")
3269 (license license:expat)))
3270
3271(define-public ruby-connection-pool
3272 (package
3273 (name "ruby-connection-pool")
3274 (version "2.2.2")
3275 (source (origin
3276 (method url-fetch)
3277 (uri (rubygems-uri "connection_pool" version))
3278 (sha256
3279 (base32
3280 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3281 (build-system ruby-build-system)
3282 (native-inputs
3283 `(("bundler" ,bundler)))
3284 (synopsis "Generic connection pool for Ruby")
3285 (description "Connection_pool provides a generic connection pooling
3286interface for Ruby programs.")
3287 (home-page "https://github.com/mperham/connection_pool")
3288 (license license:expat)))
3289
3290(define-public ruby-fast-gettext
3291 (package
3292 (name "ruby-fast-gettext")
3293 (version "2.0.3")
3294 (home-page "https://github.com/grosser/fast_gettext")
3295 (source (origin
3296 (method git-fetch)
3297 (uri (git-reference (url home-page)
3298 (commit (string-append "v" version))))
3299 (file-name (git-file-name name version))
3300 (sha256
3301 (base32
3302 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3303 (build-system ruby-build-system)
3304 (arguments
3305 '(#:test-target "spec"
3306 #:phases (modify-phases %standard-phases
3307 (add-before 'check 'remove-version-constraints
3308 (lambda _
3309 (delete-file "Gemfile.lock")
3310 #t))
3311 (add-before 'check 'remove-activerecord-test
3312 (lambda _
3313 ;; FIXME: This test fails because ActiveRecord depends on
3314 ;; a different version of ruby-sqlite than the currently
3315 ;; available one.
3316 (delete-file
3317 "spec/fast_gettext/translation_repository/db_spec.rb")
3318 #t))
3319 (add-before 'check 'disable-i18n-test
3320 (lambda _
3321 ;; XXX: This test checks i18n intricasies with Rails 3 and
3322 ;; automatically disables itself for Rails 4.0, but does
3323 ;; not know about newer versions as it has not been updated
3324 ;; since 2014. Disable for later versions of Rails too.
3325 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3326 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3327 "ActiveRecord::VERSION::MINOR == 0"))
3328 "ActiveRecord::VERSION::MAJOR >= 4"))
3329 #t)))))
3330 (native-inputs
3331 `(;; For tests.
3332 ("ruby-activerecord" ,ruby-activerecord)
3333 ("ruby-activesupport" ,ruby-activesupport)
3334 ("ruby-bump" ,ruby-bump)
3335 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3336 ("ruby-i18n" ,ruby-i18n)
3337 ("ruby-rubocop" ,ruby-rubocop)
3338 ("ruby-rspec" ,ruby-rspec)
3339 ("ruby-single-cov" ,ruby-single-cov)
3340 ("ruby-sqlite3" ,ruby-sqlite3)
3341 ("ruby-wwtd" ,ruby-wwtd)))
3342 (synopsis "Fast implementation of @code{GetText}")
3343 (description
3344 "This package provides an alternative implementation of the Ruby
3345@code{GetText} library that is approximately 12x faster yet thread safe.")
3346 ;; Some parts are covered by the Ruby license, see file headers.
3347 (license (list license:expat license:ruby))))
3348
3349(define-public ruby-net-http-persistent
3350 (package
3351 (name "ruby-net-http-persistent")
3352 (version "3.0.0")
3353 (source (origin
3354 (method url-fetch)
3355 (uri (rubygems-uri "net-http-persistent" version))
3356 (sha256
3357 (base32
3358 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3359 (build-system ruby-build-system)
3360 (native-inputs
3361 `(("ruby-connection-pool" ,ruby-connection-pool)
3362 ("ruby-hoe" ,ruby-hoe)))
3363 (synopsis "Persistent HTTP connection manager")
3364 (description "Net::HTTP::Persistent manages persistent HTTP connections
3365using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3366 (home-page "https://github.com/drbrain/net-http-persistent")
3367 (license license:expat)))
3368
3369(define-public ruby-power-assert
3370 (package
3371 (name "ruby-power-assert")
3372 (version "1.1.5")
3373 (source (origin
3374 (method url-fetch)
3375 (uri (rubygems-uri "power_assert" version))
3376 (sha256
3377 (base32
3378 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3379 (build-system ruby-build-system)
3380 (arguments
3381 '(#:tests? #f)) ; No included tests
3382 (native-inputs
3383 `(("bundler" ,bundler)))
3384 (synopsis "Assert library with descriptive assertion messages")
3385 (description "Power-assert is an assertion library providing descriptive
3386assertion messages for tests.")
3387 (home-page "https://github.com/k-tsj/power_assert")
3388 (license (list license:bsd-2 license:ruby))))
3389
3390(define-public ruby-powerpack
3391 (package
3392 (name "ruby-powerpack")
3393 (version "0.1.2")
3394 (source
3395 (origin
3396 (method url-fetch)
3397 (uri (rubygems-uri "powerpack" version))
3398 (sha256
3399 (base32
3400 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3401 (build-system ruby-build-system)
3402 (arguments
3403 '(#:test-target "spec"))
3404 (native-inputs
3405 `(("bundler" ,bundler)
3406 ("ruby-rspec" ,ruby-rspec)
3407 ("ruby-yard" ,ruby-yard)))
3408 (synopsis "Useful extensions to core Ruby classes")
3409 (description
3410 "This package provides a few useful extensions to core Ruby classes,
3411including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3412@code{String}.")
3413 (home-page "https://github.com/bbatsov/powerpack")
3414 (license license:expat)))
3415
3416(define-public ruby-locale
3417 (package
3418 (name "ruby-locale")
3419 (version "2.1.2")
3420 (source (origin
3421 (method url-fetch)
3422 (uri (rubygems-uri "locale" version))
3423 (sha256
3424 (base32
3425 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3426 (build-system ruby-build-system)
3427 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3428 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3429 ;; dependency cycle we disable tests.
3430 (arguments `(#:tests? #f))
3431 (native-inputs
3432 `(("bundler" ,bundler)
3433 ("ruby-yard" ,ruby-yard)))
3434 (synopsis "Ruby library providing basic localization APIs")
3435 (description
3436 "Ruby-Locale is the pure ruby library which provides basic APIs for
3437localization.")
3438 (home-page "https://github.com/ruby-gettext/locale")
3439 (license (list license:lgpl3+ license:ruby))))
3440
3441(define-public ruby-temple
3442 (package
3443 (name "ruby-temple")
3444 (version "0.8.2")
3445 (source
3446 (origin
3447 (method url-fetch)
3448 (uri (rubygems-uri "temple" version))
3449 (sha256
3450 (base32
3451 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3452 (build-system ruby-build-system)
3453 (native-inputs
3454 `(("ruby-tilt" ,ruby-tilt)
3455 ("ruby-bacon" ,ruby-bacon)
3456 ("ruby-erubis" ,ruby-erubis)))
3457 (synopsis "Template compilation framework in Ruby")
3458 (description
3459 "Temple is an abstraction and framework for compiling templates to pure
3460Ruby.")
3461 (home-page "https://github.com/judofyr/temple")
3462 (license license:expat)))
3463
3464(define-public ruby-text
3465 (package
3466 (name "ruby-text")
3467 (version "1.3.1")
3468 (source (origin
3469 (method url-fetch)
3470 (uri (rubygems-uri "text" version))
3471 (sha256
3472 (base32
3473 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3474 (build-system ruby-build-system)
3475 (synopsis "Collection of text algorithms for Ruby")
3476 (description
3477 "This package provides a collection of text algorithms: Levenshtein,
3478Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3479 (home-page "https://github.com/threedaymonk/text")
3480 (license license:expat)))
3481
3482(define-public ruby-gettext
3483 (package
3484 (name "ruby-gettext")
3485 (version "3.1.7")
3486 (source (origin
3487 (method url-fetch)
3488 (uri (rubygems-uri "gettext" version))
3489 (sha256
3490 (base32
3491 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3492 (build-system ruby-build-system)
3493 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3494 ;; which needs ruby-gettext. To break the dependency cycle we disable
3495 ;; tests.
3496 (arguments `(#:tests? #f))
3497 (propagated-inputs
3498 `(("ruby-locale" ,ruby-locale)
3499 ("ruby-text" ,ruby-text)))
3500 (native-inputs
3501 `(("bundler" ,bundler)
3502 ("ruby-yard" ,ruby-yard)))
3503 (synopsis "GNU gettext-like program for Ruby")
3504 (description
3505 "Gettext is a GNU gettext-like program for Ruby. The catalog
3506file (po-file) used is the same as that used by GNU gettext, allowing you to
3507use GNU gettext tools for maintenance.")
3508 (home-page "https://ruby-gettext.github.com/")
3509 (license (list license:lgpl3+ license:ruby))))
3510
3511(define-public ruby-packnga
3512 (package
3513 (name "ruby-packnga")
3514 (version "1.0.4")
3515 (source (origin
3516 (method url-fetch)
3517 (uri (rubygems-uri "packnga" version))
3518 (sha256
3519 (base32
3520 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3521 (build-system ruby-build-system)
3522 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3523 ;; To break the dependency cycle we disable tests.
3524 (arguments `(#:tests? #f))
3525 (propagated-inputs
3526 `(("ruby-gettext" ,ruby-gettext)
3527 ("ruby-yard" ,ruby-yard)))
3528 (native-inputs
3529 `(("bundler" ,bundler)))
3530 (synopsis "Utility library to package internationalized libraries")
3531 (description
3532 "Packnga is a library to translate to many languages using YARD.")
3533 (home-page "http://ranguba.org/packnga/")
3534 (license license:lgpl2.0+)))
3535
3536(define-public ruby-test-construct
3537 (package
3538 (name "ruby-test-construct")
3539 (version "2.0.1")
3540 (source
3541 (origin
3542 (method url-fetch)
3543 (uri (rubygems-uri "test_construct" version))
3544 (sha256
3545 (base32
3546 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3547 (build-system ruby-build-system)
3548 (native-inputs
3549 `(("bundler" ,bundler)
3550 ("ruby-mocha" ,ruby-mocha)
3551 ("ruby-rspec" ,ruby-rspec)))
3552 (synopsis "Creates temporary files and directories for testing")
3553 (description
3554 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3555temporary files and directories during tests.")
3556 (home-page "https://github.com/bhb/test_construct")
3557 (license license:expat)))
3558
3559(define-public ruby-test-unit
3560 (package
3561 (name "ruby-test-unit")
3562 (version "3.2.5")
3563 (source (origin
3564 (method url-fetch)
3565 (uri (rubygems-uri "test-unit" version))
3566 (sha256
3567 (base32
3568 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3569 (build-system ruby-build-system)
3570 (propagated-inputs
3571 `(("ruby-power-assert" ,ruby-power-assert)))
3572 (native-inputs
3573 `(("bundler" ,bundler)
3574 ("ruby-packnga" ,ruby-packnga)
3575 ("ruby-yard" ,ruby-yard)))
3576 (synopsis "Unit testing framework for Ruby")
3577 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3578on xUnit principles. These were originally designed by Kent Beck, creator of
3579extreme programming software development methodology, for Smalltalk's SUnit.
3580It allows writing tests, checking results and automated testing in Ruby.")
3581 (home-page "https://test-unit.github.io/")
3582 (license (list license:psfl license:ruby))))
3583
3584(define-public ruby-markaby
3585 (package
3586 (name "ruby-markaby")
3587 (version "0.9.0")
3588 (source
3589 (origin
3590 (method url-fetch)
3591 (uri (rubygems-uri "markaby" version))
3592 (sha256
3593 (base32
3594 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3595 (build-system ruby-build-system)
3596 (arguments
3597 '(#:phases
3598 (modify-phases %standard-phases
3599 ;; Run rspec manually without using the Rakefile, as the versions of
3600 ;; Rake and RSpec 2 are incompatible:
3601 ;;
3602 ;; NoMethodError: undefined method `last_comment'
3603 (replace 'check
3604 (lambda* (#:key tests? #:allow-other-keys)
3605 (when tests?
3606 (invoke "rspec"))
3607 #t)))))
3608 (propagated-inputs
3609 `(("ruby-builder" ,ruby-builder)))
3610 (native-inputs
3611 `(("bundler" ,bundler)
3612 ("ruby-rspec" ,ruby-rspec-2)))
3613 (synopsis "Write HTML pages in pure Ruby")
3614 (description
3615 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3616the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3617mixture of HTML and additional ERB syntax.")
3618 (home-page "https://markaby.github.io/")
3619 (license license:expat)))
3620
3621(define-public ruby-maruku
3622 (package
3623 (name "ruby-maruku")
3624 (version "0.7.3")
3625 (source
3626 (origin
3627 (method url-fetch)
3628 (uri (rubygems-uri "maruku" version))
3629 (sha256
3630 (base32
3631 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3632 (build-system ruby-build-system)
3633 (arguments
3634 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3635 #:tests? #f
3636 #:phases
3637 (modify-phases %standard-phases
3638 (replace 'check
3639 (lambda* (#:key tests? #:allow-other-keys)
3640 (when tests?
3641 (invoke "rspec"))
3642 #t)))))
3643 (native-inputs
3644 `(("ruby-rspec" ,ruby-rspec)
3645 ("ruby-simplecov" ,ruby-simplecov)
3646 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3647 (synopsis "Markdown interpreter in Ruby")
3648 (description
3649 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3650HTML, and PDF through LaTeX.")
3651 (home-page "https://github.com/bhollis/maruku")
3652 (license license:expat)))
3653
3654(define-public ruby-metaclass
3655 (package
3656 (name "ruby-metaclass")
3657 (version "0.0.4")
3658 (source (origin
3659 (method url-fetch)
3660 (uri (rubygems-uri "metaclass" version))
3661 (sha256
3662 (base32
3663 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3664 (build-system ruby-build-system)
3665 (arguments
3666 `(#:phases
3667 (modify-phases %standard-phases
3668 (add-after 'unpack 'add-test-unit-to-search-path
3669 (lambda* (#:key inputs #:allow-other-keys)
3670 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3671 (substitute* "Rakefile"
3672 (("t\\.libs << \"test\"" line)
3673 (string-append line "; t.libs << \""
3674 test-unit "/lib/ruby/vendor_ruby"
3675 "/gems/test-unit-"
3676 ,(package-version ruby-test-unit)
3677 "/lib\""))))
3678 #t)))))
3679 (native-inputs
3680 `(("bundler" ,bundler)
3681 ("ruby-test-unit" ,ruby-test-unit)))
3682 (synopsis "Ruby library adding metaclass method to all objects")
3683 (description
3684 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3685objects.")
3686 (home-page "https://github.com/floehopper/metaclass")
3687 (license license:expat)))
3688
3689(define-public ruby-mkmf-lite
3690 (package
3691 (name "ruby-mkmf-lite")
3692 (version "0.3.2")
3693 (source (origin
3694 (method url-fetch)
3695 (uri (rubygems-uri "mkmf-lite" version))
3696 (sha256
3697 (base32
3698 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3699 (build-system ruby-build-system)
3700 (propagated-inputs
3701 `(("ruby-ptools" ,ruby-ptools)))
3702 (synopsis "Lightweight alternative to @code{mkmf}")
3703 (description
3704 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3705for use as a library. It does not create packages, builds, or log files of
3706any kind. Instead, it provides mixin methods that you can use in FFI or tests
3707to check for the presence of header files, constants, and so on.")
3708 (home-page "https://github.com/djberg96/mkmf-lite")
3709 (license license:asl2.0)))
3710
3711(define-public ruby-mspec
3712 (package
3713 (name "ruby-mspec")
3714 (version "1.9.1")
3715 (source
3716 (origin
3717 (method url-fetch)
3718 (uri (rubygems-uri "mspec" version))
3719 (sha256
3720 (base32
3721 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3722 (build-system ruby-build-system)
3723 (arguments
3724 '(;; TODO: 3 test failures
3725 ;; ./spec/mocks/mock_spec.rb:82
3726 ;; ./spec/utils/name_map_spec.rb:151
3727 ;; ./spec/utils/name_map_spec.rb:155
3728 #:tests? #f
3729 #:phases
3730 (modify-phases %standard-phases
3731 (add-after 'extract-gemspec 'change-dependency-constraints
3732 (lambda _
3733 (substitute* "mspec.gemspec"
3734 (("rake.*") "rake>)\n")
3735 (("rspec.*") "rspec>)\n"))
3736 #t))
3737 (replace 'check
3738 (lambda* (#:key tests? #:allow-other-keys)
3739 (when tests?
3740 (invoke "rspec" "spec"))
3741 #t)))))
3742 (native-inputs
3743 `(("bundler" ,bundler)
3744 ("ruby-rake" ,ruby-rake)
3745 ("ruby-rspec" ,ruby-rspec)))
3746 (synopsis "MSpec is a specialized framework for RubySpec")
3747 (description
3748 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3749for basic features. MSpec contains additional features that assist in writing
3750specs for Ruby implementations in ruby/spec.")
3751 (home-page "http://rubyspec.org")
3752 (license license:expat)))
3753
3754(define-public ruby-mysql2
3755 (package
3756 (name "ruby-mysql2")
3757 (version "0.5.2")
3758 (source
3759 (origin
3760 (method git-fetch)
3761 (uri (git-reference
3762 (url "https://github.com/brianmario/mysql2")
3763 (commit version)))
3764 (file-name (git-file-name name version))
3765 (sha256
3766 (base32
3767 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3768 (build-system ruby-build-system)
3769 (arguments
3770 '(;; TODO: Tests require a running MySQL/MariaDB service
3771 #:tests? #f
3772 #:phases
3773 (modify-phases %standard-phases
3774 (replace 'replace-git-ls-files
3775 (lambda _
3776 (substitute* "mysql2.gemspec"
3777 (("git ls-files .*`") "find . -type f |sort`"))
3778 #t))
3779 (add-before 'install 'set-MAKEFLAGS
3780 (lambda* (#:key outputs #:allow-other-keys)
3781 (setenv "MAKEFLAGS"
3782 (string-append
3783 "V=1 "
3784 "prefix=" (assoc-ref outputs "out")))
3785 #t))
3786 ;; Move the 'check phase to after 'install, as then you can test
3787 ;; using the installed mysql2 gem in the store.
3788 (delete 'check)
3789 (add-after 'install 'check
3790 (lambda* (#:key outputs tests? #:allow-other-keys)
3791 (setenv "GEM_PATH"
3792 (string-append
3793 (getenv "GEM_PATH")
3794 ":"
3795 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3796 (when tests?
3797 (invoke "rspec"))
3798 #t)))))
3799 (inputs
3800 `(("mariadb" ,mariadb "lib")
3801 ("mariadb-dev" ,mariadb "dev")
3802 ("zlib" ,zlib)))
3803 (native-inputs
3804 `(("ruby-rspec" ,ruby-rspec)
3805 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3806 (synopsis "MySQL library for Ruby, binding to libmysql")
3807 (description
3808 "This package provides a simple, fast MySQL library for Ruby, binding to
3809libmysql.")
3810 (home-page "https://github.com/brianmario/mysql2")
3811 (license license:expat)))
3812
3813(define-public ruby-blankslate
3814 (package
3815 (name "ruby-blankslate")
3816 (version "3.1.3")
3817 (source (origin
3818 (method url-fetch)
3819 (uri (rubygems-uri "blankslate" version))
3820 (sha256
3821 (base32
3822 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3823 (build-system ruby-build-system)
3824 (arguments
3825 `(#:phases
3826 (modify-phases %standard-phases
3827 (replace 'check
3828 (lambda _ (invoke "rspec" "spec/"))))))
3829 (native-inputs
3830 `(("bundler" ,bundler)
3831 ("ruby-rspec" ,ruby-rspec)))
3832 (synopsis "Abstract base class with no predefined methods")
3833 (description
3834 "BlankSlate provides an abstract base class with no predefined
3835methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3836as a base class when writing classes that depend upon
3837@code{method_missing} (e.g. dynamic proxies).")
3838 (home-page "https://github.com/masover/blankslate")
3839 (license license:expat)))
3840
3841(define-public ruby-bond
3842 (package
3843 (name "ruby-bond")
3844 (version "0.5.1")
3845 (source
3846 (origin
3847 (method url-fetch)
3848 (uri (rubygems-uri "bond" version))
3849 (sha256
3850 (base32
3851 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3852 (build-system ruby-build-system)
3853 (arguments
3854 ;; The test suite fails (see:
3855 ;; https://github.com/cldwalker/bond/issues/46).
3856 `(#:tests? #f))
3857 (native-inputs
3858 `(("ruby-bacon" ,ruby-bacon)
3859 ("ruby-bacon-bits" ,ruby-bacon-bits)
3860 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3861 (synopsis "Bond can provide custom autocompletion for arguments, methods
3862and more")
3863 (description
3864 "Bond can autocomplete argument(s) to methods, uniquely completing per
3865module, per method and per argument. Bond provides a configuration system and
3866a DSL for creating custom completions and completion rules. Bond can also
3867load completions that ship with gems. Bond is able to offer more than irb's
3868completion since it uses the full line of input when completing as opposed to
3869irb's last-word approach.")
3870 (home-page "http://tagaholic.me/bond/")
3871 (license license:expat)))
3872
3873(define-public ruby-idn-ruby
3874 (package
3875 (name "ruby-idn-ruby")
3876 (version "0.1.0")
3877 (source
3878 (origin
3879 (method url-fetch)
3880 (uri (rubygems-uri "idn-ruby" version))
3881 (sha256
3882 (base32
3883 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3884 (build-system ruby-build-system)
3885 (arguments
3886 '(#:phases
3887 (modify-phases %standard-phases
3888 (delete 'check)
3889 (add-after 'install 'check
3890 (lambda* (#:key tests? outputs #:allow-other-keys)
3891 (when tests?
3892 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3893 (name-and-version (basename gem-file ".gem")))
3894 (apply invoke
3895 "ruby" "--verbose"
3896 (string-append "-I"
3897 (assoc-ref outputs "out")
3898 "/lib/ruby/vendor_ruby/gems/"
3899 name-and-version
3900 "/lib")
3901 (find-files "./test" ".*\\.rb"))))
3902 #t)))))
3903 (inputs
3904 `(("libidn" ,libidn)))
3905 (synopsis "Ruby Bindings for the GNU LibIDN library")
3906 (description
3907 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3908Stringprep, Punycode and IDNA specifications. These are used to encode and
3909decode internationalized domain + names according to the IDNA2003
3910specifications.
3911
3912Included are the most important parts of the Stringprep, Punycode and IDNA
3913APIs like performing Stringprep processings, encoding to and decoding from
3914Punycode strings and converting entire domain names to and from the ACE
3915encoded form.")
3916 (home-page "https://github.com/deepfryed/idn-ruby")
3917 (license license:asl2.0)))
3918
3919(define-public ruby-instantiator
3920 (package
3921 (name "ruby-instantiator")
3922 (version "0.0.7")
3923 (source (origin
3924 (method url-fetch)
3925 (uri (rubygems-uri "instantiator" version))
3926 (sha256
3927 (base32
3928 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3929 (build-system ruby-build-system)
3930 (arguments
3931 `(#:phases
3932 (modify-phases %standard-phases
3933 (add-after 'unpack 'add-test-unit-to-search-path
3934 (lambda* (#:key inputs #:allow-other-keys)
3935 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3936 (substitute* "Rakefile"
3937 (("t\\.libs << \"test\"" line)
3938 (string-append line "; t.libs << \""
3939 test-unit "/lib/ruby/vendor_ruby"
3940 "/gems/test-unit-"
3941 ,(package-version ruby-test-unit)
3942 "/lib\""))))
3943 #t)))))
3944 (propagated-inputs
3945 `(("ruby-blankslate" ,ruby-blankslate)))
3946 (native-inputs
3947 `(("bundler" ,bundler)
3948 ("ruby-test-unit" ,ruby-test-unit)))
3949 (synopsis "Instantiate an arbitrary Ruby class")
3950 (description
3951 "Instantiator lets you instantiate an arbitrary Ruby class without
3952knowing anything about the constructor.")
3953 (home-page "https://github.com/floehopper/instantiator")
3954 (license license:expat)))
3955
3956(define-public ruby-introspection
3957 (package
3958 (name "ruby-introspection")
3959 (version "0.0.4")
3960 (source (origin
3961 (method url-fetch)
3962 (uri (rubygems-uri "introspection" version))
3963 (sha256
3964 (base32
3965 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3966 (build-system ruby-build-system)
3967 (arguments
3968 `(#:phases
3969 (modify-phases %standard-phases
3970 (add-after 'unpack 'add-test-unit-to-search-path
3971 (lambda* (#:key inputs #:allow-other-keys)
3972 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3973 (substitute* "Rakefile"
3974 (("t\\.libs << \"test\"" line)
3975 (string-append line "; t.libs << \""
3976 test-unit "/lib/ruby/vendor_ruby"
3977 "/gems/test-unit-"
3978 ,(package-version ruby-test-unit)
3979 "/lib\""))))
3980 #t)))))
3981 (propagated-inputs
3982 `(("ruby-instantiator" ,ruby-instantiator)
3983 ("ruby-metaclass" ,ruby-metaclass)))
3984 (native-inputs
3985 `(("bundler" ,bundler)
3986 ("ruby-blankslate" ,ruby-blankslate)
3987 ("ruby-test-unit" ,ruby-test-unit)))
3988 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
3989 (description
3990 "Introspection provides tools to inspect the hierarchy of method
3991definitions on a Ruby object.")
3992 (home-page "https://github.com/floehopper/introspection")
3993 (license license:expat)))
3994
3995(define-public ruby-redcarpet
3996 (package
3997 (name "ruby-redcarpet")
3998 (version "3.5.0")
3999 (source (origin
4000 (method url-fetch)
4001 (uri (rubygems-uri "redcarpet" version))
4002 (sha256
4003 (base32
4004 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4005 (build-system ruby-build-system)
4006 (arguments
4007 `(#:phases
4008 (modify-phases %standard-phases
4009 ;; The gem archive does not include the conformance tests.
4010 (add-after 'unpack 'disable-conformance-tests
4011 (lambda _
4012 (substitute* "Rakefile"
4013 (("task :test => %w\\[test:unit test:conformance\\]")
4014 "task :test => %w[test:unit]"))
4015 #t)))))
4016 (native-inputs
4017 `(("bundler" ,bundler)
4018 ("ruby-test-unit" ,ruby-test-unit)
4019 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4020 (synopsis "Extensible Markdown to (X)HTML converter")
4021 (description
4022 "Redcarpet is an extensible Ruby library for Markdown processing and
4023conversion to (X)HTML.")
4024 (home-page "https://github.com/vmg/redcarpet")
4025 (license license:expat)))
4026
4027(define-public ruby-rerun
4028 (package
4029 (name "ruby-rerun")
4030 (version "0.13.0")
4031 (source
4032 (origin
4033 (method url-fetch)
4034 (uri (rubygems-uri "rerun" version))
4035 (sha256
4036 (base32
4037 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4038 (build-system ruby-build-system)
4039 (arguments
4040 '(#:tests? #f)) ; No included tests
4041 (propagated-inputs
4042 `(("ruby-listen" ,ruby-listen)))
4043 (synopsis "Run a process, and restart when some monitored files change")
4044 (description
4045 "Rerun is a tool to launch programs, then monitor the file system, and
4046restart the program when any of the monitored files change. It's written in
4047Ruby, but can be used for all programs.")
4048 (home-page "https://github.com/alexch/rerun/")
4049 (license license:expat)))
4050
4051(define-public ruby-maxitest
4052 (package
4053 (name "ruby-maxitest")
4054 (version "3.6.0")
4055 (home-page "https://github.com/grosser/maxitest")
4056 (source (origin
4057 ;; Pull from git because the gem does not contain tests.
4058 (method git-fetch)
4059 (uri (git-reference
4060 (url home-page)
4061 (commit (string-append "v" version))))
4062 (file-name (git-file-name name version))
4063 (sha256
4064 (base32
4065 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4066 (build-system ruby-build-system)
4067 (arguments
4068 '(#:test-target "default"
4069 #:phases (modify-phases %standard-phases
4070 (replace 'replace-git-ls-files
4071 (lambda _
4072 (substitute* "maxitest.gemspec"
4073 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4074 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4075 #t))
4076 (add-before 'check 'remove-version-constraints
4077 (lambda _
4078 ;; Don't use specific versions of dependencies, instead
4079 ;; take whatever is available in Guix.
4080 (delete-file "Gemfile.lock")
4081 #t))
4082 (add-before 'check 'add-mtest-on-PATH
4083 (lambda _
4084 ;; Tests use 'mtest' which is not automatically added on
4085 ;; PATH.
4086 (setenv "PATH" (string-append (getcwd) "/bin:"
4087 (getenv "PATH")))
4088 #t)))))
4089 (native-inputs
4090 `(("ps" ,procps)
4091 ("ruby-bump" ,ruby-bump)
4092 ("ruby-byebug" ,ruby-byebug)
4093 ("ruby-rspec" ,ruby-rspec)
4094 ("ruby-wwtd" ,ruby-wwtd)))
4095 (propagated-inputs
4096 `(("ruby-minitest" ,ruby-minitest)))
4097 (synopsis "Minitest with extra features")
4098 (description
4099 "Maxitest is a wrapper around Minitest with extra functionality such
4100as timeouts, an @command{mtest} executable that can run tests by line
4101number, support for interrupted tests, better backtraces, and more.")
4102 (license license:expat)))
4103
4104(define-public ruby-mocha
4105 (package
4106 (name "ruby-mocha")
4107 (version "1.11.2")
4108 (source (origin
4109 (method url-fetch)
4110 (uri (rubygems-uri "mocha" version))
4111 (sha256
4112 (base32
4113 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4114 (build-system ruby-build-system)
4115 (arguments
4116 `(#:phases
4117 (modify-phases %standard-phases
4118 (add-before 'check 'remove-rubocop-dependency
4119 (lambda _
4120 ;; Disable dependency on Rubocop, which is just a linter,
4121 ;; and would introduce a circular dependency.
4122 (substitute* "mocha.gemspec"
4123 ((".*rubocop.*")
4124 "true\n"))
4125 #t)))))
4126 (native-inputs
4127 `(("ruby-introspection" ,ruby-introspection)))
4128 (synopsis "Mocking and stubbing library for Ruby")
4129 (description
4130 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4131allows mocking and stubbing of methods on real (non-mock) classes.")
4132 (home-page "http://gofreerange.com/mocha/docs")
4133 ;; Mocha can be used with either license at the users choice.
4134 (license (list license:expat license:ruby))))
4135
4136(define-public ruby-mocha-on-bacon
4137 (package
4138 (name "ruby-mocha-on-bacon")
4139 (version "0.2.3")
4140 (source
4141 (origin
4142 (method url-fetch)
4143 (uri (rubygems-uri "mocha-on-bacon" version))
4144 (sha256
4145 (base32
4146 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4147 (build-system ruby-build-system)
4148 (arguments
4149 ;; rubygems.org release missing tests
4150 '(#:tests? #f))
4151 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4152 (synopsis "Mocha adapter for Bacon")
4153 (description
4154 "This package provides a Mocha adapter for Bacon, allowing you to use the
4155Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4156 (home-page
4157 "https://github.com/alloy/mocha-on-bacon")
4158 (license license:expat)))
4159
4160(define-public ruby-net-ssh
4161 (package
4162 (name "ruby-net-ssh")
4163 (version "4.2.0")
4164 (source (origin
4165 (method url-fetch)
4166 (uri (rubygems-uri "net-ssh" version))
4167 (sha256
4168 (base32
4169 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4170 (build-system ruby-build-system)
4171 (native-inputs
4172 `(("bundler" ,bundler)
4173 ("ruby-mocha" ,ruby-mocha)
4174 ("ruby-test-unit" ,ruby-test-unit)))
4175 (synopsis "Ruby implementation of the SSH2 client protocol")
4176 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4177client protocol. It allows you to write programs that invoke and interact
4178with processes on remote servers, via SSH2.")
4179 (home-page "https://github.com/net-ssh/net-ssh")
4180 (license license:expat)))
4181
4182(define-public ruby-net-scp
4183 (package
4184 (name "ruby-net-scp")
4185 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4186 (version "1.2.2.rc2")
4187 (source
4188 (origin
4189 (method git-fetch)
4190 (uri (git-reference
4191 (url "https://github.com/net-ssh/net-scp")
4192 (commit (string-append "v" version))))
4193 (file-name (git-file-name name version))
4194 (sha256
4195 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4196 (build-system ruby-build-system)
4197 (native-inputs
4198 `(("bundler" ,bundler)
4199 ("ruby-test-unit" ,ruby-test-unit)
4200 ("ruby-mocha" ,ruby-mocha)))
4201 (propagated-inputs
4202 `(("ruby-net-ssh" ,ruby-net-ssh)))
4203 (synopsis "Pure-Ruby SCP client library")
4204 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4205client protocol.")
4206 (home-page "https://github.com/net-ssh/net-scp")
4207 (license license:expat)))
4208
4209(define-public ruby-minitest
4210 (package
4211 (name "ruby-minitest")
4212 (version "5.11.3")
4213 (source (origin
4214 (method url-fetch)
4215 (uri (rubygems-uri "minitest" version))
4216 (sha256
4217 (base32
4218 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4219 (build-system ruby-build-system)
4220 (native-inputs
4221 `(("ruby-hoe" ,ruby-hoe)))
4222 (synopsis "Small test suite library for Ruby")
4223 (description "Minitest provides a complete suite of Ruby testing
4224facilities supporting TDD, BDD, mocking, and benchmarking.")
4225 (home-page "https://github.com/seattlerb/minitest")
4226 (license license:expat)))
4227
4228;; This is the last release of Minitest 4, which is used by some packages.
4229(define-public ruby-minitest-4
4230 (package (inherit ruby-minitest)
4231 (version "4.7.5")
4232 (source (origin
4233 (method url-fetch)
4234 (uri (rubygems-uri "minitest" version))
4235 (sha256
4236 (base32
4237 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4238 (arguments
4239 `(#:phases
4240 (modify-phases %standard-phases
4241 (add-after 'unpack 'remove-unsupported-method
4242 (lambda _
4243 (substitute* "Rakefile"
4244 (("self\\.rubyforge_name = .*") ""))
4245 #t))
4246 (add-after 'build 'exclude-failing-tests
4247 (lambda _
4248 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4249 ;; Fixnum.
4250 (delete-file "test/minitest/test_minitest_spec.rb")
4251 #t)))))))
4252
4253(define-public ruby-minitest-around
4254 (package
4255 (name "ruby-minitest-around")
4256 (version "0.5.0")
4257 (source
4258 (origin
4259 (method url-fetch)
4260 (uri (rubygems-uri "minitest-around" version))
4261 (sha256
4262 (base32
4263 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4264 (build-system ruby-build-system)
4265 (arguments
4266 '(#:phases
4267 (modify-phases %standard-phases
4268 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4269 (lambda _
4270 (substitute* "minitest-around.gemspec"
4271 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4272 #t)))))
4273 (propagated-inputs
4274 `(("ruby-minitest" ,ruby-minitest)))
4275 (native-inputs
4276 `(("bundler" ,bundler)
4277 ("ruby-cucumber" ,ruby-cucumber)
4278 ("ruby-bump" ,ruby-bump)
4279 ("ruby-test-construct" ,ruby-test-construct)))
4280 (synopsis "Run code around tests in Minitest")
4281 (description
4282 "This library provides a way to run code around tests in Minitest,
4283written using either the unit test or spec style.")
4284 (home-page "https://github.com/splattael/minitest-around")
4285 (license license:expat)))
4286
4287(define-public ruby-minitest-sprint
4288 (package
4289 (name "ruby-minitest-sprint")
4290 (version "1.1.0")
4291 (source (origin
4292 (method url-fetch)
4293 (uri (rubygems-uri "minitest-sprint" version))
4294 (sha256
4295 (base32
4296 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4297 (build-system ruby-build-system)
4298 (native-inputs
4299 `(("ruby-hoe" ,ruby-hoe)
4300 ("ruby-minitest" ,ruby-minitest)))
4301 (synopsis "Fast test suite runner for minitest")
4302 (description "Minitest-sprint is a test runner for minitest that makes it
4303easier to re-run individual failing tests.")
4304 (home-page "https://github.com/seattlerb/minitest-sprint")
4305 (license license:expat)))
4306
4307(define-public ruby-minitest-bacon
4308 (package
4309 (name "ruby-minitest-bacon")
4310 (version "1.0.3")
4311 (source (origin
4312 (method url-fetch)
4313 (uri (rubygems-uri "minitest-bacon" version))
4314 (sha256
4315 (base32
4316 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4317 (build-system ruby-build-system)
4318 (native-inputs
4319 `(("ruby-hoe" ,ruby-hoe)))
4320 (inputs
4321 `(("ruby-minitest" ,ruby-minitest)))
4322 (synopsis "Bacon compatibility library for minitest")
4323 (description "Minitest-bacon extends minitest with bacon-like
4324functionality, making it easier to migrate test suites from bacon to minitest.")
4325 (home-page "https://github.com/seattlerb/minitest-bacon")
4326 (license license:expat)))
4327
4328(define-public ruby-minitest-focus
4329 (package
4330 (name "ruby-minitest-focus")
4331 (version "1.1.2")
4332 (source
4333 (origin
4334 (method url-fetch)
4335 (uri (rubygems-uri "minitest-focus" version))
4336 (sha256
4337 (base32
4338 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4339 (build-system ruby-build-system)
4340 (propagated-inputs
4341 `(("ruby-minitest" ,ruby-minitest)))
4342 (native-inputs
4343 `(("ruby-hoe" ,ruby-hoe)))
4344 (synopsis "Allows a few specific tests to be focused on")
4345 (description
4346 "@code{minitest-focus} gives the ability focus on a few tests with ease
4347without having to use command-line arguments. It introduces a @code{focus}
4348class method for use in testing classes, specifying that the next defined test
4349is to be run.")
4350 (home-page "https://github.com/seattlerb/minitest-focus")
4351 (license license:expat)))
4352
4353(define-public ruby-minitest-pretty-diff
4354 ;; Use git reference because gem is out of date and does not contain testing
4355 ;; script. There are no releases on GitHub.
4356 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4357 (package
4358 (name "ruby-minitest-pretty-diff")
4359 (version (string-append "0.1-1." (string-take commit 8)))
4360 (source (origin
4361 (method git-fetch)
4362 (uri (git-reference
4363 (url "https://github.com/adammck/minitest-pretty_diff")
4364 (commit commit)))
4365 (file-name (string-append name "-" version "-checkout"))
4366 (sha256
4367 (base32
4368 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4369 (build-system ruby-build-system)
4370 (arguments
4371 `(#:phases
4372 (modify-phases %standard-phases
4373 (replace 'check
4374 (lambda _
4375 (invoke "script/test"))))))
4376 (native-inputs
4377 `(("bundler" ,bundler)
4378 ("ruby-turn" ,ruby-turn)))
4379 (synopsis "Pretty-print hashes and arrays in MiniTest")
4380 (description
4381 "@code{minitest-pretty_diff} monkey-patches
4382@code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4383diffing them. This makes it easier to spot differences between nested
4384structures when tests fail.")
4385 (home-page "https://github.com/adammck/minitest-pretty_diff")
4386 (license license:expat))))
4387
4388(define-public ruby-minitest-moar
4389 (package
4390 (name "ruby-minitest-moar")
4391 (version "0.0.4")
4392 (source
4393 (origin
4394 (method url-fetch)
4395 (uri (rubygems-uri "minitest-moar" version))
4396 (sha256
4397 (base32
4398 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4399 (build-system ruby-build-system)
4400 (arguments
4401 `(#:phases
4402 (modify-phases %standard-phases
4403 (add-before 'check 'clean-dependencies
4404 (lambda _
4405 ;; Remove all gems defined in the Gemfile because these are not
4406 ;; truly needed.
4407 (substitute* "Gemfile"
4408 (("gem .*") ""))
4409 ;; Remove byebug as not needed to run tests.
4410 (substitute* "test/test_helper.rb"
4411 (("require 'byebug'") ""))
4412 #t)))))
4413 (native-inputs
4414 `(("bundler" ,bundler)
4415 ("ruby-minitest" ,ruby-minitest)))
4416 (synopsis "Extra features and changes to MiniTest")
4417 (description "@code{MiniTest Moar} add some additional features and
4418changes some default behaviours in MiniTest. For instance, Moar replaces the
4419MiniTest @code{Object#stub} with a global @code{stub} method.")
4420 (home-page "https://github.com/dockyard/minitest-moar")
4421 (license license:expat)))
4422
4423(define-public ruby-minitest-bonus-assertions
4424 (package
4425 (name "ruby-minitest-bonus-assertions")
4426 (version "3.0")
4427 (source
4428 (origin
4429 (method url-fetch)
4430 (uri (rubygems-uri "minitest-bonus-assertions" version))
4431 (sha256
4432 (base32
4433 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4434 (build-system ruby-build-system)
4435 (arguments
4436 `(#:phases
4437 (modify-phases %standard-phases
4438 (add-before 'check 'clean-dependencies
4439 (lambda _
4440 ;; Remove unneeded require statement that would entail another
4441 ;; dependency.
4442 (substitute* "test/minitest_config.rb"
4443 (("require 'minitest/bisect'") ""))
4444 #t)))))
4445 (native-inputs
4446 `(("ruby-hoe" ,ruby-hoe)
4447 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4448 ("ruby-minitest-focus" ,ruby-minitest-focus)
4449 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4450 (synopsis "Bonus assertions for @code{Minitest}")
4451 (description
4452 "Minitest bonus assertions provides extra MiniTest assertions. For
4453instance, it provides @code{assert_true}, @code{assert_false} and
4454@code{assert_set_equal}.")
4455 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4456 (license license:expat)))
4457
4458(define-public ruby-minitest-reporters
4459 (package
4460 (name "ruby-minitest-reporters")
4461 (version "1.3.6")
4462 (source
4463 (origin
4464 (method url-fetch)
4465 (uri (rubygems-uri "minitest-reporters" version))
4466 (sha256
4467 (base32
4468 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4469 (build-system ruby-build-system)
4470 (arguments
4471 '(#:phases
4472 (modify-phases %standard-phases
4473 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4474 ;; including it as an input can lead to circular dependencies.
4475 (add-after 'unpack 'remove-rubocop-from-Rakefile
4476 (lambda _
4477 (substitute* "Rakefile"
4478 (("require 'rubocop/rake\\_task'") "")
4479 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4480 #t))
4481 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4482 (lambda _
4483 (substitute* "minitest-reporters.gemspec"
4484 ((".*%q<rubocop>.*") "\n"))
4485 #t)))))
4486 (propagated-inputs
4487 `(("ruby-ansi" ,ruby-ansi)
4488 ("ruby-builder" ,ruby-builder)
4489 ("ruby-minitest" ,ruby-minitest)
4490 ("ruby-progressbar" ,ruby-progressbar)))
4491 (native-inputs
4492 `(("bundler" ,bundler)
4493 ("ruby-maruku" ,ruby-maruku)))
4494 (synopsis "Enhanced reporting for Minitest tests")
4495 (description
4496 "@code{minitest/reporters} provides a custom Minitest runner to improve
4497how the test state is reported. A number of different reporters are
4498available, including a spec reporter, progress bar reporter, a HTML
4499reporter.")
4500 (home-page "https://github.com/kern/minitest-reporters")
4501 (license license:expat)))
4502
4503(define-public ruby-minitest-rg
4504 (package
4505 (name "ruby-minitest-rg")
4506 (version "5.2.0")
4507 (source
4508 (origin
4509 (method url-fetch)
4510 (uri (rubygems-uri "minitest-rg" version))
4511 (sha256
4512 (base32
4513 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4514 (build-system ruby-build-system)
4515 (arguments
4516 ;; Some tests fail even outside Guix, so disable tests.
4517 ;; https://github.com/blowmage/minitest-rg/issues/12
4518 ;; https://github.com/blowmage/minitest-rg/pull/13
4519 `(#:tests? #f))
4520 (propagated-inputs
4521 `(("ruby-minitest" ,ruby-minitest)))
4522 (synopsis "Coloured output for Minitest")
4523 (description
4524 "@code{minitest-rg} changes the colour of the output from Minitest.")
4525 (home-page "https://blowmage.com/minitest-rg/")
4526 (license license:expat)))
4527
4528(define-public ruby-minitest-global-expectations
4529 (package
4530 (name "ruby-minitest-global-expectations")
4531 (version "1.0.1")
4532 (source
4533 (origin
4534 (method url-fetch)
4535 (uri (rubygems-uri "minitest-global_expectations"
4536 version))
4537 (sha256
4538 (base32
4539 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4540 (build-system ruby-build-system)
4541 (propagated-inputs
4542 `(("ruby-minitest" ,ruby-minitest)))
4543 (synopsis "Adjust minitest behaviour for calling expectation methods")
4544 (description
4545 "Minitest-global_expectations allows continued use of expectation methods
4546on all objects. Calling expectation methods on all objects was deprecated in
4547minitest 5.12, and is planned to be removed from minitest 6.")
4548 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4549 (license license:expat)))
4550
4551(define-public ruby-minitest-hooks
4552 (package
4553 (name "ruby-minitest-hooks")
4554 (version "1.4.2")
4555 (source
4556 (origin
4557 (method url-fetch)
4558 (uri (rubygems-uri "minitest-hooks" version))
4559 (sha256
4560 (base32
4561 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4562 (build-system ruby-build-system)
4563 (arguments
4564 '(#:test-target "spec"))
4565 (native-inputs
4566 `(("ruby-sequel" ,ruby-sequel)
4567 ("ruby-sqlite3" ,ruby-sqlite3)))
4568 (synopsis "Hooks for the minitest framework")
4569 (description
4570 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4571@code{around_all} hooks for Minitest. This allows, for instance, running each
4572suite of specs inside a database transaction, running each spec inside its own
4573savepoint inside that transaction. This can significantly speed up testing
4574for specs that share expensive database setup code.")
4575 (home-page "https://github.com/jeremyevans/minitest-hooks")
4576 (license license:expat)))
4577
4578(define-public ruby-daemons
4579 (package
4580 (name "ruby-daemons")
4581 (version "1.2.5")
4582 (source (origin
4583 (method url-fetch)
4584 (uri (rubygems-uri "daemons" version))
4585 (sha256
4586 (base32
4587 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4588 (build-system ruby-build-system)
4589 (arguments
4590 `(#:tests? #f)) ; no test suite
4591 (synopsis "Daemonize Ruby programs")
4592 (description "Daemons provides a way to wrap existing Ruby scripts to be
4593run as a daemon and to be controlled by simple start/stop/restart commands.")
4594 (home-page "https://github.com/thuehlinger/daemons")
4595 (license license:expat)))
4596
4597(define-public ruby-data_uri
4598 (package
4599 (name "ruby-data_uri")
4600 (version "0.1.0")
4601 (source
4602 (origin
4603 (method url-fetch)
4604 (uri (rubygems-uri "data_uri" version))
4605 (sha256
4606 (base32
4607 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4608 (build-system ruby-build-system)
4609 (synopsis "URI class for parsing data URIs")
4610 (description
4611 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4612embedded inside a URI. The URI::Data class provides support for parsing these
4613URIs using the normal URI.parse method.")
4614 (home-page "https://github.com/dball/data_uri")
4615 (license license:expat)))
4616
4617(define-public ruby-deep-merge
4618 (package
4619 (name "ruby-deep-merge")
4620 (version "1.2.1")
4621 (home-page "https://github.com/danielsdeleo/deep_merge")
4622 ;; The Rubygem source does not contain the gemspec required for tests.
4623 (source (origin
4624 (method git-fetch)
4625 (uri (git-reference (url home-page) (commit version)))
4626 (file-name (git-file-name name version))
4627 (sha256
4628 (base32
4629 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4630 (build-system ruby-build-system)
4631 (native-inputs
4632 `(("ruby-minitest" ,ruby-minitest)))
4633 (synopsis "Recursively merge hashes")
4634 (description
4635 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4636you to merge elements inside a hash together recursively.")
4637 (license license:expat)))
4638
4639(define-public ruby-git
4640 (package
4641 (name "ruby-git")
4642 (version "1.3.0")
4643 (source (origin
4644 (method url-fetch)
4645 (uri (rubygems-uri "git" version))
4646 (sha256
4647 (base32
4648 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4649 (build-system ruby-build-system)
4650 (arguments
4651 `(#:tests? #f ; no tests
4652 #:phases (modify-phases %standard-phases
4653 (add-after 'install 'patch-git-binary
4654 (lambda* (#:key inputs outputs #:allow-other-keys)
4655 ;; Make the default git binary an absolute path to the
4656 ;; store.
4657 (let ((git (string-append (assoc-ref inputs "git")
4658 "/bin/git"))
4659 (config (string-append
4660 (assoc-ref outputs "out")
4661 "/lib/ruby/vendor_ruby/gems/git-"
4662 ,version "/lib/git/config.rb")))
4663 (substitute* (list config)
4664 (("'git'")
4665 (string-append "'" git "'")))
4666 #t))))))
4667 (inputs
4668 `(("git" ,git)))
4669 (synopsis "Ruby wrappers for Git")
4670 (description "Ruby/Git is a Ruby library that can be used to create, read
4671and manipulate Git repositories by wrapping system calls to the git binary.")
4672 (home-page "https://github.com/schacon/ruby-git")
4673 (license license:expat)))
4674
4675(define-public ruby-hocon
4676 (package
4677 (name "ruby-hocon")
4678 (version "1.3.1")
4679 (home-page "https://github.com/puppetlabs/ruby-hocon")
4680 (source (origin
4681 (method git-fetch)
4682 (uri (git-reference (url home-page) (commit version)))
4683 (file-name (git-file-name name version))
4684 (sha256
4685 (base32
4686 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4687 (build-system ruby-build-system)
4688 (arguments
4689 '(#:phases (modify-phases %standard-phases
4690 (replace 'check
4691 (lambda* (#:key tests? #:allow-other-keys)
4692 (if tests?
4693 (invoke "rspec")
4694 (format #t "test suite not run~%"))
4695 #t)))))
4696 (native-inputs
4697 `(("bundler" ,bundler)
4698 ("ruby-rspec" ,ruby-rspec)))
4699 (synopsis "HOCON config library")
4700 (description
4701 "This package provides Ruby support for the @acronym{HOCON,
4702Human-Optimized Config Object Notation} configuration file format. It
4703supports parsing and modifying HOCON and JSON files, and rendering parsed
4704objects back to a @code{String}.")
4705 (license license:asl2.0)))
4706
4707(define-public ruby-slop
4708 (package
4709 (name "ruby-slop")
4710 (version "4.5.0")
4711 (source (origin
4712 (method url-fetch)
4713 (uri (rubygems-uri "slop" version))
4714 (sha256
4715 (base32
4716 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4717 (build-system ruby-build-system)
4718 (native-inputs
4719 `(("ruby-minitest" ,ruby-minitest)))
4720 (synopsis "Ruby command line option parser")
4721 (description "Slop provides a Ruby domain specific language for gathering
4722options and parsing command line flags.")
4723 (home-page "https://github.com/leejarvis/slop")
4724 (license license:expat)))
4725
4726(define-public ruby-slop-3
4727 (package (inherit ruby-slop)
4728 (version "3.6.0")
4729 (source (origin
4730 (method url-fetch)
4731 (uri (rubygems-uri "slop" version))
4732 (sha256
4733 (base32
4734 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4735
4736(define-public ruby-multi-xml
4737 (package
4738 (name "ruby-multi-xml")
4739 (version "0.6.0")
4740 (source
4741 (origin
4742 (method url-fetch)
4743 (uri (rubygems-uri "multi_xml" version))
4744 (sha256
4745 (base32
4746 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4747 (build-system ruby-build-system)
4748 (arguments
4749 '(#:tests? #f)) ; No included tests
4750 (synopsis "Swappable XML backends for Ruby")
4751 (description
4752 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4753Nokogiri, Ox, or REXML.")
4754 (home-page "https://github.com/sferik/multi_xml")
4755 (license license:expat)))
4756
4757(define-public ruby-multipart-post
4758 (package
4759 (name "ruby-multipart-post")
4760 (version "2.0.0")
4761 (source (origin
4762 (method url-fetch)
4763 (uri (rubygems-uri "multipart-post" version))
4764 (sha256
4765 (base32
4766 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4767 (build-system ruby-build-system)
4768 (native-inputs
4769 `(("bundler" ,bundler)))
4770 (synopsis "Multipart POST library for Ruby")
4771 (description "Multipart-Post Adds multipart POST capability to Ruby's
4772net/http library.")
4773 (home-page "https://github.com/nicksieger/multipart-post")
4774 (license license:expat)))
4775
4776(define-public ruby-multi-json
4777 (package
4778 (name "ruby-multi-json")
4779 (version "1.13.1")
4780 (source
4781 (origin
4782 (method git-fetch)
4783 ;; Tests are not distributed at rubygems.org so download from GitHub
4784 ;; instead.
4785 (uri (git-reference
4786 (url "https://github.com/intridea/multi_json")
4787 (commit (string-append "v" version))))
4788 (file-name (git-file-name name version))
4789 (sha256
4790 (base32
4791 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4792 (build-system ruby-build-system)
4793 (arguments
4794 `(#:phases
4795 (modify-phases %standard-phases
4796 (add-after 'unpack 'remove-signing-key-reference
4797 (lambda _
4798 (substitute* "multi_json.gemspec"
4799 ((".*spec.signing_key.*") ""))
4800 #t)))))
4801 (native-inputs
4802 `(("bundler" ,bundler)
4803 ("ruby-rspec" ,ruby-rspec)
4804 ("ruby-yard" ,ruby-yard)
4805 ("ruby-json-pure" ,ruby-json-pure)
4806 ("ruby-oj" ,ruby-oj)
4807 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4808 (synopsis "Common interface to multiple JSON libraries for Ruby")
4809 (description
4810 "This package provides a common interface to multiple JSON libraries,
4811including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4812NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4813 (home-page "https://github.com/intridea/multi_json")
4814 (license license:expat)))
4815
4816(define-public ruby-multi-test
4817 (package
4818 (name "ruby-multi-test")
4819 (version "0.1.2")
4820 (source
4821 (origin
4822 (method url-fetch)
4823 (uri (rubygems-uri "multi_test" version))
4824 (sha256
4825 (base32
4826 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4827 (build-system ruby-build-system)
4828 (arguments
4829 '(;; Tests require different sets of specific gem versions to be available,
4830 ;; and there is no gemfile that specifies the newest versions of
4831 ;; dependencies to be tested.
4832 #:tests? #f))
4833 (synopsis
4834 "Interface to testing libraries loaded into a running Ruby process")
4835 (description
4836 "@code{multi_test} provides a uniform interface onto whatever testing
4837libraries that have been loaded into a running Ruby process to help control
4838rogue test/unit/autorun requires.")
4839 (home-page "https://github.com/cucumber/multi_test")
4840 (license license:expat)))
4841
4842(define-public ruby-arel
4843 (package
4844 (name "ruby-arel")
4845 (version "9.0.0")
4846 (source (origin
4847 (method url-fetch)
4848 (uri (rubygems-uri "arel" version))
4849 (sha256
4850 (base32
4851 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4852 (build-system ruby-build-system)
4853 (arguments '(#:tests? #f)) ; no tests
4854 (home-page "https://github.com/rails/arel")
4855 (synopsis "SQL AST manager for Ruby")
4856 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4857Ruby. It simplifies the generation of complex SQL queries and adapts to
4858various relational database implementations.")
4859 (license license:expat)))
4860
4861(define-public ruby-marcel
4862 (package
4863 (name "ruby-marcel")
4864 (version "0.3.3")
4865 (source
4866 (origin
4867 (method url-fetch)
4868 (uri (rubygems-uri "marcel" version))
4869 (sha256
4870 (base32
4871 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4872 (build-system ruby-build-system)
4873 (arguments
4874 '(;; No included tests
4875 #:tests? #f))
4876 (propagated-inputs
4877 `(("ruby-mimemagic" ,ruby-mimemagic)))
4878 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4879 (description
4880 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4881Extensions} type detection using magic numbers, filenames, and extensions")
4882 (home-page "https://github.com/basecamp/marcel")
4883 (license license:expat)))
4884
4885(define-public ruby-minitar
4886 ;; We package from the GitHub source to fix the security issue reported at
4887 ;; https://github.com/halostatue/minitar/issues/16.
4888 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4889 (package
4890 (name "ruby-minitar")
4891 (version (string-append "0.5.4-1." (string-take commit 8)))
4892 (source
4893 (origin
4894 (method git-fetch)
4895 (uri (git-reference
4896 (url "https://github.com/halostatue/minitar")
4897 (commit commit)))
4898 (file-name (string-append name "-" version "-checkout"))
4899 (sha256
4900 (base32
4901 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4902 (build-system ruby-build-system)
4903 (arguments
4904 '(#:tests? #f)) ; missing a gemspec
4905 (synopsis "Ruby library and utility for handling tar archives")
4906 (description
4907 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4908that provides the ability to deal with POSIX tar archive files.")
4909 (home-page "http://www.github.com/atoulme/minitar")
4910 (license (list license:gpl2+ license:ruby)))))
4911
4912(define-public ruby-mini-portile
4913 (package
4914 (name "ruby-mini-portile")
4915 (version "0.6.2")
4916 (source
4917 (origin
4918 (method url-fetch)
4919 (uri (rubygems-uri "mini_portile" version))
4920 (sha256
4921 (base32
4922 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4923 (build-system ruby-build-system)
4924 (arguments
4925 '(#:tests? #f)) ; tests require network access
4926 (synopsis "Ports system for Ruby developers")
4927 (description "Mini-portile is a port/recipe system for Ruby developers.
4928It provides a standard way to compile against specific versions of libraries
4929to reproduce user environments.")
4930 (home-page "https://github.com/flavorjones/mini_portile")
4931 (license license:expat)))
4932
4933(define-public ruby-mini-portile-2
4934 (package (inherit ruby-mini-portile)
4935 (version "2.4.0")
4936 (source (origin
4937 (method url-fetch)
4938 (uri (rubygems-uri "mini_portile2" version))
4939 (sha256
4940 (base32
4941 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4942
4943(define-public ruby-nokogiri
4944 (package
4945 (name "ruby-nokogiri")
4946 (version "1.10.9")
4947 (source (origin
4948 (method url-fetch)
4949 (uri (rubygems-uri "nokogiri" version))
4950 (sha256
4951 (base32
4952 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4953 (build-system ruby-build-system)
4954 (arguments
4955 ;; Tests fail because Nokogiri can only test with an installed extension,
4956 ;; and also because many test framework dependencies are missing.
4957 `(#:tests? #f
4958 #:gem-flags (list "--" "--use-system-libraries"
4959 (string-append "--with-xml2-include="
4960 (assoc-ref %build-inputs "libxml2")
4961 "/include/libxml2" ))
4962 #:phases
4963 (modify-phases %standard-phases
4964 (add-before 'build 'patch-extconf
4965 ;; 'pkg-config' is not included in the GEM_PATH during
4966 ;; installation, so we add it directly to the load path.
4967 (lambda* (#:key inputs #:allow-other-keys)
4968 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4969 (substitute* "ext/nokogiri/extconf.rb"
4970 (("gem 'pkg-config'.*")
4971 (string-append "$:.unshift '"
4972 pkg-config "/lib/ruby/vendor_ruby"
4973 "/gems/pkg-config-"
4974 ,(package-version ruby-pkg-config)
4975 "/lib'\n"))))
4976 #t)))))
4977 (native-inputs
4978 `(("ruby-hoe" ,ruby-hoe)))
4979 (inputs
4980 `(("zlib" ,zlib)
4981 ("libxml2" ,libxml2)
4982 ("libxslt" ,libxslt)))
4983 (propagated-inputs
4984 `(("ruby-mini-portile" ,ruby-mini-portile-2)
4985 ("ruby-pkg-config" ,ruby-pkg-config)))
4986 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
4987 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
4988both CSS3 selector and XPath 1.0 support.")
4989 (home-page "http://www.nokogiri.org/")
4990 (license license:expat)))
4991
4992(define-public ruby-method-source
4993 (package
4994 (name "ruby-method-source")
4995 (version "1.0.0")
4996 (source
4997 (origin
4998 (method url-fetch)
4999 (uri (rubygems-uri "method_source" version))
5000 (sha256
5001 (base32
5002 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5003 (build-system ruby-build-system)
5004 (arguments
5005 `(#:test-target "spec"))
5006 (native-inputs
5007 `(("ruby-rspec" ,ruby-rspec)
5008 ("git" ,git)))
5009 (synopsis "Retrieve the source code for Ruby methods")
5010 (description "Method_source retrieves the source code for Ruby methods.
5011Additionally, it can extract source code from Proc and Lambda objects or just
5012extract comments.")
5013 (home-page "https://github.com/banister/method_source")
5014 (license license:expat)))
5015
5016(define-public ruby-coderay
5017 (package
5018 (name "ruby-coderay")
5019 (version "1.1.2")
5020 (source
5021 (origin
5022 (method url-fetch)
5023 (uri (rubygems-uri "coderay" version))
5024 (sha256
5025 (base32
5026 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5027 (build-system ruby-build-system)
5028 (arguments
5029 '(#:tests? #f)) ; missing test files
5030 (synopsis "Ruby syntax highlighting library")
5031 (description "Coderay is a Ruby library that provides syntax highlighting
5032for select languages.")
5033 (home-page "http://coderay.rubychan.de")
5034 (license license:expat)))
5035
5036(define-public ruby-cuke-modeler
5037 (package
5038 (name "ruby-cuke-modeler")
5039 (version "3.1.0")
5040 (source
5041 (origin
5042 (method url-fetch)
5043 (uri (rubygems-uri "cuke_modeler" version))
5044 (sha256
5045 (base32
5046 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5047 (build-system ruby-build-system)
5048 (arguments `(#:tests? #f)) ;no test suite in gem
5049 (propagated-inputs
5050 `(("ruby-gherkin" ,ruby-gherkin)))
5051 (synopsis "Gherkin test suite analysis tool")
5052 (description "CukeModeler facilitates modeling a test suite that is
5053written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5054providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5055the @code{cucumber-gherkin} generates when parsing features, as well as
5056providing models for feature files and directories in order to be able to have
5057a fully traversable model tree of a test suite's structure. These models can
5058then be analyzed or manipulated more easily than the underlying AST layer.")
5059 (home-page "https://github.com/enkessler/cuke_modeler")
5060 (license license:expat)))
5061
5062(define-public ruby-parallel-tests
5063 (package
5064 (name "ruby-parallel-tests")
5065 (version "3.0.0")
5066 (home-page "https://github.com/grosser/parallel_tests")
5067 (source (origin
5068 (method git-fetch)
5069 (uri (git-reference
5070 (url home-page)
5071 (commit (string-append "v" version))))
5072 (file-name (string-append name version))
5073 (sha256
5074 (base32
5075 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5076 (build-system ruby-build-system)
5077 (arguments
5078 '(#:test-target "default"
5079 #:phases (modify-phases %standard-phases
5080 (add-after 'patch-source-shebangs 'patch-shell-invokations
5081 (lambda _
5082 (substitute* '("lib/parallel_tests/tasks.rb"
5083 "spec/parallel_tests/tasks_spec.rb")
5084 (("/bin/sh") (which "sh"))
5085 (("/bin/bash") (which "bash")))
5086 #t))
5087 (add-before 'check 'remove-version-constraints
5088 (lambda _
5089 ;; Remove hard coded version constraints, instead just
5090 ;; use whatever versions are available in Guix.
5091 (delete-file "Gemfile.lock")
5092 (substitute* "Gemfile"
5093 (("'minitest',.*")
5094 "'minitest'\n")
5095 (("'cucumber',.*")
5096 "'cucumber'\n"))
5097 #t))
5098 (add-before 'check 'disable-rails-test
5099 (lambda _
5100 ;; XXX: This test attempts to download and run the test
5101 ;; suites of multiple Rails versions(!) directly.
5102 (delete-file "spec/rails_spec.rb")
5103 #t))
5104 (add-before 'check 'set-HOME
5105 (lambda _
5106 ;; Some tests check the output of Bundler, and fail when
5107 ;; Bundler warns that /homeless-shelter does not exist.
5108 (setenv "HOME" "/tmp")
5109 #t)))))
5110 (native-inputs
5111 `(("ruby-bump" ,ruby-bump)
5112 ("ruby-cucumber" ,ruby-cucumber)
5113 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5114 ("ruby-minitest" ,ruby-minitest)
5115 ("ruby-rake" ,ruby-rake)
5116 ("ruby-rspec" ,ruby-rspec)
5117 ("ruby-spinach" ,ruby-spinach)))
5118 (propagated-inputs
5119 `(("ruby-parallel" ,ruby-parallel)))
5120 (synopsis "Run tests in parallel")
5121 (description
5122 "This package can speed up @code{Test::Unit}, @code{RSpec},
5123@code{Cucumber}, and @code{Spinach} tests by running them concurrently
5124across multiple CPU cores.")
5125 (license license:expat)))
5126
5127(define-public ruby-parser
5128 (package
5129 (name "ruby-parser")
5130 (version "2.7.1.4")
5131 (source
5132 (origin
5133 (method url-fetch)
5134 (uri (rubygems-uri "parser" version))
5135 (sha256
5136 (base32
5137 "1030znhvhkfn39svwbj6qn4xb6hgl94gnvg57k4d3r76f9bryqmn"))))
5138 (build-system ruby-build-system)
5139 (native-inputs
5140 `(("bundler" ,bundler)
5141 ("ruby-cliver" ,ruby-cliver)
5142 ("ruby-simplecov" ,ruby-simplecov)
5143 ("ruby-racc" ,ruby-racc)))
5144 (inputs
5145 `(("ragel" ,ragel)))
5146 (propagated-inputs
5147 `(("ruby-ast" ,ruby-ast)))
5148 (synopsis "Ruby parser written in pure Ruby")
5149 (description
5150 "This package provides a Ruby parser written in pure Ruby.")
5151 (home-page "https://github.com/whitequark/parser")
5152 (license license:expat)))
5153
5154(define-public ruby-sexp-processor
5155 (package
5156 (name "ruby-sexp-processor")
5157 (version "4.15.0")
5158 (source
5159 (origin
5160 (method url-fetch)
5161 (uri (rubygems-uri "sexp_processor" version))
5162 (sha256
5163 (base32
5164 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5165 (build-system ruby-build-system)
5166 (native-inputs
5167 ;; TODO: Add ruby-minitest-proveit once available.
5168 `(("hoe" ,ruby-hoe)))
5169 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5170 (description "The sexp_processor package is derived from ParseTree, but
5171contrary to ParseTree, it includes all the generic S-exp processing tools.
5172Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5173@code{Environment}")
5174 (home-page "https://github.com/seattlerb/sexp_processor")
5175 (license license:expat)))
5176
5177(define-public ruby-ruby-parser
5178 (package
5179 (name "ruby-ruby-parser")
5180 (version "3.14.2")
5181 (source
5182 (origin
5183 (method url-fetch)
5184 (uri (rubygems-uri "ruby_parser" version))
5185 (sha256
5186 (base32
5187 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5188 (build-system ruby-build-system)
5189 (native-inputs
5190 `(("hoe" ,ruby-hoe)
5191 ("racc" ,ruby-racc)
5192 ("unifdef" ,unifdef)))
5193 (propagated-inputs
5194 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5195 (home-page "https://github.com/seattlerb/ruby_parser/")
5196 (synopsis "Ruby parser written in pure Ruby")
5197 (description "The ruby_parser (RP) package provides a Ruby parser written
5198in pure Ruby. It outputs S-expressions which can be manipulated and converted
5199back to Ruby via the @code{ruby2ruby} library.")
5200 (license license:expat)))
5201
5202(define-public ruby-prawn-manual-builder
5203 (package
5204 (name "ruby-prawn-manual-builder")
5205 (version "0.3.1")
5206 (source
5207 (origin
5208 (method url-fetch)
5209 (uri (rubygems-uri "prawn-manual_builder" version))
5210 (sha256
5211 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5212 (build-system ruby-build-system)
5213 (arguments
5214 '(#:tests? #f ; no included tests
5215 #:phases
5216 (modify-phases %standard-phases
5217 (add-after 'extract-gemspec 'patch-gemspec
5218 (lambda _
5219 (substitute* ".gemspec"
5220 ;; Loosen the requirement for pdf-inspector
5221 (("~> 1\\.0\\.7") ">= 0")))))))
5222 (propagated-inputs
5223 `(("ruby-coderay" ,ruby-coderay)))
5224 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5225 (description
5226 "This package provides a tool for writing manuals for Prawn and Prawn
5227accessories")
5228 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5229 (license %prawn-project-licenses)))
5230
5231(define-public ruby-progress_bar
5232 (package
5233 (name "ruby-progress_bar")
5234 (version "1.1.0")
5235 (source
5236 (origin
5237 (method url-fetch)
5238 (uri (rubygems-uri "progress_bar" version))
5239 (sha256
5240 (base32
5241 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5242 (build-system ruby-build-system)
5243 (arguments
5244 '(#:test-target "spec"))
5245 (propagated-inputs
5246 `(("ruby-highline" ,ruby-highline)
5247 ("ruby-options" ,ruby-options)))
5248 (native-inputs
5249 `(("bundler" ,bundler)
5250 ("ruby-rspec" ,ruby-rspec)
5251 ("ruby-timecop" ,ruby-timecop)))
5252 (synopsis
5253 "Ruby library for displaying progress bars")
5254 (description
5255 "ProgressBar is a simple library for displaying progress bars. The
5256maximum value is configurable, and additional information can be displayed
5257like the percentage completion, estimated time remaining, elapsed time and
5258rate.")
5259 (home-page "https://github.com/paul/progress_bar")
5260 (license license:wtfpl2)))
5261
5262(define-public ruby-dep
5263 (package
5264 (name "ruby-dep")
5265 (version "1.5.0")
5266 (source
5267 (origin
5268 (method url-fetch)
5269 (uri (rubygems-uri "ruby_dep" version))
5270 (sha256
5271 (base32
5272 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5273 (build-system ruby-build-system)
5274 (arguments
5275 '(#:tests? #f)) ; No included tests
5276 (synopsis "Creates a version constraint of supported Rubies")
5277 (description
5278 "This package helps create a version constraint of supported Rubies,
5279suitable for a gemspec file.")
5280 (home-page "https://github.com/e2/ruby_dep")
5281 (license license:expat)))
5282
5283(define-public ruby-progressbar
5284 (package
5285 (name "ruby-progressbar")
5286 (version "1.10.1")
5287 (source
5288 (origin
5289 (method url-fetch)
5290 (uri (rubygems-uri "ruby-progressbar" version))
5291 (sha256
5292 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5293 (build-system ruby-build-system)
5294 (arguments
5295 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5296 #:tests? #f))
5297 (synopsis "Text progress bar library for Ruby")
5298 (description
5299 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5300The output can be customized with a formatting system.")
5301 (home-page "https://github.com/jfelchner/ruby-progressbar")
5302 (license license:expat)))
5303
5304(define-public ruby-pry
5305 (package
5306 (name "ruby-pry")
5307 (version "0.13.1")
5308 (source
5309 (origin
5310 (method url-fetch)
5311 (uri (rubygems-uri "pry" version))
5312 (sha256
5313 (base32
5314 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5315 (build-system ruby-build-system)
5316 (arguments
5317 '(#:tests? #f)) ; no tests
5318 (propagated-inputs
5319 `(("ruby-coderay" ,ruby-coderay)
5320 ("ruby-method-source" ,ruby-method-source)))
5321 (synopsis "Ruby REPL")
5322 (description "Pry is an IRB alternative and runtime developer console for
5323Ruby. It features syntax highlighting, a plugin architecture, runtime
5324invocation, and source and documentation browsing.")
5325 (home-page "https://cobaltbluemedia.com/pryrepl/")
5326 (license license:expat)))
5327
5328(define-public ruby-single-cov
5329 (package
5330 (name "ruby-single-cov")
5331 (version "1.3.2")
5332 (home-page "https://github.com/grosser/single_cov")
5333 (source (origin
5334 (method git-fetch)
5335 (uri (git-reference (url home-page)
5336 (commit (string-append "v" version))))
5337 (file-name (git-file-name name version))
5338 (sha256
5339 (base32
5340 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5341 (build-system ruby-build-system)
5342 (arguments
5343 '(#:test-target "default"
5344 #:phases (modify-phases %standard-phases
5345 (replace 'replace-git-ls-files
5346 (lambda _
5347 (substitute* "single_cov.gemspec"
5348 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5349 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5350 #t))
5351 (add-before 'check 'remove-version-constraints
5352 (lambda _
5353 (delete-file "Gemfile.lock")
5354 #t))
5355 (add-before 'check 'make-files-writable
5356 (lambda _
5357 ;; Tests need to create local directories and open files
5358 ;; with write permissions.
5359 (for-each make-file-writable
5360 (find-files "specs" #:directories? #t))
5361 #t))
5362 (add-before 'check 'disable-failing-test
5363 (lambda _
5364 ;; XXX: This test copies assets from minitest, but can
5365 ;; not cope with the files being read-only. Just skip
5366 ;; it for now.
5367 (substitute* "specs/single_cov_spec.rb"
5368 (("it \"complains when coverage is bad\"")
5369 "xit \"complains when coverage is bad\""))
5370 #t)))))
5371 (native-inputs
5372 `(("ruby-bump" ,ruby-bump)
5373 ("ruby-minitest" ,ruby-minitest)
5374 ("ruby-rspec" ,ruby-rspec)
5375 ("ruby-simplecov" ,ruby-simplecov)))
5376 (synopsis "Code coverage reporting tool")
5377 (description
5378 "This package provides actionable code coverage reports for Ruby
5379projects. It has very little overhead and can be easily integrated with
5380development tools to catch coverage problems early.")
5381 (license license:expat)))
5382
5383(define-public ruby-guard
5384 (package
5385 (name "ruby-guard")
5386 (version "2.13.0")
5387 (source (origin
5388 (method git-fetch)
5389 ;; The gem does not include a Rakefile, nor does it contain a
5390 ;; gemspec file, nor does it come with the tests. This is why
5391 ;; we fetch the tarball from Github.
5392 (uri (git-reference
5393 (url "https://github.com/guard/guard")
5394 (commit (string-append "v" version))))
5395 (file-name (git-file-name name version))
5396 (sha256
5397 (base32
5398 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5399 (build-system ruby-build-system)
5400 (arguments
5401 `(#:tests? #f ; tests require cucumber
5402 #:phases
5403 (modify-phases %standard-phases
5404 (add-after 'unpack 'remove-git-ls-files
5405 (lambda* (#:key outputs #:allow-other-keys)
5406 (substitute* "guard.gemspec"
5407 (("git ls-files -z") "find . -type f -print0"))
5408 #t))
5409 (replace 'build
5410 (lambda _
5411 (invoke "gem" "build" "guard.gemspec"))))))
5412 (propagated-inputs
5413 `(("ruby-formatador" ,ruby-formatador)
5414 ("ruby-listen" ,ruby-listen)
5415 ("ruby-lumberjack" ,ruby-lumberjack)
5416 ("ruby-nenv" ,ruby-nenv)
5417 ("ruby-notiffany" ,ruby-notiffany)
5418 ("ruby-pry" ,ruby-pry)
5419 ("ruby-shellany" ,ruby-shellany)
5420 ("ruby-thor" ,ruby-thor)))
5421 (native-inputs
5422 `(("bundler" ,bundler)
5423 ("ruby-rspec" ,ruby-rspec)))
5424 (synopsis "Tool to handle events on file system modifications")
5425 (description
5426 "Guard is a command line tool to easily handle events on file system
5427modifications. Guard automates various tasks by running custom rules whenever
5428file or directories are modified.")
5429 (home-page "https://guardgem.org/")
5430 (license license:expat)))
5431
5432(define-public ruby-spinach
5433 (package
5434 (name "ruby-spinach")
5435 (version "0.11.0")
5436 (home-page "https://github.com/codegram/spinach")
5437 (source (origin
5438 (method url-fetch)
5439 (uri (rubygems-uri "spinach" version))
5440 (sha256
5441 (base32
5442 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5443 (build-system ruby-build-system)
5444 (arguments
5445 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5446 ;; which in turn depends on many other unpackaged gems. Enable once
5447 ;; capybara is available.
5448 '(#:tests? #f))
5449 (propagated-inputs
5450 `(("ruby-colorize" ,ruby-colorize)
5451 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5452 ("ruby-json" ,ruby-json)))
5453 (synopsis "Gherkin-based BDD framework")
5454 (description
5455 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5456framework that leverages the expressive @code{Gherkin} language to help you
5457define executable specifications of your code.")
5458 (license license:expat)))
5459
5460(define-public ruby-tilt
5461 (package
5462 (name "ruby-tilt")
5463 (version "2.0.10")
5464 (source
5465 (origin
5466 (method git-fetch) ;the distributed gem lacks tests
5467 (uri (git-reference
5468 (url "https://github.com/rtomayko/tilt")
5469 (commit (string-append "v" version))))
5470 (file-name (git-file-name name version))
5471 (sha256
5472 (base32
5473 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5474 (build-system ruby-build-system)
5475 (arguments
5476 '(#:phases
5477 (modify-phases %standard-phases
5478 (add-after 'unpack 'remove-some-dependencies
5479 (lambda _
5480 (substitute* "Gemfile"
5481 ;; TODO ronn is used for generating the manual
5482 (("gem 'ronn'.*") "\n")
5483 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5484 ;; pass it in as a native-input
5485 (("gem 'haml'.*") "\n")
5486 ;; TODO Not all of these gems are packaged for Guix yet:
5487 ;; less, coffee-script, livescript, babel-transpiler,
5488 ;; typescript-node
5489 (("if can_execjs") "if false")
5490 ;; Disable the secondary group to reduce the number of
5491 ;; dependencies. None of the normal approaches work, so patch
5492 ;; the Gemfile instead.
5493 (("group :secondary") "[].each"))
5494 #t)))))
5495 (propagated-inputs
5496 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5497 ("ruby-sassc" ,ruby-sassc)))
5498 (native-inputs
5499 `(("bundler" ,bundler)
5500 ("ruby-yard" ,ruby-yard)
5501 ("ruby-builder" ,ruby-builder)
5502 ("ruby-erubis" ,ruby-erubis)
5503 ("ruby-markaby" ,ruby-markaby)))
5504 (synopsis "Generic interface to multiple Ruby template engines")
5505 (description
5506 "Tilt is a thin interface over a number of different Ruby template
5507engines in an attempt to make their usage as generic as possible.")
5508 (home-page "https://github.com/rtomayko/tilt/")
5509 (license license:expat)))
5510
5511(define-public ruby-thread-safe
5512 (package
5513 (name "ruby-thread-safe")
5514 (version "0.3.6")
5515 (source
5516 (origin
5517 (method url-fetch)
5518 (uri (rubygems-uri "thread_safe" version))
5519 (sha256
5520 (base32
5521 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5522 (build-system ruby-build-system)
5523 (arguments
5524 '(#:tests? #f)) ; needs simplecov, among others
5525 (synopsis "Thread-safe utilities for Ruby")
5526 (description "The thread_safe library provides thread-safe collections and
5527utilities for Ruby.")
5528 (home-page "https://github.com/ruby-concurrency/thread_safe")
5529 (license license:asl2.0)))
5530
5531(define-public ruby-tzinfo
5532 (package
5533 (name "ruby-tzinfo")
5534 (version "1.2.4")
5535 (source
5536 (origin
5537 (method url-fetch)
5538 (uri (rubygems-uri "tzinfo" version))
5539 (sha256
5540 (base32
5541 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5542 (build-system ruby-build-system)
5543 (arguments
5544 '(#:phases
5545 (modify-phases %standard-phases
5546 (add-after 'unpack 'skip-safe-tests
5547 (lambda _
5548 (substitute* "test/test_utils.rb"
5549 (("def safe_test\\(options = \\{\\}\\)")
5550 "def safe_test(options = {})
5551 skip('The Guix build environment has an unsafe load path')"))
5552 #t)))))
5553 (propagated-inputs
5554 `(("ruby-thread-safe" ,ruby-thread-safe)))
5555 (synopsis "Time zone library for Ruby")
5556 (description "TZInfo is a Ruby library that provides daylight savings
5557aware transformations between times in different time zones.")
5558 (home-page "https://tzinfo.github.io")
5559 (license license:expat)))
5560
5561(define-public ruby-tzinfo-data
5562 (package
5563 (name "ruby-tzinfo-data")
5564 (version "1.2017.3")
5565 (source
5566 (origin
5567 (method git-fetch)
5568 ;; Download from GitHub because the rubygems version does not contain
5569 ;; Rakefile or tests.
5570 (uri (git-reference
5571 (url "https://github.com/tzinfo/tzinfo-data")
5572 (commit (string-append "v" version))))
5573 (file-name (git-file-name name version))
5574 (sha256
5575 (base32
5576 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5577 ;; Remove the known test failure.
5578 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5579 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5580 (patches (search-patches
5581 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5582 (build-system ruby-build-system)
5583 (propagated-inputs
5584 `(("ruby-tzinfo" ,ruby-tzinfo)))
5585 (synopsis "Data from the IANA Time Zone database")
5586 (description
5587 "This library provides @code{TZInfo::Data}, which contains data from the
5588IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5589 (home-page "https://tzinfo.github.io")
5590 (license license:expat)))
5591
5592(define-public ruby-rb-inotify
5593 (package
5594 (name "ruby-rb-inotify")
5595 (version "0.9.10")
5596 (source
5597 (origin
5598 (method url-fetch)
5599 (uri (rubygems-uri "rb-inotify" version))
5600 (sha256
5601 (base32
5602 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5603 (build-system ruby-build-system)
5604 (arguments
5605 '(#:tests? #f ; there are no tests
5606 #:phases
5607 (modify-phases %standard-phases
5608 ;; Building the gemspec with rake is not working here since it is
5609 ;; generated with Jeweler. It is also unnecessary because the
5610 ;; existing gemspec does not use any development tools to generate a
5611 ;; list of files.
5612 (replace 'build
5613 (lambda _
5614 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5615 (propagated-inputs
5616 `(("ruby-ffi" ,ruby-ffi)))
5617 (native-inputs
5618 `(("ruby-yard" ,ruby-yard)))
5619 (synopsis "Ruby wrapper for Linux's inotify")
5620 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5621kernel subsystem for monitoring changes to files and directories.")
5622 (home-page "https://github.com/nex3/rb-inotify")
5623 (license license:expat)))
5624
5625(define-public ruby-pry-editline
5626 (package
5627 (name "ruby-pry-editline")
5628 (version "1.1.2")
5629 (source (origin
5630 (method url-fetch)
5631 (uri (rubygems-uri "pry-editline" version))
5632 (sha256
5633 (base32
5634 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5635 (build-system ruby-build-system)
5636 (arguments `(#:tests? #f)) ; no tests included
5637 (native-inputs
5638 `(("bundler" ,bundler)))
5639 (synopsis "Open the current REPL line in an editor")
5640 (description
5641 "This gem provides a plugin for the Ruby REPL to enable opening the
5642current line in an external editor.")
5643 (home-page "https://github.com/tpope/pry-editline")
5644 (license license:expat)))
5645
5646(define-public ruby-sdoc
5647 (package
5648 (name "ruby-sdoc")
5649 (version "1.1.0")
5650 (source (origin
5651 (method url-fetch)
5652 (uri (rubygems-uri "sdoc" version))
5653 (sha256
5654 (base32
5655 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5656 (build-system ruby-build-system)
5657 (arguments
5658 `(#:phases
5659 (modify-phases %standard-phases
5660 (add-before 'check 'set-rubylib-and-patch-gemfile
5661 (lambda _
5662 (setenv "RUBYLIB" "lib")
5663 (substitute* "sdoc.gemspec"
5664 (("s.add_runtime_dependency.*") "\n")
5665 (("s.add_dependency.*") "\n"))
5666 (substitute* "Gemfile"
5667 (("gem \"rake\".*")
5668 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5669 #t)))))
5670 (propagated-inputs
5671 `(("ruby-json" ,ruby-json)))
5672 (native-inputs
5673 `(("bundler" ,bundler)
5674 ("ruby-minitest" ,ruby-minitest)
5675 ("ruby-hoe" ,ruby-hoe)))
5676 (synopsis "Generate searchable RDoc documentation")
5677 (description
5678 "SDoc is an RDoc documentation generator to build searchable HTML
5679documentation for Ruby code.")
5680 (home-page "https://github.com/voloko/sdoc")
5681 (license license:expat)))
5682
5683(define-public ruby-tins
5684 (package
5685 (name "ruby-tins")
5686 (version "1.15.0")
5687 (source (origin
5688 (method url-fetch)
5689 (uri (rubygems-uri "tins" version))
5690 (sha256
5691 (base32
5692 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5693 (build-system ruby-build-system)
5694 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5695 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5696 ;; the gemspec.
5697 (arguments
5698 `(#:tests? #f ; there are no tests
5699 #:phases
5700 (modify-phases %standard-phases
5701 (replace 'build
5702 (lambda _
5703 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5704 ;; causes an error.
5705 (substitute* "tins.gemspec"
5706 (("\"lib/spruz\", ") ""))
5707 (invoke "gem" "build" "tins.gemspec"))))))
5708 (synopsis "Assorted tools for Ruby")
5709 (description "Tins is a Ruby library providing assorted tools.")
5710 (home-page "https://github.com/flori/tins")
5711 (license license:expat)))
5712
5713(define-public ruby-gem-hadar
5714 (package
5715 (name "ruby-gem-hadar")
5716 (version "1.9.1")
5717 (source (origin
5718 (method url-fetch)
5719 (uri (rubygems-uri "gem_hadar" version))
5720 (sha256
5721 (base32
5722 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5723 (build-system ruby-build-system)
5724 ;; This gem needs itself at development time. We disable rebuilding of the
5725 ;; gemspec to avoid this loop.
5726 (arguments
5727 `(#:tests? #f ; there are no tests
5728 #:phases
5729 (modify-phases %standard-phases
5730 (replace 'build
5731 (lambda _
5732 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5733 (propagated-inputs
5734 `(("git" ,git)
5735 ("ruby-tins" ,ruby-tins)
5736 ("ruby-yard" ,ruby-yard)))
5737 (synopsis "Library for the development of Ruby gems")
5738 (description
5739 "This library contains some useful functionality to support the
5740development of Ruby gems.")
5741 (home-page "https://github.com/flori/gem_hadar")
5742 (license license:expat)))
5743
5744(define-public ruby-minitest-tu-shim
5745 (package
5746 (name "ruby-minitest-tu-shim")
5747 (version "1.3.3")
5748 (source (origin
5749 (method url-fetch)
5750 (uri (rubygems-uri "minitest_tu_shim" version))
5751 (sha256
5752 (base32
5753 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5754 (build-system ruby-build-system)
5755 (arguments
5756 `(#:phases
5757 (modify-phases %standard-phases
5758 (add-after 'unpack 'fix-test-include-path
5759 (lambda* (#:key inputs #:allow-other-keys)
5760 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5761 (substitute* "Rakefile"
5762 (("Hoe\\.add_include_dirs .*")
5763 (string-append "Hoe.add_include_dirs \""
5764 minitest "/lib/ruby/vendor_ruby"
5765 "/gems/minitest-"
5766 ,(package-version ruby-minitest-4)
5767 "/lib" "\""))))
5768 #t))
5769 (add-before 'check 'fix-test-assumptions
5770 (lambda _
5771 ;; The test output includes the file name, so a couple of tests
5772 ;; fail. Changing the regular expressions slightly fixes this
5773 ;; problem.
5774 (substitute* "test/test_mini_test.rb"
5775 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5776 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5777 (("gsub\\(/.*, 'FILE:LINE'\\)")
5778 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5779 #t)))))
5780 (propagated-inputs
5781 `(("ruby-minitest-4" ,ruby-minitest-4)))
5782 (native-inputs
5783 `(("ruby-hoe" ,ruby-hoe)))
5784 (synopsis "Adapter library between minitest and test/unit")
5785 (description
5786 "This library bridges the gap between the small and fast minitest and
5787Ruby's large and slower test/unit.")
5788 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5789 (license license:expat)))
5790
5791(define-public ruby-term-ansicolor
5792 (package
5793 (name "ruby-term-ansicolor")
5794 (version "1.6.0")
5795 (source (origin
5796 (method url-fetch)
5797 (uri (rubygems-uri "term-ansicolor" version))
5798 (sha256
5799 (base32
5800 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5801 (build-system ruby-build-system)
5802 ;; Rebuilding the gemspec seems to require git, even though this is not a
5803 ;; git repository, so we just build the gem from the existing gemspec.
5804 (arguments
5805 `(#:phases
5806 (modify-phases %standard-phases
5807 (add-after 'unpack 'fix-test
5808 (lambda -
5809 (substitute* "tests/hsl_triple_test.rb"
5810 (("0\\\\\\.0%")
5811 "0\\.?0?%"))))
5812 (replace 'build
5813 (lambda _
5814 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5815 (propagated-inputs
5816 `(("ruby-tins" ,ruby-tins)))
5817 (native-inputs
5818 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5819 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5820 (synopsis "Ruby library to control the attributes of terminal output")
5821 (description
5822 "This Ruby library uses ANSI escape sequences to control the attributes
5823of terminal output.")
5824 (home-page "https://flori.github.io/term-ansicolor/")
5825 ;; There is no mention of the "or later" clause.
5826 (license license:gpl2)))
5827
5828(define-public ruby-terraform
5829 (package
5830 (name "ruby-terraform")
5831 (version "0.22.0")
5832 (source
5833 (origin
5834 (method url-fetch)
5835 (uri (rubygems-uri "ruby-terraform" version))
5836 (sha256
5837 (base32
5838 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5839 (build-system ruby-build-system)
5840 (arguments
5841 '(#:tests? #f)) ; No included tests
5842 (propagated-inputs
5843 `(("ruby-lino" ,ruby-lino)))
5844 (synopsis "Ruby wrapper around the Terraform command line interface")
5845 (description
5846 "This package provides a Ruby wrapper around the Terraform command line
5847interface so that Terraform can be more easily invoked from Ruby code.")
5848 (home-page "https://github.com/infrablocks/ruby_terraform")
5849 (license license:expat)))
5850
5851(define-public ruby-pstree
5852 (package
5853 (name "ruby-pstree")
5854 (version "0.1.0")
5855 (source (origin
5856 (method url-fetch)
5857 (uri (rubygems-uri "pstree" version))
5858 (sha256
5859 (base32
5860 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5861 (build-system ruby-build-system)
5862 (native-inputs
5863 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5864 ("bundler" ,bundler)))
5865 (synopsis "Create a process tree data structure")
5866 (description
5867 "This library uses the output of the @code{ps} command to create a
5868process tree data structure for the current host.")
5869 (home-page "https://github.com/flori/pstree")
5870 ;; There is no mention of the "or later" clause.
5871 (license license:gpl2)))
5872
5873(define-public ruby-utils
5874 (package
5875 (name "ruby-utils")
5876 (version "0.9.0")
5877 (source (origin
5878 (method url-fetch)
5879 (uri (rubygems-uri "utils" version))
5880 (sha256
5881 (base32
5882 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5883 (build-system ruby-build-system)
5884 (propagated-inputs
5885 `(("ruby-tins" ,ruby-tins)
5886 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5887 ("ruby-pstree" ,ruby-pstree)
5888 ("ruby-pry-editline" ,ruby-pry-editline)))
5889 (native-inputs
5890 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5891 ("bundler" ,bundler)))
5892 (synopsis "Command line tools for working with Ruby")
5893 (description
5894 "This package provides assorted command line tools that may be useful
5895when working with Ruby code.")
5896 (home-page "https://github.com/flori/utils")
5897 ;; There is no mention of the "or later" clause.
5898 (license license:gpl2)))
5899
5900(define-public ruby-jaro-winkler
5901 (package
5902 (name "ruby-jaro-winkler")
5903 (version "1.5.4")
5904 (source
5905 (origin
5906 (method url-fetch)
5907 (uri (rubygems-uri "jaro_winkler" version))
5908 (sha256
5909 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5910 (build-system ruby-build-system)
5911 (arguments
5912 '(#:tests? #f)) ; no included tests
5913 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5914 (description
5915 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5916algorithm. It is written as a C extension and will fallback to a pure Ruby
5917implementation on platforms where this is unsupported.")
5918 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5919 (license license:expat)))
5920
5921(define-public ruby-json
5922 (package
5923 (name "ruby-json")
5924 (version "2.1.0")
5925 (source
5926 (origin
5927 (method url-fetch)
5928 (uri (rubygems-uri "json" version))
5929 (sha256
5930 (base32
5931 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5932 (build-system ruby-build-system)
5933 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5934 (synopsis "JSON library for Ruby")
5935 (description "This Ruby library provides a JSON implementation written as
5936a native C extension.")
5937 (home-page "http://json-jruby.rubyforge.org/")
5938 (license (list license:ruby license:gpl2)))) ; GPL2 only
5939
5940(define-public ruby-json-pure
5941 (package
5942 (name "ruby-json-pure")
5943 (version "2.2.0")
5944 (source (origin
5945 (method url-fetch)
5946 (uri (rubygems-uri "json_pure" version))
5947 (sha256
5948 (base32
5949 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5950 (build-system ruby-build-system)
5951 (arguments
5952 `(#:phases
5953 (modify-phases %standard-phases
5954 (add-after 'unpack 'fix-rakefile
5955 (lambda _
5956 (substitute* "Rakefile"
5957 ;; Since this is not a git repository, do not call 'git'.
5958 (("`git ls-files`") "`find . -type f |sort`")
5959 ;; Loosen dependency constraint.
5960 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5961 #t))
5962 (add-after 'replace-git-ls-files 'regenerate-gemspec
5963 (lambda _
5964 ;; Regenerate gemspec so loosened dependency constraints are
5965 ;; propagated.
5966 (invoke "rake" "gemspec")))
5967 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5968 (lambda _
5969 ;; This gemspec doesn't look to be generated by the above
5970 ;; command, so patch it separately.
5971 (substitute* "json-java.gemspec"
5972 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5973 "%q<test-unit>.freeze, [\">= 2.0\"]"))
5974 #t)))))
5975 (native-inputs
5976 `(("bundler" ,bundler)
5977 ("ragel" ,ragel)
5978 ("ruby-simplecov" ,ruby-simplecov)
5979 ("ruby-test-unit" ,ruby-test-unit)))
5980 (synopsis "JSON implementation in pure Ruby")
5981 (description
5982 "This package provides a JSON implementation written in pure Ruby.")
5983 (home-page "https://flori.github.com/json/")
5984 (license license:ruby)))
5985
5986(define-public ruby-jwt
5987 (package
5988 (name "ruby-jwt")
5989 (version "2.1.0")
5990 (source
5991 (origin
5992 (method url-fetch)
5993 (uri (rubygems-uri "jwt" version))
5994 (sha256
5995 (base32
5996 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
5997 (build-system ruby-build-system)
5998 (arguments
5999 '(#:test-target "test"
6000 #:phases
6001 (modify-phases %standard-phases
6002 (add-after 'unpack 'remove-unnecessary-dependencies
6003 (lambda _
6004 (substitute* "spec/spec_helper.rb"
6005 (("require 'simplecov.*") "\n")
6006 ;; Use [].each to disable running the SimpleCov configuration
6007 ;; block
6008 (("SimpleCov\\.configure") "[].each")
6009 (("require 'codeclimate-test-reporter'") "")
6010 (("require 'codacy-coverage'") "")
6011 (("Codacy::Reporter\\.start") ""))
6012 #t)))))
6013 (native-inputs
6014 `(("bundler" ,bundler)
6015 ("ruby-rspec" ,ruby-rspec)
6016 ("ruby-rbnacl" ,ruby-rbnacl)))
6017 (synopsis "Ruby implementation of the JSON Web Token standard")
6018 (description
6019 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6020@acronym{JWT, JSON Web Token} standard.")
6021 (home-page "https://github.com/jwt/ruby-jwt")
6022 (license license:expat)))
6023
6024;; Even though this package only provides bindings for a Mac OSX API it is
6025;; required by "ruby-listen" at runtime.
6026(define-public ruby-rb-fsevent
6027 (package
6028 (name "ruby-rb-fsevent")
6029 (version "0.10.3")
6030 (source (origin
6031 (method url-fetch)
6032 (uri (rubygems-uri "rb-fsevent" version))
6033 (sha256
6034 (base32
6035 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6036 (build-system ruby-build-system)
6037 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6038 ;; "listen", which needs "rb-fsevent" at runtime.
6039 (arguments `(#:tests? #f))
6040 (synopsis "FSEvents API with signals catching")
6041 (description
6042 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6043 (home-page "https://rubygems.org/gems/rb-fsevent")
6044 (license license:expat)))
6045
6046(define-public ruby-listen
6047 (package
6048 (name "ruby-listen")
6049 (version "3.2.0")
6050 (source
6051 (origin
6052 ;; The gem does not include a Rakefile, so fetch from the Git
6053 ;; repository.
6054 (method git-fetch)
6055 (uri (git-reference
6056 (url "https://github.com/guard/listen")
6057 (commit (string-append "v" version))))
6058 (file-name (git-file-name name version))
6059 (sha256
6060 (base32
6061 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6062 (build-system ruby-build-system)
6063 (arguments
6064 `(#:test-target "spec"
6065 #:phases
6066 (modify-phases %standard-phases
6067 (add-after 'unpack 'fix-files-in-gemspec
6068 (lambda _
6069 (substitute* "listen.gemspec"
6070 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6071 #t))
6072 (add-before 'check 'remove-unnecessary-dependencies'
6073 (lambda _
6074 (substitute* "Rakefile"
6075 ;; Rubocop is for code linting, and is unnecessary for running
6076 ;; the tests.
6077 ((".*rubocop.*") ""))
6078 #t)))))
6079 (native-inputs
6080 `(("bundler" ,bundler)
6081 ("ruby-rspec" ,ruby-rspec)))
6082 (inputs
6083 `(;; ruby-thor is used for the command line interface, and is referenced
6084 ;; in the wrapper, and therefore just needs to be an input.
6085 ("ruby-thor" ,ruby-thor)))
6086 (propagated-inputs
6087 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6088 ("ruby-rb-inotify" ,ruby-rb-inotify)
6089 ("ruby-dep" ,ruby-dep)))
6090 (synopsis "Listen to file modifications")
6091 (description "The Listen gem listens to file modifications and notifies
6092you about the changes.")
6093 (home-page "https://github.com/guard/listen")
6094 (license license:expat)))
6095
6096(define-public ruby-loofah
6097 (package
6098 (name "ruby-loofah")
6099 (version "2.2.3")
6100 (source
6101 (origin
6102 (method url-fetch)
6103 (uri (rubygems-uri "loofah" version))
6104 (sha256
6105 (base32
6106 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6107 (build-system ruby-build-system)
6108 (arguments
6109 '(#:phases
6110 (modify-phases %standard-phases
6111 (add-after 'unpack 'remove-unnecessary-dependencies
6112 (lambda _
6113 ;; concourse is a development tool which is unused, so remove it
6114 ;; so it's not required.
6115 (substitute* "Gemfile"
6116 ((".*\"concourse\".*") "\n"))
6117 (substitute* "Rakefile"
6118 (("require 'concourse'") "")
6119 (("Concourse\\.new.*") "\n"))
6120 #t)))))
6121 (native-inputs
6122 `(("ruby-hoe" ,ruby-hoe)
6123 ("ruby-rr" ,ruby-rr)))
6124 (propagated-inputs
6125 `(("ruby-nokogiri" ,ruby-nokogiri)
6126 ("ruby-crass" ,ruby-crass)))
6127 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6128 (description
6129 "Loofah is a general library for manipulating and transforming HTML/XML
6130documents and fragments. It's built on top of Nokogiri and libxml2.")
6131 (home-page "https://github.com/flavorjones/loofah")
6132 (license license:expat)))
6133
6134(define-public ruby-activesupport
6135 (package
6136 (name "ruby-activesupport")
6137 (version "5.2.2.1")
6138 (source
6139 (origin
6140 (method url-fetch)
6141 (uri (rubygems-uri "activesupport" version))
6142 (sha256
6143 (base32
6144 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6145 (build-system ruby-build-system)
6146 (arguments
6147 `(#:phases
6148 (modify-phases %standard-phases
6149 (replace 'check
6150 (lambda _
6151 ;; There are no tests, instead attempt to load the library.
6152 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6153 (propagated-inputs
6154 `(("ruby-concurrent" ,ruby-concurrent)
6155 ("ruby-i18n" ,ruby-i18n)
6156 ("ruby-minitest" ,ruby-minitest)
6157 ("ruby-tzinfo" ,ruby-tzinfo)
6158 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6159 (synopsis "Ruby on Rails utility library")
6160 (description "ActiveSupport is a toolkit of support libraries and Ruby
6161core extensions extracted from the Rails framework. It includes support for
6162multibyte strings, internationalization, time zones, and testing.")
6163 (home-page "http://www.rubyonrails.org")
6164 (license license:expat)))
6165
6166(define-public ruby-crass
6167 (package
6168 (name "ruby-crass")
6169 (version "1.0.6")
6170 (home-page "https://github.com/rgrove/crass")
6171 (source (origin
6172 ;; The gem does not contain tests, so pull from git.
6173 (method git-fetch)
6174 (uri (git-reference
6175 (url home-page)
6176 (commit (string-append "v" version))))
6177 (file-name (git-file-name name version))
6178 (sha256
6179 (base32
6180 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6181 (build-system ruby-build-system)
6182 (synopsis "Pure Ruby CSS parser")
6183 (description
6184 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6185 (license license:expat)))
6186
6187(define-public ruby-nokogumbo
6188 (package
6189 (name "ruby-nokogumbo")
6190 (version "2.0.2")
6191 (source (origin
6192 ;; We use the git reference, because there's no Rakefile in the
6193 ;; published gem and the tarball on Github is outdated.
6194 (method git-fetch)
6195 (uri (git-reference
6196 (url "https://github.com/rubys/nokogumbo")
6197 (commit (string-append "v" version))))
6198 (file-name (string-append name "-" version "-checkout"))
6199 (sha256
6200 (base32
6201 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6202 (build-system ruby-build-system)
6203 (native-inputs
6204 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6205 (inputs
6206 `(("gumbo-parser" ,gumbo-parser)))
6207 (propagated-inputs
6208 `(("ruby-nokogiri" ,ruby-nokogiri)))
6209 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6210 (description
6211 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6212access the result as a Nokogiri parsed document.")
6213 (home-page "https://github.com/rubys/nokogumbo/")
6214 (license license:asl2.0)))
6215
6216(define-public ruby-sanitize
6217 (package
6218 (name "ruby-sanitize")
6219 (version "5.1.0")
6220 (home-page "https://github.com/rgrove/sanitize")
6221 (source (origin
6222 (method git-fetch)
6223 ;; The gem does not include the Rakefile, so we download the
6224 ;; source from Github.
6225 (uri (git-reference
6226 (url home-page)
6227 (commit (string-append "v" version))))
6228 (file-name (git-file-name name version))
6229 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6230 (sha256
6231 (base32
6232 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6233 (build-system ruby-build-system)
6234 (propagated-inputs
6235 `(("ruby-crass" ,ruby-crass)
6236 ("ruby-nokogiri" ,ruby-nokogiri)
6237 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6238 (native-inputs
6239 `(("ruby-minitest" ,ruby-minitest)))
6240 (synopsis "Whitelist-based HTML and CSS sanitizer")
6241 (description
6242 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6243acceptable elements, attributes, and CSS properties, Sanitize will remove all
6244unacceptable HTML and/or CSS from a string.")
6245 (license license:expat)))
6246
6247(define-public ruby-oj
6248 (package
6249 (name "ruby-oj")
6250 (version "3.10.1")
6251 (source
6252 (origin
6253 (method git-fetch)
6254 ;; Version on rubygems.org does not contain Rakefile, so download from
6255 ;; GitHub instead.
6256 (uri (git-reference
6257 (url "https://github.com/ohler55/oj")
6258 (commit (string-append "v" version))))
6259 (file-name (git-file-name name version))
6260 (sha256
6261 (base32
6262 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6263 (build-system ruby-build-system)
6264 (arguments
6265 '(#:test-target "test_all"
6266 #:phases
6267 (modify-phases %standard-phases
6268 (add-before 'check 'disable-bundler
6269 (lambda _
6270 (substitute* "Rakefile"
6271 (("Bundler\\.with_clean_env") "1.times")
6272 (("bundle exec ") "")))))))
6273 (native-inputs
6274 `(("bundler" ,bundler)
6275 ("ruby-rspec" ,ruby-rspec)
6276 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6277 (synopsis "JSON parser for Ruby optimized for speed")
6278 (description
6279 "Oj is a JSON parser and generator for Ruby, where the encoding and
6280decoding of JSON is implemented as a C extension to Ruby.")
6281 (home-page "http://www.ohler.com/oj/")
6282 (license (list license:expat ; Ruby code
6283 license:bsd-3)))) ; extension code
6284
6285(define-public ruby-ox
6286 (package
6287 (name "ruby-ox")
6288 (version "2.6.0")
6289 (source
6290 (origin
6291 (method url-fetch)
6292 (uri (rubygems-uri "ox" version))
6293 (sha256
6294 (base32
6295 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6296 (build-system ruby-build-system)
6297 (arguments
6298 '(#:tests? #f)) ; no tests
6299 (synopsis "Optimized XML library for Ruby")
6300 (description
6301 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6302written as a native C extension. It was designed to be an alternative to
6303Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6304alternative to Marshal for Object serialization. ")
6305 (home-page "http://www.ohler.com/ox")
6306 (license license:expat)))
6307
6308(define-public ruby-redcloth
6309 (package
6310 (name "ruby-redcloth")
6311 (version "4.3.2")
6312 (source (origin
6313 (method url-fetch)
6314 (uri (rubygems-uri "RedCloth" version))
6315 (sha256
6316 (base32
6317 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6318 (build-system ruby-build-system)
6319 (arguments
6320 `(#:tests? #f ; no tests
6321 #:phases
6322 (modify-phases %standard-phases
6323 ;; Redcloth has complicated rake tasks to build various versions for
6324 ;; multiple targets using RVM. We don't want this so we just use the
6325 ;; existing gemspec.
6326 (replace 'build
6327 (lambda _
6328 (invoke "gem" "build" "redcloth.gemspec"))))))
6329 (native-inputs
6330 `(("bundler" ,bundler)
6331 ("ruby-diff-lcs" ,ruby-diff-lcs)
6332 ("ruby-rspec-2" ,ruby-rspec-2)))
6333 (synopsis "Textile markup language parser for Ruby")
6334 (description
6335 "RedCloth is a Ruby parser for the Textile markup language.")
6336 (home-page "http://redcloth.org")
6337 (license license:expat)))
6338
6339(define-public ruby-pg
6340 (package
6341 (name "ruby-pg")
6342 (version "1.1.4")
6343 (source
6344 (origin
6345 (method url-fetch)
6346 (uri (rubygems-uri "pg" version))
6347 (sha256
6348 (base32
6349 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
6350 (build-system ruby-build-system)
6351 (arguments
6352 '(#:test-target "spec"))
6353 (native-inputs
6354 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6355 ("ruby-hoe" ,ruby-hoe)
6356 ("ruby-rspec" ,ruby-rspec)))
6357 (inputs
6358 `(("postgresql" ,postgresql)))
6359 (synopsis "Ruby interface to PostgreSQL")
6360 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6361with PostgreSQL 9.0 and later.")
6362 (home-page "https://bitbucket.org/ged/ruby-pg")
6363 (license license:ruby)))
6364
6365(define-public ruby-byebug
6366 (package
6367 (name "ruby-byebug")
6368 (version "9.0.6")
6369 (source
6370 (origin
6371 (method url-fetch)
6372 (uri (rubygems-uri "byebug" version))
6373 (sha256
6374 (base32
6375 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6376 (build-system ruby-build-system)
6377 (arguments
6378 '(#:tests? #f)) ; no tests
6379 (synopsis "Debugger for Ruby 2")
6380 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6381TracePoint C API for execution control and the Debug Inspector C API for call
6382stack navigation. The core component provides support that front-ends can
6383build on. It provides breakpoint handling and bindings for stack frames among
6384other things and it comes with a command line interface.")
6385 (home-page "https://github.com/deivid-rodriguez/byebug")
6386 (license license:bsd-2)))
6387
6388;;; TODO: Make it the default byebug in core-updates.
6389(define-public ruby-byebug-11
6390 (package
6391 (inherit ruby-byebug)
6392 (name "ruby-byebug")
6393 (version "11.1.3")
6394 (source
6395 (origin
6396 (method git-fetch)
6397 (uri (git-reference
6398 (url "https://github.com/deivid-rodriguez/byebug")
6399 (commit (string-append "v" version))))
6400 (file-name (git-file-name name version))
6401 (sha256
6402 (base32
6403 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6404 (modules '((guix build utils)))
6405 (snippet
6406 '(begin
6407 ;; Remove wrappers that try to setup a bundle environment.
6408 (with-directory-excursion "bin"
6409 (for-each delete-file '("bundle" "rake" "rubocop"))
6410 ;; ruby-minitest doesn't come with a launcher, so fix the one
6411 ;; provided.
6412 (substitute* "minitest"
6413 (("load File\\.expand_path\\(\"bundle\".*") "")
6414 (("require \"bundler/setup\".*") "")))
6415 #t))))
6416 (arguments
6417 `(#:tests? #t
6418 #:phases
6419 (modify-phases %standard-phases
6420 (add-after 'unpack 'skip-tmp-path-sensitive-test
6421 (lambda _
6422 (substitute* "test/commands/where_test.rb"
6423 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6424 "unless true\n"))
6425 #t))
6426 (add-before 'build 'compile
6427 (lambda _
6428 (invoke "rake" "compile")))
6429 (add-before 'check 'set-home
6430 (lambda _
6431 (setenv "HOME" (getcwd))
6432 #t)))))
6433 (native-inputs
6434 `(("bundler" ,bundler)
6435 ("ruby-chandler" ,ruby-chandler)
6436 ("ruby-minitest" ,ruby-minitest)
6437 ("ruby-pry" ,ruby-pry)
6438 ("ruby-rake-compiler" ,ruby-rake-compiler)
6439 ("ruby-rubocop" ,ruby-rubocop)
6440 ("ruby-yard" ,ruby-yard)))))
6441
6442(define-public ruby-netrc
6443 (package
6444 (name "ruby-netrc")
6445 (version "0.11.0")
6446 (source (origin
6447 (method url-fetch)
6448 (uri (rubygems-uri "netrc" version))
6449 (sha256
6450 (base32
6451 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6452 (build-system ruby-build-system)
6453 (arguments
6454 `(#:phases
6455 (modify-phases %standard-phases
6456 (replace 'check
6457 ;; There is no Rakefile and minitest can only run one file at once,
6458 ;; so we have to iterate over all test files.
6459 (lambda _
6460 (for-each (lambda (file)
6461 (invoke "ruby" "-Itest" file))
6462 (find-files "./test" "test_.*\\.rb"))
6463 #t)))))
6464 (native-inputs
6465 `(("ruby-minitest" ,ruby-minitest)))
6466 (synopsis "Library to read and update netrc files")
6467 (description
6468 "This library can read and update netrc files, preserving formatting
6469including comments and whitespace.")
6470 (home-page "https://github.com/geemus/netrc")
6471 (license license:expat)))
6472
6473(define-public ruby-unf-ext
6474 (package
6475 (name "ruby-unf-ext")
6476 (version "0.0.7.6")
6477 (source (origin
6478 (method url-fetch)
6479 (uri (rubygems-uri "unf_ext" version))
6480 (sha256
6481 (base32
6482 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6483 (build-system ruby-build-system)
6484 (arguments
6485 `(#:phases
6486 (modify-phases %standard-phases
6487 (add-after 'build 'build-ext
6488 (lambda _ (invoke "rake" "compile:unf_ext")))
6489 (add-before 'check 'lose-rake-compiler-dock-dependency
6490 (lambda _
6491 ;; rake-compiler-dock is listed in the gemspec, but only
6492 ;; required when cross-compiling.
6493 (substitute* "unf_ext.gemspec"
6494 ((".*rake-compiler-dock.*") ""))
6495 #t)))))
6496 (native-inputs
6497 `(("bundler" ,bundler)
6498 ("ruby-rake-compiler" ,ruby-rake-compiler)
6499 ("ruby-test-unit" ,ruby-test-unit)))
6500 (synopsis "Unicode normalization form support library")
6501 (description
6502 "This package provides unicode normalization form support for Ruby.")
6503 (home-page "https://github.com/knu/ruby-unf_ext")
6504 (license license:expat)))
6505
6506(define-public ruby-tdiff
6507 ;; Use a newer than released snapshot so that rspec-2 is not required.
6508 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6509 (package
6510 (name "ruby-tdiff")
6511 (version (string-append "0.3.3-1." (string-take commit 8)))
6512 (source (origin
6513 (method git-fetch)
6514 (uri (git-reference
6515 (url "https://github.com/postmodern/tdiff")
6516 (commit commit)))
6517 (file-name (string-append name "-" version "-checkout"))
6518 (sha256
6519 (base32
6520 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6521 (build-system ruby-build-system)
6522 (native-inputs
6523 `(("ruby-rspec" ,ruby-rspec)
6524 ("ruby-yard" ,ruby-yard)
6525 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6526 (synopsis "Calculate the differences between two tree-like structures")
6527 (description
6528 "This library provides functions to calculate the differences between two
6529tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6530 (home-page "https://github.com/postmodern/tdiff")
6531 (license license:expat))))
6532
6533(define-public ruby-nokogiri-diff
6534 ;; Use a newer than released snapshot so that rspec-2 is not required.
6535 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6536 (package
6537 (name "ruby-nokogiri-diff")
6538 (version (string-append "0.2.0-1." (string-take commit 8)))
6539 (source (origin
6540 (method git-fetch)
6541 (uri (git-reference
6542 (url "https://github.com/postmodern/nokogiri-diff")
6543 (commit commit)))
6544 (file-name (string-append name "-" version "-checkout"))
6545 (sha256
6546 (base32
6547 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6548 (build-system ruby-build-system)
6549 (propagated-inputs
6550 `(("ruby-tdiff" ,ruby-tdiff)
6551 ("ruby-nokogiri" ,ruby-nokogiri)))
6552 (native-inputs
6553 `(("ruby-rspec" ,ruby-rspec)
6554 ("ruby-yard" ,ruby-yard)
6555 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6556 (synopsis "Calculate the differences between two XML/HTML documents")
6557 (description
6558 "@code{Nokogiri::Diff} adds the ability to calculate the
6559differences (added or removed nodes) between two XML/HTML documents.")
6560 (home-page "https://github.com/postmodern/nokogiri-diff")
6561 (license license:expat))))
6562
6563(define-public ruby-racc
6564 (package
6565 (name "ruby-racc")
6566 (version "1.4.14")
6567 (source
6568 (origin
6569 (method url-fetch)
6570 (uri (rubygems-uri "racc" version))
6571 (sha256
6572 (base32
6573 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6574 (build-system ruby-build-system)
6575 (native-inputs
6576 `(("ruby-hoe" ,ruby-hoe)
6577 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6578 (synopsis "LALR(1) parser generator for Ruby")
6579 (description
6580 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6581generates Ruby program.")
6582 (home-page "http://i.loveruby.net/en/projects/racc/")
6583 (license (list
6584 ;; Generally licensed under the LGPL2.1, and some files also
6585 ;; available under the same license as Ruby.
6586 license:lgpl2.1
6587 license:ruby))))
6588
6589(define-public ruby-rack
6590 (package
6591 (name "ruby-rack")
6592 (version "2.0.6")
6593 (source
6594 (origin
6595 (method git-fetch)
6596 ;; Download from GitHub so that the patch can be applied.
6597 (uri (git-reference
6598 (url "https://github.com/rack/rack")
6599 (commit version)))
6600 (file-name (git-file-name name version))
6601 (sha256
6602 (base32
6603 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6604 ;; Ignore test which fails inside the build environment but works
6605 ;; outside.
6606 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6607 (build-system ruby-build-system)
6608 (arguments
6609 '(#:phases
6610 (modify-phases %standard-phases
6611 (add-before 'check 'fix-tests
6612 (lambda _
6613 ;; A few of the tests use the length of a file on disk for
6614 ;; Content-Length and Content-Range headers. However, this file
6615 ;; has a shebang in it which an earlier phase patches, growing
6616 ;; the file size from 193 to 239 bytes when the store prefix is
6617 ;; "/gnu/store".
6618 (let ((size-diff (- (string-length (which "ruby"))
6619 (string-length "/usr/bin/env ruby"))))
6620 (substitute* '("test/spec_file.rb")
6621 (("193")
6622 (number->string (+ 193 size-diff)))
6623 (("bytes(.)22-33" all delimiter)
6624 (string-append "bytes"
6625 delimiter
6626 (number->string (+ 22 size-diff))
6627 "-"
6628 (number->string (+ 33 size-diff))))))
6629 #t))
6630 (add-before 'reset-gzip-timestamps 'make-files-writable
6631 (lambda* (#:key outputs #:allow-other-keys)
6632 ;; Make sure .gz files are writable so that the
6633 ;; 'reset-gzip-timestamps' phase can do its work.
6634 (let ((out (assoc-ref outputs "out")))
6635 (for-each make-file-writable
6636 (find-files out "\\.gz$"))
6637 #t))))))
6638 (native-inputs
6639 `(("ruby-minitest" ,ruby-minitest)
6640 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6641 ("which" ,which)))
6642 (propagated-inputs
6643 `(("ruby-concurrent" ,ruby-concurrent)))
6644 (synopsis "Unified web application interface for Ruby")
6645 (description "Rack provides a minimal, modular and adaptable interface for
6646developing web applications in Ruby. By wrapping HTTP requests and responses,
6647it unifies the API for web servers, web frameworks, and software in between
6648into a single method call.")
6649 (home-page "https://rack.github.io/")
6650 (license license:expat)))
6651
6652(define-public ruby-rack-test
6653 (package
6654 (name "ruby-rack-test")
6655 (version "0.8.3")
6656 (source
6657 (origin
6658 (method url-fetch)
6659 (uri (rubygems-uri "rack-test" version))
6660 (sha256
6661 (base32
6662 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6663 (build-system ruby-build-system)
6664 (arguments
6665 ;; Disable tests because of circular dependencies: requires sinatra,
6666 ;; which requires rack-protection, which requires rack-test. Instead
6667 ;; simply require the library.
6668 `(#:phases
6669 (modify-phases %standard-phases
6670 (replace 'check
6671 (lambda _
6672 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6673 (propagated-inputs
6674 `(("ruby-rack" ,ruby-rack)))
6675 (synopsis "Testing API for Rack applications")
6676 (description
6677 "Rack::Test is a small, simple testing API for Rack applications. It can
6678be used on its own or as a reusable starting point for Web frameworks and
6679testing libraries to build on.")
6680 (home-page "https://github.com/rack-test/rack-test")
6681 (license license:expat)))
6682
6683(define-public ruby-rack-protection
6684 (package
6685 (name "ruby-rack-protection")
6686 (version "2.0.5")
6687 (source
6688 (origin
6689 (method url-fetch)
6690 (uri (rubygems-uri "rack-protection" version))
6691 (sha256
6692 (base32
6693 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6694 (build-system ruby-build-system)
6695 (arguments
6696 '(;; Tests missing from the gem.
6697 #:tests? #f))
6698 (propagated-inputs
6699 `(("ruby-rack" ,ruby-rack)))
6700 (native-inputs
6701 `(("bundler" ,bundler)
6702 ("ruby-rspec" ,ruby-rspec-2)
6703 ("ruby-rack-test" ,ruby-rack-test)))
6704 (synopsis "Rack middleware that protects against typical web attacks")
6705 (description "Rack middleware that can be used to protect against typical
6706web attacks. It can protect all Rack apps, including Rails. For instance, it
6707protects against cross site request forgery, cross site scripting,
6708clickjacking, directory traversal, session hijacking and IP spoofing.")
6709 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6710 (license license:expat)))
6711
6712(define-public ruby-rainbow
6713 (package
6714 (name "ruby-rainbow")
6715 (version "3.0.0")
6716 (source
6717 (origin
6718 (method url-fetch)
6719 (uri (rubygems-uri "rainbow" version))
6720 (sha256
6721 (base32
6722 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6723 (build-system ruby-build-system)
6724 (arguments
6725 '(#:phases
6726 (modify-phases %standard-phases
6727 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6728 ;; the Rakefile.
6729 (replace 'check
6730 (lambda* (#:key tests? #:allow-other-keys)
6731 (when tests?
6732 (invoke "rspec"))
6733 #t)))))
6734 (native-inputs
6735 `(("bundler" ,bundler)
6736 ("ruby-rspec" ,ruby-rspec)))
6737 (synopsis "Colorize printed text on ANSI terminals")
6738 (description
6739 "@code{rainbow} provides a string presenter object to colorize strings by
6740wrapping them in ANSI escape codes.")
6741 (home-page "https://github.com/sickill/rainbow")
6742 (license license:expat)))
6743
6744(define-public ruby-rr
6745 (package
6746 (name "ruby-rr")
6747 (version "1.2.1")
6748 (source
6749 (origin
6750 (method url-fetch)
6751 (uri (rubygems-uri "rr" version))
6752 (sha256
6753 (base32
6754 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6755 (build-system ruby-build-system)
6756 (arguments
6757 '(#:tests? #f)) ; test files not included
6758 (native-inputs
6759 `(("bundler" ,bundler)
6760 ("ruby-rspec" ,ruby-rspec)))
6761 (synopsis "Ruby test double framework")
6762 (description
6763 "RR is a test double framework that features a rich selection of double
6764techniques and a terse syntax.")
6765 (home-page "https://rr.github.io/rr/")
6766 (license license:expat)))
6767
6768(define-public ruby-rest-client
6769 (package
6770 (name "ruby-rest-client")
6771 (version "2.0.2")
6772 (source
6773 (origin
6774 (method url-fetch)
6775 (uri (rubygems-uri "rest-client" version))
6776 (sha256
6777 (base32
6778 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6779 (build-system ruby-build-system)
6780 (arguments
6781 '(#:phases
6782 (modify-phases %standard-phases
6783 (add-before 'check 'remove-unnecessary-development-dependencies
6784 (lambda _
6785 (substitute* "rest-client.gemspec"
6786 ;; Remove rubocop as it's unused. Rubocop also indirectly
6787 ;; depends on this package through ruby-parser and ruby-ast so
6788 ;; this avoids a dependency loop.
6789 ((".*rubocop.*") "\n")
6790 ;; Remove pry as it's unused, it's a debugging tool
6791 ((".*pry.*") "\n")
6792 ;; Remove an unnecessarily strict rdoc dependency
6793 ((".*rdoc.*") "\n"))
6794 #t))
6795 (add-before 'check 'delete-network-dependent-tests
6796 (lambda _
6797 (delete-file "spec/integration/request_spec.rb")
6798 (delete-file "spec/integration/httpbin_spec.rb")
6799 #t)))))
6800 (propagated-inputs
6801 `(("ruby-http-cookie" ,ruby-http-cookie)
6802 ("ruby-mime-types" ,ruby-mime-types)
6803 ("ruby-netrc" ,ruby-netrc)))
6804 (native-inputs
6805 `(("bundler" ,bundler)
6806 ("ruby-webmock" ,ruby-webmock-2)
6807 ("ruby-rspec" ,ruby-rspec)))
6808 (synopsis "Simple HTTP and REST client for Ruby")
6809 (description
6810 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6811inspired by the Sinatra microframework style of specifying actions:
6812@code{get}, @code{put}, @code{post}, @code{delete}.")
6813 (home-page "https://github.com/rest-client/rest-client")
6814 (license license:expat)))
6815
6816(define-public ruby-rubocop-ast
6817 (package
6818 (name "ruby-rubocop-ast")
6819 (version "0.3.0")
6820 (source
6821 (origin
6822 (method git-fetch) ;no test suite in distributed gem
6823 (uri (git-reference
6824 (url "https://github.com/rubocop-hq/rubocop-ast.git")
6825 (commit (string-append "v" version))))
6826 (file-name (git-file-name name version))
6827 (sha256
6828 (base32
6829 "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04"))))
6830 (build-system ruby-build-system)
6831 (arguments
6832 `(#:test-target "spec"
6833 #:phases (modify-phases %standard-phases
6834 (add-after 'unpack 'disable-bundler
6835 (lambda _
6836 (substitute* "Rakefile"
6837 (("Bundler\\.setup.*") "nil\n"))
6838 #t))
6839 (replace 'replace-git-ls-files
6840 (lambda _
6841 (substitute* "rubocop-ast.gemspec"
6842 (("`git ls-files(.*)`" _ files)
6843 (format #f "`find ~a -type f| sort`" files)))
6844 #t)))))
6845 (native-inputs
6846 `(("ruby-bump" ,ruby-bump)
6847 ("ruby-rspec" ,ruby-rspec)))
6848 (propagated-inputs
6849 `(("ruby-parser" ,ruby-parser)))
6850 (synopsis "RuboCop's AST extensions and NodePattern functionality")
6851 (description "Rubocop::AST extends @code{ruby-parser} with classes used
6852by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
6853@itemize
6854@item @code{RuboCop::AST::Node}
6855@item @code{RuboCop::AST::NodePattern}
6856@end itemize")
6857 (home-page "https://rubocop.org/")
6858 (license license:expat)))
6859
6860(define-public ruby-rexml
6861 (package
6862 (name "ruby-rexml")
6863 (version "3.2.4")
6864 (source
6865 (origin
6866 (method git-fetch) ;no tests in distributed gem
6867 (uri (git-reference
6868 (url "https://github.com/ruby/rexml.git")
6869 (commit (string-append "v" version))))
6870 (file-name (git-file-name name version))
6871 (sha256
6872 (base32
6873 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
6874 (build-system ruby-build-system)
6875 (synopsis "XML toolkit for Ruby")
6876 (description "Inspired by Electric XML library for Java, REXML aims to be
6877easy-to-use API, small and fast. It supports both tree and stream document
6878parsing.")
6879 (home-page "https://github.com/ruby/rexml")
6880 (license license:bsd-2)))
6881
6882(define-public ruby-character-set
6883 (package
6884 (name "ruby-character-set")
6885 (version "1.4.0")
6886 (source
6887 (origin
6888 (method url-fetch)
6889 (uri (rubygems-uri "character_set" version))
6890 (sha256
6891 (base32
6892 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
6893 (build-system ruby-build-system)
6894 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
6895 (synopsis "Ruby library to manipulate Unicode")
6896 (description "CharacterSet is a C-extended Ruby library to work with sets
6897of Unicode code points. It can read and write these sets in various formats
6898and implements the @code{stdlib} @code{Set} interface for them. It also
6899offers an alternate paradigm of @code{String} processing which grants much
6900better performance than @code{Regexp} and @code{String} methods from the
6901@code{stdlib} where applicable. Many parts can be used independently, e.g.:
6902@itemize
6903@item @code{CharacterSet::Character}
6904@item @code{CharacterSet::Parser}
6905@item @code{CharacterSet::Writer}
6906@item @code{RangeCompressor}
6907@end itemize")
6908 (home-page "https://github.com/jaynetics/character_set")
6909 (license license:expat)))
6910
6911(define-public ruby-range-compressor
6912 (package
6913 (name "ruby-range-compressor")
6914 (version "1.0.0")
6915 (source
6916 (origin
6917 (method git-fetch)
6918 (uri (git-reference
6919 (url "https://github.com/janosch-x/range_compressor.git")
6920 (commit (string-append "v" version))))
6921 (file-name (git-file-name name version))
6922 (sha256
6923 (base32
6924 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
6925 (build-system ruby-build-system)
6926 (arguments
6927 `(#:test-target "spec"
6928 #:phases (modify-phases %standard-phases
6929 (add-after 'extract-gemspec 'strip-version-requirements
6930 (lambda _
6931 (substitute* "range_compressor.gemspec"
6932 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6933 (string-append stripped "\n")))
6934 #t)))))
6935 (native-inputs
6936 `(("ruby-rspec" ,ruby-rspec)))
6937 (synopsis "Simple arrays of objects to arrays of ranges compressor")
6938 (description "RangeCompresses is a tiny library that allows compressing
6939arrays of objects into arrays of ranges. For example, it can turn the
6940following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
6941 (home-page "https://github.com/janosch-x/range_compressor")
6942 (license license:expat)))
6943
6944(define-public ruby-regexp-property-values
6945 (package
6946 (name "ruby-regexp-property-values")
6947 (version "1.0.0")
6948 (source
6949 (origin
6950 (method git-fetch)
6951 (uri (git-reference ;no test suite in distributed gem
6952 (url "https://github.com/jaynetics/regexp_property_values.git")
6953 (commit (string-append "v" version))))
6954 (file-name (git-file-name name version))
6955 (sha256
6956 (base32
6957 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
6958 (build-system ruby-build-system)
6959 (arguments
6960 '(#:test-target "default"))
6961 (native-inputs
6962 `(("ruby-character-set" ,ruby-character-set)
6963 ("ruby-rake-compiler" ,ruby-rake-compiler)
6964 ("ruby-range-compressor" ,ruby-range-compressor)
6965 ("ruby-rspec" ,ruby-rspec)))
6966 (synopsis "Inspect Ruby's regex engine property values")
6967 (description "This small library lets you see which property values are
6968supported by the regular expression engine of the Ruby version you are running
6969and can directly read out their code point ranges. In other words, it
6970determines all supported values for @code{\\p{value}} expressions and what
6971they match.")
6972 (home-page "https://github.com/jaynetics/regexp_property_values")
6973 (license license:expat)))
6974
6975(define-public ruby-regexp-parser
6976 (package
6977 (name "ruby-regexp-parser")
6978 (version "1.7.1")
6979 (source
6980 (origin
6981 (method git-fetch) ;bin/test missing from gem
6982 (uri (git-reference
6983 (url "https://github.com/ammar/regexp_parser.git")
6984 (commit (string-append "v" version))))
6985 (file-name (git-file-name name version))
6986 (sha256
6987 (base32
6988 "0dk9d4vpw31cc06s29fqyr1kq0kipym1mydifkcrnppvpl3pd53r"))))
6989 (build-system ruby-build-system)
6990 (arguments
6991 '(#:test-target "default"
6992 #:phases (modify-phases %standard-phases
6993 (add-before 'build 'compile-scanner.rb
6994 (lambda _
6995 (invoke "rake" "build")
6996 ;; XXX: This is needed otherwise the install
6997 ;; phase fails to delete the installed cached
6998 ;; gem file.
6999 (delete-file-recursively "pkg")
7000 #t)))))
7001 (native-inputs
7002 `(("ragel" ,ragel)
7003 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7004 ("ruby-rspec" ,ruby-rspec)))
7005 (synopsis "A regular expression parser library for Ruby ")
7006 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7007expressions. It comprises the following components:
7008@itemize
7009@item A scanner/tokenizer based on Ragel,
7010@item A lexer that produces a stream of token objects,
7011@item A parser that produces a tree of Expression objects.
7012@end itemize")
7013 (home-page "https://github.com/ammar/regexp_parser")
7014 (license license:expat)))
7015
7016(define-public ruby-test-queue
7017 (package
7018 (name "ruby-test-queue")
7019 (version "0.4.2")
7020 (source
7021 (origin
7022 (method url-fetch)
7023 (uri (rubygems-uri "test-queue" version))
7024 (sha256
7025 (base32
7026 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7027 (build-system ruby-build-system)
7028 (arguments
7029 '(#:phases
7030 (modify-phases %standard-phases
7031 (replace 'check
7032 (lambda* (#:key tests? #:allow-other-keys)
7033 (when tests?
7034 (invoke "rspec"))
7035 #t)))))
7036 (native-inputs
7037 `(("ruby-rspec" ,ruby-rspec)))
7038 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7039 (description "The test-queue module is a parallel test runner,
7040built using a centralized queue to ensure optimal distribution of
7041tests between workers. It is specifically optimized for Continuous
7042Integration (CI) environments: build statistics from each run are
7043stored locally and used to sort the queue at the beginning of the next
7044run.")
7045 (home-page "https://github.com/tmm1/test-queue")
7046 (license license:expat)))
7047
7048(define-public ruby-rubocop
7049 (package
7050 (name "ruby-rubocop")
7051 (version "0.88.0")
7052 (source
7053 (origin
7054 (method git-fetch) ;no tests in distributed gem
7055 (uri (git-reference
7056 (url "https://github.com/rubocop-hq/rubocop.git")
7057 (commit (string-append "v" version))))
7058 (file-name (git-file-name name version))
7059 (sha256
7060 (base32
7061 "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r"))
7062 (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch"))))
7063 (build-system ruby-build-system)
7064 (arguments
7065 '(#:test-target "default"
7066 #:phases
7067 (modify-phases %standard-phases
7068 (add-after 'unpack 'remove-problematic-tests
7069 ;; These tests depend on Rubocop extensions, which cannot be
7070 ;; included as they cause a dependency cycle with Rubocop itself.
7071 (lambda _
7072 (delete-file "spec/rubocop/config_loader_spec.rb")
7073 (substitute* "Gemfile"
7074 ((".*'rubocop-performance'.*") "")
7075 ((".*'rubocop-rspec'.*") ""))
7076 ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)"
7077 ;; errors.
7078 (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$")
7079 (("# (rubocop:(enable|disable) RSpec.*)" _ what)
7080 (string-append "# Disabled: " what)))
7081 #t))
7082 (add-after 'unpack 'disable-bundler
7083 (lambda _
7084 (substitute* "Rakefile"
7085 (("Bundler\\.setup.*") "nil\n"))
7086 #t))
7087 (replace 'replace-git-ls-files
7088 (lambda _
7089 (substitute* "rubocop.gemspec"
7090 (("`git ls-files(.*)`" _ files)
7091 (format #f "`find ~a -type f| sort`" files)))
7092 #t))
7093 (add-before 'check 'set-home
7094 (lambda _
7095 (setenv "HOME" (getcwd))
7096 #t))
7097 (add-before 'check 'make-adoc-files-writable
7098 (lambda _
7099 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7100 "\\.adoc$")))
7101 (for-each make-file-writable adoc-files))
7102 #t)))))
7103 (native-inputs
7104 `(("ruby-bump" ,ruby-bump)
7105 ("ruby-pry" ,ruby-pry)
7106 ("ruby-rspec" ,ruby-rspec)
7107 ("ruby-test-queue" ,ruby-test-queue)
7108 ("ruby-webmock" ,ruby-webmock-2)
7109 ("ruby-yard" ,ruby-yard)))
7110 (propagated-inputs
7111 `(("ruby-parallel" ,ruby-parallel)
7112 ("ruby-parser" ,ruby-parser)
7113 ("ruby-rainbow" ,ruby-rainbow)
7114 ("ruby-regexp-parser" ,ruby-regexp-parser)
7115 ("ruby-rexml" ,ruby-rexml)
7116 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7117 ("ruby-progressbar" ,ruby-progressbar)
7118 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7119 (synopsis "Ruby code style checking tool")
7120 (description
7121 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7122the community-driven Ruby Style Guide.")
7123 (home-page "https://github.com/rubocop-hq/rubocop")
7124 (license license:expat)))
7125
7126(define-public ruby-contest
7127 (package
7128 (name "ruby-contest")
7129 (version "0.1.3")
7130 (source
7131 (origin
7132 (method url-fetch)
7133 (uri (rubygems-uri "contest" version))
7134 (sha256
7135 (base32
7136 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7137 (build-system ruby-build-system)
7138 (synopsis "Write declarative tests using nested contexts")
7139 (description
7140 "Contest allows writing declarative @code{Test::Unit} tests using nested
7141contexts without performance penalties.")
7142 (home-page "https://github.com/citrusbyte/contest")
7143 (license license:expat)))
7144
7145(define-public ruby-creole
7146 (package
7147 (name "ruby-creole")
7148 (version "0.5.0")
7149 (source
7150 (origin
7151 (method url-fetch)
7152 (uri (rubygems-uri "creole" version))
7153 (sha256
7154 (base32
7155 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7156 (build-system ruby-build-system)
7157 (native-inputs
7158 `(("ruby-bacon" ,ruby-bacon)))
7159 (synopsis "Creole markup language converter")
7160 (description
7161 "Creole is a lightweight markup language and this library for converting
7162creole to @code{HTML}.")
7163 (home-page "https://github.com/minad/creole")
7164 (license license:ruby)))
7165
7166(define-public ruby-docile
7167 (package
7168 (name "ruby-docile")
7169 (version "1.1.5")
7170 (source
7171 (origin
7172 (method url-fetch)
7173 (uri (rubygems-uri "docile" version))
7174 (sha256
7175 (base32
7176 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7177 (build-system ruby-build-system)
7178 (arguments
7179 '(#:tests? #f)) ; needs github-markup, among others
7180 (synopsis "Ruby EDSL helper library")
7181 (description "Docile is a Ruby library that provides an interface for
7182creating embedded domain specific languages (EDSLs) that manipulate existing
7183Ruby classes.")
7184 (home-page "https://ms-ati.github.io/docile/")
7185 (license license:expat)))
7186
7187(define-public ruby-middleware
7188 (package
7189 (name "ruby-middleware")
7190 (version "0.1.0")
7191 (source
7192 (origin
7193 (method url-fetch)
7194 (uri (rubygems-uri "middleware" version))
7195 (sha256
7196 (base32
7197 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7198 (build-system ruby-build-system)
7199 (arguments '(#:tests? #f)) ;no test suite
7200 (synopsis "Implementation of a middleware abstraction for Ruby")
7201 (description "Middleware is a generalized implementation of a middleware
7202abstraction for Ruby.")
7203 (home-page "https://github.com/mitchellh/middleware")
7204 (license license:expat)))
7205
7206(define-public ruby-benchmark-ips
7207 (package
7208 (name "ruby-benchmark-ips")
7209 (version "2.8.2")
7210 (source
7211 (origin
7212 (method url-fetch)
7213 (uri (rubygems-uri "benchmark-ips" version))
7214 (sha256
7215 (base32
7216 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7217 (build-system ruby-build-system)
7218 (native-inputs
7219 `(("ruby-hoe" ,ruby-hoe)))
7220 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7221 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7222iterations per second count. For short snippets of code, it can automatically
7223figure out how many times to run the code to get interesting data.")
7224 (home-page "https://github.com/evanphx/benchmark-ips")
7225 (license license:expat)))
7226
7227(define-public ruby-ffi-rzmq-core
7228 (package
7229 (name "ruby-ffi-rzmq-core")
7230 (version "1.0.7")
7231 (source
7232 (origin
7233 (method url-fetch)
7234 (uri (rubygems-uri "ffi-rzmq-core" version))
7235 (sha256
7236 (base32
7237 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7238 (build-system ruby-build-system)
7239 (arguments
7240 `(#:phases
7241 (modify-phases %standard-phases
7242 (add-after 'unpack 'patch-libzmq-search-path
7243 (lambda* (#:key inputs #:allow-other-keys)
7244 (let ((zeromq (assoc-ref inputs "zeromq")))
7245 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7246 (("/usr/local/lib")
7247 (string-append zeromq "/lib")))
7248 #t)))
7249 (replace 'check
7250 (lambda _
7251 (invoke "rspec"))))))
7252 (native-inputs
7253 `(("ruby-rspec" ,ruby-rspec)))
7254 (inputs
7255 `(("zeromq" ,zeromq)))
7256 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7257 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7258 (description "This library only provides the FFI wrapper for the ZeroMQ
7259networking library. It can be used to implement a Ruby API for the ZeroMQ
7260library.")
7261 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7262 (license license:expat)))
7263
7264(define-public ruby-ffi-rzmq
7265 (package
7266 (name "ruby-ffi-rzmq")
7267 (version "2.0.7")
7268 (source
7269 (origin
7270 (method url-fetch)
7271 (uri (rubygems-uri "ffi-rzmq" version))
7272 (sha256
7273 (base32
7274 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7275 (build-system ruby-build-system)
7276 (arguments '(#:tests? #t
7277 #:phases (modify-phases %standard-phases
7278 (replace 'check
7279 (lambda _
7280 (invoke "rspec"))))))
7281 (native-inputs
7282 `(("ruby-rspec" ,ruby-rspec)))
7283 (propagated-inputs
7284 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7285 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7286 (description "This library provides a high-level API that wraps the ZeroMQ
7287networking library using the Ruby foreign function interface (FFI). It is a
7288pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7289for FFI.")
7290 (home-page "https://github.com/chuckremes/ffi-rzmq")
7291 (license license:expat)))
7292
7293(define-public ruby-sawyer
7294 (package
7295 (name "ruby-sawyer")
7296 (version "0.8.2")
7297 (source
7298 (origin
7299 (method url-fetch)
7300 (uri (rubygems-uri "sawyer" version))
7301 (sha256
7302 (base32
7303 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7304 (build-system ruby-build-system)
7305 (propagated-inputs
7306 `(("ruby-addressable" ,ruby-addressable)
7307 ("ruby-faraday" ,ruby-faraday)))
7308 (synopsis "Experimental hypermedia agent for Ruby")
7309 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7310top of Faraday.")
7311 (home-page "https://github.com/lostisland/sawyer")
7312 (license license:expat)))
7313
7314(define-public ruby-octokit
7315 (package
7316 (name "ruby-octokit")
7317 (version "4.18.0")
7318 (source
7319 (origin
7320 (method url-fetch)
7321 (uri (rubygems-uri "octokit" version))
7322 (sha256
7323 (base32
7324 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7325 (build-system ruby-build-system)
7326 (arguments '(#:tests? #f)) ;no test suite in the gem release
7327 (propagated-inputs
7328 `(("ruby-faraday" ,ruby-faraday)
7329 ("ruby-sawyer" ,ruby-sawyer)))
7330 (synopsis "Ruby toolkit for the GitHub API")
7331 (description "Octokit wraps the GitHub API in a flat API client that
7332follows Ruby conventions and requires little knowledge of REST.")
7333 (home-page "https://github.com/octokit/octokit.rb")
7334 (license license:expat)))
7335
7336(define-public ruby-chandler
7337 (package
7338 (name "ruby-chandler")
7339 (version "0.9.0")
7340 (source
7341 (origin
7342 (method url-fetch)
7343 (uri (rubygems-uri "chandler" version))
7344 (sha256
7345 (base32
7346 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7347 (build-system ruby-build-system)
7348 (native-inputs
7349 `(("ruby-rubocop" ,ruby-rubocop)))
7350 (propagated-inputs
7351 `(("ruby-netrc" ,ruby-netrc)
7352 ("ruby-octokit" ,ruby-octokit)))
7353 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7354 (description "Chandler syncs a project's CHANGELOG file entries to
7355GitHub's release notes to remove the need of manually entering release
7356notes.")
7357 (home-page "https://github.com/mattbrictson/chandler")
7358 (license license:expat)))
7359
7360(define-public ruby-pry-byebug
7361 (package
7362 (name "ruby-pry-byebug")
7363 (version "3.9.0")
7364 (source
7365 (origin
7366 (method git-fetch)
7367 (uri (git-reference
7368 (url "https://github.com/deivid-rodriguez/pry-byebug")
7369 (commit (string-append "v" version))))
7370 (file-name (git-file-name name version))
7371 (sha256
7372 (base32
7373 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7374 (build-system ruby-build-system)
7375 (arguments
7376 `(#:phases (modify-phases %standard-phases
7377 (add-before 'check 'set-home
7378 (lambda _
7379 (setenv "HOME" (getcwd))
7380 #t)))))
7381 (native-inputs
7382 `(("ruby-chandler" ,ruby-chandler)
7383 ("ruby-rubocop" ,ruby-rubocop)
7384 ("ruby-simplecov" ,ruby-simplecov)))
7385 (propagated-inputs
7386 `(("ruby-byebug" ,ruby-byebug-11)
7387 ("ruby-pry" ,ruby-pry)))
7388 (synopsis "Step-by-step debugging and stack navigation in Pry")
7389 (description "This package adds step-by-step debugging and stack
7390navigation capabilities to @code{pry}, using @code{byebug}.")
7391 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7392 (license license:expat)))
7393
7394(define-public ruby-binding-of-caller
7395 (package
7396 (name "ruby-binding-of-caller")
7397 (version "0.8.0")
7398 (source
7399 (origin
7400 (method url-fetch)
7401 (uri (rubygems-uri "binding_of_caller" version))
7402 (sha256
7403 (base32
7404 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7405 (build-system ruby-build-system)
7406 ;; Attempting to run the test suite fails with a rake deprecation error
7407 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7408 (arguments '(#:tests? #f))
7409 (propagated-inputs
7410 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7411 (synopsis "Retrieve the binding of a method's caller")
7412 (description "The @code{binding_of_caller} module provides the
7413@code{Binding#of_caller} method. It allows accessing bindings from upper
7414frames in the call stack and can evaluate code in that context.")
7415 (home-page "https://github.com/banister/binding_of_caller")
7416 (license license:expat)))
7417
7418(define-public ruby-pry-stack-explorer
7419 (package
7420 (name "ruby-pry-stack-explorer")
7421 (version "0.5.1")
7422 (source
7423 (origin
7424 (method url-fetch)
7425 (uri (rubygems-uri "pry-stack_explorer" version))
7426 (sha256
7427 (base32
7428 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7429 (build-system ruby-build-system)
7430 (arguments '(#:tests? #f)) ;no test suite in gem release
7431 (propagated-inputs
7432 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7433 ("ruby-pry" ,ruby-pry)))
7434 (synopsis "Call-stack navigation plugin for the Pry REPL")
7435 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7436add support to navigate the call-stack.")
7437 (home-page "https://github.com/pry/pry-stack_explorer")
7438 (license license:expat)))
7439
7440(define-public ruby-varint
7441 (package
7442 (name "ruby-varint")
7443 (version "0.1.1")
7444 (source
7445 (origin
7446 (method url-fetch)
7447 (uri (rubygems-uri "varint" version))
7448 (sha256
7449 (base32
7450 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7451 (build-system ruby-build-system)
7452 (arguments '(#:tests? #f)) ;no test suite
7453 (synopsis "Variable length integers (varint) C extension for Ruby")
7454 (description "This package provides a small C extension to speed up
7455variable length integers (varint) in Ruby Protocol Buffers.")
7456 (home-page "https://github.com/liquidm/varint")
7457 (license license:bsd-3)))
7458
7459(define-public ruby-ruby-prof
7460 (package
7461 (name "ruby-ruby-prof")
7462 (version "1.4.1")
7463 (source
7464 (origin
7465 (method url-fetch)
7466 (uri (rubygems-uri "ruby-prof" version))
7467 (sha256
7468 (base32
7469 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7470 (build-system ruby-build-system)
7471 (arguments
7472 `(#:phases
7473 (modify-phases %standard-phases
7474 (add-after 'unpack 'patch-rakefile
7475 ;; This fixes the following error: "NameError: uninitialized
7476 ;; constant Bundler::GemHelper" (see:
7477 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7478 (lambda _
7479 (substitute* "Rakefile"
7480 ((".*require \"bundler/setup\".*" all)
7481 (string-append all " require 'bundler/gem_tasks'\n")))
7482 #t))
7483 ;; The LineNumbersTest test fails non-deterministically (see:
7484 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7485 (add-after 'extract-gemspec 'delete-flaky-test
7486 (lambda _
7487 (delete-file "test/line_number_test.rb")
7488 (substitute* "ruby-prof.gemspec"
7489 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7490 #t))
7491 (add-before 'check 'compile
7492 (lambda _
7493 (invoke "rake" "compile"))))))
7494 (native-inputs
7495 `(("bundler" ,bundler)
7496 ("ruby-minitest" ,ruby-minitest)
7497 ("ruby-rake-compiler" ,ruby-rake-compiler)
7498 ("ruby-rdoc" ,ruby-rdoc)))
7499 (synopsis "Fast code profiler for Ruby")
7500 (description "RubyProf is a fast code profiler for Ruby. Its features
7501include:
7502@table @asis
7503@item Speed
7504Being a C extension, it is many times faster than the standard Ruby profiler.
7505@item Measurement Modes
7506It can measure program wall time, process time, object allocations and memory
7507usage.
7508@item Reports
7509A variety of text and cross-referenced HTML reports can be generated.
7510@item Threads
7511Profiling multiple threads simultaneously is supported.
7512@end table")
7513 (home-page "https://github.com/ruby-prof/ruby-prof")
7514 (license license:bsd-2)))
7515
7516(define-public ruby-cucumber-messages
7517 (package
7518 (name "ruby-cucumber-messages")
7519 (version "12.2.0")
7520 (source (origin
7521 (method git-fetch)
7522 (uri (git-reference
7523 (url "https://github.com/cucumber/messages-ruby")
7524 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7525 (file-name (git-file-name name version))
7526 (sha256
7527 (base32
7528 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7529 (build-system ruby-build-system)
7530 (arguments
7531 `(#:phases (modify-phases %standard-phases
7532 (add-after 'unpack 'patch-protobuf.rb
7533 (lambda _
7534 (substitute* "rake/protobuf.rb"
7535 (("load 'protobuf/tasks/compile.rake'")
7536 "require 'protobuf/tasks'"))
7537 #t))
7538 (add-before 'build 'compile
7539 (lambda _
7540 (substitute* "Makefile"
7541 (("bundle exec ") "")
7542 (("include default.mk.*" all)
7543 (string-append "#" all)))
7544 (invoke "make")))
7545 (replace 'check
7546 (lambda _
7547 (invoke "rspec"))))))
7548 (propagated-inputs
7549 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7550 (native-inputs
7551 `(("ruby-rspec" ,ruby-rspec)))
7552 (home-page "https://github.com/cucumber/messages-ruby")
7553 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7554 (description "Cucumber Messages for Ruby is a library which allows
7555serialization and deserialization of the protocol buffer messages used in
7556Cucumber.")
7557 (license license:expat)))
7558
7559(define-public ruby-gherkin
7560 (package
7561 (name "ruby-gherkin")
7562 (version "14.0.1")
7563 (source (origin
7564 (method git-fetch)
7565 (uri (git-reference
7566 (url "https://github.com/cucumber/gherkin-ruby")
7567 (commit (string-append "v" version))))
7568 (file-name (git-file-name name version))
7569 (sha256
7570 (base32
7571 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7572 (build-system ruby-build-system)
7573 (native-inputs
7574 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7575 ("ruby-rspec" ,ruby-rspec)))
7576 (arguments
7577 `(#:test-target "spec"))
7578 (synopsis "Gherkin parser for Ruby")
7579 (description "Gherkin is a parser and compiler for the Gherkin language.
7580It is intended be used by all Cucumber implementations to parse
7581@file{.feature} files.")
7582 (home-page "https://github.com/cucumber/gherkin-ruby")
7583 (license license:expat)))
7584
7585(define-public ruby-gherkin-ruby
7586 (package
7587 (name "ruby-gherkin-ruby")
7588 (version "0.3.2")
7589 (home-page "https://github.com/codegram/gherkin-ruby")
7590 (source (origin
7591 (method url-fetch)
7592 (uri (rubygems-uri "gherkin-ruby" version))
7593 (sha256
7594 (base32
7595 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7596 (build-system ruby-build-system)
7597 (synopsis "Pure Ruby Gherkin parser")
7598 (description
7599 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7600200 lines of code.")
7601 ;; XXX: No license information anywhere but Readme.md.
7602 (license license:expat)))
7603
7604(define-public ruby-aruba
7605 (package
7606 (name "ruby-aruba")
7607 (version "0.14.14")
7608 (source
7609 (origin
7610 (method url-fetch)
7611 (uri (rubygems-uri "aruba" version))
7612 (sha256
7613 (base32
7614 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7615 (build-system ruby-build-system)
7616 (arguments
7617 '(#:test-target "spec"
7618 #:phases
7619 (modify-phases %standard-phases
7620 (add-after 'unpack 'patch
7621 (lambda _
7622 (substitute* "spec/aruba/api_spec.rb"
7623 ;; This resolves some errors in the specs
7624 ;;
7625 ;; undefined method `parse' for Time:Class
7626 (("require 'spec_helper'")
7627 "require 'spec_helper'\nrequire 'time'"))
7628 ;; Avoid shebang issues in this spec file
7629 (substitute* "spec/aruba/matchers/command_spec.rb"
7630 (("/usr/bin/env bash")
7631 (which "bash")))
7632 #t))
7633 (add-before 'check 'remove-unnecessary-dependencies
7634 (lambda _
7635 (substitute* "Gemfile"
7636 ((".*byebug.*") "\n")
7637 ((".*pry.*") "\n")
7638 ((".*yaml.*") "\n")
7639 ((".*bcat.*") "\n")
7640 ((".*kramdown.*") "\n")
7641 ((".*rubocop.*") "\n")
7642 ((".*cucumber-pro.*") "\n")
7643 ((".*cucumber.*") "\n")
7644 ((".*license_finder.*") "\n")
7645 ((".*rake.*") "gem 'rake'\n")
7646 ((".*relish.*") "\n"))
7647 (substitute* "aruba.gemspec"
7648 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7649 "spec.add_runtime_dependency 'cucumber'"))
7650 #t))
7651 (add-before 'check 'set-home
7652 (lambda _ (setenv "HOME" "/tmp") #t)))))
7653 (native-inputs
7654 `(("bundler" ,bundler)
7655 ("ruby-rspec" ,ruby-rspec)
7656 ("ruby-fuubar" ,ruby-fuubar)
7657 ("ruby-simplecov" ,ruby-simplecov)))
7658 (propagated-inputs
7659 `(("ruby-childprocess" ,ruby-childprocess)
7660 ("ruby-contracts" ,ruby-contracts)
7661 ("ruby-cucumber" ,ruby-cucumber)
7662 ("ruby-ffi" ,ruby-ffi)
7663 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7664 ("ruby-thor" ,ruby-thor)
7665 ("ruby-yard" ,ruby-yard)))
7666 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7667 (description
7668 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7669command-line applications. It supports applications written in any
7670language.")
7671 (home-page "https://github.com/cucumber/aruba")
7672 (license license:expat)))
7673
7674;; A version of ruby-aruba without tests run so that circular dependencies can
7675;; be avoided.
7676(define ruby-aruba-without-tests
7677 (package
7678 (inherit ruby-aruba)
7679 (arguments '(#:tests? #f))
7680 (propagated-inputs
7681 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7682 ,@(alist-delete "ruby-cucumber"
7683 (package-propagated-inputs ruby-aruba))))
7684 (native-inputs '())))
7685
7686(define-public ruby-sys-uname
7687 (package
7688 (name "ruby-sys-uname")
7689 (version "1.2.1")
7690 (source
7691 (origin
7692 (method url-fetch)
7693 (uri (rubygems-uri "sys-uname" version))
7694 (sha256
7695 (base32
7696 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7697 (build-system ruby-build-system)
7698 (arguments
7699 `(#:test-target "spec"))
7700 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7701 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7702 (synopsis "Ruby interface for gathering system information")
7703 (description "The sys-uname library provides an interface for gathering
7704information about your current platform. It allows retrieving information
7705such as the OS name, OS version, system name, etc.")
7706 (home-page "https://github.com/djberg96/sys-uname")
7707 (license license:asl2.0)))
7708
7709(define-public ruby-cucumber-create-meta
7710 (package
7711 (name "ruby-cucumber-create-meta")
7712 (version "1.0.0")
7713 (source
7714 (origin
7715 (method url-fetch)
7716 (uri (rubygems-uri "cucumber-create-meta" version))
7717 (sha256
7718 (base32
7719 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
7720 (build-system ruby-build-system)
7721 (arguments
7722 `(#:phases (modify-phases %standard-phases
7723 (add-after 'extract-gemspec 'relax-version-requirements
7724 (lambda _
7725 (substitute* ".gemspec"
7726 ((" 12\\.2")
7727 " 12.1"))
7728 #t))
7729 (replace 'check
7730 (lambda _
7731 (invoke "rspec"))))))
7732 (native-inputs
7733 `(("ruby-rspec" ,ruby-rspec)))
7734 (propagated-inputs
7735 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7736 ("ruby-sys-uname" ,ruby-sys-uname)))
7737 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
7738 (description "The @code{createMeta} utility function allows generating
7739system-specific @code{Meta} messages for Cucumber Ruby.")
7740 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
7741 (license license:expat)))
7742
7743(define-public ruby-cucumber-html-formatter
7744 (package
7745 (name "ruby-cucumber-html-formatter")
7746 (version "7.0.0")
7747 (source
7748 (origin
7749 (method url-fetch)
7750 (uri (rubygems-uri "cucumber-html-formatter" version))
7751 (sha256
7752 (base32
7753 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
7754 (build-system ruby-build-system)
7755 (arguments
7756 `(#:phases (modify-phases %standard-phases
7757 (replace 'check
7758 (lambda _
7759 (invoke "rspec"))))))
7760 (native-inputs
7761 `(("ruby-rspec" ,ruby-rspec)))
7762 (propagated-inputs
7763 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7764 (synopsis "HTML formatter for Cucumber")
7765 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
7766runs. It is built on top of cucumber-react and works with any Cucumber
7767implementation with a protocol buffer formatter that outputs Cucumber
7768messages.")
7769 (home-page "https://github.com/cucumber/cucumber/tree/\
7770master/html-formatter/ruby")
7771 (license license:expat)))
7772
7773(define-public ruby-cucumber
7774 (package
7775 (name "ruby-cucumber")
7776 (version "4.1.0")
7777 (source
7778 (origin
7779 (method git-fetch)
7780 (uri (git-reference
7781 (url "https://github.com/cucumber/cucumber-ruby")
7782 (commit (string-append "v" version))))
7783 (file-name (git-file-name name version))
7784 (sha256
7785 (base32
7786 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
7787 (build-system ruby-build-system)
7788 (arguments
7789 '(#:test-target "default"
7790 #:phases
7791 (modify-phases %standard-phases
7792 (add-after 'unpack 'disable-rubocop
7793 ;; Rubocop lint check fails with our more recent version.
7794 (lambda _
7795 (substitute* "Rakefile"
7796 (("spec cucumber rubocop")
7797 "spec cucumber"))
7798 #t))
7799 (add-after 'extract-gemspec 'strip-version-requirements
7800 (lambda _
7801 (delete-file "Gemfile") ;do not use Bundler
7802 (substitute* "cucumber.gemspec"
7803 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7804 (string-append stripped "\n")))
7805 #t))
7806 (add-before 'check 'set-home
7807 (lambda _
7808 (setenv "HOME" (getcwd))
7809 #t)))))
7810 (propagated-inputs
7811 `(("ruby-builder" ,ruby-builder)
7812 ("ruby-cucumber-core" ,ruby-cucumber-core)
7813 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
7814 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
7815 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
7816 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
7817 ("ruby-diff-lcs" ,ruby-diff-lcs)
7818 ("ruby-gherkin" ,ruby-gherkin)
7819 ("ruby-multi-json" ,ruby-multi-json)
7820 ("ruby-multi-test" ,ruby-multi-test)))
7821 (native-inputs
7822 `(;; Use a untested version of aruba, to avoid a circular dependency, as
7823 ;; ruby-aruba depends on ruby-cucumber.
7824 ("ruby-aruba" ,ruby-aruba-without-tests)
7825 ("ruby-rspec" ,ruby-rspec)
7826 ("ruby-pry" ,ruby-pry)
7827 ("ruby-nokogiri" ,ruby-nokogiri)
7828 ("ruby-rubocop" ,ruby-rubocop)))
7829 (synopsis "Describe automated tests in plain language")
7830 (description "Cucumber is a tool for running automated tests written in
7831plain language. It's designed to support a Behaviour Driven Development (BDD)
7832software development workflow.")
7833 (home-page "https://cucumber.io/")
7834 (license license:expat)))
7835
7836(define ruby-cucumber-without-tests
7837 (package (inherit ruby-cucumber)
7838 (arguments
7839 '(#:tests? #f))
7840 (native-inputs
7841 '())))
7842
7843(define-public ruby-coveralls
7844 (package
7845 (name "ruby-coveralls")
7846 (version "0.8.23")
7847 (source
7848 (origin
7849 (method url-fetch)
7850 (uri (rubygems-uri "coveralls" version))
7851 (sha256
7852 (base32
7853 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
7854 (build-system ruby-build-system)
7855 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
7856 ;; because of its nonfree, Hippocratic-derived license.
7857 (arguments
7858 `(#:tests? #f
7859 #:phases (modify-phases %standard-phases
7860 (add-after 'extract-gemspec 'strip-version-requirements
7861 ;; Keeping strict version requirements can cause problems
7862 ;; to users of the library, such as: Gem::ConflictError:
7863 ;; Unable to activate coveralls-0.8.23, because
7864 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
7865 (lambda _
7866 (substitute* "coveralls-ruby.gemspec"
7867 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
7868 (string-append stripped ")\n")))
7869 #t)))))
7870 (propagated-inputs
7871 `(("ruby-json" ,ruby-json)
7872 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
7873 ("ruby-thor" ,ruby-thor)
7874 ("ruby-tins" ,ruby-tins)))
7875 (synopsis "Ruby implementation of the Coveralls API")
7876 (description "This package provides a Ruby implementation of the Coveralls
7877API.")
7878 (home-page "https://coveralls.io")
7879 (license license:expat)))
7880
7881(define-public ruby-unindent
7882 (package
7883 (name "ruby-unindent")
7884 (version "1.0")
7885 (source
7886 (origin
7887 (method url-fetch)
7888 (uri (rubygems-uri "unindent" version))
7889 (sha256
7890 (base32
7891 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
7892 (build-system ruby-build-system)
7893 (synopsis "Ruby method to unindent strings")
7894 (description "This module provides a @code{String#unindent} Ruby method to
7895unindent strings, which can be useful to unindent multiline strings embedded
7896in already-indented code.")
7897 (home-page "https://github.com/mynyml/unindent")
7898 (license license:expat)))
7899
7900(define-public ruby-cucumber-core
7901 (package
7902 (name "ruby-cucumber-core")
7903 (version "7.1.0")
7904 (source
7905 (origin
7906 (method git-fetch)
7907 (uri (git-reference
7908 (url "https://github.com/cucumber/cucumber-ruby-core")
7909 (commit (string-append "v" version))))
7910 (file-name (git-file-name name version))
7911 (sha256
7912 (base32
7913 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
7914 (build-system ruby-build-system)
7915 (arguments
7916 `(#:test-target "spec"
7917 #:phases
7918 (modify-phases %standard-phases
7919 (add-after 'extract-gemspec 'relax-version-requirements
7920 (lambda _
7921 (substitute* "cucumber-core.gemspec"
7922 (("'cucumber-tag-expressions',.*")
7923 "'cucumber-tag-expressions', '>=2.0.0'\n"))
7924 #t)))))
7925 (native-inputs
7926 `(("ruby-rspec" ,ruby-rspec)
7927 ("ruby-coveralls" ,ruby-coveralls)
7928 ("ruby-rubocop" ,ruby-rubocop)
7929 ("ruby-simplecov" ,ruby-simplecov)
7930 ("ruby-unindent" ,ruby-unindent)))
7931 (propagated-inputs
7932 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7933 ("ruby-gherkin" ,ruby-gherkin)
7934 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
7935 (synopsis "Core library for the Cucumber BDD app")
7936 (description "Cucumber is a tool for running automated tests
7937written in plain language. Because they're written in plain language,
7938they can be read by anyone on your team. Because they can be read by
7939anyone, you can use them to help improve communication, collaboration
7940and trust on your team.")
7941 (home-page "https://cucumber.io/")
7942 (license license:expat)))
7943
7944(define-public ruby-cucumber-expressions
7945 (package
7946 (name "ruby-cucumber-expressions")
7947 (version "10.2.0")
7948 (source
7949 (origin
7950 (method git-fetch)
7951 (uri (git-reference
7952 (url "https://github.com/cucumber/cucumber-expressions-ruby")
7953 (commit (string-append "v" version))))
7954 (file-name (git-file-name name version))
7955 (sha256
7956 (base32
7957 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
7958 (build-system ruby-build-system)
7959 (arguments
7960 '(#:test-target "spec"))
7961 (native-inputs
7962 `(("ruby-rspec" ,ruby-rspec)
7963 ("ruby-simplecov" ,ruby-simplecov)))
7964 (synopsis "Simpler alternative to Regular Expressions")
7965 (description "Cucumber Expressions offer similar functionality to Regular
7966Expressions, with a syntax that is easier to read and write. Cucumber
7967Expressions are extensible with parameter types.")
7968 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7969 (license license:expat)))
7970
7971(define-public ruby-cucumber-wire
7972 (package
7973 (name "ruby-cucumber-wire")
7974 (version "3.1.0")
7975 (source
7976 (origin
7977 (method url-fetch)
7978 (uri (rubygems-uri "cucumber-wire" version))
7979 (sha256
7980 (base32
7981 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
7982 (build-system ruby-build-system)
7983 (arguments
7984 '(#:tests? #f ;tests use cucumber, causing a cycle
7985 #:phases
7986 (modify-phases %standard-phases
7987 (add-after 'extract-gemspec 'relax-version-requirements
7988 (lambda _
7989 (substitute* ".gemspec"
7990 ((" 10\\.1") " 10.2"))
7991 #t)))))
7992 (propagated-inputs
7993 `(("ruby-cucumber-core" ,ruby-cucumber-core)
7994 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
7995 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7996 (synopsis "Cucumber wire protocol plugin")
7997 (description "Cucumber's wire protocol allows step definitions to be
7998implemented and invoked on any platform.")
7999 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8000 (license license:expat)))
8001
8002(define-public ruby-cucumber-tag-expressions
8003 (package
8004 (name "ruby-cucumber-tag-expressions")
8005 (version "3.0.0")
8006 (source
8007 (origin
8008 (method git-fetch)
8009 (uri (git-reference
8010 (url "https://github.com/cucumber/tag-expressions-ruby")
8011 (commit (string-append "v" version))))
8012 (file-name (git-file-name name version))
8013 (sha256
8014 (base32
8015 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8016 (build-system ruby-build-system)
8017 (arguments
8018 `(#:test-target "spec"))
8019 (native-inputs
8020 `(("ruby-rspec" ,ruby-rspec)))
8021 (synopsis "Cucumber tag expressions for Ruby")
8022 (description "Cucumber tag expression parser for Ruby. A tag expression
8023is an infix boolean expression used by Cucumber.")
8024 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8025 (license license:expat)))
8026
8027(define-public ruby-bindex
8028 (package
8029 (name "ruby-bindex")
8030 (version "0.5.0")
8031 (source
8032 (origin
8033 (method url-fetch)
8034 (uri (rubygems-uri "bindex" version))
8035 (sha256
8036 (base32
8037 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8038 (build-system ruby-build-system)
8039 (arguments
8040 '(#:test-target "default"))
8041 (native-inputs
8042 `(("bundler" ,bundler)
8043 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8044 (synopsis "Provides access for bindings relating to Ruby exceptions")
8045 (description
8046 "@code{bindex} provides a way to access the bindings that relate to
8047exceptions in Ruby, providing more information about the context in which the
8048exception occurred.")
8049 (home-page "https://github.com/gsamokovarov/bindex")
8050 (license license:expat)))
8051
8052(define-public ruby-bio-logger
8053 (package
8054 (name "ruby-bio-logger")
8055 (version "1.0.1")
8056 (source
8057 (origin
8058 (method url-fetch)
8059 (uri (rubygems-uri "bio-logger" version))
8060 (sha256
8061 (base32
8062 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8063 (build-system ruby-build-system)
8064 (arguments
8065 `(#:tests? #f)) ; rake errors, missing shoulda
8066 (propagated-inputs
8067 `(("ruby-log4r" ,ruby-log4r)))
8068 (synopsis "Log4r wrapper for Ruby")
8069 (description "Bio-logger is a wrapper around Log4r adding extra logging
8070features such as filtering and fine grained logging.")
8071 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8072 (license license:expat)))
8073
8074(define-public ruby-yajl-ruby
8075 (package
8076 (name "ruby-yajl-ruby")
8077 (version "1.4.1")
8078 (source
8079 (origin
8080 (method url-fetch)
8081 (uri (rubygems-uri "yajl-ruby" version))
8082 (sha256
8083 (base32
8084 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8085 (build-system ruby-build-system)
8086 (arguments
8087 '(#:test-target "spec"
8088 #:phases
8089 (modify-phases %standard-phases
8090 (add-before 'check 'patch-test-to-update-load-path
8091 (lambda _
8092 (substitute* "spec/parsing/large_number_spec.rb"
8093 (("require \"yajl\"")
8094 "$LOAD_PATH << 'lib'; require 'yajl'"))
8095 #t)))))
8096 (native-inputs
8097 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8098 ("ruby-rspec" ,ruby-rspec)))
8099 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8100 (description
8101 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8102is compatible with the JSON gem, so yajl-ruby can act as a drop in
8103replacement.
8104
8105A modified copy of yajl is used, and included in the package.")
8106 (home-page "https://github.com/brianmario/yajl-ruby")
8107 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8108 license:bsd-3)))) ; Included, modified copy of yajl
8109
8110(define-public ruby-yard
8111 (package
8112 (name "ruby-yard")
8113 (version "0.9.25")
8114 (source
8115 (origin
8116 (method git-fetch)
8117 ;; Tests do not pass if we build from the distributed gem.
8118 (uri (git-reference
8119 (url "https://github.com/lsegal/yard")
8120 (commit (string-append "v" version))))
8121 (file-name (git-file-name name version))
8122 (sha256
8123 (base32
8124 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8125 (build-system ruby-build-system)
8126 (arguments
8127 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8128 ;; problems.
8129 `(#:tests? #f
8130 #:phases (modify-phases %standard-phases
8131 (add-after 'unpack 'do-not-set-date-in-gemspec
8132 ;; Fix a reproducibility issue (see:
8133 ;; https://github.com/lsegal/yard/issues/1343).
8134 (lambda _
8135 (substitute* "yard.gemspec"
8136 ((".*s\\.date.*") ""))
8137 #t)))))
8138 (synopsis "Documentation generation tool for Ruby")
8139 (description "YARD is a documentation generation tool for the Ruby
8140programming language. It enables the user to generate consistent, usable
8141documentation that can be exported to a number of formats very easily, and
8142also supports extending for custom Ruby constructs such as custom class level
8143definitions.")
8144 (home-page "https://yardoc.org")
8145 (license license:expat)))
8146
8147(define-public ruby-yard-with-tests
8148 (package
8149 (inherit ruby-yard)
8150 (name "ruby-yard-with-tests")
8151 (arguments
8152 (substitute-keyword-arguments (package-arguments ruby-yard)
8153 ((#:tests? _ #t) #t)
8154 ((#:test-target _ "default") "default")
8155 ((#:phases phases '%standard-phases)
8156 `(modify-phases ,phases
8157 (add-before 'check 'prepare-for-tests
8158 (lambda* (#:key tests? #:allow-other-keys)
8159 (when tests?
8160 (substitute* "Rakefile"
8161 ((".*[Ss]amus.*") ""))
8162 ;; Delete the Gemfile to avoid errors relating to it.
8163 (delete-file "Gemfile")
8164 ;; $HOME needs to be set to somewhere writeable for tests to
8165 ;; run.
8166 (setenv "HOME" "/tmp"))
8167 #t))))))
8168 (native-inputs
8169 `(("ruby-rspec" ,ruby-rspec)
8170 ("ruby-rack" ,ruby-rack)
8171 ("ruby-redcloth" ,ruby-redcloth)
8172 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8173
8174(define-public ruby-spectroscope
8175 (package
8176 (name "ruby-spectroscope")
8177 (version "0.1.0")
8178 (source
8179 (origin
8180 (method url-fetch)
8181 (uri (rubygems-uri "spectroscope" version))
8182 (sha256
8183 (base32
8184 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8185 (build-system ruby-build-system)
8186 (arguments
8187 `(#:phases
8188 (modify-phases %standard-phases
8189 (replace 'check
8190 (lambda _
8191 (with-output-to-file ".test"
8192 (lambda _
8193 (display
8194 "\
8195require 'ae/should'
8196require 'rspec'
8197
8198include RSpec
8199
8200Test.run :default do |run|
8201 run.files << 'spec/*_spec.rb'
8202end")))
8203 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8204 (native-inputs
8205 `(("ruby-ae" ,ruby-ae)
8206 ("ruby-rspec" ,ruby-rspec)))
8207 (propagated-inputs
8208 `(("ruby-rubytest" ,ruby-rubytest)))
8209 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8210 (description "Spectroscope is a Behavior-Driven Development (BDD)
8211framework built on RubyTest, designed to emulate RSpec in most respects. It
8212is assertion framework independent so any number of assertion systems can be
8213used, such as Assay or AE.")
8214 (home-page "http://rubyworks.github.com/spectroscope/")
8215 (license license:bsd-2)))
8216
8217(define-public ruby-tomparse
8218 (package
8219 (name "ruby-tomparse")
8220 (version "0.4.2")
8221 (source
8222 (origin
8223 (method url-fetch)
8224 (uri (rubygems-uri "tomparse" version))
8225 (sha256
8226 (base32
8227 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8228 (build-system ruby-build-system)
8229 ;; TODO: Tests require citron and rulebow, not yet packaged.
8230 (arguments '(#:tests? #f))
8231 (synopsis "TomDoc parser for Ruby")
8232 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8233comment as input and parses it into a convenient object-oriented structure in
8234accordance with the TomDoc standard. See
8235@url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8236TomDoc format.")
8237 (home-page "http://rubyworks.github.com/tomparse/")
8238 (license license:bsd-2)))
8239
8240(define-public ruby-yard-tomdoc
8241 (package
8242 (name "ruby-yard-tomdoc")
8243 (version "0.7.1")
8244 (source
8245 (origin
8246 (method url-fetch)
8247 (uri (rubygems-uri "yard-tomdoc" version))
8248 (sha256
8249 (base32
8250 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8251 (build-system ruby-build-system)
8252 (arguments
8253 `(#:phases (modify-phases %standard-phases
8254 (replace 'check
8255 (lambda _
8256 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8257 (native-inputs
8258 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8259 ("ruby-spectroscope" ,ruby-spectroscope)
8260 ("ruby-ae" ,ruby-ae)))
8261 (propagated-inputs
8262 `(("ruby-tomparse" ,ruby-tomparse)
8263 ("ruby-yard" ,ruby-yard)))
8264 (synopsis "TomDoc syntax for YARD")
8265 (description "This module adds support for the TomDoc documentation format
8266to YARD, a documentation generation tool for Ruby.")
8267 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8268 (license license:expat)))
8269
8270(define-public ruby-clap
8271 (package
8272 (name "ruby-clap")
8273 (version "1.0.0")
8274 (source (origin
8275 (method url-fetch)
8276 (uri (rubygems-uri "clap" version))
8277 (sha256
8278 (base32
8279 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8280 (build-system ruby-build-system)
8281 ;; Clap needs cutest for running tests, but cutest needs clap.
8282 (arguments `(#:tests? #f))
8283 (synopsis "Command line argument parsing for simple applications")
8284 (description
8285 "Clap provides command line argument parsing features. It covers the
8286simple case of executing code based on the flags or parameters passed.")
8287 (home-page "https://github.com/djanowski/cutest")
8288 (license license:expat)))
8289
8290(define-public ruby-cutest
8291 (package
8292 (name "ruby-cutest")
8293 (version "1.2.2")
8294 (source (origin
8295 (method url-fetch)
8296 (uri (rubygems-uri "cutest" version))
8297 (sha256
8298 (base32
8299 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8300 (build-system ruby-build-system)
8301 (propagated-inputs
8302 `(("ruby-clap" ,ruby-clap)))
8303 (synopsis "Run tests in separate processes")
8304 (description
8305 "Cutest runs tests in separate processes to avoid shared state.")
8306 (home-page "https://github.com/djanowski/cutest")
8307 (license license:expat)))
8308
8309(define-public ruby-pygmentize
8310 (package
8311 (name "ruby-pygmentize")
8312 (version "0.0.3")
8313 (source (origin
8314 (method url-fetch)
8315 (uri (rubygems-uri "pygmentize" version))
8316 (sha256
8317 (base32
8318 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8319 (build-system ruby-build-system)
8320 (arguments
8321 `(#:phases
8322 (modify-phases %standard-phases
8323 (add-after 'unpack 'fix-pygmentize-path
8324 (lambda _
8325 (substitute* "lib/pygmentize.rb"
8326 (("\"/usr/bin/env python.*")
8327 (string-append "\"" (which "pygmentize") "\"\n")))
8328 #t))
8329 (add-after 'build 'do-not-use-vendor-directory
8330 (lambda _
8331 ;; Remove bundled pygments sources
8332 ;; FIXME: ruby-build-system does not support snippets.
8333 (delete-file-recursively "vendor")
8334 (substitute* "pygmentize.gemspec"
8335 (("\"vendor/\\*\\*/\\*\",") ""))
8336 #t)))))
8337 (inputs
8338 `(("pygments" ,python-pygments)))
8339 (native-inputs
8340 `(("ruby-cutest" ,ruby-cutest)
8341 ("ruby-nokogiri" ,ruby-nokogiri)))
8342 (synopsis "Thin Ruby wrapper around pygmentize")
8343 (description
8344 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8345application.")
8346 (home-page "https://github.com/djanowski/pygmentize")
8347 (license license:expat)))
8348
8349(define-public ruby-eventmachine
8350 (package
8351 (name "ruby-eventmachine")
8352 (version "1.2.7")
8353 (source
8354 (origin
8355 (method url-fetch)
8356 (uri (rubygems-uri "eventmachine" version))
8357 (sha256
8358 (base32
8359 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8360 (build-system ruby-build-system)
8361 (arguments
8362 '(#:tests? #f)) ; test suite tries to connect to google.com
8363 (native-inputs
8364 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8365 (synopsis "Single-threaded network event framework for Ruby")
8366 (description
8367 "EventMachine implements a single-threaded engine for arbitrary network
8368communications. EventMachine wraps all interactions with sockets, allowing
8369programs to concentrate on the implementation of network protocols. It can be
8370used to create both network servers and clients.")
8371 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8372 (home-page "https://github.com/eventmachine/eventmachine")
8373 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8374
8375(define-public ruby-ruby-engine
8376 (package
8377 (name "ruby-ruby-engine")
8378 (version "2.0.0")
8379 (source
8380 (origin
8381 (method url-fetch)
8382 (uri (rubygems-uri "ruby_engine" version))
8383 (sha256
8384 (base32
8385 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8386 (build-system ruby-build-system)
8387 (arguments
8388 `(#:phases
8389 (modify-phases %standard-phases
8390 (add-after 'extract-gemspec 'clean-up
8391 (lambda _
8392 (delete-file "Gemfile.lock")
8393 (substitute* "ruby_engine.gemspec"
8394 ;; Remove unnecessary imports that would entail further
8395 ;; dependencies.
8396 ((".*<rdoc.*") "")
8397 ((".*<rubygems-tasks.*") "")
8398 ;; Remove extraneous .gem file
8399 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8400 (("\"Gemfile.lock\".freeze, ") "")
8401 ;; Soften rake dependency
8402 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8403 "%q<rake>.freeze, [\">= 10.0\"]")
8404 ;; Soften the rspec dependency
8405 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8406 "%q<rspec>.freeze, [\">= 2.4\"]"))
8407 (substitute* "Rakefile"
8408 (("require 'rubygems/tasks'") "")
8409 (("Gem::Tasks.new") ""))
8410 ;; Remove extraneous .gem file that otherwise gets installed.
8411 (delete-file-recursively "pkg")
8412 #t)))))
8413 (native-inputs
8414 `(("bundler" ,bundler)
8415 ("ruby-rake" ,ruby-rake)
8416 ("ruby-rspec" ,ruby-rspec)))
8417 (synopsis "Simplifies checking for Ruby implementation")
8418 (description
8419 "@code{ruby_engine} provides an RubyEngine class that can be used to
8420check which implementation of Ruby is in use. It can provide the interpreter
8421name and provides query methods such as @{RubyEngine.mri?}.")
8422 (home-page "https://github.com/janlelis/ruby_engine")
8423 (license license:expat)))
8424
8425(define-public ruby-turn
8426 (package
8427 (name "ruby-turn")
8428 (version "0.9.7")
8429 (source
8430 (origin
8431 (method url-fetch)
8432 (uri (rubygems-uri "turn" version))
8433 (sha256
8434 (base32
8435 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8436 (build-system ruby-build-system)
8437 (arguments
8438 `(#:phases
8439 (modify-phases %standard-phases
8440 ;; Tests fail because turn changes its environment so can no longer
8441 ;; find test/unit. Instead simply test if the executable runs
8442 ;; without issue.
8443 (replace 'check
8444 (lambda _
8445 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8446 (propagated-inputs
8447 `(("ruby-ansi" ,ruby-ansi)
8448 ("ruby-minitest" ,ruby-minitest-4)))
8449 (synopsis "Alternate set of alternative runners for MiniTest")
8450 (description
8451 "TURN provides a set of alternative runners for MiniTest which are both
8452colorful and informative. TURN displays each test on a separate line with
8453failures being displayed immediately instead of at the end of the tests. Note
8454that TURN is no longer being maintained.")
8455 (home-page "https://rubygems.org/gems/turn")
8456 (license license:expat)))
8457
8458(define-public ruby-mimemagic
8459 (package
8460 (name "ruby-mimemagic")
8461 (version "0.3.3")
8462 (source
8463 (origin
8464 (method url-fetch)
8465 (uri (rubygems-uri "mimemagic" version))
8466 (sha256
8467 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8468 (build-system ruby-build-system)
8469 (arguments
8470 '(#:phases
8471 (modify-phases %standard-phases
8472 ;; This phase breaks the tests, as it patches some of the test data.
8473 (delete 'patch-source-shebangs))))
8474 (native-inputs
8475 `(("ruby-bacon" ,ruby-bacon)))
8476 (synopsis "Ruby library for MIME detection by extension or content")
8477 (description
8478 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8479extension or content, using the freedesktop.org.xml shared-mime-info
8480database.")
8481 (home-page "https://github.com/minad/mimemagic")
8482 (license license:expat)))
8483
8484(define-public ruby-mime-types-data
8485 (package
8486 (name "ruby-mime-types-data")
8487 (version "3.2016.0521")
8488 (source
8489 (origin
8490 (method url-fetch)
8491 (uri (rubygems-uri "mime-types-data" version))
8492 (sha256
8493 (base32
8494 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8495 (build-system ruby-build-system)
8496 (native-inputs
8497 `(("ruby-hoe" ,ruby-hoe)))
8498 (synopsis "Registry for information about MIME media type definitions")
8499 (description
8500 "@code{mime-types-data} provides a registry for information about
8501Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8502be used with the Ruby mime-types library or other software to determine
8503defined filename extensions for MIME types, or to use filename extensions to
8504look up the likely MIME type definitions.")
8505 (home-page "https://github.com/mime-types/mime-types-data/")
8506 (license license:expat)))
8507
8508(define-public ruby-mime-types
8509 (package
8510 (name "ruby-mime-types")
8511 (version "3.1")
8512 (source
8513 (origin
8514 (method url-fetch)
8515 (uri (rubygems-uri "mime-types" version))
8516 (sha256
8517 (base32
8518 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8519 (build-system ruby-build-system)
8520 (propagated-inputs
8521 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8522 (native-inputs
8523 `(("ruby-hoe" ,ruby-hoe)
8524 ("ruby-fivemat" ,ruby-fivemat)
8525 ("ruby-minitest-focus" ,ruby-minitest-focus)
8526 ("ruby-minitest-rg" ,ruby-minitest-rg)
8527 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8528 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8529 (synopsis "Library and registry for MIME content type definitions")
8530 (description "The mime-types library provides a library and registry for
8531information about Multipurpose Internet Mail Extensions (MIME) content type
8532definitions. It can be used to determine defined filename extensions for MIME
8533types, or to use filename extensions to look up the likely MIME type
8534definitions.")
8535 (home-page "https://github.com/mime-types/ruby-mime-types")
8536 (license license:expat)))
8537
8538(define-public ruby-fivemat
8539 (package
8540 (name "ruby-fivemat")
8541 (version "1.3.7")
8542 (source
8543 (origin
8544 (method url-fetch)
8545 (uri (rubygems-uri "fivemat" version))
8546 (sha256
8547 (base32
8548 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8549 (build-system ruby-build-system)
8550 (arguments
8551 `(#:tests? #f)) ; no tests
8552 (synopsis "Each test file given its own line of dots")
8553 (description
8554 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8555its own line of dots during testing. It aims to provide test output that is
8556neither too verbose nor too minimal.")
8557 (home-page "https://github.com/tpope/fivemat")
8558 (license license:expat)))
8559
8560(define-public ruby-sqlite3
8561 (package
8562 (name "ruby-sqlite3")
8563 (version "1.4.2")
8564 (source
8565 (origin
8566 (method url-fetch)
8567 (uri (rubygems-uri "sqlite3" version))
8568 (sha256
8569 (base32
8570 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8571 (build-system ruby-build-system)
8572 (arguments
8573 `(#:phases
8574 (modify-phases %standard-phases
8575 (add-before 'check 'add-gemtest-file
8576 ;; This file exists in the repository but is not distributed.
8577 (lambda _ (invoke "touch" ".gemtest"))))))
8578 (inputs
8579 `(("sqlite" ,sqlite)))
8580 (native-inputs
8581 `(("ruby-hoe" ,ruby-hoe)
8582 ("ruby-rake-compiler" ,ruby-rake-compiler)
8583 ("ruby-mini-portile" ,ruby-mini-portile)))
8584 (synopsis "Interface with SQLite3 databases")
8585 (description
8586 "This module allows Ruby programs to interface with the SQLite3 database
8587engine.")
8588 (home-page
8589 "https://github.com/sparklemotion/sqlite3-ruby")
8590 (license license:bsd-3)))
8591
8592(define-public ruby-shoulda-context
8593 (package
8594 (name "ruby-shoulda-context")
8595 (version "1.2.2")
8596 (source
8597 (origin
8598 (method url-fetch)
8599 (uri (rubygems-uri "shoulda-context" version))
8600 (sha256
8601 (base32
8602 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8603 (build-system ruby-build-system)
8604 (arguments
8605 `(#:phases
8606 (modify-phases %standard-phases
8607 (replace 'check
8608 (lambda _
8609 ;; Do not run tests to avoid circular dependence with rails.
8610 ;; Instead just import the library to test.
8611 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8612 (synopsis "Test::Unit context framework extracted from Shoulda")
8613 (description
8614 "@code{shoulda-context} is the context framework extracted from Shoulda.
8615Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8616context, setup, and should blocks combine to produce natural test method
8617names.")
8618 (home-page "https://github.com/thoughtbot/shoulda-context")
8619 (license license:expat)))
8620
8621(define-public ruby-shoulda-matchers
8622 (package
8623 (name "ruby-shoulda-matchers")
8624 (version "3.1.2")
8625 (source
8626 (origin
8627 (method url-fetch)
8628 (uri (rubygems-uri "shoulda-matchers" version))
8629 (sha256
8630 (base32
8631 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8632 (build-system ruby-build-system)
8633 (arguments
8634 `(#:phases
8635 (modify-phases %standard-phases
8636 (replace 'check
8637 (lambda _
8638 ;; Do not run tests to avoid circular dependence with rails. Instead
8639 ;; just import the library to test.
8640 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8641 (propagated-inputs
8642 `(("ruby-activesupport" ,ruby-activesupport)))
8643 (synopsis "Collection of testing matchers extracted from Shoulda")
8644 (description
8645 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8646test common Rails functionality. These tests would otherwise be much longer,
8647more complex, and error-prone.")
8648 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8649 (license license:expat)))
8650
8651(define-public ruby-shoulda-matchers-2
8652 (package
8653 (inherit ruby-shoulda-matchers)
8654 (version "2.8.0")
8655 (source (origin
8656 (method url-fetch)
8657 (uri (rubygems-uri "shoulda-matchers" version))
8658 (sha256
8659 (base32
8660 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8661
8662(define-public ruby-shoulda
8663 (package
8664 (name "ruby-shoulda")
8665 (version "3.5.0")
8666 (source
8667 (origin
8668 (method url-fetch)
8669 (uri (rubygems-uri "shoulda" version))
8670 (sha256
8671 (base32
8672 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8673 (build-system ruby-build-system)
8674 (arguments
8675 `(#:phases
8676 (modify-phases %standard-phases
8677 (replace 'check
8678 ;; Don't run tests to avoid circular dependence with rails. Instead
8679 ;; just import the library to test.
8680 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8681 (propagated-inputs
8682 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8683 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8684 (synopsis "Context framework and matchers for testing")
8685 (description
8686 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8687@code{shoulda-matchers} providing tools for writing tests.")
8688 (home-page "https://github.com/thoughtbot/shoulda")
8689 (license license:expat)))
8690
8691(define-public ruby-unf
8692 (package
8693 (name "ruby-unf")
8694 (version "0.1.4")
8695 (source
8696 (origin
8697 (method url-fetch)
8698 (uri (rubygems-uri "unf" version))
8699 (sha256
8700 (base32
8701 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8702 (build-system ruby-build-system)
8703 (arguments
8704 `(#:phases
8705 (modify-phases %standard-phases
8706 (add-before 'check 'add-dependency-to-bundler
8707 (lambda _
8708 ;; test-unit is required but not provided by the bundler
8709 ;; environment. This is fixed in the upstream repository but fix
8710 ;; has not been released.
8711 (substitute* "Gemfile"
8712 (("^gemspec") "gem 'test-unit'\ngemspec"))
8713 #t)))))
8714 (propagated-inputs
8715 `(("ruby-unf-ext" ,ruby-unf-ext)))
8716 (native-inputs
8717 `(("ruby-shoulda" ,ruby-shoulda)
8718 ("bundler" ,bundler)
8719 ("ruby-test-unit" ,ruby-test-unit)))
8720 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
8721 (description
8722 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
8723support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
8724@code{java.text.Normalizer} on JRuby.")
8725 (home-page "https://github.com/knu/ruby-unf")
8726 (license license:bsd-2)))
8727
8728(define-public ruby-warden
8729 (package
8730 (name "ruby-warden")
8731 (version "1.2.8")
8732 (source
8733 (origin
8734 (method url-fetch)
8735 (uri (rubygems-uri "warden" version))
8736 (sha256
8737 (base32
8738 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
8739 (build-system ruby-build-system)
8740 (arguments
8741 '(#:tests? #f)) ; No included tests
8742 (propagated-inputs
8743 `(("ruby-rack" ,ruby-rack)))
8744 (synopsis "Rack middleware providing authentication")
8745 (description
8746 "Warden is a Rack-based middleware that provides a mechanism for
8747authentication in Ruby web applications.")
8748 (home-page "https://github.com/wardencommunity/warden")
8749 (license license:expat)))
8750
8751(define-public ruby-warden-oauth2
8752 (package
8753 (name "ruby-warden-oauth2")
8754 (version "0.0.1")
8755 (source
8756 (origin
8757 (method url-fetch)
8758 (uri (rubygems-uri "warden-oauth2" version))
8759 (sha256
8760 (base32
8761 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
8762 (build-system ruby-build-system)
8763 (arguments
8764 '(#:test-target "spec"
8765 #:phases
8766 (modify-phases %standard-phases
8767 (add-after 'unpack 'remove-unnecessary-dependencies
8768 (lambda _
8769 (substitute* "Gemfile"
8770 ;; All of these gems relate to development, and are unnecessary
8771 ;; when running the tests
8772 (("gem 'guard-bundler'") "")
8773 (("gem 'guard'") "")
8774 (("gem 'guard-rspec'") "")
8775 (("gem 'rb-fsevent'") "")
8776 (("gem 'pry'") "")
8777 (("gem 'growl'") ""))
8778 #t))
8779 ;; The test suite doesn't work with rspec@2, and this is incompatible
8780 ;; with the current version of Rake, so invoke Rspec directly
8781 (replace 'check
8782 (lambda* (#:key tests? #:allow-other-keys)
8783 (when tests?
8784 (invoke "bundle" "exec" "rspec"))
8785 #t)))))
8786 (propagated-inputs
8787 `(("ruby-warden" ,ruby-warden)))
8788 (native-inputs
8789 `(("bundler" ,bundler)
8790 ("ruby-rspec" ,ruby-rspec-2)
8791 ("ruby-rack-test" ,ruby-rack-test)))
8792 (synopsis "OAuth 2.0 strategies for Warden")
8793 (description
8794 "This library extends Warden to support OAuth 2.0 authorized API
8795requests.")
8796 (home-page "https://github.com/opperator/warden-oauth2")
8797 (license license:expat)))
8798
8799(define-public ruby-webmock-2
8800 (package
8801 (name "ruby-webmock")
8802 (version "2.3.2")
8803 (source
8804 (origin
8805 (method url-fetch)
8806 (uri (rubygems-uri "webmock" version))
8807 (sha256
8808 (base32
8809 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
8810 (build-system ruby-build-system)
8811 (native-inputs
8812 `(("bundler" ,bundler)
8813 ("ruby-rspec" ,ruby-rspec)))
8814 (propagated-inputs
8815 `(("ruby-addressable" ,ruby-addressable)
8816 ("ruby-crack" ,ruby-crack)
8817 ("ruby-hashdiff" ,ruby-hashdiff)))
8818 (synopsis "Allows stubbing and setting expectations on HTTP requests")
8819 (description
8820 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
8821requests. This is useful when testing software.")
8822 (home-page "https://github.com/bblimke/webmock")
8823 (license license:expat)))
8824
8825(define-public ruby-unicode-display-width
8826 (package
8827 (name "ruby-unicode-display-width")
8828 (version "1.6.0")
8829 (source
8830 (origin
8831 (method url-fetch)
8832 (uri (rubygems-uri "unicode-display_width" version))
8833 (sha256
8834 (base32
8835 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
8836 (build-system ruby-build-system)
8837 (arguments
8838 '(;; Test data not included.
8839 #:tests? #f))
8840 (synopsis "Determine the monospace display width of Ruby strings")
8841 (description
8842 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
8843display width of strings in Ruby.")
8844 (home-page "https://github.com/janlelis/unicode-display_width")
8845 (license license:expat)))
8846
8847;; There is another gem called 'ruby-version' so we use an underscore in this
8848;; name
8849(define-public ruby_version
8850 (package
8851 (name "ruby_version")
8852 (version "1.0.2")
8853 (source
8854 (origin
8855 (method url-fetch)
8856 (uri (rubygems-uri "ruby_version" version))
8857 (sha256
8858 (base32
8859 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
8860 (build-system ruby-build-system)
8861 (arguments
8862 `(#:phases
8863 (modify-phases %standard-phases
8864 (add-before 'check 'fix-dependencies
8865 (lambda _
8866 ;; Remove the Gemfile.lock, as we want to use Guix packages at
8867 ;; whatever versions.
8868 (delete-file "Gemfile.lock")
8869 ;; Remove the included gem files as they unnecessary.
8870 (delete-file-recursively "pkg/")
8871 ;; Accept any version of rake, rdoc and rspec
8872 (substitute* "ruby_version.gemspec"
8873 (("%q<rake.*") "%q<rake>)\n")
8874 (("%q<rdoc.*") "%q<rdoc>)\n")
8875 (("%q<rspec.*") "%q<rspec>)\n"))
8876 ;; Do not use bundler.
8877 (substitute* "Rakefile"
8878 (("Bundler\\.setup.*") "nil\n"))
8879 #t)))))
8880 (native-inputs
8881 `(("ruby-rdoc" ,ruby-rdoc)
8882 ("ruby-rspec" ,ruby-rspec)
8883 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
8884 (synopsis "Ruby library to help check the Ruby version")
8885 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
8886checking for the right Ruby version in software.")
8887 (home-page "https://github.com/janlelis/ruby_version")
8888 (license license:expat)))
8889
8890(define-public ruby-websocket-driver
8891 (package
8892 (name "ruby-websocket-driver")
8893 (version "0.7.1")
8894 (source
8895 (origin
8896 (method url-fetch)
8897 (uri (rubygems-uri "websocket-driver" version))
8898 (sha256
8899 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
8900 (build-system ruby-build-system)
8901 (arguments
8902 '(#:tests? #f)) ; no included tests
8903 (propagated-inputs
8904 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
8905 (synopsis "WebSocket protocol handler with pluggable I/O")
8906 (description
8907 "@code{websocket-driver} provides a complete implementation of the
8908WebSocket protocols that can be hooked up to any TCP library")
8909 (home-page "https://github.com/faye/websocket-driver-ruby")
8910 (license license:expat)))
8911
8912(define-public ruby-websocket-extensions
8913 (package
8914 (name "ruby-websocket-extensions")
8915 (version "0.1.3")
8916 (source
8917 (origin
8918 (method url-fetch)
8919 (uri (rubygems-uri "websocket-extensions" version))
8920 (sha256
8921 (base32
8922 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
8923 (build-system ruby-build-system)
8924 (arguments
8925 '(;; No included tests
8926 #:tests? #f))
8927 (synopsis "Generic extension manager for WebSocket connections")
8928 (description
8929 "@code{websocket-extensions} provides a container for registering
8930extension plugins.")
8931 (home-page "https://github.com/faye/websocket-extensions-ruby")
8932 (license license:expat)))
8933
8934(define-public ruby-domain-name
8935 (package
8936 (name "ruby-domain-name")
8937 (version "0.5.20190701")
8938 (source
8939 (origin
8940 (method url-fetch)
8941 (uri (rubygems-uri "domain_name" version))
8942 (sha256
8943 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
8944 (build-system ruby-build-system)
8945 (arguments
8946 `(#:phases
8947 (modify-phases %standard-phases
8948 (add-before 'check 'fix-versions
8949 (lambda _
8950 ;; Fix NameError that appears to already be fixed upstream.
8951 (substitute* "Rakefile"
8952 (("DomainName::VERSION")
8953 "Bundler::GemHelper.gemspec.version"))
8954 ;; Loosen unnecessarily strict test-unit version specification.
8955 (substitute* "domain_name.gemspec"
8956 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
8957 #t)))))
8958 (propagated-inputs
8959 `(("ruby-unf" ,ruby-unf)))
8960 (native-inputs
8961 `(("ruby-shoulda" ,ruby-shoulda)
8962 ("bundler" ,bundler)
8963 ("ruby-test-unit" ,ruby-test-unit)))
8964 (synopsis "Domain name manipulation library")
8965 (description
8966 "@code{domain_name} is a Domain name manipulation library. It parses a
8967domain name ready for extracting the registered domain and TLD (Top Level
8968Domain). It can also be used for cookie domain validation based on the Public
8969Suffix List.")
8970 (home-page "https://github.com/knu/ruby-domain_name")
8971 (license license:bsd-2)))
8972
8973(define-public ruby-http-cookie
8974 (package
8975 (name "ruby-http-cookie")
8976 (version "1.0.3")
8977 (source
8978 (origin
8979 (method url-fetch)
8980 (uri (rubygems-uri "http-cookie" version))
8981 (sha256
8982 (base32
8983 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
8984 (build-system ruby-build-system)
8985 (arguments
8986 `(#:phases
8987 (modify-phases %standard-phases
8988 (add-before 'check 'add-dependency-to-bundler
8989 (lambda _
8990 ;; Fix NameError
8991 (substitute* "Rakefile"
8992 (("HTTP::Cookie::VERSION")
8993 "Bundler::GemHelper.gemspec.version"))
8994 #t)))))
8995 (propagated-inputs
8996 `(("ruby-domain-name" ,ruby-domain-name)))
8997 (native-inputs
8998 `(("rubysimplecov" ,ruby-simplecov)
8999 ("bundler" ,bundler)
9000 ("ruby-sqlite3" ,ruby-sqlite3)
9001 ("ruby-test-unit" ,ruby-test-unit)))
9002 (synopsis "Handle HTTP Cookies based on RFC 6265")
9003 (description
9004 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9005RFC 6265. It has been designed with security, standards compliance and
9006compatibility in mind, to behave just the same as today's major web browsers.
9007It has built-in support for the legacy @code{cookies.txt} and
9008@code{cookies.sqlite} formats of Mozilla Firefox.")
9009 (home-page "https://github.com/sparklemotion/http-cookie")
9010 (license license:expat)))
9011
9012(define-public ruby-httpclient
9013 (package
9014 (name "ruby-httpclient")
9015 (version "2.8.3")
9016 (source
9017 (origin
9018 (method url-fetch)
9019 (uri (rubygems-uri "httpclient" version))
9020 (sha256
9021 (base32
9022 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9023 (build-system ruby-build-system)
9024 (arguments
9025 '(;; TODO: Some tests currently fail
9026 ;; ------
9027 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9028 ;; 2 omissions, 0 notifications
9029 ;; 91.866% passed
9030 ;; ------
9031 ;; 6.49 tests/s, 22.41 assertions/s
9032 #:tests? #f
9033 #:phases
9034 (modify-phases %standard-phases
9035 (replace 'check
9036 (lambda* (#:key tests? #:allow-other-keys)
9037 (if tests?
9038 (invoke "ruby"
9039 "-Ilib"
9040 "test/runner.rb")
9041 #t))))))
9042 (native-inputs
9043 `(("ruby-rack" ,ruby-rack)))
9044 (synopsis
9045 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9046 (description
9047 "The @code{httpclient} ruby library provides functionality related to
9048HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9049Cookie, multithreading and authentication (digest, NTLM) support.
9050
9051Also provided is a @command{httpclient} command, which can perform HTTP
9052requests either using arguments or with an interactive prompt.")
9053 (home-page "https://github.com/nahi/httpclient")
9054 (license license:ruby)))
9055
9056(define-public ruby-ansi
9057 (package
9058 (name "ruby-ansi")
9059 (version "1.5.0")
9060 (source
9061 (origin
9062 (method git-fetch)
9063 ;; Fetch from GitHub as the gem does not contain testing code.
9064 (uri (git-reference
9065 (url "https://github.com/rubyworks/ansi")
9066 (commit version)))
9067 (file-name (git-file-name name version))
9068 (sha256
9069 (base32
9070 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9071 (build-system ruby-build-system)
9072 (arguments
9073 `(#:phases
9074 (modify-phases %standard-phases
9075 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9076 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9077 ;; be require'd.
9078 (replace 'check
9079 (lambda _
9080 (invoke "ruby" "-Ilib" "-r" "ansi")))
9081 (add-before 'validate-runpath 'replace-broken-symlink
9082 (lambda* (#:key outputs #:allow-other-keys)
9083 (let* ((out (assoc-ref outputs "out"))
9084 (file (string-append
9085 out "/lib/ruby/vendor_ruby/gems/ansi-"
9086 ,version "/lib/ansi.yml")))
9087 ;; XXX: This symlink is broken since ruby 2.4.
9088 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9089 (delete-file file)
9090 (symlink "../.index" file)
9091 #t))))))
9092 (synopsis "ANSI escape code related libraries")
9093 (description
9094 "This package is a collection of ANSI escape code related libraries
9095enabling ANSI colorization and stylization of console output. Included in the
9096library are the @code{Code} module, which defines ANSI codes as constants and
9097methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9098@code{ProgressBar}, and a @code{String} subclass. The library also includes a
9099@code{Terminal} module which provides information about the current output
9100device.")
9101 (home-page "https://rubyworks.github.io/ansi/")
9102 (license license:bsd-2)))
9103
9104(define-public ruby-systemu
9105 (package
9106 (name "ruby-systemu")
9107 (version "2.6.5")
9108 (source
9109 (origin
9110 (method url-fetch)
9111 (uri (rubygems-uri "systemu" version))
9112 (sha256
9113 (base32
9114 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9115 (build-system ruby-build-system)
9116 (arguments
9117 `(#:phases
9118 (modify-phases %standard-phases
9119 (add-before 'check 'set-version
9120 (lambda _
9121 (setenv "VERSION" ,version)
9122 #t)))))
9123 (synopsis "Capture of stdout/stderr and handling of child processes")
9124 (description
9125 "Systemu can be used on any platform to return status, stdout, and stderr
9126of any command. Unlike other methods like @code{open3} and @code{popen4}
9127there is no danger of full pipes or threading issues hanging your process or
9128subprocess.")
9129 (home-page "https://github.com/ahoward/systemu")
9130 (license license:ruby)))
9131
9132(define-public ruby-bio-commandeer
9133 (package
9134 (name "ruby-bio-commandeer")
9135 (version "0.4.0")
9136 (source
9137 (origin
9138 (method url-fetch)
9139 (uri (rubygems-uri "bio-commandeer" version))
9140 (sha256
9141 (base32
9142 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9143 (build-system ruby-build-system)
9144 (arguments
9145 `(#:phases
9146 (modify-phases %standard-phases
9147 (replace 'check
9148 ;; Run test without calling 'rake' so that jeweler is
9149 ;; not required as an input.
9150 (lambda _
9151 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9152 (propagated-inputs
9153 `(("ruby-bio-logger" ,ruby-bio-logger)
9154 ("ruby-systemu" ,ruby-systemu)))
9155 (native-inputs
9156 `(("bundler" ,bundler)
9157 ("ruby-rspec" ,ruby-rspec)))
9158 (synopsis "Simplified running of shell commands from within Ruby")
9159 (description
9160 "Bio-commandeer provides an opinionated method of running shell commands
9161from within Ruby. The advantage of bio-commandeer over other methods of
9162running external commands is that when something goes wrong, messages printed
9163to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9164detail to ease debugging.")
9165 (home-page "https://github.com/wwood/bioruby-commandeer")
9166 (license license:expat)))
9167
9168(define-public ruby-rubytest
9169 (package
9170 (name "ruby-rubytest")
9171 (version "0.8.1")
9172 (source
9173 (origin
9174 (method url-fetch)
9175 (uri (rubygems-uri "rubytest" version))
9176 (sha256
9177 (base32
9178 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9179 (build-system ruby-build-system)
9180 (arguments
9181 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9182 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9183 ;; simply test that the library can be require'd.
9184 `(#:phases
9185 (modify-phases %standard-phases
9186 (replace 'check
9187 (lambda _
9188 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9189 (propagated-inputs
9190 `(("ruby-ansi" ,ruby-ansi)))
9191 (synopsis "Universal test harness for Ruby")
9192 (description
9193 "Rubytest is a testing meta-framework for Ruby. It can handle any
9194compliant test framework and can run tests from multiple frameworks in a
9195single pass.")
9196 (home-page "https://rubyworks.github.io/rubytest")
9197 (license license:bsd-2)))
9198
9199(define-public ruby-brass
9200 (package
9201 (name "ruby-brass")
9202 (version "1.2.1")
9203 (source
9204 (origin
9205 (method url-fetch)
9206 (uri (rubygems-uri "brass" version))
9207 (sha256
9208 (base32
9209 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9210 (build-system ruby-build-system)
9211 (arguments
9212 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9213 ;; Instead simply test that the library can be require'd.
9214 `(#:phases
9215 (modify-phases %standard-phases
9216 (replace 'check
9217 (lambda _
9218 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9219 (synopsis "Basic foundational assertions framework")
9220 (description
9221 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9222foundational assertions framework for other assertion and test frameworks to
9223make use of.")
9224 (home-page "https://rubyworks.github.io/brass")
9225 (license license:bsd-2)))
9226
9227(define-public ruby-qed
9228 (package
9229 (name "ruby-qed")
9230 (version "2.9.2")
9231 (source
9232 (origin
9233 (method url-fetch)
9234 (uri (rubygems-uri "qed" version))
9235 (sha256
9236 (base32
9237 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9238 (build-system ruby-build-system)
9239 (arguments
9240 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9241 ;; Instead simply test that the executable runs using --copyright.
9242 `(#:phases
9243 (modify-phases %standard-phases
9244 (replace 'check
9245 (lambda _
9246 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9247 (propagated-inputs
9248 `(("ruby-ansi" ,ruby-ansi)
9249 ("ruby-brass" ,ruby-brass)))
9250 (synopsis "Test framework utilizing literate programming techniques")
9251 (description
9252 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9253@dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9254Development} (BDD) utilizing Literate Programming techniques. QED sits
9255somewhere between lower-level testing tools like @code{Test::Unit} and
9256requirement specifications systems like Cucumber.")
9257 (home-page "https://rubyworks.github.io/qed")
9258 (license license:bsd-2)))
9259
9260(define-public ruby-que
9261 (package
9262 (name "ruby-que")
9263 (version "1.0.0.beta3")
9264 (source
9265 (origin
9266 (method url-fetch)
9267 (uri (rubygems-uri "que" version))
9268 (sha256
9269 (base32
9270 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9271 (build-system ruby-build-system)
9272 (arguments
9273 '(#:tests? #f)) ; No included tests
9274 (synopsis "Job queue using PostgreSQL written in Ruby")
9275 (description
9276 "This package provides a job queue that uses PostgreSQL for storing jobs
9277and locking between worker processes.")
9278 (home-page "https://github.com/chanks/que")
9279 (license license:expat)))
9280
9281(define-public ruby-ae
9282 (package
9283 (name "ruby-ae")
9284 (version "1.8.2")
9285 (source
9286 (origin
9287 (method git-fetch)
9288 ;; Fetch from github so tests are included.
9289 (uri (git-reference
9290 (url "https://github.com/rubyworks/ae")
9291 (commit version)))
9292 (file-name (git-file-name name version))
9293 (sha256
9294 (base32
9295 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9296 (build-system ruby-build-system)
9297 (arguments
9298 `(#:phases
9299 (modify-phases %standard-phases
9300 (replace 'check
9301 (lambda _ (invoke "qed")))
9302 (add-before 'validate-runpath 'replace-broken-symlink
9303 (lambda* (#:key outputs #:allow-other-keys)
9304 (let* ((out (assoc-ref outputs "out"))
9305 (file (string-append
9306 out "/lib/ruby/vendor_ruby/gems/ae-"
9307 ,version "/lib/ae.yml")))
9308 ;; XXX: This symlink is broken since ruby 2.4.
9309 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9310 (delete-file file)
9311 (symlink "../.index" file)
9312 #t))))))
9313 (propagated-inputs
9314 `(("ruby-ansi" ,ruby-ansi)))
9315 (native-inputs
9316 `(("ruby-qed" ,ruby-qed)))
9317 (synopsis "Assertions library")
9318 (description
9319 "Assertive Expressive (AE) is an assertions library specifically designed
9320for reuse by other test frameworks.")
9321 (home-page "https://rubyworks.github.io/ae/")
9322 (license license:bsd-2)))
9323
9324(define-public ruby-lemon
9325 (package
9326 (name "ruby-lemon")
9327 (version "0.9.1")
9328 (source
9329 (origin
9330 (method url-fetch)
9331 (uri (rubygems-uri "lemon" version))
9332 (sha256
9333 (base32
9334 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9335 (build-system ruby-build-system)
9336 (arguments
9337 `(#:phases
9338 (modify-phases %standard-phases
9339 (replace 'check (lambda _ (invoke "qed"))))))
9340 (propagated-inputs
9341 `(("ruby-ae" ,ruby-ae)
9342 ("ruby-ansi" ,ruby-ansi)
9343 ("ruby-rubytest" ,ruby-rubytest)))
9344 (native-inputs
9345 `(("ruby-qed" ,ruby-qed)))
9346 (synopsis "Test framework correlating code structure and test unit")
9347 (description
9348 "Lemon is a unit testing framework that enforces highly formal
9349case-to-class and unit-to-method test construction. This enforcement can help
9350focus concern on individual units of behavior.")
9351 (home-page "https://rubyworks.github.io/lemon")
9352 (license license:bsd-2)))
9353
9354(define-public ruby-rubytest-cli
9355 (package
9356 (name "ruby-rubytest-cli")
9357 (version "0.2.0")
9358 (source
9359 (origin
9360 (method url-fetch)
9361 (uri (rubygems-uri "rubytest-cli" version))
9362 (sha256
9363 (base32
9364 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9365 (build-system ruby-build-system)
9366 (arguments
9367 `(#:tests? #f)) ; no tests
9368 (propagated-inputs
9369 `(("ruby-ansi" ,ruby-ansi)
9370 ("ruby-rubytest" ,ruby-rubytest)))
9371 (synopsis "Command-line interface for rubytest")
9372 (description
9373 "Rubytest CLI is a command-line interface for running tests for
9374Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9375 (home-page "https://rubyworks.github.io/rubytest-cli")
9376 (license license:bsd-2)))
9377
9378(define-public ruby-hashery
9379 (package
9380 (name "ruby-hashery")
9381 (version "2.1.2")
9382 (source
9383 (origin
9384 (method url-fetch)
9385 (uri (rubygems-uri "hashery" version))
9386 (sha256
9387 (base32
9388 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9389 (build-system ruby-build-system)
9390 (arguments
9391 `(#:phases
9392 (modify-phases %standard-phases
9393 (replace 'check
9394 (lambda _
9395 (invoke "qed")
9396 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9397 (native-inputs
9398 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9399 ("ruby-qed" ,ruby-qed)
9400 ("ruby-lemon" ,ruby-lemon)))
9401 (synopsis "Hash-like classes with extra features")
9402 (description
9403 "The Hashery is a tight collection of @code{Hash}-like classes.
9404Included are the auto-sorting @code{Dictionary} class, the efficient
9405@code{LRUHash}, the flexible @code{OpenHash} and the convenient
9406@code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9407defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9408standard @code{Hash} making it possible to subclass and augment to fit any
9409specific use case.")
9410 (home-page "https://rubyworks.github.io/hashery")
9411 (license license:bsd-2)))
9412
9413(define-public ruby-rc4
9414 (package
9415 (name "ruby-rc4")
9416 (version "0.1.5")
9417 (source
9418 (origin
9419 (method url-fetch)
9420 (uri (rubygems-uri "ruby-rc4" version))
9421 (sha256
9422 (base32
9423 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9424 (build-system ruby-build-system)
9425 (arguments
9426 `(#:phases
9427 (modify-phases %standard-phases
9428 (replace 'check
9429 (lambda _
9430 (invoke "rspec" "spec/rc4_spec.rb"))))))
9431 (native-inputs
9432 `(("ruby-rspec" ,ruby-rspec-2)))
9433 (synopsis "Implementation of the RC4 algorithm")
9434 (description
9435 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9436 (home-page "https://github.com/caiges/Ruby-RC4")
9437 (license license:expat)))
9438
9439(define-public ruby-afm
9440 (package
9441 (name "ruby-afm")
9442 (version "0.2.2")
9443 (source
9444 (origin
9445 (method url-fetch)
9446 (uri (rubygems-uri "afm" version))
9447 (sha256
9448 (base32
9449 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9450 (build-system ruby-build-system)
9451 (native-inputs
9452 `(("bundler" ,bundler)))
9453 (synopsis "Read Adobe Font Metrics (afm) files")
9454 (description
9455 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9456files and use the data therein.")
9457 (home-page "https://github.com/halfbyte/afm")
9458 (license license:expat)))
9459
9460(define-public ruby-ascii85
9461 (package
9462 (name "ruby-ascii85")
9463 (version "1.0.3")
9464 (source
9465 (origin
9466 (method url-fetch)
9467 (uri (rubygems-uri "Ascii85" version))
9468 (sha256
9469 (base32
9470 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9471 (build-system ruby-build-system)
9472 (native-inputs
9473 `(("bundler" ,bundler)))
9474 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9475 (description
9476 "This library provides methods to encode and decode Ascii85
9477binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9478@dfn{Portable Document Format} (PDF) file formats.")
9479 (home-page "https://github.com/datawraith/ascii85gem")
9480 (license license:expat)))
9481
9482(define-public ruby-ttfunk
9483 (package
9484 (name "ruby-ttfunk")
9485 (version "1.6.2.1")
9486 (source
9487 (origin
9488 (method git-fetch)
9489 ;; fetch from github as the gem does not contain testing code
9490 (uri (git-reference
9491 (url "https://github.com/prawnpdf/ttfunk")
9492 (commit version)))
9493 (file-name (git-file-name name version))
9494 (sha256
9495 (base32
9496 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9497 (build-system ruby-build-system)
9498 (arguments
9499 `(#:test-target "spec"
9500 #:phases
9501 (modify-phases %standard-phases
9502 (add-before 'build 'remove-ssh
9503 (lambda _
9504 ;; remove dependency on an ssh key pair that doesn't exist
9505 (substitute* "ttfunk.gemspec"
9506 (("spec.signing_key.*") ""))
9507 #t))
9508 (add-before 'check 'remove-rubocop
9509 (lambda _
9510 ;; remove rubocop as a dependency as not needed for testing
9511 (substitute* "ttfunk.gemspec"
9512 (("spec.add_development_dependency\\('rubocop'.*") ""))
9513 (substitute* "Rakefile"
9514 (("require 'rubocop/rake_task'") "")
9515 (("RuboCop::RakeTask.new") ""))
9516 #t)))))
9517 (native-inputs
9518 `(("ruby-rspec" ,ruby-rspec)
9519 ("ruby-yard" ,ruby-yard)
9520 ("bundler" ,bundler)))
9521 (synopsis "Font metrics parser for the Prawn PDF generator")
9522 (description
9523 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9524part of the Prawn PDF generator.")
9525 (home-page "https://github.com/prawnpdf/ttfunk")
9526 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9527 ;; for details."
9528 (license %prawn-project-licenses)))
9529
9530(define-public ruby-puma
9531 (package
9532 (name "ruby-puma")
9533 (version "3.9.1")
9534 (source
9535 (origin
9536 (method git-fetch)
9537 ;; Fetch from GitHub because distributed gem does not contain tests.
9538 (uri (git-reference
9539 (url "https://github.com/puma/puma")
9540 (commit (string-append "v" version))))
9541 (file-name (git-file-name name version))
9542 (sha256
9543 (base32
9544 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9545 (build-system ruby-build-system)
9546 (arguments
9547 `(#:tests? #f ; Tests require an out-dated version of minitest.
9548 #:phases
9549 (modify-phases %standard-phases
9550 (add-before 'build 'fix-gemspec
9551 (lambda _
9552 (substitute* "puma.gemspec"
9553 (("git ls-files") "find * |sort"))
9554 #t)))))
9555 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9556 (description
9557 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9558for Ruby/Rack applications. Puma is intended for use in both development and
9559production environments. In order to get the best throughput, it is highly
9560recommended that you use a Ruby implementation with real threads like Rubinius
9561or JRuby.")
9562 (home-page "https://puma.io/")
9563 (license license:expat)))
9564
9565(define-public ruby-hoe-git
9566 (package
9567 (name "ruby-hoe-git")
9568 (version "1.6.0")
9569 (source
9570 (origin
9571 (method url-fetch)
9572 (uri (rubygems-uri "hoe-git" version))
9573 (sha256
9574 (base32
9575 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9576 (build-system ruby-build-system)
9577 (propagated-inputs
9578 `(("ruby-hoe" ,ruby-hoe)))
9579 (synopsis "Hoe plugins for tighter Git integration")
9580 (description
9581 "This package provides a set of Hoe plugins for tighter Git integration.
9582It provides tasks to automate release tagging and pushing and changelog
9583generation.")
9584 (home-page "https://github.com/jbarnette/hoe-git")
9585 (license license:expat)))
9586
9587(define-public ruby-sequel
9588 (package
9589 (name "ruby-sequel")
9590 (version "4.49.0")
9591 (source
9592 (origin
9593 (method url-fetch)
9594 (uri (rubygems-uri "sequel" version))
9595 (sha256
9596 (base32
9597 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9598 (build-system ruby-build-system)
9599 (arguments
9600 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9601 (synopsis "Database toolkit for Ruby")
9602 (description "Sequel provides thread safety, connection pooling and a
9603concise DSL for constructing SQL queries and table schemas. It includes a
9604comprehensive ORM layer for mapping records to Ruby objects and handling
9605associated records.")
9606 (home-page "https://sequel.jeremyevans.net")
9607 (license license:expat)))
9608
9609(define-public ruby-timecop
9610 (package
9611 (name "ruby-timecop")
9612 (version "0.9.1")
9613 (source
9614 (origin
9615 (method url-fetch)
9616 (uri (rubygems-uri "timecop" version))
9617 (sha256
9618 (base32
9619 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9620 (build-system ruby-build-system)
9621 (arguments
9622 `(#:phases
9623 (modify-phases %standard-phases
9624 (add-before 'check 'set-check-rubylib
9625 (lambda _
9626 ;; Set RUBYLIB so timecop tests finds its own lib.
9627 (setenv "RUBYLIB" "lib")
9628 #t)))))
9629 (native-inputs
9630 `(("bundler" ,bundler)
9631 ("ruby-minitest-rg" ,ruby-minitest-rg)
9632 ("ruby-mocha" ,ruby-mocha)
9633 ("ruby-activesupport" ,ruby-activesupport)))
9634 (synopsis "Test mocks for time-dependent functions")
9635 (description
9636 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9637making it easier to test time-dependent code. It provides a unified method to
9638mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9639call.")
9640 (home-page "https://github.com/travisjeffery/timecop")
9641 (license license:expat)))
9642
9643(define-public ruby-concurrent
9644 (package
9645 (name "ruby-concurrent")
9646 (version "1.1.5")
9647 (source
9648 (origin
9649 (method git-fetch)
9650 ;; Download from GitHub because the rubygems version does not contain
9651 ;; Rakefile.
9652 (uri (git-reference
9653 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9654 (commit (string-append "v" version))))
9655 (file-name (git-file-name name version))
9656 (sha256
9657 (base32
9658 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9659 (build-system ruby-build-system)
9660 (arguments
9661 `(#:test-target "ci"
9662 #:phases
9663 (modify-phases %standard-phases
9664 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9665 (lambda _
9666 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9667 ;; correct one.
9668 (delete-file "concurrent-ruby-edge.gemspec")
9669 (delete-file "concurrent-ruby-ext.gemspec")
9670 #t))
9671 (replace 'replace-git-ls-files
9672 (lambda _
9673 ;; XXX: The default substitution made by this phase is not fully
9674 ;; compatible with "git ls-files". The latter produces file names
9675 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9676 ;; which gives "./lib/foo". That difference in turn breaks the
9677 ;; comparison against a glob pattern in this script.
9678 (substitute* "concurrent-ruby.gemspec"
9679 (("git ls-files") "find * -type f | sort"))
9680 #t))
9681 (add-before 'build 'remove-jar-from-gemspec
9682 (lambda _
9683 ;; The gemspec wants to include a JAR file that we do not build
9684 ;; nor need.
9685 (substitute* "concurrent-ruby.gemspec"
9686 (("'lib/concurrent/concurrent_ruby.jar'")
9687 ""))
9688 #t))
9689 (add-before 'build 'remove-rake_compiler_dock-dependency
9690 (lambda _
9691 ;; This library is only used when building for non-MRI targets.
9692 (substitute* "Rakefile"
9693 (("require 'rake_compiler_dock'")
9694 ""))
9695 #t))
9696 (add-before 'check 'remove-timecop-dependency
9697 ;; Remove timecop-dependent tests as having timecop as a depedency
9698 ;; causes circular depedencies.
9699 (lambda _
9700 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
9701 (delete-file "spec/concurrent/scheduled_task_spec.rb")
9702 #t)))))
9703 (native-inputs
9704 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9705 ("ruby-rspec" ,ruby-rspec)))
9706 (synopsis "Concurrency tools for Ruby")
9707 (description
9708 "This library provides modern concurrency tools including agents,
9709futures, promises, thread pools, actors, supervisors, and more. It is
9710inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
9711patterns.")
9712 (home-page "http://www.concurrent-ruby.com")
9713 (license license:expat)))
9714
9715(define-public ruby-pkg-config
9716 (package
9717 (name "ruby-pkg-config")
9718 (version "1.2.5")
9719 (source
9720 (origin
9721 (method url-fetch)
9722 (uri (rubygems-uri "pkg-config" version))
9723 (sha256
9724 (base32
9725 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
9726 (build-system ruby-build-system)
9727 (arguments
9728 ;; Tests require extra files not included in the gem.
9729 `(#:tests? #f))
9730 (synopsis "Detect libraries for compiling Ruby native extensions")
9731 (description
9732 "@code{pkg-config} can be used in your extconf.rb to properly detect need
9733libraries for compiling Ruby native extensions.")
9734 (home-page "https://github.com/ruby-gnome2/pkg-config")
9735 (license license:lgpl2.0+)))
9736
9737(define-public ruby-net-http-digest-auth
9738 (package
9739 (name "ruby-net-http-digest-auth")
9740 (version "1.4.1")
9741 (source
9742 (origin
9743 (method url-fetch)
9744 (uri (rubygems-uri "net-http-digest_auth" version))
9745 (sha256
9746 (base32
9747 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
9748 (build-system ruby-build-system)
9749 (native-inputs
9750 `(("ruby-hoe" ,ruby-hoe)))
9751 (synopsis "RFC 2617 HTTP digest authentication library")
9752 (description
9753 "This library implements HTTP's digest authentication scheme based on
9754RFC 2617. This enables the use of the digest authentication scheme instead
9755of the more insecure basic authentication scheme.")
9756 (home-page "https://github.com/drbrain/net-http-digest_auth")
9757 (license license:expat)))
9758
9759(define-public ruby-mail
9760 (package
9761 (name "ruby-mail")
9762 (version "2.6.6")
9763 (source
9764 (origin
9765 (method url-fetch)
9766 (uri (rubygems-uri "mail" version))
9767 (sha256
9768 (base32
9769 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
9770 (build-system ruby-build-system)
9771 (propagated-inputs
9772 `(("ruby-mime-types" ,ruby-mime-types)))
9773 (arguments
9774 ;; Tests require extra gems not included in the Gemfile.
9775 ;; XXX: Try enabling this for the next version with mini_mime.
9776 `(#:tests? #f))
9777 (synopsis "Mail library for Ruby")
9778 (description
9779 "Mail is an internet library for Ruby that is designed to handle email
9780generation, parsing and sending. The purpose of this library is to provide
9781a single point of access to handle all email functions, including sending
9782and receiving emails. All network type actions are done through proxy
9783methods to @code{Net::SMTP}, @code{Net::POP3} etc.
9784
9785Mail has been designed with a very simple object oriented system that
9786really opens up the email messages you are parsing, if you know what you
9787are doing, you can fiddle with every last bit of your email directly.")
9788 (home-page "https://github.com/mikel/mail")
9789 (license license:expat)))
9790
9791(define-public ruby-mathn
9792 (package
9793 (name "ruby-mathn")
9794 (version "0.1.0")
9795 (source
9796 (origin
9797 (method url-fetch)
9798 (uri (rubygems-uri "mathn" version))
9799 (sha256
9800 (base32
9801 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
9802 (build-system ruby-build-system)
9803 (native-inputs
9804 `(("bundler" ,bundler)
9805 ("ruby-rake-compiler" ,ruby-rake-compiler)))
9806 (synopsis "Extends math operations for increased precision")
9807 (description
9808 "This gem makes mathematical operations more precise in Ruby and
9809integrates other mathematical standard libraries. Prior to Ruby 2.5,
9810@code{mathn} was part of the Ruby standard library.")
9811 (home-page "https://github.com/ruby/mathn")
9812 (license license:bsd-2)))
9813
9814(define-public ruby-code-statistics
9815 (package
9816 (name "ruby-code-statistics")
9817 (version "0.2.13")
9818 (source
9819 (origin
9820 (method url-fetch)
9821 (uri (rubygems-uri "code_statistics" version))
9822 (sha256
9823 (base32
9824 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
9825 (build-system ruby-build-system)
9826 (arguments
9827 `(#:tests? #f)) ; Not all test code is included in gem.
9828 (synopsis "Port of the rails 'rake stats' method")
9829 (description
9830 "This gem is a port of the rails 'rake stats' method so it can be made
9831more robust and work for non rails projects.")
9832 (home-page "https://github.com/danmayer/code_statistics")
9833 (license license:expat)))
9834
9835(define-public ruby-rubypants
9836 (package
9837 (name "ruby-rubypants")
9838 (version "0.6.0")
9839 (source (origin
9840 (method url-fetch)
9841 (uri (rubygems-uri "rubypants" version))
9842 (sha256
9843 (base32
9844 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
9845 (build-system ruby-build-system)
9846 (arguments
9847 '(#:tests? #f)) ; need Codecov
9848 (synopsis "Port of the smart-quotes library SmartyPants")
9849 (description
9850 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
9851original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
9852and BBEdit that easily translates plain ASCII punctuation characters into
9853smart typographic punctuation HTML entities.")
9854 (home-page "https://github.com/jmcnevin/rubypants")
9855 (license license:bsd-2)))
9856
9857(define-public ruby-org-ruby
9858 (package
9859 (name "ruby-org-ruby")
9860 (version "0.9.12")
9861 (source (origin
9862 (method url-fetch)
9863 (uri (rubygems-uri "org-ruby" version))
9864 (sha256
9865 (base32
9866 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
9867 (build-system ruby-build-system)
9868 (arguments
9869 '(#:tests? #f)) ; no rakefile
9870 (propagated-inputs
9871 `(("ruby-rubypants" ,ruby-rubypants)))
9872 (synopsis "Org-mode parser written in Ruby")
9873 (description
9874 "Org-ruby is an org-mode parser written in Ruby. The most significant
9875thing this library does today is convert org-mode files to HTML or Textile or
9876Markdown.")
9877 (home-page "https://github.com/wallyqs/org-ruby")
9878 (license license:expat)))
9879
9880(define-public ruby-rake
9881 (package
9882 (name "ruby-rake")
9883 (version "13.0.1")
9884 (source
9885 (origin
9886 (method url-fetch)
9887 (uri (rubygems-uri "rake" version))
9888 (sha256
9889 (base32
9890 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
9891 (build-system ruby-build-system)
9892 (native-inputs
9893 `(("bundler" ,bundler)))
9894 (synopsis "Rake is a Make-like program implemented in Ruby")
9895 (description
9896 "Rake is a Make-like program where tasks and dependencies are specified
9897in standard Ruby syntax.")
9898 (home-page "https://github.com/ruby/rake")
9899 (license license:expat)))
9900
9901(define-public ruby-childprocess
9902 (package
9903 (name "ruby-childprocess")
9904 (version "3.0.0")
9905 (source
9906 (origin
9907 (method url-fetch)
9908 (uri (rubygems-uri "childprocess" version))
9909 (sha256
9910 (base32
9911 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
9912 (build-system ruby-build-system)
9913 (arguments
9914 `(#:tests? #f))
9915 (native-inputs
9916 `(("bundler" ,bundler)
9917 ("ruby-rspec" ,ruby-rspec)))
9918 (propagated-inputs
9919 `(("ruby-ffi" ,ruby-ffi)))
9920 (synopsis "Control external programs running in the background, in Ruby")
9921 (description "@code{childprocess} provides a gem to control external
9922programs running in the background, in Ruby.")
9923 (home-page "https://github.com/enkessler/childprocess")
9924 (license license:expat)))
9925
9926(define-public ruby-public-suffix
9927 (package
9928 (name "ruby-public-suffix")
9929 (version "4.0.5")
9930 (source (origin
9931 (method url-fetch)
9932 (uri (rubygems-uri "public_suffix" version))
9933 (sha256
9934 (base32
9935 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
9936 (build-system ruby-build-system)
9937 (arguments
9938 '(#:phases
9939 (modify-phases %standard-phases
9940 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
9941 ;; including it as an input can lead to circular dependencies.
9942 (add-after 'unpack 'remove-rubocop-from-Rakefile
9943 (lambda _
9944 (substitute* "Rakefile"
9945 (("require \"rubocop/rake\\_task\"") "")
9946 (("RuboCop::RakeTask\\.new") ""))
9947 #t)))))
9948 (native-inputs
9949 `(("bundler" ,bundler)
9950 ("ruby-yard" ,ruby-yard)
9951 ("ruby-mocha" ,ruby-mocha)
9952 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
9953 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
9954 (synopsis "Domain name parser")
9955 (description "The gem @code{public_suffix} is a domain name parser,
9956written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
9957is one under which Internet users can (or historically could) directly
9958register names. Some examples of public suffixes are @code{.com},
9959@code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
9960all known public suffixes.")
9961 (license license:expat)))
9962
9963(define-public ruby-addressable
9964 (package
9965 (name "ruby-addressable")
9966 (version "2.7.0")
9967 (source (origin
9968 (method url-fetch)
9969 (uri (rubygems-uri "addressable" version))
9970 (sha256
9971 (base32
9972 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
9973 (build-system ruby-build-system)
9974 (arguments
9975 '(#:test-target "spec"
9976 #:phases
9977 (modify-phases %standard-phases
9978 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
9979 (lambda _
9980 (substitute* "Gemfile"
9981 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
9982 ((".*launchy.*") "")
9983 ((".*rake.*") "gem 'rake'\n")
9984 ((".*redcarpet.*") ""))
9985 #t))
9986 (add-before 'check 'delete-network-dependent-test
9987 (lambda _
9988 (delete-file "spec/addressable/net_http_compat_spec.rb")
9989 #t)))))
9990 (native-inputs
9991 `(("ruby-rspec" ,ruby-rspec)
9992 ("bundler" ,bundler)
9993 ("ruby-idn-ruby" ,ruby-idn-ruby)
9994 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
9995 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
9996 ("ruby-yard" ,ruby-yard)
9997 ("ruby-simplecov" ,ruby-simplecov)))
9998 (propagated-inputs
9999 `(("ruby-public-suffix" ,ruby-public-suffix)))
10000 (home-page "https://github.com/sporkmonger/addressable")
10001 (synopsis "Alternative URI implementation")
10002 (description "Addressable is a replacement for the URI implementation that
10003is part of Ruby's standard library. It more closely conforms to RFC 3986,
10004RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10005 (license license:asl2.0)))
10006
10007(define-public ruby-colorize
10008 (package
10009 (name "ruby-colorize")
10010 (version "0.8.1")
10011 (source (origin
10012 (method url-fetch)
10013 (uri (rubygems-uri "colorize" version))
10014 (sha256
10015 (base32
10016 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10017 (build-system ruby-build-system)
10018 (arguments
10019 '(#:phases (modify-phases %standard-phases
10020 (add-before 'check 'remove-codeclimate-dependency
10021 (lambda _
10022 (substitute* "test/test_colorize.rb"
10023 ;; Do not hook the tests into the online CodeClimate
10024 ;; service which is unnecessary for these tests.
10025 (("require 'codeclimate-test-reporter'")
10026 "")
10027 (("CodeClimate.*") ""))
10028 #t)))))
10029 (synopsis "Add color effects to the @code{String} class")
10030 (description
10031 "This package extends the @code{String} class and adds a
10032@code{ColorizedString} with methods to set text color, background color,
10033and text effects.")
10034 (home-page "https://github.com/fazibear/colorize")
10035 (license license:gpl2+)))
10036
10037(define-public ruby-colorator
10038 (package
10039 (name "ruby-colorator")
10040 (version "1.1.0")
10041 (source (origin
10042 (method url-fetch)
10043 (uri (rubygems-uri "colorator" version))
10044 (sha256
10045 (base32
10046 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10047 (build-system ruby-build-system)
10048 (arguments
10049 ;; No test target
10050 `(#:tests? #f))
10051 (home-page "http://octopress.org/colorator/")
10052 (synopsis "Terminal color library")
10053 (description "Colorator is a Ruby gem that helps you colorize your text
10054for the terminal.")
10055 (license license:expat)))
10056
10057(define-public ruby-command-line-reporter
10058 (package
10059 (name "ruby-command-line-reporter")
10060 (version "4.0.1")
10061 (source (origin
10062 (method url-fetch)
10063 (uri (rubygems-uri "command_line_reporter" version))
10064 (sha256
10065 (base32
10066 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10067 (build-system ruby-build-system)
10068 (arguments
10069 ;; No Rakefile
10070 `(#:tests? #f
10071 #:phases
10072 (modify-phases %standard-phases
10073 (add-before 'build 'fix-dependencies
10074 (lambda _
10075 (substitute* ".gemspec"
10076 ;; colored is unmaintained
10077 (("colored") "colorator")
10078 ;; colorator version
10079 (("= 1.2") "= 1.1"))
10080 #t)))))
10081 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10082 (home-page "https://github.com/wbailey/command_line_reporter")
10083 (synopsis "Report production while executing Ruby scripts")
10084 (description "This gem provides a DSL that makes it easy to write reports
10085of various types in ruby. It eliminates the need to litter your source with
10086puts statements, instead providing a more readable, expressive interface to
10087your application.")
10088 (license license:asl2.0)))
10089
10090(define-public ruby-command-line-reporter-3
10091 (package
10092 (inherit ruby-command-line-reporter)
10093 (version "3.3.6")
10094 (source (origin
10095 (method url-fetch)
10096 (uri (rubygems-uri "command_line_reporter" version))
10097 (sha256
10098 (base32
10099 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10100
10101(define-public ruby-kpeg
10102 (package
10103 (name "ruby-kpeg")
10104 (version "1.1.0")
10105 (source
10106 (origin
10107 (method url-fetch)
10108 (uri (rubygems-uri "kpeg" version))
10109 (sha256
10110 (base32
10111 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10112 (build-system ruby-build-system)
10113 (native-inputs
10114 `(("ruby-hoe" ,ruby-hoe)))
10115 (synopsis "PEG library for Ruby")
10116 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10117well as native grammar to build the grammar. KPeg supports direct left
10118recursion of rules via the
10119@uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10120technique.")
10121 (home-page "https://github.com/evanphx/kpeg")
10122 (license license:expat)))
10123
10124(define-public ruby-rdoc
10125 (package
10126 (name "ruby-rdoc")
10127 (version "6.2.0")
10128 (source
10129 (origin
10130 (method git-fetch)
10131 (uri (git-reference
10132 (url "https://github.com/ruby/rdoc")
10133 (commit (string-append "v" version))))
10134 (file-name (git-file-name name version))
10135 (sha256
10136 (base32
10137 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10138 (build-system ruby-build-system)
10139 (arguments
10140 `(#:phases
10141 (modify-phases %standard-phases
10142 (add-after 'unpack 'patch-gemspec
10143 ;; TODO: Remove after next release is tagged.
10144 (lambda _
10145 (substitute* "rdoc.gemspec"
10146 (("\"lib/rdoc/generator/template/darkfish/js/\
10147jquery\\.js\", ") ""))
10148 #t))
10149 (add-before 'build 'generate
10150 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10151 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10152 (lambda _
10153 (invoke "rake" "generate"))))))
10154 (native-inputs
10155 `(("bundler" ,bundler)
10156 ("ruby-kpeg" ,ruby-kpeg)
10157 ("ruby-racc" ,ruby-racc)
10158 ("ruby-rubocop" ,ruby-rubocop)))
10159 (home-page "https://ruby.github.io/rdoc/")
10160 (synopsis "HTML and command-line documentation utility")
10161 (description "RDoc produces HTML and command-line documentation for Ruby
10162projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10163documentation from the command-line.")
10164 (license license:gpl2+)))
10165
10166(define-public ruby-sass-listen
10167 (package
10168 (name "ruby-sass-listen")
10169 (version "4.0.0")
10170 (source (origin
10171 (method url-fetch)
10172 (uri (rubygems-uri "sass-listen" version))
10173 (sha256
10174 (base32
10175 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10176 (build-system ruby-build-system)
10177 (arguments
10178 ;; No test target
10179 `(#:tests? #f))
10180 (propagated-inputs
10181 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10182 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10183 (home-page "https://github.com/sass/listen")
10184 (synopsis "File modification notification library")
10185 (description "The Listen gem listens to file modifications and notifies you
10186about the changes.")
10187 (license license:expat)))
10188
10189(define-public ruby-terminfo
10190 (package
10191 (name "ruby-terminfo")
10192 (version "0.1.1")
10193 (source
10194 (origin
10195 (method url-fetch)
10196 (uri (rubygems-uri "ruby-terminfo" version))
10197 (sha256
10198 (base32
10199 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10200 (build-system ruby-build-system)
10201 (arguments
10202 `(#:test-target "test"
10203 ;; Rakefile requires old packages and would need modification to
10204 ;; work with current software.
10205 #:tests? #f))
10206 (inputs
10207 `(("ncurses" ,ncurses)))
10208 (native-inputs
10209 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10210 ("ruby-rdoc" ,ruby-rdoc)))
10211 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10212 (synopsis "Terminfo binding for Ruby")
10213 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10214 (license license:bsd-3)))
10215
10216(define-public ruby-diffy
10217 (package
10218 (name "ruby-diffy")
10219 (version "3.2.1")
10220 (source
10221 (origin
10222 (method url-fetch)
10223 (uri (rubygems-uri "diffy" version))
10224 (sha256
10225 (base32
10226 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10227 (build-system ruby-build-system)
10228 (arguments
10229 ;; No tests
10230 `(#:tests? #f))
10231 (native-inputs
10232 `(("ruby-rspec" ,ruby-rspec)))
10233 (home-page "https://github.com/samg/diffy")
10234 (synopsis "Convenient diffing in ruby")
10235 (description "Diffy provides a convenient way to generate a diff from two
10236strings or files.")
10237 (license license:expat)))
10238
10239(define-public ruby-sass-spec
10240 (package
10241 (name "ruby-sass-spec")
10242 (version "3.5.4")
10243 (source
10244 (origin
10245 (method git-fetch)
10246 (uri (git-reference
10247 (url "https://github.com/sass/sass-spec")
10248 (commit (string-append "v" version))))
10249 (file-name (git-file-name name version))
10250 (sha256
10251 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10252 (build-system ruby-build-system)
10253 (propagated-inputs
10254 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10255 ("ruby-diffy" ,ruby-diffy)
10256 ("ruby-terminfo" ,ruby-terminfo)))
10257 (arguments
10258 `(;; This package contains tests for a sass implementation, and the to
10259 ;; avoid any circular dependencies, the tests are not run here
10260 #:tests? #f
10261 #:phases
10262 (modify-phases %standard-phases
10263 (add-after 'unpack 'patch-test
10264 (lambda _
10265 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10266 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10267 (("string") "color")))))))
10268 (home-page "https://github.com/sass/sass-spec")
10269 (synopsis "Test suite for Sass")
10270 (description "Sass Spec is a test suite for Sass. Test cases are all in
10271the @file{spec} directory.")
10272 (license license:expat)))
10273
10274(define-public ruby-sass
10275 (package
10276 (name "ruby-sass")
10277 (version "3.6.0")
10278 (source (origin
10279 (method url-fetch)
10280 (uri (rubygems-uri "sass" version))
10281 (sha256
10282 (base32
10283 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10284 (build-system ruby-build-system)
10285 (propagated-inputs
10286 `(("ruby-sass-listen" ,ruby-sass-listen)))
10287 (native-inputs
10288 `(("ruby-sass-spec" ,ruby-sass-spec)
10289 ("ruby-mathn" ,ruby-mathn)))
10290 (home-page "https://sass-lang.com/")
10291 (synopsis "CSS extension language")
10292 (description "Sass is a CSS extension language. It extends CSS with
10293features that don't exist yet like variables, nesting, mixins and inheritance.")
10294 (license license:expat)))
10295
10296(define-public ruby-sassc
10297 (package
10298 (name "ruby-sassc")
10299 (version "2.2.1")
10300 (source
10301 (origin
10302 (method url-fetch)
10303 (uri (rubygems-uri "sassc" version))
10304 (sha256
10305 (base32
10306 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
10307 (build-system ruby-build-system)
10308 (arguments
10309 '(#:modules ((guix build ruby-build-system)
10310 (guix build utils)
10311 (ice-9 textual-ports))
10312 #:phases
10313 (modify-phases %standard-phases
10314 ;; TODO: This would be better as a snippet, but the ruby-build-system
10315 ;; doesn't seem to support that
10316 (add-after 'unpack 'remove-libsass
10317 (lambda _
10318 (delete-file-recursively "ext")
10319 (with-atomic-file-replacement "sassc.gemspec"
10320 (lambda (in out)
10321 (let* ((gemspec (get-string-all in))
10322 (index (string-contains gemspec "libsass_dir")))
10323 (display (string-append
10324 (string-take gemspec index)
10325 "\nend\n")
10326 out))))
10327 #t))
10328 (add-after 'unpack 'dont-check-the-libsass-version
10329 (lambda _
10330 (substitute* "test/native_test.rb"
10331 (("assert_equal.*Native\\.version") ""))
10332 #t))
10333 (add-after 'unpack 'remove-git-from-gemspec
10334 (lambda _
10335 (substitute* "sassc.gemspec"
10336 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10337 #t))
10338 (add-after 'unpack 'remove-extensions-from-gemspec
10339 (lambda _
10340 (substitute* "sassc.gemspec"
10341 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10342 #t))
10343 (add-after 'unpack 'fix-Rakefile
10344 (lambda _
10345 (substitute* "Rakefile"
10346 (("test: 'compile:libsass'") ":test"))
10347 #t))
10348 (add-after 'unpack 'remove-unnecessary-dependencies
10349 (lambda _
10350 (substitute* "test/test_helper.rb"
10351 (("require \"pry\"") ""))
10352 #t))
10353 (add-before 'build 'patch-native.rb
10354 (lambda* (#:key inputs #:allow-other-keys)
10355 (substitute* "lib/sassc/native.rb"
10356 ((".*gem_root = spec.gem_dir") "")
10357 (("ffi_lib .*\n")
10358 (string-append
10359 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10360 #t))
10361 ;; The gemspec still references the libsass files, so just keep the
10362 ;; one in the gem.
10363 (delete 'extract-gemspec))))
10364 (propagated-inputs
10365 `(("ruby-ffi" ,ruby-ffi)
10366 ("ruby-rake" ,ruby-rake)))
10367 (inputs
10368 `(("libsass" ,libsass)))
10369 (native-inputs
10370 `(("bundler" ,bundler)
10371 ("ruby-rake-compiler" ,ruby-rake-compiler)
10372 ("ruby-minitest-around" ,ruby-minitest-around)
10373 ("ruby-test-construct" ,ruby-test-construct)))
10374 (synopsis "Use libsss from Ruby")
10375 (description
10376 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10377bindings to the libsass library. This enables rendering
10378@acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10379 (home-page "https://github.com/sass/sassc-ruby")
10380 (license license:expat)))
10381
10382(define-public ruby-jekyll-sass-converter
10383 (package
10384 (name "ruby-jekyll-sass-converter")
10385 (version "1.5.2")
10386 (source (origin
10387 (method url-fetch)
10388 (uri (rubygems-uri "jekyll-sass-converter" version))
10389 (sha256
10390 (base32
10391 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
10392 (build-system ruby-build-system)
10393 (propagated-inputs
10394 `(("ruby-sass" ,ruby-sass)))
10395 (arguments
10396 ;; No rakefile
10397 `(#:tests? #f))
10398 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10399 (synopsis "Sass converter for Jekyll")
10400 (description "This gem provide built-in support for the Sass converter
10401in Jekyll.")
10402 (license license:expat)))
10403
10404(define-public ruby-jekyll-watch
10405 (package
10406 (name "ruby-jekyll-watch")
10407 (version "2.1.2")
10408 (source (origin
10409 (method url-fetch)
10410 (uri (rubygems-uri "jekyll-watch" version))
10411 (sha256
10412 (base32
10413 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10414 (build-system ruby-build-system)
10415 (propagated-inputs
10416 `(("ruby-listen" ,ruby-listen)))
10417 (arguments
10418 ;; No rakefile
10419 `(#:tests? #f))
10420 (home-page "https://github.com/jekyll/jekyll-watch")
10421 (synopsis "Jekyll auto-rebuild support")
10422 (description "This gems add the @code{--watch} switch to the jekyll CLI
10423interface. It allows Jekyll to rebuild your site when a file changes.")
10424 (license license:expat)))
10425
10426(define-public ruby-parallel
10427 (package
10428 (name "ruby-parallel")
10429 (version "1.13.0")
10430 (source
10431 (origin
10432 (method git-fetch)
10433 (uri (git-reference
10434 (url "https://github.com/grosser/parallel")
10435 (commit (string-append "v" version))))
10436 (file-name (git-file-name name version))
10437 (sha256
10438 (base32
10439 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10440 (build-system ruby-build-system)
10441 (arguments
10442 `(;; TODO 3 test failures
10443 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10444 ;; open unnecessary pipes
10445 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10446 ;; SQLite in processes
10447 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10448 ;; SQLite in threads
10449 #:tests? #f
10450 #:test-target "rspec-rerun:spec"
10451 #:phases
10452 (modify-phases %standard-phases
10453 (add-after 'unpack 'patch-Gemfile
10454 (lambda _
10455 (substitute* "Gemfile"
10456 (("gem 'rspec-legacy_formatters'") "")
10457 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10458 (add-before 'check 'delete-Gemfile.lock
10459 (lambda _
10460 ;; Bundler isn't being used for fetching dependendencies, so
10461 ;; delete the Gemfile.lock
10462 (delete-file "Gemfile.lock")
10463 #t))
10464 (add-before 'build 'patch-gemspec
10465 (lambda _
10466 (substitute* "parallel.gemspec"
10467 (("git ls-files") "find"))
10468 #t)))))
10469 (native-inputs
10470 `(("ruby-rspec" ,ruby-rspec)
10471 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10472 ("bundler" ,bundler)
10473 ("ruby-activerecord" ,ruby-activerecord)
10474 ("ruby-progressbar" ,ruby-progressbar)
10475 ("ruby-bump" ,ruby-bump)
10476 ("procps" ,procps)
10477 ("lsof" ,lsof)
10478 ("ruby-mysql2" ,ruby-mysql2)
10479 ("ruby-sqlite3" ,ruby-sqlite3)
10480 ("ruby-i18n" ,ruby-i18n)))
10481 (home-page "https://github.com/grosser/parallel")
10482 (synopsis "Parallel processing in Ruby")
10483 (description "Parallel allows you to run any code in parallel Processes
10484(to use all CPUs) or Threads(to speedup blocking operations). It is best
10485suited for map-reduce or e.g. parallel downloads/uploads.")
10486 (license license:expat)))
10487
10488(define-public ruby-cane
10489 (package
10490 (name "ruby-cane")
10491 (version "3.0.0")
10492 (source (origin
10493 (method url-fetch)
10494 (uri (rubygems-uri "cane" version))
10495 (sha256
10496 (base32
10497 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10498 (build-system ruby-build-system)
10499 (arguments `(#:tests? #f)); No rakefile
10500 (home-page "https://github.com/square/cane")
10501 (propagated-inputs
10502 `(("ruby-parallel" ,ruby-parallel)))
10503 (synopsis "Code quality threshold checking")
10504 (description "Cane fails your build if code quality thresholds are not met.")
10505 (license license:asl2.0)))
10506
10507(define-public ruby-morecane
10508 (package
10509 (name "ruby-morecane")
10510 (version "0.2.0")
10511 (source (origin
10512 (method url-fetch)
10513 (uri (rubygems-uri "morecane" version))
10514 (sha256
10515 (base32
10516 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10517 (build-system ruby-build-system)
10518 (home-page "https://github.com/yob/morecane")
10519 (arguments `(#:tests? #f)); No rakefile
10520 (propagated-inputs
10521 `(("ruby-parallel" ,ruby-parallel)))
10522 (synopsis "Extra checks for cane")
10523 (description "The cane gem provides a great framework for running quality
10524checks over your ruby project as part of continuous integration build. It
10525comes with a few checks out of the box, but also provides an API for loading
10526custom checks. This gem provides a set of additional checks.")
10527 (license license:expat)))
10528
10529(define-public ruby-pdf-reader
10530 (package
10531 (name "ruby-pdf-reader")
10532 (version "2.4.0")
10533 (source (origin
10534 (method git-fetch) ;no test in distributed gem archive
10535 (uri (git-reference
10536 (url "https://github.com/yob/pdf-reader.git")
10537 (commit (string-append "v" version))))
10538 (file-name (git-file-name name version))
10539 (sha256
10540 (base32
10541 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10542 (build-system ruby-build-system)
10543 (arguments `(#:test-target "spec"
10544 #:phases (modify-phases %standard-phases
10545 (add-after 'unpack 'do-not-use-bundler
10546 (lambda _
10547 (substitute* "spec/spec_helper.rb"
10548 ((".*[Bb]undler.*") ""))
10549 #t)))))
10550 (native-inputs
10551 `(("ruby-rspec" ,ruby-rspec)
10552 ("ruby-cane" ,ruby-cane)
10553 ("ruby-morecane" ,ruby-morecane)))
10554 (propagated-inputs
10555 `(("ruby-afm" ,ruby-afm)
10556 ("ruby-ascii85" ,ruby-ascii85)
10557 ("ruby-hashery" ,ruby-hashery)
10558 ("ruby-rc4" ,ruby-rc4)
10559 ("ruby-ttfunk" ,ruby-ttfunk)))
10560 (home-page "https://github.com/yob/pdf-reader")
10561 (synopsis "PDF parser in Ruby")
10562 (description "The PDF::Reader library implements a PDF parser conforming as
10563much as possible to the PDF specification from Adobe. It provides programmatic
10564access to the contents of a PDF file with a high degree of flexibility.")
10565 (license license:gpl3+)))
10566
10567(define-public ruby-pdf-inspector
10568 (let ((revision "1")
10569 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10570 (package
10571 (name "ruby-pdf-inspector")
10572 (version (git-version "1.3.0" revision commit))
10573 (source (origin
10574 (method git-fetch)
10575 (uri (git-reference
10576 (url "https://github.com/prawnpdf/pdf-inspector.git")
10577 (commit commit)))
10578 (file-name (git-file-name name version))
10579 (sha256
10580 (base32
10581 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10582 (build-system ruby-build-system)
10583 (arguments
10584 `(#:test-target "spec"
10585 #:phases (modify-phases %standard-phases
10586 (add-before 'build 'drop-signing-key-requirement
10587 (lambda _
10588 (substitute* "pdf-inspector.gemspec"
10589 (("spec.signing_key =.*")
10590 "spec.signing_key = nil"))
10591 #t))
10592 (replace 'check
10593 (lambda _
10594 (substitute* "pdf-inspector.gemspec"
10595 ((".*rubocop.*") "")
10596 ((".*yard.*") ""))
10597 (invoke "rspec"))))))
10598 (native-inputs
10599 `(("ruby-rspec" ,ruby-rspec)))
10600 (propagated-inputs
10601 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10602 (home-page "https://github.com/prawnpdf/pdf-inspector")
10603 (synopsis "Analysis classes for inspecting PDF output")
10604 (description "This library provides a number of PDF::Reader based tools for
10605use in testing PDF output. Presently, the primary purpose of this tool is to
10606support the tests found in Prawn, a pure Ruby PDF generation library.")
10607 (license %prawn-project-licenses))))
10608
10609(define-public ruby-pdf-core
10610 (package
10611 (name "ruby-pdf-core")
10612 (version "0.8.1")
10613 (source (origin
10614 (method url-fetch)
10615 (uri (rubygems-uri "pdf-core" version))
10616 (sha256
10617 (base32
10618 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10619 (build-system ruby-build-system)
10620 (arguments
10621 ; No test target
10622 `(#:tests? #f))
10623 (home-page "https://github.com/prawnpdf/pdf-core")
10624 (synopsis "Low level PDF features for Prawn")
10625 (description "This is an experimental gem that extracts low-level PDF
10626functionality from Prawn.")
10627 (license license:gpl3+)))
10628
10629(define-public ruby-prawn
10630 ;; There hasn't been a new release since 2017/03/17.
10631 (let ((revision "1")
10632 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10633 (package
10634 (name "ruby-prawn")
10635 (version (git-version "2.2.2" revision commit))
10636 (source (origin
10637 (method git-fetch)
10638 (uri (git-reference
10639 (url "https://github.com/prawnpdf/prawn.git")
10640 (commit commit)))
10641 (file-name (git-file-name name version))
10642 (sha256
10643 (base32
10644 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10645 (build-system ruby-build-system)
10646 (arguments
10647 `(#:phases
10648 (modify-phases %standard-phases
10649 (add-before 'build 'drop-signing-key-requirement
10650 (lambda _
10651 (substitute* "prawn.gemspec"
10652 (("spec.signing_key =.*")
10653 "spec.signing_key = nil"))
10654 #t))
10655 (replace 'check
10656 (lambda* (#:key tests? #:allow-other-keys)
10657 (when tests?
10658 ;; The Prawn manual test fails (see:
10659 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10660 ;; it.
10661 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10662 #t)))))
10663 (propagated-inputs
10664 `(("ruby-pdf-core" ,ruby-pdf-core)
10665 ("ruby-ttfunk" ,ruby-ttfunk)))
10666 (native-inputs
10667 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10668 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10669 ("ruby-rspec" ,ruby-rspec)
10670 ("ruby-simplecov" ,ruby-simplecov)
10671 ("ruby-yard" ,ruby-yard)))
10672 (home-page "https://prawnpdf.org/api-docs/2.0/")
10673 (synopsis "PDF generation for Ruby")
10674 (description "Prawn is a pure Ruby PDF generation library.")
10675 (license %prawn-project-licenses))))
10676
10677(define-public ruby-prawn-table
10678 (package
10679 (name "ruby-prawn-table")
10680 (version "0.2.2")
10681 (source (origin
10682 (method url-fetch)
10683 (uri (rubygems-uri "prawn-table" version))
10684 (sha256
10685 (base32
10686 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10687 (build-system ruby-build-system)
10688 (propagated-inputs
10689 `(("ruby-prawn" ,ruby-prawn)
10690 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10691 (native-inputs
10692 `(("bundler" ,bundler)
10693 ("ruby-yard" ,ruby-yard)
10694 ("ruby-mocha" ,ruby-mocha)
10695 ("ruby-coderay" ,ruby-coderay)
10696 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10697 ("ruby-simplecov" ,ruby-simplecov)
10698 ("ruby-rspec-2" ,ruby-rspec-2)))
10699 (arguments
10700 '(;; TODO: 1 test fails
10701 ;; Failure/Error: pdf.page_count.should == 1
10702 ;; expected: 1
10703 ;; got: 2 (using ==)
10704 ;; # ./spec/table_spec.rb:1308
10705 ;;
10706 ;; 225 examples, 1 failure
10707 #:tests? #f
10708 #:phases
10709 (modify-phases %standard-phases
10710 (add-before 'check 'patch-gemspec
10711 (lambda _
10712 (substitute* "prawn-table.gemspec"
10713 ;; Loosen the requirement for pdf-inspector
10714 (("~> 1\\.1\\.0") ">= 0")
10715 ;; Loosen the requirement for pdf-reader
10716 (("~> 1\\.2") ">= 0"))))
10717 (replace 'check
10718 (lambda* (#:key tests? #:allow-other-keys)
10719 (when tests?
10720 (invoke "rspec"))
10721 #t)))))
10722 (home-page "https://github.com/prawnpdf/prawn-table")
10723 (synopsis "Tables support for Prawn")
10724 (description "This gem provides tables support for Prawn.")
10725 (license license:gpl3+)))
10726
10727(define-public ruby-kramdown
10728 (package
10729 (name "ruby-kramdown")
10730 (version "2.3.0")
10731 (source (origin
10732 (method url-fetch)
10733 (uri (rubygems-uri "kramdown" version))
10734 (sha256
10735 (base32
10736 "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7"))))
10737 (build-system ruby-build-system)
10738 (arguments `(#:tests? #f)); FIXME: some test failures
10739 (native-inputs
10740 `(("ruby-prawn" ,ruby-prawn)
10741 ("ruby-prawn-table" ,ruby-prawn-table)))
10742 (home-page "https://kramdown.gettalong.org/")
10743 (synopsis "Markdown parsing and converting library")
10744 (description "Kramdown is a library for parsing and converting a superset
10745of Markdown. It is completely written in Ruby, supports standard Markdown
10746(with some minor modifications) and various extensions that have been made
10747popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
10748 (license license:expat)))
10749
10750(define-public ruby-kramdown-parser-gfm
10751 (package
10752 (name "ruby-kramdown-parser-gfm")
10753 (version "1.1.0")
10754 (source
10755 (origin
10756 (method url-fetch)
10757 (uri (rubygems-uri "kramdown-parser-gfm" version))
10758 (sha256
10759 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
10760 (build-system ruby-build-system)
10761 (arguments
10762 `(#:tests? #f)) ;no rakefile
10763 (propagated-inputs
10764 `(("ruby-kramdown" ,ruby-kramdown)))
10765 (synopsis "Kramdown parser for the GFM dialect of Markdown")
10766 (description
10767 "This is a parser for kramdown that converts Markdown documents in the
10768GFM dialect to HTML.")
10769 (home-page "https://github.com/kramdown/parser-gfm")
10770 (license license:expat)))
10771
10772(define-public ruby-http-parser.rb
10773 (package
10774 (name "ruby-http-parser.rb")
10775 (version "0.6.0")
10776 (source
10777 (origin
10778 (method url-fetch)
10779 (uri (rubygems-uri "http_parser.rb" version))
10780 (sha256
10781 (base32
10782 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
10783 (build-system ruby-build-system)
10784 (arguments
10785 ;; No tests
10786 `(#:tests? #f))
10787 (native-inputs
10788 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10789 ("ruby-rspec" ,ruby-rspec)))
10790 (home-page "https://github.com/tmm1/http_parser.rb")
10791 (synopsis "HTTP parser un Ruby")
10792 (description "This gem is a simple callback-based HTTP request/response
10793parser for writing http servers, clients and proxies.")
10794 (license license:expat)))
10795
10796(define-public ruby-em-websocket
10797 (package
10798 (name "ruby-em-websocket")
10799 (version "0.5.1")
10800 (source
10801 (origin
10802 (method url-fetch)
10803 (uri (rubygems-uri "em-websocket" version))
10804 (sha256
10805 (base32
10806 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
10807 (build-system ruby-build-system)
10808 (arguments
10809 ;; No tests
10810 `(#:tests? #f))
10811 (propagated-inputs
10812 `(("ruby-eventmachine" ,ruby-eventmachine)
10813 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
10814 (native-inputs
10815 `(("bundler" ,bundler)
10816 ("ruby-rspec" ,ruby-rspec)))
10817 (home-page "https://github.com/igrigorik/em-websocket")
10818 (synopsis "EventMachine based WebSocket server")
10819 (description "Em-websocket is an EventMachine based WebSocket server
10820implementation.")
10821 (license license:expat)))
10822
10823(define-public ruby-rouge
10824 (package
10825 (name "ruby-rouge")
10826 (version "3.21.0")
10827 (source (origin
10828 (method url-fetch)
10829 (uri (rubygems-uri "rouge" version))
10830 (sha256
10831 (base32
10832 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
10833 (build-system ruby-build-system)
10834 (arguments `(#:tests? #f)); No rakefile
10835 (home-page "http://rouge.jneen.net/")
10836 (synopsis "Code highlighter")
10837 (description "Rouge is a code highlighter written in Ruby. It supports more
10838than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
10839is compatible with stylesheets designed for pygments.")
10840 (license (list
10841 ;; rouge is licensed under expat
10842 license:expat
10843 ;; pygments is licensed under bsd-2
10844 license:bsd-2))))
10845
10846(define-public ruby-rouge-2
10847 (package
10848 (inherit ruby-rouge)
10849 (version "2.2.1")
10850 (source (origin
10851 (method url-fetch)
10852 (uri (rubygems-uri "rouge" version))
10853 (sha256
10854 (base32
10855 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
10856
10857(define-public ruby-hashie
10858 (package
10859 (name "ruby-hashie")
10860 (version "3.6.0")
10861 (source (origin
10862 (method url-fetch)
10863 (uri (rubygems-uri "hashie" version))
10864 (sha256
10865 (base32
10866 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
10867 (build-system ruby-build-system)
10868 (native-inputs
10869 `(("bundler" ,bundler)))
10870 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
10871 (home-page "https://github.com/intridea/hashie")
10872 (synopsis "Extensions to Ruby Hashes")
10873 (description "Hashie is a collection of classes and mixins that make Ruby
10874hashes more powerful.")
10875 (license license:expat)))
10876
10877(define-public ruby-heredoc-unindent
10878 (package
10879 (name "ruby-heredoc-unindent")
10880 (version "1.2.0")
10881 (source (origin
10882 (method url-fetch)
10883 (uri (rubygems-uri "heredoc_unindent" version))
10884 (sha256
10885 (base32
10886 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
10887 (build-system ruby-build-system)
10888 (native-inputs
10889 `(("ruby-hoe" ,ruby-hoe)))
10890 (home-page "https://github.com/adrianomitre/heredoc_unindent")
10891 (synopsis "Heredoc indentation cleaner")
10892 (description "This gem removes common margin from indented strings, such
10893as the ones produced by indented heredocs. In other words, it strips out
10894leading whitespace chars at the beginning of each line, but only as much as
10895the line with the smallest margin.
10896
10897It is acknowledged that many strings defined by heredocs are just code and
10898fact is that most parsers are insensitive to indentation. If, however, the
10899strings are to be used otherwise, be it for printing or testing, the extra
10900indentation will probably be an issue and hence this gem.")
10901 (license license:expat)))
10902
10903(define-public ruby-safe-yaml
10904 (package
10905 (name "ruby-safe-yaml")
10906 (version "1.0.5")
10907 (source
10908 (origin
10909 (method git-fetch)
10910 (uri (git-reference
10911 (url "https://github.com/dtao/safe_yaml")
10912 (commit version)))
10913 (file-name (git-file-name name version))
10914 (sha256
10915 (base32
10916 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
10917 (build-system ruby-build-system)
10918 (native-inputs
10919 `(("ruby-rspec" ,ruby-rspec)
10920 ("ruby-hashie" ,ruby-hashie)
10921 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
10922 (arguments
10923 '(#:test-target "spec"
10924 #:phases
10925 (modify-phases %standard-phases
10926 (add-before 'check 'set-TZ
10927 (lambda _
10928 ;; This test is dependent on the timezone
10929 ;; spec/transform/to_date_spec.rb:35
10930 ;; # SafeYAML::Transform::ToDate converts times to the local
10931 ;; timezone
10932 (setenv "TZ" "UTC-11")
10933 #t)))))
10934 (home-page "https://github.com/dtao/safe_yaml")
10935 (synopsis "YAML parser")
10936 (description "The SafeYAML gem provides an alternative implementation of
10937YAML.load suitable for accepting user input in Ruby applications.")
10938 (license license:expat)))
10939
10940(define-public ruby-mercenary
10941 (package
10942 (name "ruby-mercenary")
10943 (version "0.3.6")
10944 (source (origin
10945 (method url-fetch)
10946 (uri (rubygems-uri "mercenary" version))
10947 (sha256
10948 (base32
10949 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
10950 (build-system ruby-build-system)
10951 (arguments `(#:test-target "spec"))
10952 (native-inputs
10953 `(("bundler" ,bundler)))
10954 (home-page "https://github.com/jekyll/mercenary")
10955 (synopsis "Command-line apps library in Ruby")
10956 (description "Mercenary is a lightweight and flexible library for writing
10957command-line apps in Ruby.")
10958 (license license:expat)))
10959
10960(define-public ruby-liquid
10961 (package
10962 (name "ruby-liquid")
10963 (version "4.0.0")
10964 (source (origin
10965 (method url-fetch)
10966 (uri (rubygems-uri "liquid" version))
10967 (sha256
10968 (base32
10969 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
10970 (build-system ruby-build-system)
10971 (arguments `(#:tests? #f)); No rakefile
10972 (home-page "https://shopify.github.io/liquid/")
10973 (synopsis "Template language")
10974 (description "Liquid is a template language written in Ruby. It is used
10975to load dynamic content on storefronts.")
10976 (license license:expat)))
10977
10978(define-public ruby-forwardable-extended
10979 (package
10980 (name "ruby-forwardable-extended")
10981 (version "2.6.0")
10982 (source (origin
10983 (method url-fetch)
10984 (uri (rubygems-uri "forwardable-extended" version))
10985 (sha256
10986 (base32
10987 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
10988 (build-system ruby-build-system)
10989 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
10990 (home-page "https://github.com/envygeeks/forwardable-extended")
10991 (synopsis "Delegation to hashes and instance variables in Forwardable")
10992 (description "Forwardable Extended provides more @code{Forwardable}
10993methods for your source as @code{Forwardable::Extended}.")
10994 (license license:expat)))
10995
10996(define-public ruby-pathutil
10997 (package
10998 (name "ruby-pathutil")
10999 (version "0.16.2")
11000 (source (origin
11001 (method url-fetch)
11002 (uri (rubygems-uri "pathutil" version))
11003 (sha256
11004 (base32
11005 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11006 (build-system ruby-build-system)
11007 (propagated-inputs
11008 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11009 (native-inputs
11010 `(("bundler" ,bundler)
11011 ("ruby-rspec" ,ruby-rspec)))
11012 ;; Fails with: cannot load such file --
11013 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11014 (arguments `(#:tests? #f))
11015 (home-page "https://github.com/envygeeks/pathutil")
11016 (synopsis "Extended implementation of Pathname")
11017 (description "Pathutil tries to be a faster pure Ruby implementation of
11018Pathname.")
11019 (license license:expat)))
11020
11021(define-public jekyll
11022 (package
11023 (name "jekyll")
11024 (version "3.8.6")
11025 (source (origin
11026 (method url-fetch)
11027 (uri (rubygems-uri "jekyll" version))
11028 (sha256
11029 (base32
11030 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
11031 (build-system ruby-build-system)
11032 (arguments
11033 ;; No rakefile, but a test subdirectory.
11034 `(#:tests? #f
11035 #:phases
11036 (modify-phases %standard-phases
11037 (add-before 'build 'fix-i18n
11038 (lambda _
11039 (substitute* ".gemspec"
11040 (("~> 0.7") ">= 0.7")
11041 (("~> 1.14") ">= 1.14"))
11042 #t)))))
11043 (propagated-inputs
11044 `(("ruby-addressable" ,ruby-addressable)
11045 ("ruby-colorator" ,ruby-colorator)
11046 ("ruby-em-websocket" ,ruby-em-websocket)
11047 ("ruby-i18n" ,ruby-i18n)
11048 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11049 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11050 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11051 ("ruby-liquid" ,ruby-liquid)
11052 ("ruby-mercenary" ,ruby-mercenary)
11053 ("ruby-pathutil" ,ruby-pathutil)
11054 ("ruby-rouge" ,ruby-rouge-2)
11055 ("ruby-safe-yaml" ,ruby-safe-yaml)))
11056 (home-page "https://jekyllrb.com/")
11057 (synopsis "Static site generator")
11058 (description "Jekyll is a simple, blog aware, static site generator.")
11059 (license license:expat)))
11060
11061(define-public ruby-jekyll-paginate-v2
11062 (package
11063 (name "ruby-jekyll-paginate-v2")
11064 (version "3.0.0")
11065 (source (origin
11066 (method url-fetch)
11067 (uri (rubygems-uri "jekyll-paginate-v2" version))
11068 (sha256
11069 (base32
11070 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11071 (build-system ruby-build-system)
11072 (propagated-inputs
11073 `(("jekyll" ,jekyll)))
11074 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11075 (synopsis "Pagination Generator for Jekyll 3")
11076 (description "The Pagination Generator forms the core of the pagination
11077logic in Jekyll. It calculates and generates the pagination pages.")
11078 (license license:expat)))
11079
11080(define-public ruby-faraday
11081 (package
11082 (name "ruby-faraday")
11083 (version "0.15.4")
11084 (source
11085 (origin
11086 (method url-fetch)
11087 (uri (rubygems-uri "faraday" version))
11088 (sha256
11089 (base32
11090 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11091 (build-system ruby-build-system)
11092 (arguments
11093 '(#:tests? #f))
11094 (propagated-inputs
11095 `(("ruby-multipart-post" ,ruby-multipart-post)))
11096 (synopsis "Ruby HTTP/REST API client library")
11097 (description
11098 "Faraday is a HTTP/REST API client library which provides a common
11099interface over different adapters.")
11100 (home-page "https://github.com/lostisland/faraday")
11101 (license license:expat)))
11102
11103(define-public ruby-nio4r
11104 (package
11105 (name "ruby-nio4r")
11106 (version "2.5.2")
11107 (source
11108 (origin
11109 (method url-fetch)
11110 (uri (rubygems-uri "nio4r" version))
11111 (sha256
11112 (base32
11113 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11114 (build-system ruby-build-system)
11115 (arguments
11116 '(#:phases
11117 (modify-phases %standard-phases
11118 (add-after 'unpack 'remove-unnecessary-dependencies
11119 (lambda _
11120 (substitute* "spec/spec_helper.rb"
11121 ;; Coveralls is for uploading test coverage information to an
11122 ;; online service, and thus unnecessary for building the Guix
11123 ;; package
11124 (("require \"coveralls\"") "")
11125 (("Coveralls\\.wear!") "")
11126 ;; Remove rspec/retry as we are not retrying the tests
11127 (("require \"rspec/retry\"") "")
11128 (("config\\.display_try_failure_messages = true") "")
11129 (("config\\.verbose_retry = true") ""))
11130 #t))
11131 (add-before 'check 'compile
11132 (lambda _
11133 (invoke "rake" "compile")
11134 #t))
11135 (replace 'check
11136 (lambda* (#:key tests? #:allow-other-keys)
11137 (when tests?
11138 (invoke "rspec"))
11139 #t)))))
11140 (native-inputs
11141 `(("bundler" ,bundler)
11142 ("ruby-rake-compiler" ,ruby-rake-compiler)
11143 ("ruby-rspec" ,ruby-rspec)
11144 ("ruby-rubocop" ,ruby-rubocop)))
11145 (synopsis "New I/O for Ruby")
11146 (description
11147 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11148for scalable network clients and servers.")
11149 (home-page "https://github.com/socketry/nio4r")
11150 (license license:expat)))
11151
11152(define-public ruby-globalid
11153 (package
11154 (name "ruby-globalid")
11155 (version "0.4.2")
11156 (source
11157 (origin
11158 (method url-fetch)
11159 (uri (rubygems-uri "globalid" version))
11160 (sha256
11161 (base32
11162 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11163 (build-system ruby-build-system)
11164 (arguments
11165 '(;; No included tests
11166 #:tests? #f))
11167 (propagated-inputs
11168 `(("ruby-activesupport" ,ruby-activesupport)))
11169 (synopsis "Generate URIs idenfitying model instances in Ruby")
11170 (description
11171 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11172uniquely identify it.")
11173 (home-page "https://rubyonrails.org/")
11174 (license license:expat)))
11175
11176(define-public ruby-sprockets
11177 (package
11178 (name "ruby-sprockets")
11179 (version "3.7.2")
11180 (source
11181 (origin
11182 (method url-fetch)
11183 (uri (rubygems-uri "sprockets" version))
11184 (sha256
11185 (base32
11186 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11187 (build-system ruby-build-system)
11188 (arguments
11189 '(;; No included tests
11190 #:tests? #f))
11191 (propagated-inputs
11192 `(("ruby-concurrent" ,ruby-concurrent)
11193 ("ruby-rack" ,ruby-rack)))
11194 (synopsis "Sprockets is a Rack-based asset packaging system")
11195 (description
11196 "Sprockets is a Rack-based asset packaging system that concatenates and
11197serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11198 (home-page "https://github.com/rails/sprockets")
11199 (license license:expat)))
11200
11201(define-public ruby-mustache
11202 (package
11203 (name "ruby-mustache")
11204 (version "1.1.1")
11205 (source
11206 (origin
11207 (method url-fetch)
11208 (uri (rubygems-uri "mustache" version))
11209 (sha256
11210 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11211 (build-system ruby-build-system)
11212 (native-inputs
11213 `(("ruby-simplecov" ,ruby-simplecov)))
11214 (synopsis "framework-agnostic way to render logic-free views")
11215 (description
11216 "Mustache is a framework-agnostic way to render logic-free views.
11217Think of Mustache as a replacement for your views. Instead of views
11218consisting of ERB or HAML with random helpers and arbitrary logic,
11219your views are broken into two parts: a Ruby class and an HTML
11220template.")
11221 (home-page "https://github.com/mustache/mustache")
11222 (license license:expat)))
11223
11224(define-public ruby-mustermann
11225 (package
11226 (name "ruby-mustermann")
11227 (version "1.0.3")
11228 (source
11229 (origin
11230 (method url-fetch)
11231 (uri (rubygems-uri "mustermann" version))
11232 (sha256
11233 (base32
11234 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11235 (build-system ruby-build-system)
11236 (arguments
11237 ;; No tests.
11238 '(#:tests? #f))
11239 (synopsis "Library implementing patterns that behave like regular expressions")
11240 (description "Given a string pattern, Mustermann will turn it into an
11241object that behaves like a regular expression and has comparable performance
11242characteristics.")
11243 (home-page "https://github.com/sinatra/mustermann")
11244 (license license:expat)))
11245
11246(define-public ruby-htmlentities
11247 (package
11248 (name "ruby-htmlentities")
11249 (version "4.3.4")
11250 (source
11251 (origin
11252 (method url-fetch)
11253 (uri (rubygems-uri "htmlentities" version))
11254 (sha256
11255 (base32
11256 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11257 (build-system ruby-build-system)
11258 (arguments
11259 `(#:phases
11260 (modify-phases %standard-phases
11261 (replace 'check
11262 (lambda _
11263 (map (lambda (file)
11264 (invoke "ruby" "-Itest" file))
11265 (find-files "./test" ".*_test\\.rb")))))))
11266 (synopsis "Encode and decode (X)HTML entities")
11267 (description
11268 "This package provides a module for encoding and decoding (X)HTML
11269entities.")
11270 (home-page "https://github.com/threedaymonk/htmlentities")
11271 (license license:expat)))
11272
11273(define-public ruby-sinatra
11274 (package
11275 (name "ruby-sinatra")
11276 (version "2.0.8.1")
11277 (source
11278 (origin
11279 (method url-fetch)
11280 (uri (rubygems-uri "sinatra" version))
11281 (sha256
11282 (base32
11283 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11284 (build-system ruby-build-system)
11285 (arguments
11286 `(#:phases
11287 (modify-phases %standard-phases
11288 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11289 (add-after 'extract-gemspec 'fix-slow-doc-generation
11290 (lambda _
11291 (substitute* "sinatra.gemspec"
11292 (("\"README.rdoc\"\\.freeze," all)
11293 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11294 #t)))))
11295 (propagated-inputs
11296 `(("ruby-mustermann" ,ruby-mustermann)
11297 ("ruby-rack" ,ruby-rack)
11298 ("ruby-rack-protection" ,ruby-rack-protection)
11299 ("ruby-tilt" ,ruby-tilt)))
11300 (synopsis "DSL for quick web applications creation in Ruby")
11301 (description
11302 "Sinatra is a DSL for quickly creating web applications in Ruby with
11303minimal effort.")
11304 (home-page "http://sinatrarb.com/")
11305 (license license:expat)))
11306
11307(define-public ruby-thin
11308 (package
11309 (name "ruby-thin")
11310 (version "1.7.2")
11311 (source
11312 (origin
11313 (method url-fetch)
11314 (uri (rubygems-uri "thin" version))
11315 (sha256
11316 (base32
11317 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11318 (build-system ruby-build-system)
11319 (arguments
11320 ;; No tests.
11321 '(#:tests? #f))
11322 (propagated-inputs
11323 `(("ruby-daemons" ,ruby-daemons)
11324 ("ruby-eventmachine" ,ruby-eventmachine)
11325 ("ruby-rack" ,ruby-rack)))
11326 (synopsis "Thin and fast web server for Ruby")
11327 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11328@itemize
11329@item the Mongrel parser,
11330@item Event Machine, a network I/O library with high scalability, performance
11331and stability,
11332@item Rack, a minimal interface between webservers and Ruby frameworks.
11333@end itemize\n")
11334 (home-page "https://github.com/macournoyer/thin")
11335 (license license:ruby)))
11336
11337(define-public ruby-skinny
11338 (package
11339 (name "ruby-skinny")
11340 (version "0.2.4")
11341 (source
11342 (origin
11343 (method url-fetch)
11344 (uri (rubygems-uri "skinny" version))
11345 (sha256
11346 (base32
11347 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11348 (build-system ruby-build-system)
11349 (arguments
11350 '(#:tests? #f ; No included tests
11351 #:phases
11352 (modify-phases %standard-phases
11353 (add-before 'build 'patch-gemspec
11354 (lambda _
11355 (substitute* ".gemspec"
11356 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11357 "<eventmachine>, [\">= 1.0.0\"")
11358 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11359 #t)))))
11360 (propagated-inputs
11361 `(("ruby-eventmachine" ,ruby-eventmachine)
11362 ("ruby-thin" ,ruby-thin)))
11363 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11364 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11365the Thin library.")
11366 (home-page "https://github.com/sj26/skinny")
11367 (license license:expat)))
11368
11369(define-public ruby-sys-filesystem
11370 (package
11371 (name "ruby-sys-filesystem")
11372 (version "1.3.4")
11373 (source (origin
11374 (method url-fetch)
11375 (uri (rubygems-uri "sys-filesystem" version))
11376 (sha256
11377 (base32
11378 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11379 (build-system ruby-build-system)
11380 (arguments
11381 '(#:phases (modify-phases %standard-phases
11382 (add-before 'check 'set-HOME
11383 (lambda _
11384 ;; Some tests attempt to stat $HOME. Let them.
11385 (setenv "HOME" "/tmp")
11386 #t)))))
11387 (propagated-inputs
11388 `(("ruby-ffi" ,ruby-ffi)))
11389 (native-inputs
11390 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11391 (synopsis "Gather file system information")
11392 (description
11393 "The @code{sys-filesystem} library provides a cross-platform interface
11394for gathering file system information, such as disk space and mount points.")
11395 (home-page "https://github.com/djberg96/sys-filesystem")
11396 (license license:asl2.0)))
11397
11398(define-public mailcatcher
11399 (package
11400 (name "mailcatcher")
11401 (version "0.7.1")
11402 (source
11403 (origin
11404 (method url-fetch)
11405 (uri (rubygems-uri "mailcatcher" version))
11406 (sha256
11407 (base32
11408 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11409 (build-system ruby-build-system)
11410 (arguments
11411 ;; Tests require web/assets which is not included in the output. We
11412 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11413 ;; of the tests. See ruby-mysql2.
11414 '(#:tests? #f
11415 #:phases
11416 (modify-phases %standard-phases
11417 (add-before 'build 'patch-gemspec
11418 (lambda _
11419 (substitute* ".gemspec"
11420 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11421 "<eventmachine>, [\">= 1.0.9.1")
11422 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11423 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11424 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11425 #t))
11426 (add-before 'build 'loosen-dependency-contraint
11427 (lambda _
11428 (substitute* "lib/mail_catcher.rb"
11429 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11430 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11431 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11432 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11433 #t)))))
11434 (inputs
11435 `(("ruby-eventmachine" ,ruby-eventmachine)
11436 ("ruby-mail" ,ruby-mail)
11437 ("ruby-rack" ,ruby-rack)
11438 ("ruby-sinatra" ,ruby-sinatra)
11439 ("ruby-skinny" ,ruby-skinny)
11440 ("ruby-sqlite3" ,ruby-sqlite3)
11441 ("ruby-thin" ,ruby-thin)))
11442 (synopsis "SMTP server which catches messages to display them a browser")
11443 (description
11444 "MailCatcher runs a super simple SMTP server which catches any message
11445sent to it to display in a web interface. Run mailcatcher, set your favourite
11446app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11447then check out http://127.0.0.1:1080 to see the mail.")
11448 (home-page "https://mailcatcher.me")
11449 (license license:expat)))
11450
11451(define-public ruby-backport
11452 (package
11453 (name "ruby-backport")
11454 (version "1.1.2")
11455 (source
11456 (origin
11457 ;; The gem does not include test code, so fetch from the Git repository.
11458 (method git-fetch)
11459 (uri (git-reference
11460 (url "https://github.com/castwide/backport")
11461 (commit (string-append "v" version))))
11462 (file-name (git-file-name name version))
11463 (sha256
11464 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11465 (build-system ruby-build-system)
11466 (arguments
11467 `(#:test-target "spec"))
11468 (native-inputs
11469 `(("bundler" ,bundler)
11470 ("ruby-rspec" ,ruby-rspec)))
11471 (inputs
11472 `(("ruby-simplecov" ,ruby-simplecov)))
11473 (synopsis "Pure Ruby library for event-driven IO")
11474 (description
11475 "This package provides a pure Ruby library for event-driven IO.")
11476 (home-page "https://github.com/castwide/backport")
11477 (license license:expat)))
11478
11479(define-public ruby-json-schema
11480 (package
11481 (name "ruby-json-schema")
11482 (version "2.8.1")
11483 (source
11484 (origin
11485 (method url-fetch)
11486 (uri (rubygems-uri "json-schema" version))
11487 (sha256
11488 (base32
11489 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11490 (build-system ruby-build-system)
11491 (arguments
11492 `(#:tests? #f ; no tests
11493 #:phases
11494 (modify-phases %standard-phases
11495 (replace 'build
11496 (lambda _
11497 (invoke "gem" "build" ".gemspec"))))))
11498 (propagated-inputs
11499 `(("ruby-addressable" ,ruby-addressable)))
11500 (synopsis "Ruby JSON Schema Validator")
11501 (description "This library provides Ruby with an interface for validating
11502JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11503support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11504is also included.")
11505 (home-page "https://github.com/ruby-json-schema/json-schema")
11506 (license license:expat)))
11507
11508(define-public swagger-diff
11509 (package
11510 (name "swagger-diff")
11511 (version "1.1.2")
11512 (source
11513 (origin
11514 (method url-fetch)
11515 (uri (rubygems-uri "swagger-diff" version))
11516 (sha256
11517 (base32
11518 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11519 (build-system ruby-build-system)
11520 (arguments
11521 `(#:test-target "spec"
11522 #:phases
11523 (modify-phases %standard-phases
11524 ;; Don't run or require rubocop, the code linting tool, as this is a
11525 ;; bit unnecessary.
11526 (add-after 'unpack 'dont-run-rubocop
11527 (lambda _
11528 (substitute* "Rakefile"
11529 ((".*rubocop.*") "")
11530 ((".*RuboCop.*") ""))
11531 #t)))))
11532 (propagated-inputs
11533 `(("ruby-json-schema" ,ruby-json-schema)))
11534 (native-inputs
11535 `(("bundler" ,bundler)
11536 ("ruby-rspec-core" ,ruby-rspec-core)
11537 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11538 (synopsis
11539 "Compare Open API Initiative specification files")
11540 (description
11541 "Swagger::Diff is a utility for comparing two different Open API
11542Initiative (OAI) specifications (formerly known as Swagger specifications).
11543It is intended to determine whether a newer API specification is
11544backwards-compatible with an older API specification.")
11545 (home-page "https://github.com/civisanalytics/swagger-diff")
11546 (license license:bsd-3)))
11547
11548(define-public ruby-reverse-markdown
11549 (package
11550 (name "ruby-reverse-markdown")
11551 (version "1.1.0")
11552 (source
11553 (origin
11554 (method url-fetch)
11555 (uri (rubygems-uri "reverse_markdown" version))
11556 (sha256
11557 (base32
11558 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11559 (build-system ruby-build-system)
11560 (propagated-inputs
11561 `(("ruby-nokogiri" ,ruby-nokogiri)))
11562 (native-inputs
11563 `(("bundler" ,bundler)
11564 ("ruby-rspec" ,ruby-rspec)
11565 ("ruby-kramdown" ,ruby-kramdown)
11566 ("ruby-simplecov" ,ruby-simplecov)))
11567 (arguments
11568 `(#:phases
11569 (modify-phases %standard-phases
11570 (replace 'check
11571 (lambda* (#:key tests? #:allow-other-keys)
11572 (when tests?
11573 (invoke "rspec"))
11574 #t)))))
11575 (synopsis "Convert HTML into Markdown")
11576 (description
11577 "This Ruby module allows you to map simple HTML back into
11578Markdown---e.g., if you want to import existing HTML data in your
11579application.")
11580 (home-page "https://github.com/xijo/reverse_markdown")
11581 (license license:wtfpl2)))
11582
11583(define-public ruby-solargraph
11584 (package
11585 (name "ruby-solargraph")
11586 (version "0.36.0")
11587 (source
11588 (origin
11589 (method url-fetch)
11590 (uri (rubygems-uri "solargraph" version))
11591 (sha256
11592 (base32
11593 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11594 (build-system ruby-build-system)
11595 (propagated-inputs
11596 `(("ruby-backport" ,ruby-backport)
11597 ("bundler" ,bundler)
11598 ("ruby-htmlentities" ,ruby-htmlentities)
11599 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11600 ("ruby-maruku" ,ruby-maruku)
11601 ("ruby-nokogiri" ,ruby-nokogiri)
11602 ("ruby-parser" ,ruby-parser)
11603 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11604 ("ruby-rubocop" ,ruby-rubocop)
11605 ("ruby-thor" ,ruby-thor)
11606 ("ruby-tilt" ,ruby-tilt)
11607 ("ruby-yard" ,ruby-yard)))
11608 (native-inputs
11609 `(("ruby-rspec" ,ruby-rspec)
11610 ("ruby-pry" ,ruby-pry)
11611 ("ruby-simplecov" ,ruby-simplecov)
11612 ("ruby-webmock" ,ruby-webmock-2)))
11613 ;; FIXME: can't figure out how to run the tests properly:
11614
11615 ;; An error occurred while loading spec_helper.
11616 ;; Failure/Error: return gem_original_require(path)
11617 ;; LoadError:
11618 ;; cannot load such file -- spec_helper
11619 (arguments
11620 '(#:tests? #f
11621 #:phases
11622 (modify-phases %standard-phases
11623 (replace 'check
11624 (lambda* (#:key tests? #:allow-other-keys)
11625 (when tests?
11626 (invoke "rspec"))
11627 #t)))))
11628 (synopsis
11629 "IDE tools for code completion, inline documentation, and static analysis")
11630 (description
11631 "Solargraph provides a comprehensive suite of tools for Ruby
11632programming: intellisense, diagnostics, inline documentation, and type
11633checking.")
11634 (home-page "https://solargraph.org/")
11635 (license license:expat)))
11636
11637(define-public ruby-wayback-machine-downloader
11638 (package
11639 (name "ruby-wayback-machine-downloader")
11640 (version "2.2.1")
11641 (source
11642 (origin
11643 (method url-fetch)
11644 (uri (rubygems-uri
11645 "wayback_machine_downloader"
11646 version))
11647 (sha256
11648 (base32
11649 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
11650 (build-system ruby-build-system)
11651 (arguments
11652 '(#:tests? #f)) ; no tests
11653 (synopsis "Download archived websites from the Wayback Machine")
11654 (description
11655 "Wayback Machine Downloader is a command line tool for downloading
11656websites from the Internet Archive's Wayback Machine (archive.org).
11657It allows fine grained control over what to download by specifying
11658which snapshots to consider and what files to include.")
11659 (home-page
11660 "https://github.com/hartator/wayback-machine-downloader")
11661 (license license:expat)))
11662
11663(define-public ruby-wwtd
11664 (package
11665 (name "ruby-wwtd")
11666 (version "1.4.1")
11667 (home-page "https://github.com/grosser/wwtd")
11668 (source (origin
11669 (method git-fetch)
11670 (uri (git-reference
11671 (url home-page)
11672 (commit (string-append "v" version))))
11673 (file-name (git-file-name name version))
11674 (sha256
11675 (base32
11676 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
11677 (modules '((guix build utils)))
11678 (snippet
11679 '(begin
11680 ;; Remove bundled library.
11681 (delete-file "spec/rake-12.3.0.gem")
11682 #t))))
11683 (build-system ruby-build-system)
11684 (arguments
11685 '(;; XXX: Tests need multiple versions of ruby, wants to run
11686 ;; `bundle install`, etc.
11687 #:tests? #f
11688 #:phases (modify-phases %standard-phases
11689 (replace 'replace-git-ls-files
11690 (lambda _
11691 (substitute* "wwtd.gemspec"
11692 (("git ls-files lib/ bin/`")
11693 "find lib/ bin/ -type f |sort`"))
11694 #t))
11695 (add-before 'check 'remove-version-constraints
11696 (lambda _
11697 (delete-file "Gemfile.lock")
11698 #t))
11699 (replace 'check
11700 (lambda* (#:key tests? #:allow-other-keys)
11701 (if tests?
11702 (invoke "rspec" "spec/")
11703 (format #t "test suite not run~%"))
11704 #t)))))
11705 (native-inputs
11706 `(("ruby-bump" ,ruby-bump)
11707 ("ruby-rspec" ,ruby-rspec)))
11708 (synopsis "Run @file{.travis.yml} files locally")
11709 (description
11710 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
11711defined in @file{.travis.yml} on your local machine, using @code{rvm},
11712@code{rbenv}, or @code{chruby} to test different versions of Ruby.")
11713 (license license:expat)))