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