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