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