gnu: Add ruby-sawyer.
[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
03a0f98a
MC
6121(define-public ruby-sawyer
6122 (package
6123 (name "ruby-sawyer")
6124 (version "0.8.2")
6125 (source
6126 (origin
6127 (method url-fetch)
6128 (uri (rubygems-uri "sawyer" version))
6129 (sha256
6130 (base32
6131 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
6132 (build-system ruby-build-system)
6133 (propagated-inputs
6134 `(("ruby-addressable" ,ruby-addressable)
6135 ("ruby-faraday" ,ruby-faraday)))
6136 (synopsis "Experimental hypermedia agent for Ruby")
6137 (description "Sawyer is an experimental hypermedia agent for Ruby built on
6138top of Faraday.")
6139 (home-page "https://github.com/lostisland/sawyer")
6140 (license license:expat)))
6141
44514637 6142(define-public ruby-gherkin
62e4cc5a 6143 (package
44514637 6144 (name "ruby-gherkin")
aada5f6f 6145 (version "5.1.0")
62e4cc5a
PP
6146 (source
6147 (origin
6148 (method url-fetch)
44514637 6149 (uri (rubygems-uri "gherkin" version))
62e4cc5a
PP
6150 (sha256
6151 (base32
aada5f6f 6152 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
62e4cc5a
PP
6153 (build-system ruby-build-system)
6154 (native-inputs
6155 `(("bundler" ,bundler)))
6156 (arguments
6157 '(#:tests? #f)) ; needs simplecov, among others
6158 (synopsis "Gherkin parser for Ruby")
44514637 6159 (description "Gherkin is a parser and compiler for the Gherkin language.
aada5f6f
CB
6160It is intended be used by all Cucumber implementations to parse
6161@file{.feature} files.")
6162 (home-page "https://github.com/cucumber-attic/gherkin")
62e4cc5a 6163 (license license:expat)))
cd89fecb 6164
8f85018d
MB
6165(define-public ruby-gherkin-ruby
6166 (package
6167 (name "ruby-gherkin-ruby")
6168 (version "0.3.2")
6169 (home-page "http://github.com/codegram/gherkin-ruby")
6170 (source (origin
6171 (method url-fetch)
6172 (uri (rubygems-uri "gherkin-ruby" version))
6173 (sha256
6174 (base32
6175 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
6176 (build-system ruby-build-system)
6177 (synopsis "Pure Ruby Gherkin parser")
6178 (description
6179 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
6180200 lines of code.")
6181 ;; XXX: No license information anywhere but Readme.md.
6182 (license license:expat)))
6183
15b16c2c
CB
6184(define-public ruby-aruba
6185 (package
6186 (name "ruby-aruba")
cf7201c4 6187 (version "0.14.14")
15b16c2c
CB
6188 (source
6189 (origin
6190 (method url-fetch)
6191 (uri (rubygems-uri "aruba" version))
6192 (sha256
6193 (base32
cf7201c4 6194 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
15b16c2c
CB
6195 (build-system ruby-build-system)
6196 (arguments
6197 '(#:test-target "spec"
6198 #:phases
6199 (modify-phases %standard-phases
6200 (add-after 'unpack 'patch
6201 (lambda _
6202 (substitute* "spec/aruba/api_spec.rb"
6203 ;; This resolves some errors in the specs
6204 ;;
6205 ;; undefined method `parse' for Time:Class
6206 (("require 'spec_helper'")
6207 "require 'spec_helper'\nrequire 'time'"))
6208 ;; Avoid shebang issues in this spec file
6209 (substitute* "spec/aruba/matchers/command_spec.rb"
6210 (("/usr/bin/env bash")
6211 (which "bash")))
6212 #t))
6213 (add-before 'check 'remove-unnecessary-dependencies
6214 (lambda _
6215 (substitute* "Gemfile"
6216 ((".*byebug.*") "\n")
6217 ((".*pry.*") "\n")
6218 ((".*yaml.*") "\n")
6219 ((".*bcat.*") "\n")
6220 ((".*kramdown.*") "\n")
6221 ((".*rubocop.*") "\n")
6222 ((".*cucumber-pro.*") "\n")
6223 ((".*cucumber.*") "\n")
6224 ((".*license_finder.*") "\n")
6225 ((".*rake.*") "gem 'rake'\n")
15b16c2c 6226 ((".*relish.*") "\n"))
15b16c2c
CB
6227 (substitute* "aruba.gemspec"
6228 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
6229 "spec.add_runtime_dependency 'cucumber'"))
6230 #t))
6231 (add-before 'check 'set-home
6232 (lambda _ (setenv "HOME" "/tmp") #t)))))
6233 (native-inputs
6234 `(("bundler" ,bundler)
6235 ("ruby-rspec" ,ruby-rspec)
cf7201c4
CB
6236 ("ruby-fuubar" ,ruby-fuubar)
6237 ("ruby-simplecov" ,ruby-simplecov)))
15b16c2c
CB
6238 (propagated-inputs
6239 `(("ruby-childprocess" ,ruby-childprocess)
6240 ("ruby-contracts" ,ruby-contracts)
6241 ("ruby-cucumber" ,ruby-cucumber)
6242 ("ruby-ffi" ,ruby-ffi)
6243 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
6244 ("ruby-thor" ,ruby-thor)
6245 ("ruby-yard" ,ruby-yard)))
6246 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
6247 (description
6248 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
6249command-line applications. It supports applications written in any
6250language.")
6251 (home-page "https://github.com/cucumber/aruba")
6252 (license license:expat)))
6253
6254;; A version of ruby-aruba without tests run so that circular dependencies can
6255;; be avoided.
6256(define ruby-aruba-without-tests
6257 (package
6258 (inherit ruby-aruba)
6259 (arguments '(#:tests? #f))
6260 (propagated-inputs
6261 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
6262 ,@(alist-delete "ruby-cucumber"
6263 (package-propagated-inputs ruby-aruba))))
6264 (native-inputs '())))
6265
6266(define-public ruby-cucumber
6267 (package
6268 (name "ruby-cucumber")
6269 (version "3.1.2")
6270 (source
6271 (origin
6272 (method git-fetch)
6273 (uri (git-reference
6274 (url "https://github.com/cucumber/cucumber-ruby.git")
6275 (commit (string-append "v" version))))
6276 (file-name (git-file-name name version))
6277 (sha256
6278 (base32
6279 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
6280 (build-system ruby-build-system)
6281 (arguments
6282 '(#:test-target "spec"
6283 #:phases
6284 (modify-phases %standard-phases
6285 ;; Don't run or require rubocop, the code linting tool, as this is a
6286 ;; bit unnecessary.
6287 (add-after 'unpack 'dont-run-rubocop
6288 (lambda _
6289 (substitute* "Rakefile"
6290 ((".*rubocop/rake\\_task.*") "")
6291 ((".*RuboCop.*") ""))
6292 #t)))))
6293 (propagated-inputs
6294 `(("ruby-builder" ,ruby-builder)
6295 ("ruby-cucumber-core" ,ruby-cucumber-core)
6296 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
6297 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
6298 ("ruby-diff-lcs" ,ruby-diff-lcs)
6299 ("ruby-gherkin" ,ruby-gherkin)
6300 ("ruby-multi-json" ,ruby-multi-json)
6301 ("ruby-multi-test" ,ruby-multi-test)))
6302 (native-inputs
6303 `(("bundler" ,bundler)
6304 ;; Use a untested version of aruba, to avoid a circular dependency, as
6305 ;; ruby-aruba depends on ruby-cucumber.
6306 ("ruby-aruba", ruby-aruba-without-tests)
6307 ("ruby-rspec" ,ruby-rspec)
6308 ("ruby-pry" ,ruby-pry)
6309 ("ruby-nokogiri" ,ruby-nokogiri)))
6310 (synopsis "Describe automated tests in plain language")
6311 (description
6312 "Cucumber is a tool for running automated tests written in plain
6313language. It's designed to support a Behaviour Driven Development (BDD)
6314software development workflow.")
6315 (home-page "https://cucumber.io/")
6316 (license license:expat)))
6317
6318(define ruby-cucumber-without-tests
6319 (package (inherit ruby-cucumber)
6320 (arguments
6321 '(#:tests? #f))
6322 (native-inputs
6323 '())))
6324
cd89fecb
PP
6325(define-public ruby-cucumber-core
6326 (package
6327 (name "ruby-cucumber-core")
5cd047e8
CB
6328 ;; Stick to major version 3, until version 4 of Cucumber is released.
6329 (version "3.2.1")
cd89fecb
PP
6330 (source
6331 (origin
6332 (method url-fetch)
6333 (uri (rubygems-uri "cucumber-core" version))
6334 (sha256
6335 (base32
5cd047e8 6336 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
cd89fecb
PP
6337 (build-system ruby-build-system)
6338 (propagated-inputs
5cd047e8
CB
6339 `(("ruby-backports" ,ruby-backports)
6340 ("ruby-gherkin" ,ruby-gherkin)
6341 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
cd89fecb
PP
6342 (native-inputs
6343 `(("bundler" ,bundler)))
6344 (arguments
6345 '(#:tests? #f)) ; needs simplecov, among others
6346 (synopsis "Core library for the Cucumber BDD app")
6347 (description "Cucumber is a tool for running automated tests
6348written in plain language. Because they're written in plain language,
6349they can be read by anyone on your team. Because they can be read by
6350anyone, you can use them to help improve communication, collaboration
6351and trust on your team.")
6352 (home-page "https://cucumber.io/")
6353 (license license:expat)))
212d563d 6354
fb1a8954
CB
6355(define-public ruby-cucumber-expressions
6356 (package
6357 (name "ruby-cucumber-expressions")
6358 (version "6.0.1")
6359 (source
6360 (origin
6361 (method url-fetch)
6362 (uri (rubygems-uri "cucumber-expressions" version))
6363 (sha256
6364 (base32
6365 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
6366 (build-system ruby-build-system)
6367 (arguments
6368 '(#:test-target "spec"))
6369 (native-inputs
6370 `(("bundler" ,bundler)
6371 ("ruby-rspec" ,ruby-rspec)
6372 ("ruby-simplecov" ,ruby-simplecov)))
6373 (synopsis "Simpler alternative to Regular Expressions")
6374 (description "Cucumber Expressions offer similar functionality to Regular
6375Expressions, with a syntax that is easier to read and write. Cucumber
6376Expressions are extensible with parameter types.")
6377 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
6378 (license license:expat)))
6379
ce872770
CB
6380(define-public ruby-cucumber-wire
6381 (package
6382 (name "ruby-cucumber-wire")
6383 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
6384 ;; 3, and Cucumber 4 hasn't been released yet.
6385 (version "0.0.1")
6386 (source
6387 (origin
6388 (method url-fetch)
6389 (uri (rubygems-uri "cucumber-wire" version))
6390 (sha256
6391 (base32
6392 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
6393 (build-system ruby-build-system)
6394 (arguments
6395 '(;; TODO: Currently, the tests can't be run as cucumber is required,
6396 ;; which would lead to a circular dependency.
6397 #:tests? #f
6398 #:test-target "default"
6399 #:phases
6400 (modify-phases %standard-phases
6401 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
6402 (lambda _
6403 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
6404 #t)))))
6405 (native-inputs
6406 `(("bundler" ,bundler)
6407 ("ruby-rspec" ,ruby-rspec)))
6408 (synopsis "Cucumber wire protocol plugin")
6409 (description
6410 "Cucumber's wire protocol allows step definitions to be implemented and
6411invoked on any platform.")
6412 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
6413 (license license:expat)))
6414
0ce8f344
CB
6415(define-public ruby-cucumber-tag-expressions
6416 (package
6417 (name "ruby-cucumber-tag-expressions")
6418 (version "1.1.1")
6419 (source
6420 (origin
6421 (method url-fetch)
6422 (uri (rubygems-uri "cucumber-tag_expressions" version))
6423 (sha256
6424 (base32
6425 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
6426 (build-system ruby-build-system)
6427 (arguments
6428 '(#:phases
6429 (modify-phases %standard-phases
6430 (replace 'check
6431 (lambda _
6432 (invoke "rspec")
6433 #t)))))
6434 (native-inputs
6435 `(("ruby-rspec" ,ruby-rspec)))
6436 (synopsis "Cucumber tag expressions for Ruby")
6437 (description
6438 "Cucumber tag expression parser for Ruby. A tag expression is an infix
6439boolean expression used by Cucumber.")
6440 (home-page "https://github.com/cucumber/tag-expressions-ruby")
6441 (license license:expat)))
6442
73a5aff7
CB
6443(define-public ruby-bindex
6444 (package
6445 (name "ruby-bindex")
6446 (version "0.5.0")
6447 (source
6448 (origin
6449 (method url-fetch)
6450 (uri (rubygems-uri "bindex" version))
6451 (sha256
6452 (base32
6453 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
6454 (build-system ruby-build-system)
6455 (arguments
6456 '(#:test-target "default"))
6457 (native-inputs
6458 `(("bundler" ,bundler)
6459 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6460 (synopsis "Provides access for bindings relating to Ruby exceptions")
6461 (description
6462 "@code{bindex} provides a way to access the bindings that relate to
6463exceptions in Ruby, providing more information about the context in which the
6464exception occurred.")
6465 (home-page "https://github.com/gsamokovarov/bindex")
6466 (license license:expat)))
6467
212d563d
PP
6468(define-public ruby-bio-logger
6469 (package
6470 (name "ruby-bio-logger")
6471 (version "1.0.1")
6472 (source
6473 (origin
6474 (method url-fetch)
6475 (uri (rubygems-uri "bio-logger" version))
6476 (sha256
6477 (base32
6478 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
6479 (build-system ruby-build-system)
6480 (arguments
6481 `(#:tests? #f)) ; rake errors, missing shoulda
6482 (propagated-inputs
6483 `(("ruby-log4r" ,ruby-log4r)))
6484 (synopsis "Log4r wrapper for Ruby")
6485 (description "Bio-logger is a wrapper around Log4r adding extra logging
6486features such as filtering and fine grained logging.")
6487 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
6488 (license license:expat)))
07f61cb2 6489
2db0f9c8
BW
6490(define-public ruby-yajl-ruby
6491 (package
6492 (name "ruby-yajl-ruby")
6493 (version "1.4.1")
6494 (source
6495 (origin
6496 (method url-fetch)
6497 (uri (rubygems-uri "yajl-ruby" version))
6498 (sha256
6499 (base32
6500 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
6501 (build-system ruby-build-system)
6502 (arguments
6503 '(#:test-target "spec"
6504 #:phases
6505 (modify-phases %standard-phases
6506 (add-before 'check 'patch-test-to-update-load-path
6507 (lambda _
6508 (substitute* "spec/parsing/large_number_spec.rb"
6509 (("require \"yajl\"")
6510 "$LOAD_PATH << 'lib'; require 'yajl'"))
6511 #t)))))
6512 (native-inputs
6513 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6514 ("ruby-rspec" ,ruby-rspec)))
6515 (synopsis "Streaming JSON parsing and encoding library for Ruby")
6516 (description
6517 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
6518is compatible with the JSON gem, so yajl-ruby can act as a drop in
6519replacement.
6520
6521A modified copy of yajl is used, and included in the package.")
6522 (home-page "https://github.com/brianmario/yajl-ruby")
6523 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
6524 license:bsd-3)))) ; Included, modified copy of yajl
6525
07f61cb2 6526(define-public ruby-yard
6499893e
BW
6527 (package
6528 (name "ruby-yard")
f321380f 6529 (version "0.9.20")
6499893e
BW
6530 (source
6531 (origin
f3fd70c0 6532 (method git-fetch)
6499893e 6533 ;; Tests do not pass if we build from the distributed gem.
f3fd70c0
EF
6534 (uri (git-reference
6535 (url "https://github.com/lsegal/yard")
6536 (commit (string-append "v" version))))
6537 (file-name (git-file-name name version))
6499893e
BW
6538 (sha256
6539 (base32
f321380f 6540 "1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
6499893e
BW
6541 (build-system ruby-build-system)
6542 (arguments
6543 `(#:phases
6544 (modify-phases %standard-phases
6545 (replace 'check
6546 (lambda _
f321380f
CB
6547 ;; Delete the Gemfile to avoid errors relating to it
6548 (delete-file "Gemfile")
6499893e
BW
6549 ;; $HOME needs to be set to somewhere writeable for tests to run
6550 (setenv "HOME" "/tmp")
6551 ;; Run tests without using 'rake' to avoid dependencies.
9923d5a4 6552 (invoke "rspec"))))))
6499893e
BW
6553 (native-inputs
6554 `(("ruby-rspec" ,ruby-rspec)
f321380f
CB
6555 ("ruby-rack" ,ruby-rack)
6556 ("ruby-redcloth" ,ruby-redcloth)
6557 ("ruby-asciidoc" ,ruby-asciidoctor)))
6499893e
BW
6558 (synopsis "Documentation generation tool for Ruby")
6559 (description
6560 "YARD is a documentation generation tool for the Ruby programming
07f61cb2
BW
6561language. It enables the user to generate consistent, usable documentation
6562that can be exported to a number of formats very easily, and also supports
6563extending for custom Ruby constructs such as custom class level definitions.")
2f3800e5 6564 (home-page "https://yardoc.org")
6499893e 6565 (license license:expat)))
2cbcd23a 6566
ad686ef3
RW
6567(define-public ruby-clap
6568 (package
6569 (name "ruby-clap")
6570 (version "1.0.0")
6571 (source (origin
6572 (method url-fetch)
6573 (uri (rubygems-uri "clap" version))
6574 (sha256
6575 (base32
6576 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
6577 (build-system ruby-build-system)
6578 ;; Clap needs cutest for running tests, but cutest needs clap.
6579 (arguments `(#:tests? #f))
6580 (synopsis "Command line argument parsing for simple applications")
6581 (description
6582 "Clap provides command line argument parsing features. It covers the
6583simple case of executing code based on the flags or parameters passed.")
6584 (home-page "https://github.com/djanowski/cutest")
0c80451e
RW
6585 (license license:expat)))
6586
6587(define-public ruby-cutest
6588 (package
6589 (name "ruby-cutest")
6590 (version "1.2.2")
6591 (source (origin
6592 (method url-fetch)
6593 (uri (rubygems-uri "cutest" version))
6594 (sha256
6595 (base32
6596 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
6597 (build-system ruby-build-system)
6598 (propagated-inputs
6599 `(("ruby-clap" ,ruby-clap)))
6600 (synopsis "Run tests in separate processes")
6601 (description
6602 "Cutest runs tests in separate processes to avoid shared state.")
6603 (home-page "https://github.com/djanowski/cutest")
ad686ef3
RW
6604 (license license:expat)))
6605
ac09beba
RW
6606(define-public ruby-pygmentize
6607 (package
6608 (name "ruby-pygmentize")
6609 (version "0.0.3")
6610 (source (origin
6611 (method url-fetch)
6612 (uri (rubygems-uri "pygmentize" version))
6613 (sha256
6614 (base32
6615 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
6616 (build-system ruby-build-system)
6617 (arguments
6618 `(#:phases
6619 (modify-phases %standard-phases
6620 (add-after 'unpack 'fix-pygmentize-path
6621 (lambda _
6622 (substitute* "lib/pygmentize.rb"
6623 (("\"/usr/bin/env python.*")
6624 (string-append "\"" (which "pygmentize") "\"\n")))
6625 #t))
6626 (add-after 'build 'do-not-use-vendor-directory
6627 (lambda _
6628 ;; Remove bundled pygments sources
6629 ;; FIXME: ruby-build-system does not support snippets.
6630 (delete-file-recursively "vendor")
6631 (substitute* "pygmentize.gemspec"
6632 (("\"vendor/\\*\\*/\\*\",") ""))
6633 #t)))))
6634 (inputs
6635 `(("pygments" ,python-pygments)))
6636 (native-inputs
6637 `(("ruby-cutest" ,ruby-cutest)
6638 ("ruby-nokogiri" ,ruby-nokogiri)))
6639 (synopsis "Thin Ruby wrapper around pygmentize")
6640 (description
6641 "Pygmentize provides a simple way to call pygmentize from within a Ruby
6642application.")
6643 (home-page "https://github.com/djanowski/pygmentize")
6644 (license license:expat)))
6645
2cbcd23a
DT
6646(define-public ruby-eventmachine
6647 (package
6648 (name "ruby-eventmachine")
c207fa5e 6649 (version "1.2.7")
2cbcd23a
DT
6650 (source
6651 (origin
6652 (method url-fetch)
6653 (uri (rubygems-uri "eventmachine" version))
6654 (sha256
6655 (base32
c207fa5e 6656 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
2cbcd23a
DT
6657 (build-system ruby-build-system)
6658 (arguments
c5d269fb 6659 '(#:tests? #f)) ; test suite tries to connect to google.com
2cbcd23a
DT
6660 (native-inputs
6661 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6662 (synopsis "Single-threaded network event framework for Ruby")
6663 (description
6664 "EventMachine implements a single-threaded engine for arbitrary network
6665communications. EventMachine wraps all interactions with sockets, allowing
6666programs to concentrate on the implementation of network protocols. It can be
6667used to create both network servers and clients.")
24a26227
TGR
6668 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
6669 (home-page "https://github.com/eventmachine/eventmachine")
2cbcd23a 6670 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
7d3a1a2d 6671
e218b0c8
BW
6672(define-public ruby-ruby-engine
6673 (package
6674 (name "ruby-ruby-engine")
6675 (version "1.0.1")
6676 (source
6677 (origin
6678 (method url-fetch)
6679 (uri (rubygems-uri "ruby_engine" version))
6680 (sha256
6681 (base32
6682 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
6683 (build-system ruby-build-system)
6684 (arguments
6685 `(#:phases
6686 (modify-phases %standard-phases
6687 (add-before 'check 'clean-up
6688 (lambda _
6689 (delete-file "Gemfile.lock")
6690 (substitute* "ruby_engine.gemspec"
6691 ;; Remove unnecessary imports that would entail further
6692 ;; dependencies.
6693 ((".*<rdoc.*") "")
6694 ((".*<rubygems-tasks.*") "")
6695 ;; Remove extraneous .gem file
6696 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
6697 ;; Soften rake dependency
6698 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
6699 "%q<rake>.freeze, [\">= 10.0\"]")
6700 ;; Soften the rspec dependency
6701 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
6702 "%q<rspec>.freeze, [\">= 2.4\"]"))
6703 (substitute* "Rakefile"
6704 (("require 'rubygems/tasks'") "")
6705 (("Gem::Tasks.new") ""))
6706 ;; Remove extraneous .gem file that otherwise gets installed.
6707 (delete-file "pkg/ruby_engine-1.0.0.gem")
6708 #t)))))
6709 (native-inputs
6710 `(("bundler" ,bundler)
6711 ("ruby-rake" ,ruby-rake)
6712 ("ruby-rspec" ,ruby-rspec)))
6713 (synopsis "Simplifies checking for Ruby implementation")
6714 (description
6715 "@code{ruby_engine} provides an RubyEngine class that can be used to
6716check which implementation of Ruby is in use. It can provide the interpreter
6717name and provides query methods such as @{RubyEngine.mri?}.")
6718 (home-page "https://github.com/janlelis/ruby_engine")
6719 (license license:expat)))
6720
8092e333
BW
6721(define-public ruby-turn
6722 (package
6723 (name "ruby-turn")
6724 (version "0.9.7")
6725 (source
6726 (origin
6727 (method url-fetch)
6728 (uri (rubygems-uri "turn" version))
6729 (sha256
6730 (base32
6731 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
6732 (build-system ruby-build-system)
6733 (arguments
6734 `(#:phases
6735 (modify-phases %standard-phases
6736 ;; Tests fail because turn changes its environment so can no longer
6737 ;; find test/unit. Instead simply test if the executable runs
6738 ;; without issue.
6739 (replace 'check
6740 (lambda _
9923d5a4 6741 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8092e333
BW
6742 (propagated-inputs
6743 `(("ruby-ansi" ,ruby-ansi)
6744 ("ruby-minitest" ,ruby-minitest-4)))
6745 (synopsis "Alternate set of alternative runners for MiniTest")
6746 (description
6747 "TURN provides a set of alternative runners for MiniTest which are both
6748colorful and informative. TURN displays each test on a separate line with
6749failures being displayed immediately instead of at the end of the tests. Note
6750that TURN is no longer being maintained.")
f433b662 6751 (home-page "https://rubygems.org/gems/turn")
8092e333
BW
6752 (license license:expat)))
6753
8279b1d3
CB
6754(define-public ruby-mimemagic
6755 (package
6756 (name "ruby-mimemagic")
60bc8952 6757 (version "0.3.3")
8279b1d3
CB
6758 (source
6759 (origin
6760 (method url-fetch)
6761 (uri (rubygems-uri "mimemagic" version))
6762 (sha256
60bc8952 6763 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8279b1d3
CB
6764 (build-system ruby-build-system)
6765 (arguments
6766 '(#:phases
6767 (modify-phases %standard-phases
6768 ;; This phase breaks the tests, as it patches some of the test data.
6769 (delete 'patch-source-shebangs))))
6770 (native-inputs
6771 `(("ruby-bacon" ,ruby-bacon)))
6772 (synopsis "Ruby library for MIME detection by extension or content")
6773 (description
6774 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
6775extension or content, using the freedesktop.org.xml shared-mime-info
6776database.")
6777 (home-page "https://github.com/minad/mimemagic")
6778 (license license:expat)))
6779
32d1c06f
BW
6780(define-public ruby-mime-types-data
6781 (package
6782 (name "ruby-mime-types-data")
f49511db 6783 (version "3.2016.0521")
32d1c06f
BW
6784 (source
6785 (origin
6786 (method url-fetch)
6787 (uri (rubygems-uri "mime-types-data" version))
6788 (sha256
6789 (base32
f49511db 6790 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
32d1c06f
BW
6791 (build-system ruby-build-system)
6792 (native-inputs
6793 `(("ruby-hoe" ,ruby-hoe)))
6794 (synopsis "Registry for information about MIME media type definitions")
6795 (description
6796 "@code{mime-types-data} provides a registry for information about
6797Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6798be used with the Ruby mime-types library or other software to determine
6799defined filename extensions for MIME types, or to use filename extensions to
6800look up the likely MIME type definitions.")
6801 (home-page "https://github.com/mime-types/mime-types-data/")
6802 (license license:expat)))
6803
d39b606c
BW
6804(define-public ruby-mime-types
6805 (package
6806 (name "ruby-mime-types")
803bcc81 6807 (version "3.1")
d39b606c
BW
6808 (source
6809 (origin
6810 (method url-fetch)
6811 (uri (rubygems-uri "mime-types" version))
6812 (sha256
6813 (base32
803bcc81 6814 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
d39b606c
BW
6815 (build-system ruby-build-system)
6816 (propagated-inputs
6817 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6818 (native-inputs
6819 `(("ruby-hoe" ,ruby-hoe)
6820 ("ruby-fivemat" ,ruby-fivemat)
6821 ("ruby-minitest-focus" ,ruby-minitest-focus)
6822 ("ruby-minitest-rg" ,ruby-minitest-rg)
803bcc81
BW
6823 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6824 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
d39b606c
BW
6825 (synopsis "Library and registry for MIME content type definitions")
6826 (description "The mime-types library provides a library and registry for
6827information about Multipurpose Internet Mail Extensions (MIME) content type
6828definitions. It can be used to determine defined filename extensions for MIME
6829types, or to use filename extensions to look up the likely MIME type
6830definitions.")
6831 (home-page "https://github.com/mime-types/ruby-mime-types")
6832 (license license:expat)))
6833
eb5e0bd9
BW
6834(define-public ruby-fivemat
6835 (package
6836 (name "ruby-fivemat")
c664ebcc 6837 (version "1.3.7")
eb5e0bd9
BW
6838 (source
6839 (origin
6840 (method url-fetch)
6841 (uri (rubygems-uri "fivemat" version))
6842 (sha256
6843 (base32
c664ebcc 6844 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
eb5e0bd9
BW
6845 (build-system ruby-build-system)
6846 (arguments
6847 `(#:tests? #f)) ; no tests
6848 (synopsis "Each test file given its own line of dots")
6849 (description
6850 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6851its own line of dots during testing. It aims to provide test output that is
6852neither too verbose nor too minimal.")
6853 (home-page "https://github.com/tpope/fivemat")
6854 (license license:expat)))
6855
4fea500b
BW
6856(define-public ruby-sqlite3
6857 (package
6858 (name "ruby-sqlite3")
e7cdba61 6859 (version "1.4.2")
4fea500b
BW
6860 (source
6861 (origin
6862 (method url-fetch)
6863 (uri (rubygems-uri "sqlite3" version))
6864 (sha256
6865 (base32
e7cdba61 6866 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
4fea500b
BW
6867 (build-system ruby-build-system)
6868 (arguments
6869 `(#:phases
6870 (modify-phases %standard-phases
6871 (add-before 'check 'add-gemtest-file
6872 ;; This file exists in the repository but is not distributed.
9923d5a4 6873 (lambda _ (invoke "touch" ".gemtest"))))))
4fea500b
BW
6874 (inputs
6875 `(("sqlite" ,sqlite)))
6876 (native-inputs
6877 `(("ruby-hoe" ,ruby-hoe)
6878 ("ruby-rake-compiler" ,ruby-rake-compiler)
6879 ("ruby-mini-portile" ,ruby-mini-portile)))
6880 (synopsis "Interface with SQLite3 databases")
6881 (description
6882 "This module allows Ruby programs to interface with the SQLite3 database
6883engine.")
6884 (home-page
6885 "https://github.com/sparklemotion/sqlite3-ruby")
6886 (license license:bsd-3)))
6887
4dfa39cc
BW
6888(define-public ruby-shoulda-context
6889 (package
6890 (name "ruby-shoulda-context")
e7d1d472 6891 (version "1.2.2")
4dfa39cc
BW
6892 (source
6893 (origin
6894 (method url-fetch)
6895 (uri (rubygems-uri "shoulda-context" version))
6896 (sha256
6897 (base32
e7d1d472 6898 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
4dfa39cc
BW
6899 (build-system ruby-build-system)
6900 (arguments
6901 `(#:phases
6902 (modify-phases %standard-phases
6903 (replace 'check
6904 (lambda _
6905 ;; Do not run tests to avoid circular dependence with rails.
6906 ;; Instead just import the library to test.
9923d5a4 6907 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
4dfa39cc
BW
6908 (synopsis "Test::Unit context framework extracted from Shoulda")
6909 (description
6910 "@code{shoulda-context} is the context framework extracted from Shoulda.
6911Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6912context, setup, and should blocks combine to produce natural test method
6913names.")
6914 (home-page "https://github.com/thoughtbot/shoulda-context")
6915 (license license:expat)))
6916
e4fea008
BW
6917(define-public ruby-shoulda-matchers
6918 (package
6919 (name "ruby-shoulda-matchers")
d1c1f368 6920 (version "3.1.2")
e4fea008
BW
6921 (source
6922 (origin
6923 (method url-fetch)
6924 (uri (rubygems-uri "shoulda-matchers" version))
6925 (sha256
6926 (base32
d1c1f368 6927 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
e4fea008
BW
6928 (build-system ruby-build-system)
6929 (arguments
6930 `(#:phases
6931 (modify-phases %standard-phases
e4fea008
BW
6932 (replace 'check
6933 (lambda _
6934 ;; Do not run tests to avoid circular dependence with rails. Instead
6935 ;; just import the library to test.
9923d5a4 6936 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
e4fea008
BW
6937 (propagated-inputs
6938 `(("ruby-activesupport" ,ruby-activesupport)))
6939 (synopsis "Collection of testing matchers extracted from Shoulda")
6940 (description
6941 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6942test common Rails functionality. These tests would otherwise be much longer,
6943more complex, and error-prone.")
6944 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6945 (license license:expat)))
6946
3885c58b
BW
6947(define-public ruby-shoulda-matchers-2
6948 (package
6949 (inherit ruby-shoulda-matchers)
6950 (version "2.8.0")
6951 (source (origin
6952 (method url-fetch)
6953 (uri (rubygems-uri "shoulda-matchers" version))
6954 (sha256
6955 (base32
6956 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6957
6f390716
BW
6958(define-public ruby-shoulda
6959 (package
6960 (name "ruby-shoulda")
6961 (version "3.5.0")
6962 (source
6963 (origin
6964 (method url-fetch)
6965 (uri (rubygems-uri "shoulda" version))
6966 (sha256
6967 (base32
6968 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6969 (build-system ruby-build-system)
6970 (arguments
6971 `(#:phases
6972 (modify-phases %standard-phases
6973 (replace 'check
6974 ;; Don't run tests to avoid circular dependence with rails. Instead
6975 ;; just import the library to test.
9923d5a4 6976 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6f390716
BW
6977 (propagated-inputs
6978 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6979 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6980 (synopsis "Context framework and matchers for testing")
6981 (description
6982 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6983@code{shoulda-matchers} providing tools for writing tests.")
6984 (home-page "https://github.com/thoughtbot/shoulda")
6985 (license license:expat)))
6986
3b44bcdf
BW
6987(define-public ruby-unf
6988 (package
6989 (name "ruby-unf")
6990 (version "0.1.4")
6991 (source
6992 (origin
6993 (method url-fetch)
6994 (uri (rubygems-uri "unf" version))
6995 (sha256
6996 (base32
6997 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6998 (build-system ruby-build-system)
6999 (arguments
7000 `(#:phases
7001 (modify-phases %standard-phases
7002 (add-before 'check 'add-dependency-to-bundler
7003 (lambda _
7004 ;; test-unit is required but not provided by the bundler
7005 ;; environment. This is fixed in the upstream repository but fix
7006 ;; has not been released.
7007 (substitute* "Gemfile"
7008 (("^gemspec") "gem 'test-unit'\ngemspec"))
7009 #t)))))
7010 (propagated-inputs
7011 `(("ruby-unf-ext" ,ruby-unf-ext)))
7012 (native-inputs
7013 `(("ruby-shoulda" ,ruby-shoulda)
7014 ("bundler" ,bundler)
7015 ("ruby-test-unit" ,ruby-test-unit)))
7016 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
7017 (description
7018 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
7019support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
7020@code{java.text.Normalizer} on JRuby.")
7021 (home-page "https://github.com/knu/ruby-unf")
7022 (license license:bsd-2)))
7023
e32c99d2
CB
7024(define-public ruby-warden
7025 (package
7026 (name "ruby-warden")
7027 (version "1.2.8")
7028 (source
7029 (origin
7030 (method url-fetch)
7031 (uri (rubygems-uri "warden" version))
7032 (sha256
7033 (base32
7034 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
7035 (build-system ruby-build-system)
7036 (arguments
7037 '(#:tests? #f)) ; No included tests
7038 (propagated-inputs
7039 `(("ruby-rack" ,ruby-rack)))
7040 (synopsis "Rack middleware providing authentication")
7041 (description
7042 "Warden is a Rack-based middleware that provides a mechanism for
7043authentication in Ruby web applications.")
7044 (home-page "https://github.com/wardencommunity/warden")
7045 (license license:expat)))
7046
e42eecdb
CB
7047(define-public ruby-warden-oauth2
7048 (package
7049 (name "ruby-warden-oauth2")
7050 (version "0.0.1")
7051 (source
7052 (origin
7053 (method url-fetch)
7054 (uri (rubygems-uri "warden-oauth2" version))
7055 (sha256
7056 (base32
7057 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
7058 (build-system ruby-build-system)
7059 (arguments
7060 '(#:test-target "spec"
7061 #:phases
7062 (modify-phases %standard-phases
7063 (add-after 'unpack 'remove-unnecessary-dependencies
7064 (lambda _
7065 (substitute* "Gemfile"
7066 ;; All of these gems relate to development, and are unnecessary
7067 ;; when running the tests
7068 (("gem 'guard-bundler'") "")
7069 (("gem 'guard'") "")
7070 (("gem 'guard-rspec'") "")
7071 (("gem 'rb-fsevent'") "")
7072 (("gem 'pry'") "")
7073 (("gem 'growl'") ""))
7074 #t))
7075 ;; The test suite doesn't work with rspec@2, and this is incompatible
7076 ;; with the current version of Rake, so invoke Rspec directly
7077 (replace 'check
7078 (lambda* (#:key tests? #:allow-other-keys)
7079 (when tests?
7080 (invoke "bundle" "exec" "rspec"))
7081 #t)))))
7082 (propagated-inputs
7083 `(("ruby-warden" ,ruby-warden)))
7084 (native-inputs
7085 `(("bundler" ,bundler)
7086 ("ruby-rspec" ,ruby-rspec-2)
7087 ("ruby-rack-test" ,ruby-rack-test)))
7088 (synopsis "OAuth 2.0 strategies for Warden")
7089 (description
7090 "This library extends Warden to support OAuth 2.0 authorized API
7091requests.")
7092 (home-page "https://github.com/opperator/warden-oauth2")
7093 (license license:expat)))
7094
8c7ae384
CB
7095(define-public ruby-webmock-2
7096 (package
7097 (name "ruby-webmock")
7098 (version "2.3.2")
7099 (source
7100 (origin
7101 (method url-fetch)
7102 (uri (rubygems-uri "webmock" version))
7103 (sha256
7104 (base32
7105 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
7106 (build-system ruby-build-system)
7107 (native-inputs
7108 `(("bundler" ,bundler)
7109 ("ruby-rspec" ,ruby-rspec)))
7110 (propagated-inputs
7111 `(("ruby-addressable" ,ruby-addressable)
7112 ("ruby-crack" ,ruby-crack)
7113 ("ruby-hashdiff" ,ruby-hashdiff)))
7114 (synopsis "Allows stubbing and setting expectations on HTTP requests")
7115 (description
7116 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
7117requests. This is useful when testing software.")
7118 (home-page "https://github.com/bblimke/webmock")
7119 (license license:expat)))
7120
d8c189ed
CB
7121(define-public ruby-unicode-display-width
7122 (package
7123 (name "ruby-unicode-display-width")
216ccced 7124 (version "1.6.0")
d8c189ed
CB
7125 (source
7126 (origin
7127 (method url-fetch)
7128 (uri (rubygems-uri "unicode-display_width" version))
7129 (sha256
7130 (base32
216ccced 7131 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
d8c189ed
CB
7132 (build-system ruby-build-system)
7133 (arguments
7134 '(;; Test data not included.
7135 #:tests? #f))
7136 (synopsis "Determine the monospace display width of Ruby strings")
7137 (description
7138 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
7139display width of strings in Ruby.")
7140 (home-page "https://github.com/janlelis/unicode-display_width")
7141 (license license:expat)))
7142
6120589f
CB
7143;; There is another gem called 'ruby-version' so we use an underscore in this
7144;; name
7145(define-public ruby_version
7146 (package
7147 (name "ruby_version")
7148 (version "1.0.1")
7149 (source
7150 (origin
7151 (method url-fetch)
7152 (uri (rubygems-uri "ruby_version" version))
7153 (sha256
7154 (base32
7155 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
7156 (build-system ruby-build-system)
7157 (arguments
7158 '(#:phases
7159 (modify-phases %standard-phases
7160 (add-before 'check 'fix-dependencies
7161 (lambda _
7162 ;; Remove the Gemfile.lock, as we want to use Guix packages at
7163 ;; whatever versions.
7164 (delete-file "Gemfile.lock")
7165 ;; Remove the incldued gem file as it's unnecessary.
7166 (delete-file "pkg/ruby_version-1.0.0.gem")
7167 (substitute* "ruby_version.gemspec"
7168 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
7169 ((".*rdoc.*") "\n")
7170 ((".*rubygems-tasks.*") "\n")
7171 ;; Accept any version of rake and rspec
7172 (("%q<rake.*") "%q<rake>)\n")
7173 (("%q<rspec.*") "%q<rspec>)\n"))
7174 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
7175 ;; unnecessary.
7176 (substitute* "Rakefile"
7177 (("^require 'rubygems/tasks'") "")
7178 (("Gem::Tasks.new") ""))
7179 #t)))))
7180 (native-inputs
7181 `(("bundler" ,bundler)
7182 ("ruby-rspec" ,ruby-rspec)))
7183 (synopsis "Ruby library to help check the Ruby version")
7184 (description
7185 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
7186checking for the right Ruby version in software.")
7187 (home-page "https://github.com/janlelis/ruby_version")
7188 (license license:expat)))
7189
a229acff
CB
7190(define-public ruby-websocket-driver
7191 (package
7192 (name "ruby-websocket-driver")
9d1cf6d4 7193 (version "0.7.1")
a229acff
CB
7194 (source
7195 (origin
7196 (method url-fetch)
7197 (uri (rubygems-uri "websocket-driver" version))
7198 (sha256
9d1cf6d4 7199 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
a229acff
CB
7200 (build-system ruby-build-system)
7201 (arguments
9d1cf6d4 7202 '(#:tests? #f)) ; no included tests
a229acff
CB
7203 (propagated-inputs
7204 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
7205 (synopsis "WebSocket protocol handler with pluggable I/O")
7206 (description
7207 "@code{websocket-driver} provides a complete implementation of the
7208WebSocket protocols that can be hooked up to any TCP library")
7209 (home-page "https://github.com/faye/websocket-driver-ruby")
7210 (license license:expat)))
7211
52b015a9
CB
7212(define-public ruby-websocket-extensions
7213 (package
7214 (name "ruby-websocket-extensions")
7215 (version "0.1.3")
7216 (source
7217 (origin
7218 (method url-fetch)
7219 (uri (rubygems-uri "websocket-extensions" version))
7220 (sha256
7221 (base32
7222 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
7223 (build-system ruby-build-system)
7224 (arguments
7225 '(;; No included tests
7226 #:tests? #f))
7227 (synopsis "Generic extension manager for WebSocket connections")
7228 (description
7229 "@code{websocket-extensions} provides a container for registering
7230extension plugins.")
7231 (home-page "https://github.com/faye/websocket-extensions-ruby")
7232 (license license:expat)))
7233
5799aadd
BW
7234(define-public ruby-domain-name
7235 (package
7236 (name "ruby-domain-name")
222999c9 7237 (version "0.5.20180417")
5799aadd
BW
7238 (source
7239 (origin
7240 (method url-fetch)
7241 (uri (rubygems-uri "domain_name" version))
7242 (sha256
7243 (base32
222999c9 7244 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
5799aadd
BW
7245 (build-system ruby-build-system)
7246 (arguments
7247 `(#:phases
7248 (modify-phases %standard-phases
7249 (add-before 'check 'fix-versions
7250 (lambda _
7251 ;; Fix NameError that appears to already be fixed upstream.
7252 (substitute* "Rakefile"
7253 (("DomainName::VERSION")
7254 "Bundler::GemHelper.gemspec.version"))
7255 ;; Loosen unnecessarily strict test-unit version specification.
7256 (substitute* "domain_name.gemspec"
71596c3c 7257 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
5799aadd
BW
7258 #t)))))
7259 (propagated-inputs
7260 `(("ruby-unf" ,ruby-unf)))
7261 (native-inputs
7262 `(("ruby-shoulda" ,ruby-shoulda)
7263 ("bundler" ,bundler)
7264 ("ruby-test-unit" ,ruby-test-unit)))
7265 (synopsis "Domain name manipulation library")
7266 (description
7267 "@code{domain_name} is a Domain name manipulation library. It parses a
7268domain name ready for extracting the registered domain and TLD (Top Level
7269Domain). It can also be used for cookie domain validation based on the Public
7270Suffix List.")
7271 (home-page "https://github.com/knu/ruby-domain_name")
7272 (license license:bsd-2)))
7273
d114ceeb
BW
7274(define-public ruby-http-cookie
7275 (package
7276 (name "ruby-http-cookie")
2a2eb07d 7277 (version "1.0.3")
d114ceeb
BW
7278 (source
7279 (origin
7280 (method url-fetch)
7281 (uri (rubygems-uri "http-cookie" version))
7282 (sha256
7283 (base32
2a2eb07d 7284 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
d114ceeb
BW
7285 (build-system ruby-build-system)
7286 (arguments
7287 `(#:phases
7288 (modify-phases %standard-phases
7289 (add-before 'check 'add-dependency-to-bundler
7290 (lambda _
7291 ;; Fix NameError
7292 (substitute* "Rakefile"
7293 (("HTTP::Cookie::VERSION")
7294 "Bundler::GemHelper.gemspec.version"))
7295 #t)))))
7296 (propagated-inputs
7297 `(("ruby-domain-name" ,ruby-domain-name)))
7298 (native-inputs
7299 `(("rubysimplecov" ,ruby-simplecov)
7300 ("bundler" ,bundler)
7301 ("ruby-sqlite3" ,ruby-sqlite3)
7302 ("ruby-test-unit" ,ruby-test-unit)))
7303 (synopsis "Handle HTTP Cookies based on RFC 6265")
7304 (description
7305 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
7306RFC 6265. It has been designed with security, standards compliance and
7307compatibility in mind, to behave just the same as today's major web browsers.
7308It has built-in support for the legacy @code{cookies.txt} and
7309@code{cookies.sqlite} formats of Mozilla Firefox.")
7310 (home-page "https://github.com/sparklemotion/http-cookie")
7311 (license license:expat)))
7312
1c8e6fd3
CB
7313(define-public ruby-httpclient
7314 (package
7315 (name "ruby-httpclient")
7316 (version "2.8.3")
7317 (source
7318 (origin
7319 (method url-fetch)
7320 (uri (rubygems-uri "httpclient" version))
7321 (sha256
7322 (base32
7323 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
7324 (build-system ruby-build-system)
7325 (arguments
7326 '(;; TODO: Some tests currently fail
7327 ;; ------
7328 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
7329 ;; 2 omissions, 0 notifications
7330 ;; 91.866% passed
7331 ;; ------
7332 ;; 6.49 tests/s, 22.41 assertions/s
7333 #:tests? #f
7334 #:phases
7335 (modify-phases %standard-phases
7336 (replace 'check
7337 (lambda* (#:key tests? #:allow-other-keys)
7338 (if tests?
9923d5a4
TGR
7339 (invoke "ruby"
7340 "-Ilib"
7341 "test/runner.rb")
0076f5a9 7342 #t))))))
1c8e6fd3
CB
7343 (native-inputs
7344 `(("ruby-rack" ,ruby-rack)))
7345 (synopsis
7346 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
7347 (description
7348 "The @code{httpclient} ruby library provides functionality related to
7349HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
7350Cookie, multithreading and authentication (digest, NTLM) support.
7351
7352Also provided is a @command{httpclient} command, which can perform HTTP
7353requests either using arguments or with an interactive prompt.")
7354 (home-page "https://github.com/nahi/httpclient")
7355 (license license:ruby)))
7356
7d3a1a2d
BW
7357(define-public ruby-ansi
7358 (package
7359 (name "ruby-ansi")
7360 (version "1.5.0")
7361 (source
7362 (origin
3d30c332 7363 (method git-fetch)
7d3a1a2d 7364 ;; Fetch from GitHub as the gem does not contain testing code.
3d30c332
EF
7365 (uri (git-reference
7366 (url "https://github.com/rubyworks/ansi")
7367 (commit version)))
7368 (file-name (git-file-name name version))
7d3a1a2d
BW
7369 (sha256
7370 (base32
3d30c332 7371 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
7d3a1a2d
BW
7372 (build-system ruby-build-system)
7373 (arguments
7374 `(#:phases
7375 (modify-phases %standard-phases
7376 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
7377 ;; cycle ansi, qed, ansi. Instead simply test that the library can
7378 ;; be require'd.
7379 (replace 'check
7380 (lambda _
9923d5a4 7381 (invoke "ruby" "-Ilib" "-r" "ansi")))
0899352f
MB
7382 (add-before 'validate-runpath 'replace-broken-symlink
7383 (lambda* (#:key outputs #:allow-other-keys)
7384 (let* ((out (assoc-ref outputs "out"))
3cb3fa67
CB
7385 (file (string-append
7386 out "/lib/ruby/vendor_ruby/gems/ansi-"
7387 ,version "/lib/ansi.yml")))
0899352f
MB
7388 ;; XXX: This symlink is broken since ruby 2.4.
7389 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
7390 (delete-file file)
7391 (symlink "../.index" file)
7392 #t))))))
7d3a1a2d
BW
7393 (synopsis "ANSI escape code related libraries")
7394 (description
7395 "This package is a collection of ANSI escape code related libraries
7396enabling ANSI colorization and stylization of console output. Included in the
7397library are the @code{Code} module, which defines ANSI codes as constants and
7398methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
7399@code{ProgressBar}, and a @code{String} subclass. The library also includes a
7400@code{Terminal} module which provides information about the current output
7401device.")
3d30c332 7402 (home-page "https://rubyworks.github.io/ansi/")
7d3a1a2d 7403 (license license:bsd-2)))
7c033c46
BW
7404
7405(define-public ruby-systemu
7406 (package
7407 (name "ruby-systemu")
7408 (version "2.6.5")
7409 (source
7410 (origin
7411 (method url-fetch)
7412 (uri (rubygems-uri "systemu" version))
7413 (sha256
7414 (base32
7415 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
7416 (build-system ruby-build-system)
7417 (arguments
7418 `(#:phases
7419 (modify-phases %standard-phases
7420 (add-before 'check 'set-version
7421 (lambda _
7422 (setenv "VERSION" ,version)
7423 #t)))))
7424 (synopsis "Capture of stdout/stderr and handling of child processes")
7425 (description
7426 "Systemu can be used on any platform to return status, stdout, and stderr
7427of any command. Unlike other methods like @code{open3} and @code{popen4}
7428there is no danger of full pipes or threading issues hanging your process or
7429subprocess.")
7430 (home-page "https://github.com/ahoward/systemu")
7431 (license license:ruby)))
3d84a99e
BW
7432
7433(define-public ruby-bio-commandeer
7434 (package
7435 (name "ruby-bio-commandeer")
37b08547 7436 (version "0.4.0")
3d84a99e
BW
7437 (source
7438 (origin
7439 (method url-fetch)
7440 (uri (rubygems-uri "bio-commandeer" version))
7441 (sha256
7442 (base32
37b08547 7443 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
3d84a99e
BW
7444 (build-system ruby-build-system)
7445 (arguments
7446 `(#:phases
7447 (modify-phases %standard-phases
7448 (replace 'check
7449 ;; Run test without calling 'rake' so that jeweler is
7450 ;; not required as an input.
7451 (lambda _
9923d5a4 7452 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
3d84a99e
BW
7453 (propagated-inputs
7454 `(("ruby-bio-logger" ,ruby-bio-logger)
7455 ("ruby-systemu" ,ruby-systemu)))
7456 (native-inputs
7457 `(("bundler" ,bundler)
7458 ("ruby-rspec" ,ruby-rspec)))
7459 (synopsis "Simplified running of shell commands from within Ruby")
7460 (description
7461 "Bio-commandeer provides an opinionated method of running shell commands
7462from within Ruby. The advantage of bio-commandeer over other methods of
7463running external commands is that when something goes wrong, messages printed
7464to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
7465detail to ease debugging.")
7bf837fd 7466 (home-page "https://github.com/wwood/bioruby-commandeer")
3d84a99e 7467 (license license:expat)))
7c8131c7
BW
7468
7469(define-public ruby-rubytest
7470 (package
7471 (name "ruby-rubytest")
7472 (version "0.8.1")
7473 (source
7474 (origin
7475 (method url-fetch)
7476 (uri (rubygems-uri "rubytest" version))
7477 (sha256
7478 (base32
7479 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
7480 (build-system ruby-build-system)
7481 (arguments
7482 ;; Disable regular testing to break the cycle rubytest, qed, brass,
7483 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
7484 ;; simply test that the library can be require'd.
7485 `(#:phases
7486 (modify-phases %standard-phases
7487 (replace 'check
7488 (lambda _
9923d5a4 7489 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
7c8131c7
BW
7490 (propagated-inputs
7491 `(("ruby-ansi" ,ruby-ansi)))
7492 (synopsis "Universal test harness for Ruby")
7493 (description
7494 "Rubytest is a testing meta-framework for Ruby. It can handle any
7495compliant test framework and can run tests from multiple frameworks in a
7496single pass.")
2f3800e5 7497 (home-page "https://rubyworks.github.io/rubytest")
7c8131c7 7498 (license license:bsd-2)))
90fcedf2
BW
7499
7500(define-public ruby-brass
7501 (package
7502 (name "ruby-brass")
7503 (version "1.2.1")
7504 (source
7505 (origin
7506 (method url-fetch)
7507 (uri (rubygems-uri "brass" version))
7508 (sha256
7509 (base32
7510 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
7511 (build-system ruby-build-system)
7512 (arguments
7513 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
7514 ;; Instead simply test that the library can be require'd.
7515 `(#:phases
7516 (modify-phases %standard-phases
7517 (replace 'check
7518 (lambda _
9923d5a4 7519 (invoke "ruby" "-Ilib" "-r" "brass"))))))
90fcedf2
BW
7520 (synopsis "Basic foundational assertions framework")
7521 (description
7522 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
7523foundational assertions framework for other assertion and test frameworks to
7524make use of.")
2f3800e5 7525 (home-page "https://rubyworks.github.io/brass")
90fcedf2 7526 (license license:bsd-2)))
120fc74b
BW
7527
7528(define-public ruby-qed
7529 (package
7530 (name "ruby-qed")
7531 (version "2.9.2")
7532 (source
7533 (origin
7534 (method url-fetch)
7535 (uri (rubygems-uri "qed" version))
7536 (sha256
7537 (base32
7538 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
7539 (build-system ruby-build-system)
7540 (arguments
7541 ;; Disable testing to break the cycle qed, ansi, qed, among others.
7542 ;; Instead simply test that the executable runs using --copyright.
7543 `(#:phases
7544 (modify-phases %standard-phases
7545 (replace 'check
7546 (lambda _
9923d5a4 7547 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
120fc74b
BW
7548 (propagated-inputs
7549 `(("ruby-ansi" ,ruby-ansi)
7550 ("ruby-brass" ,ruby-brass)))
7551 (synopsis "Test framework utilizing literate programming techniques")
7552 (description
7553 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
7554@dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
7555Development} (BDD) utilizing Literate Programming techniques. QED sits
7556somewhere between lower-level testing tools like @code{Test::Unit} and
7557requirement specifications systems like Cucumber.")
2f3800e5 7558 (home-page "https://rubyworks.github.io/qed")
120fc74b 7559 (license license:bsd-2)))
9273ee8f 7560
dbbe88d3
CB
7561(define-public ruby-que
7562 (package
7563 (name "ruby-que")
7564 (version "1.0.0.beta3")
7565 (source
7566 (origin
7567 (method url-fetch)
7568 (uri (rubygems-uri "que" version))
7569 (sha256
7570 (base32
7571 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
7572 (build-system ruby-build-system)
7573 (arguments
7574 '(#:tests? #f)) ; No included tests
7575 (synopsis "Job queue using PostgreSQL written in Ruby")
7576 (description
7577 "This package provides a job queue that uses PostgreSQL for storing jobs
7578and locking between worker processes.")
7579 (home-page "https://github.com/chanks/que")
7580 (license license:expat)))
7581
9273ee8f
BW
7582(define-public ruby-ae
7583 (package
7584 (name "ruby-ae")
7585 (version "1.8.2")
7586 (source
7587 (origin
11d1b318 7588 (method git-fetch)
9273ee8f 7589 ;; Fetch from github so tests are included.
11d1b318
EF
7590 (uri (git-reference
7591 (url "https://github.com/rubyworks/ae")
7592 (commit version)))
7593 (file-name (git-file-name name version))
9273ee8f
BW
7594 (sha256
7595 (base32
11d1b318 7596 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9273ee8f
BW
7597 (build-system ruby-build-system)
7598 (arguments
7599 `(#:phases
7600 (modify-phases %standard-phases
7601 (replace 'check
9923d5a4 7602 (lambda _ (invoke "qed")))
de6f6efd
MB
7603 (add-before 'validate-runpath 'replace-broken-symlink
7604 (lambda* (#:key outputs #:allow-other-keys)
7605 (let* ((out (assoc-ref outputs "out"))
3cb3fa67
CB
7606 (file (string-append
7607 out "/lib/ruby/vendor_ruby/gems/ae-"
7608 ,version "/lib/ae.yml")))
de6f6efd
MB
7609 ;; XXX: This symlink is broken since ruby 2.4.
7610 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
7611 (delete-file file)
7612 (symlink "../.index" file)
7613 #t))))))
9273ee8f
BW
7614 (propagated-inputs
7615 `(("ruby-ansi" ,ruby-ansi)))
7616 (native-inputs
7617 `(("ruby-qed" ,ruby-qed)))
7618 (synopsis "Assertions library")
7619 (description
7620 "Assertive Expressive (AE) is an assertions library specifically designed
7621for reuse by other test frameworks.")
11d1b318 7622 (home-page "https://rubyworks.github.io/ae/")
9273ee8f 7623 (license license:bsd-2)))
78bb471f
BW
7624
7625(define-public ruby-lemon
7626 (package
7627 (name "ruby-lemon")
7628 (version "0.9.1")
7629 (source
7630 (origin
7631 (method url-fetch)
7632 (uri (rubygems-uri "lemon" version))
7633 (sha256
7634 (base32
7635 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
7636 (build-system ruby-build-system)
7637 (arguments
7638 `(#:phases
7639 (modify-phases %standard-phases
9923d5a4 7640 (replace 'check (lambda _ (invoke "qed"))))))
78bb471f
BW
7641 (propagated-inputs
7642 `(("ruby-ae" ,ruby-ae)
7643 ("ruby-ansi" ,ruby-ansi)
7644 ("ruby-rubytest" ,ruby-rubytest)))
7645 (native-inputs
7646 `(("ruby-qed" ,ruby-qed)))
7647 (synopsis "Test framework correlating code structure and test unit")
7648 (description
7649 "Lemon is a unit testing framework that enforces highly formal
7650case-to-class and unit-to-method test construction. This enforcement can help
7651focus concern on individual units of behavior.")
2f3800e5 7652 (home-page "https://rubyworks.github.io/lemon")
78bb471f 7653 (license license:bsd-2)))
0832804e
BW
7654
7655(define-public ruby-rubytest-cli
7656 (package
7657 (name "ruby-rubytest-cli")
7658 (version "0.2.0")
7659 (source
7660 (origin
7661 (method url-fetch)
7662 (uri (rubygems-uri "rubytest-cli" version))
7663 (sha256
7664 (base32
7665 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
7666 (build-system ruby-build-system)
7667 (arguments
7668 `(#:tests? #f)) ; no tests
7669 (propagated-inputs
7670 `(("ruby-ansi" ,ruby-ansi)
7671 ("ruby-rubytest" ,ruby-rubytest)))
7672 (synopsis "Command-line interface for rubytest")
7673 (description
7674 "Rubytest CLI is a command-line interface for running tests for
7675Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
2f3800e5 7676 (home-page "https://rubyworks.github.io/rubytest-cli")
0832804e 7677 (license license:bsd-2)))
72ccbfe3
BW
7678
7679(define-public ruby-hashery
7680 (package
7681 (name "ruby-hashery")
cba96208 7682 (version "2.1.2")
72ccbfe3
BW
7683 (source
7684 (origin
7685 (method url-fetch)
7686 (uri (rubygems-uri "hashery" version))
7687 (sha256
7688 (base32
cba96208 7689 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
72ccbfe3
BW
7690 (build-system ruby-build-system)
7691 (arguments
7692 `(#:phases
7693 (modify-phases %standard-phases
7694 (replace 'check
7695 (lambda _
9923d5a4
TGR
7696 (invoke "qed")
7697 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
72ccbfe3
BW
7698 (native-inputs
7699 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
7700 ("ruby-qed" ,ruby-qed)
7701 ("ruby-lemon" ,ruby-lemon)))
7702 (synopsis "Hash-like classes with extra features")
7703 (description
7704 "The Hashery is a tight collection of @code{Hash}-like classes.
7705Included are the auto-sorting @code{Dictionary} class, the efficient
7706@code{LRUHash}, the flexible @code{OpenHash} and the convenient
7707@code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
7708defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
7709standard @code{Hash} making it possible to subclass and augment to fit any
7710specific use case.")
2f3800e5 7711 (home-page "https://rubyworks.github.io/hashery")
72ccbfe3 7712 (license license:bsd-2)))
1f1d71e0
BW
7713
7714(define-public ruby-rc4
7715 (package
7716 (name "ruby-rc4")
7717 (version "0.1.5")
7718 (source
7719 (origin
7720 (method url-fetch)
7721 (uri (rubygems-uri "ruby-rc4" version))
7722 (sha256
7723 (base32
7724 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
7725 (build-system ruby-build-system)
7726 (arguments
7727 `(#:phases
7728 (modify-phases %standard-phases
7729 (replace 'check
7730 (lambda _
9923d5a4 7731 (invoke "rspec" "spec/rc4_spec.rb"))))))
1f1d71e0
BW
7732 (native-inputs
7733 `(("ruby-rspec" ,ruby-rspec-2)))
7734 (synopsis "Implementation of the RC4 algorithm")
7735 (description
7736 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
7737 (home-page "https://github.com/caiges/Ruby-RC4")
7738 (license license:expat)))
f3e085a8
BW
7739
7740(define-public ruby-afm
7741 (package
7742 (name "ruby-afm")
7743 (version "0.2.2")
7744 (source
7745 (origin
7746 (method url-fetch)
7747 (uri (rubygems-uri "afm" version))
7748 (sha256
7749 (base32
7750 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
7751 (build-system ruby-build-system)
7752 (native-inputs
7753 `(("bundler" ,bundler)))
7754 (synopsis "Read Adobe Font Metrics (afm) files")
7755 (description
7756 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
7757files and use the data therein.")
7bf837fd 7758 (home-page "https://github.com/halfbyte/afm")
f3e085a8 7759 (license license:expat)))
acb6be42
BW
7760
7761(define-public ruby-ascii85
7762 (package
7763 (name "ruby-ascii85")
5854082a 7764 (version "1.0.3")
acb6be42
BW
7765 (source
7766 (origin
7767 (method url-fetch)
7768 (uri (rubygems-uri "Ascii85" version))
7769 (sha256
7770 (base32
5854082a 7771 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
acb6be42
BW
7772 (build-system ruby-build-system)
7773 (native-inputs
7774 `(("bundler" ,bundler)))
7775 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
7776 (description
7777 "This library provides methods to encode and decode Ascii85
7778binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
7779@dfn{Portable Document Format} (PDF) file formats.")
7780 (home-page "https://github.com/datawraith/ascii85gem")
7781 (license license:expat)))
edf8caae
BW
7782
7783(define-public ruby-ttfunk
7784 (package
7785 (name "ruby-ttfunk")
afb7a3e8 7786 (version "1.5.1")
edf8caae
BW
7787 (source
7788 (origin
4e110825 7789 (method git-fetch)
edf8caae 7790 ;; fetch from github as the gem does not contain testing code
4e110825
EF
7791 (uri (git-reference
7792 (url "https://github.com/prawnpdf/ttfunk")
7793 (commit version)))
7794 (file-name (git-file-name name version))
edf8caae
BW
7795 (sha256
7796 (base32
4e110825 7797 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
edf8caae
BW
7798 (build-system ruby-build-system)
7799 (arguments
7800 `(#:test-target "spec"
7801 #:phases
7802 (modify-phases %standard-phases
afb7a3e8
JL
7803 (add-before 'build 'remove-ssh
7804 (lambda _
7805 ;; remove dependency on an ssh key pair that doesn't exist
7806 (substitute* "ttfunk.gemspec"
7807 (("spec.signing_key.*") ""))
7808 #t))
edf8caae
BW
7809 (add-before 'check 'remove-rubocop
7810 (lambda _
7811 ;; remove rubocop as a dependency as not needed for testing
7812 (substitute* "ttfunk.gemspec"
7813 (("spec.add_development_dependency\\('rubocop'.*") ""))
7814 (substitute* "Rakefile"
7815 (("require 'rubocop/rake_task'") "")
afb7a3e8 7816 (("RuboCop::RakeTask.new") ""))
edf8caae
BW
7817 #t)))))
7818 (native-inputs
7819 `(("ruby-rspec" ,ruby-rspec)
afb7a3e8 7820 ("ruby-yard" ,ruby-yard)
edf8caae
BW
7821 ("bundler" ,bundler)))
7822 (synopsis "Font metrics parser for the Prawn PDF generator")
7823 (description
7824 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7825part of the Prawn PDF generator.")
7826 (home-page "https://github.com/prawnpdf/ttfunk")
7827 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7828 ;; for details."
7829 (license (list license:gpl2 license:gpl3 license:ruby))))
cbdd428c 7830
9270298f
BW
7831(define-public ruby-puma
7832 (package
7833 (name "ruby-puma")
63755fcd 7834 (version "3.9.1")
9270298f
BW
7835 (source
7836 (origin
a6cffe6e 7837 (method git-fetch)
9270298f 7838 ;; Fetch from GitHub because distributed gem does not contain tests.
a6cffe6e
EF
7839 (uri (git-reference
7840 (url "https://github.com/puma/puma")
7841 (commit (string-append "v" version))))
7842 (file-name (git-file-name name version))
9270298f
BW
7843 (sha256
7844 (base32
a6cffe6e 7845 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9270298f
BW
7846 (build-system ruby-build-system)
7847 (arguments
63755fcd
BW
7848 `(#:tests? #f ; Tests require an out-dated version of minitest.
7849 #:phases
9270298f
BW
7850 (modify-phases %standard-phases
7851 (add-before 'build 'fix-gemspec
7852 (lambda _
7853 (substitute* "puma.gemspec"
7854 (("git ls-files") "find * |sort"))
7855 #t)))))
9270298f
BW
7856 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7857 (description
7858 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7859for Ruby/Rack applications. Puma is intended for use in both development and
7860production environments. In order to get the best throughput, it is highly
7861recommended that you use a Ruby implementation with real threads like Rubinius
7862or JRuby.")
a6cffe6e 7863 (home-page "https://puma.io/")
9270298f
BW
7864 (license license:expat)))
7865
b0813490
BW
7866(define-public ruby-hoe-git
7867 (package
7868 (name "ruby-hoe-git")
7869 (version "1.6.0")
7870 (source
7871 (origin
7872 (method url-fetch)
7873 (uri (rubygems-uri "hoe-git" version))
7874 (sha256
7875 (base32
7876 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7877 (build-system ruby-build-system)
7878 (propagated-inputs
7879 `(("ruby-hoe" ,ruby-hoe)
7880 ("git" ,git)))
7881 (synopsis "Hoe plugins for tighter Git integration")
7882 (description
7883 "This package provides a set of Hoe plugins for tighter Git integration.
7884It provides tasks to automate release tagging and pushing and changelog
7885generation.")
7bf837fd 7886 (home-page "https://github.com/jbarnette/hoe-git")
b0813490
BW
7887 (license license:expat)))
7888
cbdd428c
BW
7889(define-public ruby-sequel
7890 (package
7891 (name "ruby-sequel")
65a7f09c 7892 (version "4.49.0")
cbdd428c
BW
7893 (source
7894 (origin
7895 (method url-fetch)
7896 (uri (rubygems-uri "sequel" version))
7897 (sha256
7898 (base32
65a7f09c 7899 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
cbdd428c
BW
7900 (build-system ruby-build-system)
7901 (arguments
7902 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7903 (synopsis "Database toolkit for Ruby")
7904 (description "Sequel provides thread safety, connection pooling and a
7905concise DSL for constructing SQL queries and table schemas. It includes a
7906comprehensive ORM layer for mapping records to Ruby objects and handling
7907associated records.")
e2b70d90 7908 (home-page "https://sequel.jeremyevans.net")
cbdd428c 7909 (license license:expat)))
3cc78097
BW
7910
7911(define-public ruby-timecop
7912 (package
7913 (name "ruby-timecop")
3d4a5eb5 7914 (version "0.9.1")
3cc78097
BW
7915 (source
7916 (origin
7917 (method url-fetch)
7918 (uri (rubygems-uri "timecop" version))
7919 (sha256
7920 (base32
3d4a5eb5 7921 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
3cc78097
BW
7922 (build-system ruby-build-system)
7923 (arguments
7924 `(#:phases
7925 (modify-phases %standard-phases
7926 (add-before 'check 'set-check-rubylib
7927 (lambda _
7928 ;; Set RUBYLIB so timecop tests finds its own lib.
7929 (setenv "RUBYLIB" "lib")
7930 #t)))))
7931 (native-inputs
7932 `(("bundler" ,bundler)
7933 ("ruby-minitest-rg" ,ruby-minitest-rg)
7934 ("ruby-mocha" ,ruby-mocha)
7935 ("ruby-activesupport" ,ruby-activesupport)))
66e07664 7936 (synopsis "Test mocks for time-dependent functions")
3cc78097
BW
7937 (description
7938 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7939making it easier to test time-dependent code. It provides a unified method to
7940mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7941call.")
7942 (home-page "https://github.com/travisjeffery/timecop")
7943 (license license:expat)))
7944
dae620b8
BW
7945(define-public ruby-concurrent
7946 (package
7947 (name "ruby-concurrent")
1007640a 7948 (version "1.1.5")
dae620b8
BW
7949 (source
7950 (origin
8fcba3be 7951 (method git-fetch)
dae620b8
BW
7952 ;; Download from GitHub because the rubygems version does not contain
7953 ;; Rakefile.
8fcba3be
MB
7954 (uri (git-reference
7955 (url "https://github.com/ruby-concurrency/concurrent-ruby")
7956 (commit (string-append "v" version))))
7957 (file-name (git-file-name name version))
dae620b8
BW
7958 (sha256
7959 (base32
1007640a 7960 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
dae620b8
BW
7961 (build-system ruby-build-system)
7962 (arguments
1007640a 7963 `(#:test-target "ci"
dae620b8
BW
7964 #:phases
7965 (modify-phases %standard-phases
520e89eb 7966 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
dae620b8
BW
7967 (lambda _
7968 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7969 ;; correct one.
7970 (delete-file "concurrent-ruby-edge.gemspec")
7971 (delete-file "concurrent-ruby-ext.gemspec")
7972 #t))
1007640a 7973 (replace 'replace-git-ls-files
520e89eb 7974 (lambda _
1007640a
MB
7975 ;; XXX: The default substitution made by this phase is not fully
7976 ;; compatible with "git ls-files". The latter produces file names
7977 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
7978 ;; which gives "./lib/foo". That difference in turn breaks the
7979 ;; comparison against a glob pattern in this script.
7980 (substitute* "concurrent-ruby.gemspec"
7981 (("git ls-files") "find * -type f | sort"))
7982 #t))
7983 (add-before 'build 'remove-jar-from-gemspec
520e89eb 7984 (lambda _
1007640a
MB
7985 ;; The gemspec wants to include a JAR file that we do not build
7986 ;; nor need.
7987 (substitute* "concurrent-ruby.gemspec"
7988 (("'lib/concurrent/concurrent_ruby.jar'")
7989 ""))
7990 #t))
7991 (add-before 'build 'remove-rake_compiler_dock-dependency
7992 (lambda _
7993 ;; This library is only used when building for non-MRI targets.
7994 (substitute* "Rakefile"
7995 (("require 'rake_compiler_dock'")
7996 ""))
520e89eb 7997 #t))
9019b37f
BW
7998 (add-before 'check 'remove-timecop-dependency
7999 ;; Remove timecop-dependent tests as having timecop as a depedency
8000 ;; causes circular depedencies.
8001 (lambda _
8002 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
8003 (delete-file "spec/concurrent/scheduled_task_spec.rb")
8004 #t)))))
dae620b8
BW
8005 (native-inputs
8006 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9019b37f 8007 ("ruby-rspec" ,ruby-rspec)))
dae620b8
BW
8008 (synopsis "Concurrency tools for Ruby")
8009 (description
8010 "This library provides modern concurrency tools including agents,
8011futures, promises, thread pools, actors, supervisors, and more. It is
8012inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
8013patterns.")
8014 (home-page "http://www.concurrent-ruby.com")
8015 (license license:expat)))
2de61e34
BW
8016
8017(define-public ruby-pkg-config
8018 (package
8019 (name "ruby-pkg-config")
884a80dd 8020 (version "1.2.5")
2de61e34
BW
8021 (source
8022 (origin
8023 (method url-fetch)
8024 (uri (rubygems-uri "pkg-config" version))
8025 (sha256
8026 (base32
884a80dd 8027 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
2de61e34
BW
8028 (build-system ruby-build-system)
8029 (arguments
8030 ;; Tests require extra files not included in the gem.
8031 `(#:tests? #f))
8032 (synopsis "Detect libraries for compiling Ruby native extensions")
8033 (description
8034 "@code{pkg-config} can be used in your extconf.rb to properly detect need
8035libraries for compiling Ruby native extensions.")
8036 (home-page "https://github.com/ruby-gnome2/pkg-config")
8037 (license license:lgpl2.0+)))
6689c636
MFM
8038
8039(define-public ruby-net-http-digest-auth
8040 (package
8041 (name "ruby-net-http-digest-auth")
ba074a85 8042 (version "1.4.1")
6689c636
MFM
8043 (source
8044 (origin
8045 (method url-fetch)
8046 (uri (rubygems-uri "net-http-digest_auth" version))
8047 (sha256
8048 (base32
ba074a85 8049 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
6689c636
MFM
8050 (build-system ruby-build-system)
8051 (native-inputs
8052 `(("ruby-hoe" ,ruby-hoe)))
8053 (synopsis "RFC 2617 HTTP digest authentication library")
8054 (description
8055 "This library implements HTTP's digest authentication scheme based on
8056RFC 2617. This enables the use of the digest authentication scheme instead
8057of the more insecure basic authentication scheme.")
7bf837fd 8058 (home-page "https://github.com/drbrain/net-http-digest_auth")
6689c636 8059 (license license:expat)))
06116573 8060
8061(define-public ruby-mail
8062 (package
8063 (name "ruby-mail")
04de0cb5 8064 (version "2.6.6")
06116573 8065 (source
8066 (origin
8067 (method url-fetch)
8068 (uri (rubygems-uri "mail" version))
8069 (sha256
8070 (base32
04de0cb5 8071 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
06116573 8072 (build-system ruby-build-system)
8073 (propagated-inputs
8074 `(("ruby-mime-types" ,ruby-mime-types)))
8075 (arguments
8076 ;; Tests require extra gems not included in the Gemfile.
8077 ;; XXX: Try enabling this for the next version with mini_mime.
8078 `(#:tests? #f))
8079 (synopsis "Mail library for Ruby")
8080 (description
8081 "Mail is an internet library for Ruby that is designed to handle email
8082generation, parsing and sending. The purpose of this library is to provide
8083a single point of access to handle all email functions, including sending
8084and receiving emails. All network type actions are done through proxy
8085methods to @code{Net::SMTP}, @code{Net::POP3} etc.
8086
8087Mail has been designed with a very simple object oriented system that
8088really opens up the email messages you are parsing, if you know what you
8089are doing, you can fiddle with every last bit of your email directly.")
8090 (home-page "https://github.com/mikel/mail")
8091 (license license:expat)))
9b4c8e1b 8092
4d372cb9
CB
8093(define-public ruby-mathn
8094 (package
8095 (name "ruby-mathn")
8096 (version "0.1.0")
8097 (source
8098 (origin
8099 (method url-fetch)
8100 (uri (rubygems-uri "mathn" version))
8101 (sha256
8102 (base32
8103 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
8104 (build-system ruby-build-system)
8105 (native-inputs
8106 `(("bundler" ,bundler)
8107 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8108 (synopsis "Extends math operations for increased precision")
8109 (description
8110 "This gem makes mathematical operations more precise in Ruby and
8111integrates other mathematical standard libraries. Prior to Ruby 2.5,
8112@code{mathn} was part of the Ruby standard library.")
8113 (home-page "https://github.com/ruby/mathn")
8114 (license license:bsd-2)))
8115
9b4c8e1b
BW
8116(define-public ruby-code-statistics
8117 (package
8118 (name "ruby-code-statistics")
8119 (version "0.2.13")
8120 (source
8121 (origin
8122 (method url-fetch)
8123 (uri (rubygems-uri "code_statistics" version))
8124 (sha256
8125 (base32
8126 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
8127 (build-system ruby-build-system)
8128 (arguments
8129 `(#:tests? #f)) ; Not all test code is included in gem.
8130 (synopsis "Port of the rails 'rake stats' method")
8131 (description
8132 "This gem is a port of the rails 'rake stats' method so it can be made
8133more robust and work for non rails projects.")
8134 (home-page "http://github.com/danmayer/code_statistics")
8135 (license license:expat)))
f90c25c1
CL
8136
8137(define-public ruby-rubypants
8138 (package
8139 (name "ruby-rubypants")
8140 (version "0.6.0")
8141 (source (origin
8142 (method url-fetch)
8143 (uri (rubygems-uri "rubypants" version))
8144 (sha256
8145 (base32
8146 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
8147 (build-system ruby-build-system)
8148 (arguments
8149 '(#:tests? #f)) ; need Codecov
8150 (synopsis "Port of the smart-quotes library SmartyPants")
8151 (description
8152 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
8153original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
8154and BBEdit that easily translates plain ASCII punctuation characters into
8155smart typographic punctuation HTML entities.")
8156 (home-page "https://github.com/jmcnevin/rubypants")
8157 (license license:bsd-2)))
beb34835
CL
8158
8159(define-public ruby-org-ruby
8160 (package
8161 (name "ruby-org-ruby")
8162 (version "0.9.12")
8163 (source (origin
8164 (method url-fetch)
8165 (uri (rubygems-uri "org-ruby" version))
8166 (sha256
8167 (base32
8168 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
8169 (build-system ruby-build-system)
8170 (arguments
8171 '(#:tests? #f)) ; no rakefile
8172 (propagated-inputs
8173 `(("ruby-rubypants" ,ruby-rubypants)))
8174 (synopsis "Org-mode parser written in Ruby")
8175 (description
8176 "Org-ruby is an org-mode parser written in Ruby. The most significant
8177thing this library does today is convert org-mode files to HTML or Textile or
8178Markdown.")
8179 (home-page "https://github.com/wallyqs/org-ruby")
8180 (license license:expat)))
670ee20a
BW
8181
8182(define-public ruby-rake
8183 (package
8184 (name "ruby-rake")
d6fb32b8 8185 (version "12.3.1")
670ee20a
BW
8186 (source
8187 (origin
8188 (method url-fetch)
8189 (uri (rubygems-uri "rake" version))
8190 (sha256
8191 (base32
d6fb32b8 8192 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
670ee20a
BW
8193 (build-system ruby-build-system)
8194 (native-inputs
8195 `(("bundler" ,bundler)))
8196 (synopsis "Rake is a Make-like program implemented in Ruby")
8197 (description
8198 "Rake is a Make-like program where tasks and dependencies are specified
8199in standard Ruby syntax.")
8200 (home-page "https://github.com/ruby/rake")
8201 (license license:expat)))
45498f51 8202
51420124 8203(define-public ruby-childprocess
45498f51
DM
8204 (package
8205 (name "ruby-childprocess")
459e4a1a 8206 (version "3.0.0")
45498f51
DM
8207 (source
8208 (origin
8209 (method url-fetch)
8210 (uri (rubygems-uri "childprocess" version))
8211 (sha256
8212 (base32
459e4a1a 8213 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
45498f51
DM
8214 (build-system ruby-build-system)
8215 (arguments
8216 `(#:tests? #f))
8217 (native-inputs
8218 `(("bundler" ,bundler)
8219 ("ruby-rspec" ,ruby-rspec)))
8220 (propagated-inputs
8221 `(("ruby-ffi" ,ruby-ffi)))
8222 (synopsis "Control external programs running in the background, in Ruby")
8223 (description "@code{childprocess} provides a gem to control external
8224programs running in the background, in Ruby.")
459e4a1a 8225 (home-page "https://github.com/enkessler/childprocess")
45498f51 8226 (license license:expat)))
1f10e28d 8227
0d16905b
JL
8228(define-public ruby-public-suffix
8229 (package
8230 (name "ruby-public-suffix")
9de12df7 8231 (version "4.0.1")
0d16905b
JL
8232 (source (origin
8233 (method url-fetch)
8234 (uri (rubygems-uri "public_suffix" version))
8235 (sha256
8236 (base32
9de12df7 8237 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
0d16905b
JL
8238 (build-system ruby-build-system)
8239 (arguments
1f4fc125
CB
8240 '(#:phases
8241 (modify-phases %standard-phases
8242 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
8243 ;; including it as an input can lead to circular dependencies.
8244 (add-after 'unpack 'remove-rubocop-from-Rakefile
8245 (lambda _
8246 (substitute* "Rakefile"
8247 (("require \"rubocop/rake\\_task\"") "")
8248 (("RuboCop::RakeTask\\.new") ""))
8249 #t)))))
8250 (native-inputs
8251 `(("bundler" ,bundler)
8252 ("ruby-yard" ,ruby-yard)
8253 ("ruby-mocha" ,ruby-mocha)
8254 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
0d16905b
JL
8255 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
8256 (synopsis "Domain name parser")
8257 (description "The gem @code{public_suffix} is a domain name parser,
8258written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
8259is one under which Internet users can (or historically could) directly
8260register names. Some examples of public suffixes are @code{.com},
8261@code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
8262all known public suffixes.")
8263 (license license:expat)))
6f2c4efb
JL
8264
8265(define-public ruby-addressable
8266 (package
8267 (name "ruby-addressable")
91f7ee87 8268 (version "2.7.0")
6f2c4efb
JL
8269 (source (origin
8270 (method url-fetch)
8271 (uri (rubygems-uri "addressable" version))
8272 (sha256
8273 (base32
91f7ee87 8274 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
6f2c4efb 8275 (build-system ruby-build-system)
0a794b30
CB
8276 (arguments
8277 '(#:test-target "spec"
8278 #:phases
8279 (modify-phases %standard-phases
8280 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
8281 (lambda _
8282 (substitute* "Gemfile"
8283 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
8284 ((".*launchy.*") "")
8285 ((".*rake.*") "gem 'rake'\n")
8286 ((".*redcarpet.*") ""))
8287 #t))
8288 (add-before 'check 'delete-network-dependent-test
8289 (lambda _
8290 (delete-file "spec/addressable/net_http_compat_spec.rb")
8291 #t)))))
8292 (native-inputs
8293 `(("ruby-rspec" ,ruby-rspec)
8294 ("bundler" ,bundler)
8295 ("ruby-idn-ruby" ,ruby-idn-ruby)
8296 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
d7bd7016 8297 ("ruby-rspec-its", ruby-rspec-its-minimal)
0a794b30
CB
8298 ("ruby-yard" ,ruby-yard)
8299 ("ruby-simplecov" ,ruby-simplecov)))
6f2c4efb
JL
8300 (propagated-inputs
8301 `(("ruby-public-suffix" ,ruby-public-suffix)))
6f2c4efb
JL
8302 (home-page "https://github.com/sporkmonger/addressable")
8303 (synopsis "Alternative URI implementation")
8304 (description "Addressable is a replacement for the URI implementation that
8305is part of Ruby's standard library. It more closely conforms to RFC 3986,
8306RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
8307 (license license:asl2.0)))
9c7f15c0 8308
305e9b33
MB
8309(define-public ruby-colorize
8310 (package
8311 (name "ruby-colorize")
8312 (version "0.8.1")
8313 (source (origin
8314 (method url-fetch)
8315 (uri (rubygems-uri "colorize" version))
8316 (sha256
8317 (base32
8318 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
8319 (build-system ruby-build-system)
8320 (arguments
8321 '(#:phases (modify-phases %standard-phases
8322 (add-before 'check 'remove-codeclimate-dependency
8323 (lambda _
8324 (substitute* "test/test_colorize.rb"
8325 ;; Do not hook the tests into the online CodeClimate
8326 ;; service which is unnecessary for these tests.
8327 (("require 'codeclimate-test-reporter'")
8328 "")
8329 (("CodeClimate.*") ""))
8330 #t)))))
8331 (synopsis "Add color effects to the @code{String} class")
8332 (description
8333 "This package extends the @code{String} class and adds a
8334@code{ColorizedString} with methods to set text color, background color,
8335and text effects.")
8336 (home-page "http://github.com/fazibear/colorize")
8337 (license license:gpl2+)))
8338
9c7f15c0
JL
8339(define-public ruby-colorator
8340 (package
8341 (name "ruby-colorator")
8342 (version "1.1.0")
8343 (source (origin
8344 (method url-fetch)
8345 (uri (rubygems-uri "colorator" version))
8346 (sha256
8347 (base32
8348 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
8349 (build-system ruby-build-system)
8350 (arguments
8351 ;; No test target
8352 `(#:tests? #f))
8353 (home-page "http://octopress.org/colorator/")
8354 (synopsis "Terminal color library")
8355 (description "Colorator is a Ruby gem that helps you colorize your text
8356for the terminal.")
8357 (license license:expat)))
78b9c291
JL
8358
8359(define-public ruby-command-line-reporter
8360 (package
8361 (name "ruby-command-line-reporter")
b448e408 8362 (version "4.0.1")
78b9c291
JL
8363 (source (origin
8364 (method url-fetch)
8365 (uri (rubygems-uri "command_line_reporter" version))
8366 (sha256
8367 (base32
b448e408 8368 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
78b9c291
JL
8369 (build-system ruby-build-system)
8370 (arguments
8371 ;; No Rakefile
8372 `(#:tests? #f
8373 #:phases
8374 (modify-phases %standard-phases
8375 (add-before 'build 'fix-dependencies
8376 (lambda _
8377 (substitute* ".gemspec"
8378 ;; colored is unmaintained
8379 (("colored") "colorator")
8380 ;; colorator version
8381 (("= 1.2") "= 1.1"))
8382 #t)))))
8383 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
8384 (home-page "https://github.com/wbailey/command_line_reporter")
8385 (synopsis "Report production while executing Ruby scripts")
8386 (description "This gem provides a DSL that makes it easy to write reports
8387of various types in ruby. It eliminates the need to litter your source with
8388puts statements, instead providing a more readable, expressive interface to
8389your application.")
8390 (license license:asl2.0)))
f22c0387
JL
8391
8392(define-public ruby-command-line-reporter-3
8393 (package
8394 (inherit ruby-command-line-reporter)
8395 (version "3.3.6")
8396 (source (origin
8397 (method url-fetch)
8398 (uri (rubygems-uri "command_line_reporter" version))
8399 (sha256
8400 (base32
8401 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
6bba8ecf
JL
8402
8403(define-public ruby-rdoc
8404 (package
8405 (name "ruby-rdoc")
8406 (version "6.0.4")
8407 (source
8408 (origin
8409 (method url-fetch)
8410 (uri (rubygems-uri "rdoc" version))
8411 (sha256
8412 (base32
8413 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
8414 (build-system ruby-build-system)
8415 (native-inputs
8416 `(("bundler" ,bundler)))
8417 (home-page "https://ruby.github.io/rdoc/")
8418 (synopsis "HTML and command-line documentation utility")
8419 (description "RDoc produces HTML and command-line documentation for Ruby
8420projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
8421documentation from the command-line.")
8422 (license license:gpl2+)))
18077ffc
JL
8423
8424(define-public ruby-sass-listen
8425 (package
8426 (name "ruby-sass-listen")
8427 (version "4.0.0")
8428 (source (origin
8429 (method url-fetch)
8430 (uri (rubygems-uri "sass-listen" version))
8431 (sha256
8432 (base32
8433 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
8434 (build-system ruby-build-system)
8435 (arguments
8436 ;; No test target
8437 `(#:tests? #f))
8438 (propagated-inputs
8439 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
8440 ("ruby-rb-inotify" ,ruby-rb-inotify)))
8441 (home-page "https://github.com/sass/listen")
8442 (synopsis "File modification notification library")
8443 (description "The Listen gem listens to file modifications and notifies you
8444about the changes.")
8445 (license license:expat)))
0c8eedc1
JL
8446
8447(define-public ruby-terminfo
8448 (package
8449 (name "ruby-terminfo")
8450 (version "0.1.1")
8451 (source
8452 (origin
8453 (method url-fetch)
8454 (uri (rubygems-uri "ruby-terminfo" version))
8455 (sha256
8456 (base32
8457 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
8458 (build-system ruby-build-system)
8459 (arguments
8460 `(#:test-target "test"
8461 ;; Rakefile requires old packages and would need modification to
8462 ;; work with current software.
8463 #:tests? #f))
8464 (inputs
8465 `(("ncurses" ,ncurses)))
8466 (native-inputs
8467 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
8468 ("ruby-rdoc" ,ruby-rdoc)))
8469 (home-page "http://www.a-k-r.org/ruby-terminfo/")
8470 (synopsis "Terminfo binding for Ruby")
8471 (description "Ruby-terminfo provides terminfo binding for Ruby.")
8472 (license license:bsd-3)))
ddc3a667
JL
8473
8474(define-public ruby-diffy
8475 (package
8476 (name "ruby-diffy")
8477 (version "3.2.1")
8478 (source
8479 (origin
8480 (method url-fetch)
8481 (uri (rubygems-uri "diffy" version))
8482 (sha256
8483 (base32
8484 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
8485 (build-system ruby-build-system)
8486 (arguments
8487 ;; No tests
8488 `(#:tests? #f))
8489 (native-inputs
8490 `(("ruby-rspec" ,ruby-rspec)))
8491 (home-page "https://github.com/samg/diffy")
8492 (synopsis "Convenient diffing in ruby")
8493 (description "Diffy provides a convenient way to generate a diff from two
8494strings or files.")
8495 (license license:expat)))
6456beef
JL
8496
8497(define-public ruby-sass-spec
8498 (package
8499 (name "ruby-sass-spec")
8500 (version "3.5.4")
11df8321
TGR
8501 (source
8502 (origin
8503 (method git-fetch)
8504 (uri (git-reference
8505 (url "https://github.com/sass/sass-spec.git")
8506 (commit (string-append "v" version))))
8507 (file-name (git-file-name name version))
8508 (sha256
8509 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
6456beef
JL
8510 (build-system ruby-build-system)
8511 (propagated-inputs
8512 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
8513 ("ruby-diffy" ,ruby-diffy)
8514 ("ruby-terminfo" ,ruby-terminfo)))
8515 (arguments
2c7cb711
CB
8516 `(;; This package contains tests for a sass implementation, and the to
8517 ;; avoid any circular dependencies, the tests are not run here
8518 #:tests? #f
8519 #:phases
8520 (modify-phases %standard-phases
8521 (add-after 'unpack 'patch-test
8522 (lambda _
8523 (delete-file "spec/values/colors/alpha_hex-3.5/error")
8524 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
8525 (("string") "color")))))))
6456beef
JL
8526 (home-page "https://github.com/sass/sass-spec")
8527 (synopsis "Test suite for Sass")
8528 (description "Sass Spec is a test suite for Sass. Test cases are all in
8529the @file{spec} directory.")
8530 (license license:expat)))
f00f4492
JL
8531
8532(define-public ruby-sass
8533 (package
8534 (name "ruby-sass")
11ff2adc 8535 (version "3.6.0")
f00f4492
JL
8536 (source (origin
8537 (method url-fetch)
8538 (uri (rubygems-uri "sass" version))
8539 (sha256
8540 (base32
11ff2adc 8541 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
f00f4492
JL
8542 (build-system ruby-build-system)
8543 (propagated-inputs
8544 `(("ruby-sass-listen" ,ruby-sass-listen)))
8545 (native-inputs
11ff2adc
CB
8546 `(("ruby-sass-spec" ,ruby-sass-spec)
8547 ("ruby-mathn" ,ruby-mathn)))
3497086b 8548 (home-page "https://sass-lang.com/")
f00f4492
JL
8549 (synopsis "CSS extension language")
8550 (description "Sass is a CSS extension language. It extends CSS with
8551features that don't exist yet like variables, nesting, mixins and inheritance.")
8552 (license license:expat)))
5e242cb4 8553
9efc888d
CB
8554(define-public ruby-sassc
8555 (package
8556 (name "ruby-sassc")
3e776b44 8557 (version "2.2.1")
9efc888d
CB
8558 (source
8559 (origin
8560 (method url-fetch)
8561 (uri (rubygems-uri "sassc" version))
8562 (sha256
8563 (base32
3e776b44 8564 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
9efc888d
CB
8565 (build-system ruby-build-system)
8566 (arguments
3e776b44
CB
8567 '(#:modules ((guix build ruby-build-system)
8568 (guix build utils)
8569 (ice-9 textual-ports))
8570 #:phases
9efc888d
CB
8571 (modify-phases %standard-phases
8572 ;; TODO: This would be better as a snippet, but the ruby-build-system
8573 ;; doesn't seem to support that
8574 (add-after 'unpack 'remove-libsass
8575 (lambda _
8576 (delete-file-recursively "ext")
3e776b44
CB
8577 (with-atomic-file-replacement "sassc.gemspec"
8578 (lambda (in out)
8579 (let* ((gemspec (get-string-all in))
8580 (index (string-contains gemspec "libsass_dir")))
8581 (display (string-append
8582 (string-take gemspec index)
8583 "\nend\n")
8584 out))))
9efc888d
CB
8585 #t))
8586 (add-after 'unpack 'dont-check-the-libsass-version
8587 (lambda _
8588 (substitute* "test/native_test.rb"
8589 (("assert_equal.*Native\\.version") ""))
8590 #t))
8591 (add-after 'unpack 'remove-git-from-gemspec
8592 (lambda _
8593 (substitute* "sassc.gemspec"
3e776b44 8594 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
9efc888d
CB
8595 #t))
8596 (add-after 'unpack 'remove-extensions-from-gemspec
8597 (lambda _
8598 (substitute* "sassc.gemspec"
3e776b44 8599 (("\\[\"ext/extconf.rb\"\\]") "[]"))
9efc888d
CB
8600 #t))
8601 (add-after 'unpack 'fix-Rakefile
8602 (lambda _
8603 (substitute* "Rakefile"
3e776b44 8604 (("test: 'compile:libsass'") ":test"))
9efc888d
CB
8605 #t))
8606 (add-after 'unpack 'remove-unnecessary-dependencies
8607 (lambda _
8608 (substitute* "test/test_helper.rb"
8609 (("require \"pry\"") ""))
8610 #t))
8611 (add-before 'build 'patch-native.rb
8612 (lambda* (#:key inputs #:allow-other-keys)
8613 (substitute* "lib/sassc/native.rb"
8614 ((".*gem_root = spec.gem_dir") "")
8615 (("ffi_lib .*\n")
8616 (string-append
8617 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
8618 #t))
8619 ;; The gemspec still references the libsass files, so just keep the
8620 ;; one in the gem.
8621 (delete 'extract-gemspec))))
8622 (propagated-inputs
8623 `(("ruby-ffi" ,ruby-ffi)
8624 ("ruby-rake" ,ruby-rake)))
8625 (inputs
8626 `(("libsass" ,libsass)))
8627 (native-inputs
8628 `(("bundler" ,bundler)
3e776b44 8629 ("ruby-rake-compiler" ,ruby-rake-compiler)
9efc888d
CB
8630 ("ruby-minitest-around" ,ruby-minitest-around)
8631 ("ruby-test-construct" ,ruby-test-construct)))
8632 (synopsis "Use libsss from Ruby")
8633 (description
8634 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
8635bindings to the libsass library. This enables rendering
8636@acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
8637 (home-page "https://github.com/sass/sassc-ruby")
8638 (license license:expat)))
8639
5e242cb4
JL
8640(define-public ruby-jekyll-sass-converter
8641 (package
8642 (name "ruby-jekyll-sass-converter")
8643 (version "1.5.2")
8644 (source (origin
8645 (method url-fetch)
8646 (uri (rubygems-uri "jekyll-sass-converter" version))
8647 (sha256
8648 (base32
8649 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
8650 (build-system ruby-build-system)
8651 (propagated-inputs
8652 `(("ruby-sass" ,ruby-sass)))
8653 (arguments
8654 ;; No rakefile
8655 `(#:tests? #f))
8656 (home-page "https://github.com/jekyll/jekyll-sass-converter")
8657 (synopsis "Sass converter for Jekyll")
8658 (description "This gem provide built-in support for the Sass converter
8659in Jekyll.")
8660 (license license:expat)))
ceac6f6f
JL
8661
8662(define-public ruby-jekyll-watch
8663 (package
8664 (name "ruby-jekyll-watch")
6cbba8a3 8665 (version "2.1.2")
ceac6f6f
JL
8666 (source (origin
8667 (method url-fetch)
8668 (uri (rubygems-uri "jekyll-watch" version))
8669 (sha256
8670 (base32
6cbba8a3 8671 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
ceac6f6f
JL
8672 (build-system ruby-build-system)
8673 (propagated-inputs
6cbba8a3 8674 `(("ruby-listen" ,ruby-listen)))
ceac6f6f
JL
8675 (arguments
8676 ;; No rakefile
8677 `(#:tests? #f))
8678 (home-page "https://github.com/jekyll/jekyll-watch")
8679 (synopsis "Jekyll auto-rebuild support")
8680 (description "This gems add the @code{--watch} switch to the jekyll CLI
8681interface. It allows Jekyll to rebuild your site when a file changes.")
8682 (license license:expat)))
3224a5a8
JL
8683
8684(define-public ruby-parallel
8685 (package
8686 (name "ruby-parallel")
c41fba01
CB
8687 (version "1.13.0")
8688 (source
8689 (origin
8690 (method git-fetch)
8691 (uri (git-reference
8692 (url "https://github.com/grosser/parallel.git")
8693 (commit (string-append "v" version))))
8694 (file-name (git-file-name name version))
8695 (sha256
8696 (base32
8697 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
3224a5a8 8698 (build-system ruby-build-system)
c41fba01
CB
8699 (arguments
8700 `(;; TODO 3 test failures
8701 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
8702 ;; open unnecessary pipes
8703 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
8704 ;; SQLite in processes
8705 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
8706 ;; SQLite in threads
8707 #:tests? #f
8708 #:test-target "rspec-rerun:spec"
8709 #:phases
8710 (modify-phases %standard-phases
8711 (add-after 'unpack 'patch-Gemfile
8712 (lambda _
8713 (substitute* "Gemfile"
8714 (("gem 'rspec-legacy_formatters'") "")
8715 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
8716 (add-before 'check 'delete-Gemfile.lock
8717 (lambda _
8718 ;; Bundler isn't being used for fetching dependendencies, so
8719 ;; delete the Gemfile.lock
8720 (delete-file "Gemfile.lock")
8721 #t))
8722 (add-before 'build 'patch-gemspec
8723 (lambda _
8724 (substitute* "parallel.gemspec"
8725 (("git ls-files") "find"))
8726 #t)))))
8727 (native-inputs
8728 `(("ruby-rspec" ,ruby-rspec)
8729 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
8730 ("bundler" ,bundler)
8731 ("ruby-activerecord" ,ruby-activerecord)
8732 ("ruby-progressbar" ,ruby-progressbar)
8733 ("ruby-bump" ,ruby-bump)
8734 ("procps" ,procps)
8735 ("lsof" ,lsof)
8736 ("ruby-mysql2" ,ruby-mysql2)
8737 ("ruby-sqlite3" ,ruby-sqlite3)
8738 ("ruby-i18n" ,ruby-i18n)))
3224a5a8
JL
8739 (home-page "https://github.com/grosser/parallel")
8740 (synopsis "Parallel processing in Ruby")
8741 (description "Parallel allows you to run any code in parallel Processes
8742(to use all CPUs) or Threads(to speedup blocking operations). It is best
8743suited for map-reduce or e.g. parallel downloads/uploads.")
8744 (license license:expat)))
83d9f672
JL
8745
8746(define-public ruby-cane
8747 (package
8748 (name "ruby-cane")
8749 (version "3.0.0")
8750 (source (origin
8751 (method url-fetch)
8752 (uri (rubygems-uri "cane" version))
8753 (sha256
8754 (base32
8755 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
8756 (build-system ruby-build-system)
8757 (arguments `(#:tests? #f)); No rakefile
8758 (home-page "https://github.com/square/cane")
8759 (propagated-inputs
8760 `(("ruby-parallel" ,ruby-parallel)))
8761 (synopsis "Code quality threshold checking")
8762 (description "Cane fails your build if code quality thresholds are not met.")
8763 (license license:asl2.0)))
00d71efc
JL
8764
8765(define-public ruby-morecane
8766 (package
8767 (name "ruby-morecane")
8768 (version "0.2.0")
8769 (source (origin
8770 (method url-fetch)
8771 (uri (rubygems-uri "morecane" version))
8772 (sha256
8773 (base32
8774 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
8775 (build-system ruby-build-system)
8776 (home-page "https://github.com/yob/morecane")
8777 (arguments `(#:tests? #f)); No rakefile
8778 (propagated-inputs
8779 `(("ruby-parallel" ,ruby-parallel)))
8780 (synopsis "Extra checks for cane")
8781 (description "The cane gem provides a great framework for running quality
8782checks over your ruby project as part of continuous integration build. It
8783comes with a few checks out of the box, but also provides an API for loading
8784custom checks. This gem provides a set of additional checks.")
8785 (license license:expat)))
abbe629c
JL
8786
8787(define-public ruby-pdf-reader
8788 (package
8789 (name "ruby-pdf-reader")
8790 (version "2.1.0")
8791 (source (origin
8792 (method url-fetch)
8793 (uri (rubygems-uri "pdf-reader" version))
8794 (sha256
8795 (base32
8796 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
8797 (build-system ruby-build-system)
8798 (arguments `(#:test-target "spec"))
8799 (native-inputs
8800 `(("bundler" ,bundler)
8801 ("ruby-rspec" ,ruby-rspec)
8802 ("ruby-cane" ,ruby-cane)
8803 ("ruby-morecane" ,ruby-morecane)))
8804 (propagated-inputs
8805 `(("ruby-afm" ,ruby-afm)
8806 ("ruby-ascii85" ,ruby-ascii85)
8807 ("ruby-hashery" ,ruby-hashery)
8808 ("ruby-rc4" ,ruby-rc4)
8809 ("ruby-ttfunk" ,ruby-ttfunk)))
8810 (home-page "https://github.com/yob/pdf-reader")
8811 (synopsis "PDF parser in Ruby")
8812 (description "The PDF::Reader library implements a PDF parser conforming as
8813much as possible to the PDF specification from Adobe. It provides programmatic
8814access to the contents of a PDF file with a high degree of flexibility.")
8815 (license license:gpl3+)))
461fb859
JL
8816
8817(define-public ruby-pdf-inspector
8818 (package
8819 (name "ruby-pdf-inspector")
8820 (version "1.3.0")
8821 (source (origin
8822 (method url-fetch)
8823 (uri (rubygems-uri "pdf-inspector" version))
8824 (sha256
8825 (base32
8826 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
8827 (build-system ruby-build-system)
8828 (propagated-inputs
8829 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8830 (arguments `(#:tests? #f)); No rakefile
8831 (home-page "https://github.com/prawnpdf/pdf-inspector")
8832 (synopsis "Analysis classes for inspecting PDF output")
8833 (description "This library provides a number of PDF::Reader based tools for
8834use in testing PDF output. Presently, the primary purpose of this tool is to
8835support the tests found in Prawn, a pure Ruby PDF generation library.")
8836 (license license:gpl3+)))
770e3b53
JL
8837
8838(define-public ruby-pdf-core
8839 (package
8840 (name "ruby-pdf-core")
8841 (version "0.8.1")
8842 (source (origin
8843 (method url-fetch)
8844 (uri (rubygems-uri "pdf-core" version))
8845 (sha256
8846 (base32
8847 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8848 (build-system ruby-build-system)
8849 (arguments
8850 ; No test target
8851 `(#:tests? #f))
8852 (home-page "https://github.com/prawnpdf/pdf-core")
8853 (synopsis "Low level PDF features for Prawn")
8854 (description "This is an experimental gem that extracts low-level PDF
8855functionality from Prawn.")
8856 (license license:gpl3+)))
37fbced7 8857
7ad8dd08
JL
8858(define-public ruby-prawn
8859 (package
8860 (name "ruby-prawn")
8861 (version "2.2.2")
8862 (source (origin
8863 (method url-fetch)
8864 (uri (rubygems-uri "prawn" version))
8865 (sha256
8866 (base32
8867 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8868 (build-system ruby-build-system)
8869 (arguments
8870 ; No tests
8871 `(#:tests? #f
8872 #:phases
8873 (modify-phases %standard-phases
8874 (add-before 'build 'fix-dependencies
8875 (lambda _
8876 (substitute* "prawn.gemspec"
8877 (("~> 0.7.0") "~> 0.7"))
8878 #t)))))
8879 (propagated-inputs
8880 `(("ruby-pdf-core" ,ruby-pdf-core)
8881 ("ruby-ttfunk" ,ruby-ttfunk)))
8882 (native-inputs
8883 `(("bundler" ,bundler)
8884 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8885 ("ruby-rspec" ,ruby-rspec)
8886 ("ruby-simplecov" ,ruby-simplecov)
8887 ("ruby-yard" ,ruby-yard)))
8888 (home-page "http://prawnpdf.org/api-docs/2.0/")
8889 (synopsis "PDF generation for Ruby")
8890 (description "Prawn is a pure Ruby PDF generation library.")
8891 (license license:gpl3+)))
197ca8ec
JL
8892
8893(define-public ruby-prawn-table
8894 (package
8895 (name "ruby-prawn-table")
8896 (version "0.2.2")
8897 (source (origin
8898 (method url-fetch)
8899 (uri (rubygems-uri "prawn-table" version))
8900 (sha256
8901 (base32
8902 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8903 (build-system ruby-build-system)
197ca8ec 8904 (propagated-inputs
0927b039
CB
8905 `(("ruby-prawn" ,ruby-prawn)
8906 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8907 (native-inputs
8908 `(("bundler" ,bundler)
8909 ("ruby-yard" ,ruby-yard)
8910 ("ruby-mocha" ,ruby-mocha)
8911 ("ruby-coderay" ,ruby-coderay)
8912 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8913 ("ruby-simplecov" ,ruby-simplecov)
8914 ("ruby-rspec-2" ,ruby-rspec-2)))
8915 (arguments
8916 '(;; TODO: 1 test fails
8917 ;; Failure/Error: pdf.page_count.should == 1
8918 ;; expected: 1
8919 ;; got: 2 (using ==)
8920 ;; # ./spec/table_spec.rb:1308
8921 ;;
8922 ;; 225 examples, 1 failure
8923 #:tests? #f
8924 #:phases
8925 (modify-phases %standard-phases
8926 (add-before 'check 'patch-gemspec
8927 (lambda _
8928 (substitute* "prawn-table.gemspec"
8929 ;; Loosen the requirement for pdf-inspector
8930 (("~> 1\\.1\\.0") ">= 0")
8931 ;; Loosen the requirement for pdf-reader
8932 (("~> 1\\.2") ">= 0"))))
8933 (replace 'check
8934 (lambda* (#:key tests? #:allow-other-keys)
8935 (when tests?
8936 (invoke "rspec"))
8937 #t)))))
197ca8ec
JL
8938 (home-page "https://github.com/prawnpdf/prawn-table")
8939 (synopsis "Tables support for Prawn")
8940 (description "This gem provides tables support for Prawn.")
8941 (license license:gpl3+)))
03127069
JL
8942
8943(define-public ruby-kramdown
8944 (package
8945 (name "ruby-kramdown")
8946 (version "1.17.0")
8947 (source (origin
8948 (method url-fetch)
8949 (uri (rubygems-uri "kramdown" version))
8950 (sha256
8951 (base32
8952 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8953 (build-system ruby-build-system)
8954 (arguments `(#:tests? #f)); FIXME: some test failures
8955 (native-inputs
8956 `(("ruby-prawn" ,ruby-prawn)
8957 ("ruby-prawn-table" ,ruby-prawn-table)))
8958 (home-page "https://kramdown.gettalong.org/")
8959 (synopsis "Markdown parsing and converting library")
8960 (description "Kramdown is a library for parsing and converting a superset
8961of Markdown. It is completely written in Ruby, supports standard Markdown
8962(with some minor modifications) and various extensions that have been made
8963popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8964 (license license:expat)))
fa0063bc
JL
8965
8966(define-public ruby-http-parser.rb
8967 (package
8968 (name "ruby-http-parser.rb")
8969 (version "0.6.0")
8970 (source
8971 (origin
8972 (method url-fetch)
8973 (uri (rubygems-uri "http_parser.rb" version))
8974 (sha256
8975 (base32
8976 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8977 (build-system ruby-build-system)
8978 (arguments
8979 ;; No tests
8980 `(#:tests? #f))
8981 (native-inputs
8982 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8983 ("ruby-rspec" ,ruby-rspec)))
8984 (home-page "https://github.com/tmm1/http_parser.rb")
8985 (synopsis "HTTP parser un Ruby")
8986 (description "This gem is a simple callback-based HTTP request/response
8987parser for writing http servers, clients and proxies.")
8988 (license license:expat)))
5e2f74bd
JL
8989
8990(define-public ruby-em-websocket
8991 (package
8992 (name "ruby-em-websocket")
8993 (version "0.5.1")
8994 (source
8995 (origin
8996 (method url-fetch)
8997 (uri (rubygems-uri "em-websocket" version))
8998 (sha256
8999 (base32
9000 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
9001 (build-system ruby-build-system)
9002 (arguments
9003 ;; No tests
9004 `(#:tests? #f))
9005 (propagated-inputs
9006 `(("ruby-eventmachine" ,ruby-eventmachine)
9007 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
9008 (native-inputs
9009 `(("bundler" ,bundler)
9010 ("ruby-rspec" ,ruby-rspec)))
9011 (home-page "https://github.com/igrigorik/em-websocket")
9012 (synopsis "EventMachine based WebSocket server")
9013 (description "Em-websocket is an EventMachine based WebSocket server
9014implementation.")
9015 (license license:expat)))
4ce0414b
JL
9016
9017(define-public ruby-rouge
9018 (package
9019 (name "ruby-rouge")
55cc5ef8 9020 (version "3.13.0")
4ce0414b
JL
9021 (source (origin
9022 (method url-fetch)
9023 (uri (rubygems-uri "rouge" version))
9024 (sha256
9025 (base32
55cc5ef8 9026 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
4ce0414b
JL
9027 (build-system ruby-build-system)
9028 (arguments `(#:tests? #f)); No rakefile
9029 (home-page "http://rouge.jneen.net/")
9030 (synopsis "Code highlighter")
9031 (description "Rouge is a code highlighter written in Ruby. It supports more
9032than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
9033is compatible with stylesheets designed for pygments.")
9034 (license (list
9035 ;; rouge is licensed under expat
9036 license:expat
9037 ;; pygments is licensed under bsd-2
9038 license:bsd-2))))
2c5028bd
JL
9039
9040(define-public ruby-rouge-2
9041 (package
9042 (inherit ruby-rouge)
9043 (version "2.2.1")
9044 (source (origin
9045 (method url-fetch)
9046 (uri (rubygems-uri "rouge" version))
9047 (sha256
9048 (base32
9049 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
2e072e37
JL
9050
9051(define-public ruby-hashie
9052 (package
9053 (name "ruby-hashie")
9054 (version "3.6.0")
9055 (source (origin
9056 (method url-fetch)
9057 (uri (rubygems-uri "hashie" version))
9058 (sha256
9059 (base32
9060 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
9061 (build-system ruby-build-system)
9062 (native-inputs
9063 `(("bundler" ,bundler)))
9064 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
9065 (home-page "https://github.com/intridea/hashie")
9066 (synopsis "Extensions to Ruby Hashes")
9067 (description "Hashie is a collection of classes and mixins that make Ruby
9068hashes more powerful.")
9069 (license license:expat)))
73bfc125
JL
9070
9071(define-public ruby-heredoc-unindent
9072 (package
9073 (name "ruby-heredoc-unindent")
9074 (version "1.2.0")
9075 (source (origin
9076 (method url-fetch)
9077 (uri (rubygems-uri "heredoc_unindent" version))
9078 (sha256
9079 (base32
9080 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
9081 (build-system ruby-build-system)
9082 (native-inputs
9083 `(("ruby-hoe" ,ruby-hoe)))
9084 (home-page "https://github.com/adrianomitre/heredoc_unindent")
9085 (synopsis "Heredoc indentation cleaner")
9086 (description "This gem removes common margin from indented strings, such
9087as the ones produced by indented heredocs. In other words, it strips out
4f66ae28 9088leading whitespace chars at the beginning of each line, but only as much as
73bfc125
JL
9089the line with the smallest margin.
9090
9091It is acknowledged that many strings defined by heredocs are just code and
9092fact is that most parsers are insensitive to indentation. If, however, the
9093strings are to be used otherwise, be it for printing or testing, the extra
9094indentation will probably be an issue and hence this gem.")
9095 (license license:expat)))
f8ae2ee5
JL
9096
9097(define-public ruby-safe-yaml
9098 (package
9099 (name "ruby-safe-yaml")
7fa83fa8 9100 (version "1.0.5")
28cf8dab
CB
9101 (source
9102 (origin
28cf8dab
CB
9103 (method git-fetch)
9104 (uri (git-reference
9105 (url "https://github.com/dtao/safe_yaml.git")
9106 (commit version)))
9107 (file-name (git-file-name name version))
9108 (sha256
9109 (base32
7fa83fa8 9110 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
f8ae2ee5
JL
9111 (build-system ruby-build-system)
9112 (native-inputs
9113 `(("ruby-rspec" ,ruby-rspec)
9114 ("ruby-hashie" ,ruby-hashie)
9115 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
28cf8dab
CB
9116 (arguments
9117 '(#:test-target "spec"
9118 #:phases
9119 (modify-phases %standard-phases
9120 (add-before 'check 'set-TZ
9121 (lambda _
9122 ;; This test is dependent on the timezone
9123 ;; spec/transform/to_date_spec.rb:35
9124 ;; # SafeYAML::Transform::ToDate converts times to the local
9125 ;; timezone
9126 (setenv "TZ" "UTC-11")
9127 #t)))))
f8ae2ee5
JL
9128 (home-page "https://github.com/dtao/safe_yaml")
9129 (synopsis "YAML parser")
9130 (description "The SafeYAML gem provides an alternative implementation of
9131YAML.load suitable for accepting user input in Ruby applications.")
9132 (license license:expat)))
f1ec4d76
JL
9133
9134(define-public ruby-mercenary
9135 (package
9136 (name "ruby-mercenary")
9137 (version "0.3.6")
9138 (source (origin
9139 (method url-fetch)
9140 (uri (rubygems-uri "mercenary" version))
9141 (sha256
9142 (base32
9143 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
9144 (build-system ruby-build-system)
9145 (arguments `(#:test-target "spec"))
9146 (native-inputs
9147 `(("bundler" ,bundler)))
9148 (home-page "https://github.com/jekyll/mercenary")
9149 (synopsis "Command-line apps library in Ruby")
9150 (description "Mercenary is a lightweight and flexible library for writing
9151command-line apps in Ruby.")
9152 (license license:expat)))
a13d451e
JL
9153
9154(define-public ruby-liquid
9155 (package
9156 (name "ruby-liquid")
9157 (version "4.0.0")
9158 (source (origin
9159 (method url-fetch)
9160 (uri (rubygems-uri "liquid" version))
9161 (sha256
9162 (base32
9163 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
9164 (build-system ruby-build-system)
9165 (arguments `(#:tests? #f)); No rakefile
9166 (home-page "https://shopify.github.io/liquid/")
9167 (synopsis "Template language")
9168 (description "Liquid is a template language written in Ruby. It is used
9169to load dynamic content on storefronts.")
9170 (license license:expat)))
49395112
JL
9171
9172(define-public ruby-forwardable-extended
9173 (package
9174 (name "ruby-forwardable-extended")
9175 (version "2.6.0")
9176 (source (origin
9177 (method url-fetch)
9178 (uri (rubygems-uri "forwardable-extended" version))
9179 (sha256
9180 (base32
9181 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
9182 (build-system ruby-build-system)
9183 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
9184 (home-page "https://github.com/envygeeks/forwardable-extended")
9185 (synopsis "Delegation to hashes and instance variables in Forwardable")
9186 (description "Forwardable Extended provides more @code{Forwardable}
9187methods for your source as @code{Forwardable::Extended}.")
9188 (license license:expat)))
37296113
JL
9189
9190(define-public ruby-pathutil
9191 (package
9192 (name "ruby-pathutil")
feaaa603 9193 (version "0.16.2")
37296113
JL
9194 (source (origin
9195 (method url-fetch)
9196 (uri (rubygems-uri "pathutil" version))
9197 (sha256
9198 (base32
feaaa603 9199 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
37296113
JL
9200 (build-system ruby-build-system)
9201 (propagated-inputs
9202 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
9203 (native-inputs
9204 `(("bundler" ,bundler)
9205 ("ruby-rspec" ,ruby-rspec)))
9206 ;; Fails with: cannot load such file --
9207 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
9208 (arguments `(#:tests? #f))
9209 (home-page "https://github.com/envygeeks/pathutil")
9210 (synopsis "Extended implementation of Pathname")
9211 (description "Pathutil tries to be a faster pure Ruby implementation of
9212Pathname.")
9213 (license license:expat)))
49e1dde5
JL
9214
9215(define-public jekyll
9216 (package
9217 (name "jekyll")
fcf82fd3 9218 (version "3.8.6")
49e1dde5
JL
9219 (source (origin
9220 (method url-fetch)
9221 (uri (rubygems-uri "jekyll" version))
9222 (sha256
9223 (base32
fcf82fd3 9224 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
49e1dde5
JL
9225 (build-system ruby-build-system)
9226 (arguments
fcf82fd3 9227 ;; No rakefile, but a test subdirectory.
49e1dde5
JL
9228 `(#:tests? #f
9229 #:phases
9230 (modify-phases %standard-phases
9231 (add-before 'build 'fix-i18n
9232 (lambda _
9233 (substitute* ".gemspec"
9234 (("~> 0.7") ">= 0.7"))
9235 #t)))))
9236 (propagated-inputs
9237 `(("ruby-addressable" ,ruby-addressable)
9238 ("ruby-colorator" ,ruby-colorator)
9239 ("ruby-em-websocket" ,ruby-em-websocket)
9240 ("ruby-i18n" ,ruby-i18n)
9241 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
9242 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
9243 ("ruby-kramdown" ,ruby-kramdown)
9244 ("ruby-liquid" ,ruby-liquid)
9245 ("ruby-mercenary" ,ruby-mercenary)
9246 ("ruby-pathutil" ,ruby-pathutil)
9247 ("ruby-rouge" ,ruby-rouge-2)
9248 ("ruby-safe-yaml" ,ruby-safe-yaml)))
9249 (home-page "https://jekyllrb.com/")
9250 (synopsis "Static site generator")
9251 (description "Jekyll is a simple, blog aware, static site generator.")
9252 (license license:expat)))
37a0f470
JL
9253
9254(define-public ruby-jekyll-paginate-v2
9255 (package
9256 (name "ruby-jekyll-paginate-v2")
9257 (version "2.0.0")
9258 (source (origin
9259 (method url-fetch)
9260 (uri (rubygems-uri "jekyll-paginate-v2" version))
9261 (sha256
9262 (base32
9263 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
9264 (build-system ruby-build-system)
9265 (propagated-inputs
9266 `(("jekyll" ,jekyll)))
9267 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
9268 (synopsis "Pagination Generator for Jekyll 3")
9269 (description "The Pagination Generator forms the core of the pagination
9270logic in Jekyll. It calculates and generates the pagination pages.")
9271 (license license:expat)))
909eae21
CB
9272
9273(define-public ruby-faraday
9274 (package
9275 (name "ruby-faraday")
9276 (version "0.15.4")
9277 (source
9278 (origin
9279 (method url-fetch)
9280 (uri (rubygems-uri "faraday" version))
9281 (sha256
9282 (base32
9283 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
9284 (build-system ruby-build-system)
9285 (arguments
9286 '(#:tests? #f))
9287 (propagated-inputs
9288 `(("ruby-multipart-post" ,ruby-multipart-post)))
9289 (synopsis "Ruby HTTP/REST API client library")
9290 (description
9291 "Faraday is a HTTP/REST API client library which provides a common
9292interface over different adapters.")
9293 (home-page "https://github.com/lostisland/faraday")
9294 (license license:expat)))
a058cbfd
CB
9295
9296(define-public ruby-nio4r
9297 (package
9298 (name "ruby-nio4r")
7923b9bf 9299 (version "2.5.2")
a058cbfd
CB
9300 (source
9301 (origin
9302 (method url-fetch)
9303 (uri (rubygems-uri "nio4r" version))
9304 (sha256
9305 (base32
7923b9bf 9306 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
a058cbfd
CB
9307 (build-system ruby-build-system)
9308 (arguments
9309 '(#:phases
9310 (modify-phases %standard-phases
9311 (add-after 'unpack 'remove-unnecessary-dependencies
9312 (lambda _
9313 (substitute* "spec/spec_helper.rb"
9314 ;; Coveralls is for uploading test coverage information to an
9315 ;; online service, and thus unnecessary for building the Guix
9316 ;; package
9317 (("require \"coveralls\"") "")
9318 (("Coveralls\\.wear!") "")
9319 ;; Remove rspec/retry as we are not retrying the tests
9320 (("require \"rspec/retry\"") "")
9321 (("config\\.display_try_failure_messages = true") "")
9322 (("config\\.verbose_retry = true") ""))
9323 #t))
9324 (add-before 'check 'compile
9325 (lambda _
9326 (invoke "rake" "compile")
9327 #t))
9328 (replace 'check
9329 (lambda* (#:key tests? #:allow-other-keys)
9330 (when tests?
9331 (invoke "rspec"))
9332 #t)))))
9333 (native-inputs
9334 `(("bundler" ,bundler)
9335 ("ruby-rake-compiler" ,ruby-rake-compiler)
9336 ("ruby-rspec" ,ruby-rspec)
9337 ("ruby-rubocop" ,ruby-rubocop)))
9338 (synopsis "New I/O for Ruby")
9339 (description
9340 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
9341for scalable network clients and servers.")
9342 (home-page "https://github.com/socketry/nio4r")
9343 (license license:expat)))
f9da1ada
CB
9344
9345(define-public ruby-globalid
9346 (package
9347 (name "ruby-globalid")
9348 (version "0.4.2")
9349 (source
9350 (origin
9351 (method url-fetch)
9352 (uri (rubygems-uri "globalid" version))
9353 (sha256
9354 (base32
9355 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
9356 (build-system ruby-build-system)
9357 (arguments
9358 '(;; No included tests
9359 #:tests? #f))
9360 (propagated-inputs
9361 `(("ruby-activesupport" ,ruby-activesupport)))
9362 (synopsis "Generate URIs idenfitying model instances in Ruby")
9363 (description
9364 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
9365uniquely identify it.")
9366 (home-page "https://rubyonrails.org/")
9367 (license license:expat)))
15606d98
CB
9368
9369(define-public ruby-sprockets
9370 (package
9371 (name "ruby-sprockets")
9372 (version "3.7.2")
9373 (source
9374 (origin
9375 (method url-fetch)
9376 (uri (rubygems-uri "sprockets" version))
9377 (sha256
9378 (base32
9379 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
9380 (build-system ruby-build-system)
9381 (arguments
9382 '(;; No included tests
9383 #:tests? #f))
9384 (propagated-inputs
9385 `(("ruby-concurrent" ,ruby-concurrent)
9386 ("ruby-rack" ,ruby-rack)))
9387 (synopsis "Sprockets is a Rack-based asset packaging system")
9388 (description
9389 "Sprockets is a Rack-based asset packaging system that concatenates and
9390serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
9391 (home-page "https://github.com/rails/sprockets")
9392 (license license:expat)))
acb9e3d8
PN
9393
9394(define-public ruby-mustermann
9395 (package
9396 (name "ruby-mustermann")
9397 (version "1.0.3")
9398 (source
9399 (origin
9400 (method url-fetch)
9401 (uri (rubygems-uri "mustermann" version))
9402 (sha256
9403 (base32
9404 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
9405 (build-system ruby-build-system)
9406 (arguments
9407 ;; No tests.
9408 '(#:tests? #f))
9409 (synopsis "Library implementing patterns that behave like regular expressions")
9410 (description "Given a string pattern, Mustermann will turn it into an
9411object that behaves like a regular expression and has comparable performance
9412characteristics.")
9413 (home-page "https://github.com/sinatra/mustermann")
9414 (license license:expat)))
3bb094e2 9415
7bddb6aa
BL
9416(define-public ruby-htmlentities
9417 (package
9418 (name "ruby-htmlentities")
9419 (version "4.3.4")
9420 (source
9421 (origin
9422 (method url-fetch)
9423 (uri (rubygems-uri "htmlentities" version))
9424 (sha256
9425 (base32
9426 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
9427 (build-system ruby-build-system)
9428 (arguments
9429 `(#:phases
9430 (modify-phases %standard-phases
9431 (replace 'check
9432 (lambda _
9433 (map (lambda (file)
9434 (invoke "ruby" "-Itest" file))
9435 (find-files "./test" ".*_test\\.rb")))))))
9436 (synopsis "Encode and decode (X)HTML entities")
9437 (description
9438 "This package provides a module for encoding and decoding (X)HTML
9439entities.")
9440 (home-page "https://github.com/threedaymonk/htmlentities")
9441 (license license:expat)))
9442
3bb094e2
PN
9443(define-public ruby-sinatra
9444 (package
9445 (name "ruby-sinatra")
9446 (version "2.0.5")
9447 (source
9448 (origin
9449 (method url-fetch)
9450 (uri (rubygems-uri "sinatra" version))
9451 (sha256
9452 (base32
9453 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
9454 (build-system ruby-build-system)
9455 (propagated-inputs
9456 `(("ruby-mustermann" ,ruby-mustermann)
9457 ("ruby-rack" ,ruby-rack)
9458 ("ruby-rack-protection" ,ruby-rack-protection)
9459 ("ruby-tilt" ,ruby-tilt)))
9460 (synopsis "DSL for quick web applications creation in Ruby")
9461 (description
9462 "Sinatra is a DSL for quickly creating web applications in Ruby with
9463minimal effort.")
9464 (home-page "http://sinatrarb.com/")
9465 (license license:expat)))
6e87695b
PN
9466
9467(define-public ruby-thin
9468 (package
9469 (name "ruby-thin")
9470 (version "1.7.2")
9471 (source
9472 (origin
9473 (method url-fetch)
9474 (uri (rubygems-uri "thin" version))
9475 (sha256
9476 (base32
9477 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
9478 (build-system ruby-build-system)
9479 (arguments
9480 ;; No tests.
9481 '(#:tests? #f))
9482 (propagated-inputs
9483 `(("ruby-daemons" ,ruby-daemons)
9484 ("ruby-eventmachine" ,ruby-eventmachine)
9485 ("ruby-rack" ,ruby-rack)))
9486 (synopsis "Thin and fast web server for Ruby")
9487 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
9488@itemize
9489@item the Mongrel parser,
9490@item Event Machine, a network I/O library with high scalability, performance
9491and stability,
9492@item Rack, a minimal interface between webservers and Ruby frameworks.
9493@end itemize\n")
60783303 9494 (home-page "https://github.com/macournoyer/thin")
6e87695b 9495 (license license:ruby)))
be6016db
PN
9496
9497(define-public ruby-skinny
9498 (package
9499 (name "ruby-skinny")
9500 (version "0.2.4")
9501 (source
9502 (origin
9503 (method url-fetch)
9504 (uri (rubygems-uri "skinny" version))
9505 (sha256
9506 (base32
9507 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
9508 (build-system ruby-build-system)
9509 (arguments
9510 '(#:tests? #f ; No included tests
9511 #:phases
9512 (modify-phases %standard-phases
9513 (add-before 'build 'patch-gemspec
9514 (lambda _
9515 (substitute* ".gemspec"
9516 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
9517 "<eventmachine>, [\">= 1.0.0\"")
9518 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
9519 #t)))))
9520 (propagated-inputs
9521 `(("ruby-eventmachine" ,ruby-eventmachine)
9522 ("ruby-thin" ,ruby-thin)))
9523 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
9524 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
9525the Thin library.")
9526 (home-page "https://github.com/sj26/skinny")
9527 (license license:expat)))
df747c8d 9528
9c566d1b
MB
9529(define-public ruby-sys-filesystem
9530 (package
9531 (name "ruby-sys-filesystem")
9532 (version "1.3.4")
9533 (source (origin
9534 (method url-fetch)
9535 (uri (rubygems-uri "sys-filesystem" version))
9536 (sha256
9537 (base32
9538 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
9539 (build-system ruby-build-system)
9540 (arguments
9541 '(#:phases (modify-phases %standard-phases
9542 (add-before 'check 'set-HOME
9543 (lambda _
9544 ;; Some tests attempt to stat $HOME. Let them.
9545 (setenv "HOME" "/tmp")
9546 #t)))))
9547 (propagated-inputs
9548 `(("ruby-ffi" ,ruby-ffi)))
9549 (native-inputs
9550 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
9551 (synopsis "Gather file system information")
9552 (description
9553 "The @code{sys-filesystem} library provides a cross-platform interface
9554for gathering file system information, such as disk space and mount points.")
9555 (home-page "https://github.com/djberg96/sys-filesystem")
9556 (license license:asl2.0)))
9557
df747c8d
PN
9558(define-public mailcatcher
9559 (package
9560 (name "mailcatcher")
9561 (version "0.7.1")
9562 (source
9563 (origin
9564 (method url-fetch)
9565 (uri (rubygems-uri "mailcatcher" version))
9566 (sha256
9567 (base32
9568 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
9569 (build-system ruby-build-system)
9570 (arguments
9571 ;; Tests require web/assets which is not included in the output. We
9572 ;; might be able to fix this by adding the Git repository to the GEM_PATH
9573 ;; of the tests. See ruby-mysql2.
9574 '(#:tests? #f
9575 #:phases
9576 (modify-phases %standard-phases
9577 (add-before 'build 'patch-gemspec
9578 (lambda _
9579 (substitute* ".gemspec"
9580 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
9581 "<eventmachine>, [\">= 1.0.9.1")
9582 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
9583 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
9584 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
9585 #t))
9586 (add-before 'build 'loosen-dependency-contraint
9587 (lambda _
9588 (substitute* "lib/mail_catcher.rb"
9589 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
9590 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
9591 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
9592 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
9593 #t)))))
9594 (inputs
9595 `(("ruby-eventmachine" ,ruby-eventmachine)
9596 ("ruby-mail" ,ruby-mail)
9597 ("ruby-rack" ,ruby-rack)
9598 ("ruby-sinatra" ,ruby-sinatra)
9599 ("ruby-skinny" ,ruby-skinny)
9600 ("ruby-sqlite3" ,ruby-sqlite3)
9601 ("ruby-thin" ,ruby-thin)))
9602 (synopsis "SMTP server which catches messages to display them a browser")
9603 (description
9604 "MailCatcher runs a super simple SMTP server which catches any message
9605sent to it to display in a web interface. Run mailcatcher, set your favourite
9606app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
9607then check out http://127.0.0.1:1080 to see the mail.")
9608 (home-page "https://mailcatcher.me")
9609 (license license:expat)))
fc4f7c45
MK
9610
9611(define-public ruby-backport
9612 (package
9613 (name "ruby-backport")
b62863b8 9614 (version "1.1.2")
fc4f7c45
MK
9615 (source
9616 (origin
b62863b8 9617 ;; The gem does not include test code, so fetch from the Git repository.
fc4f7c45
MK
9618 (method git-fetch)
9619 (uri (git-reference
9620 (url "https://github.com/castwide/backport.git")
9621 (commit (string-append "v" version))))
9622 (file-name (git-file-name name version))
9623 (sha256
b62863b8 9624 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
fc4f7c45
MK
9625 (build-system ruby-build-system)
9626 (arguments
9627 `(#:test-target "spec"))
9628 (native-inputs
9629 `(("bundler" ,bundler)
9630 ("ruby-rspec" ,ruby-rspec)))
9631 (inputs
9632 `(("ruby-simplecov" ,ruby-simplecov)))
9633 (synopsis "Pure Ruby library for event-driven IO")
9634 (description
9635 "This package provides a pure Ruby library for event-driven IO.")
9636 (home-page "https://github.com/castwide/backport")
9637 (license license:expat)))
369faa59
JL
9638
9639(define-public ruby-json-schema
9640 (package
9641 (name "ruby-json-schema")
9642 (version "2.8.1")
9643 (source
9644 (origin
9645 (method url-fetch)
9646 (uri (rubygems-uri "json-schema" version))
9647 (sha256
9648 (base32
9649 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
9650 (build-system ruby-build-system)
9651 (arguments
9652 `(#:tests? #f ; no tests
9653 #:phases
9654 (modify-phases %standard-phases
9655 (replace 'build
9656 (lambda _
9657 (invoke "gem" "build" ".gemspec"))))))
9658 (propagated-inputs
9659 `(("ruby-addressable" ,ruby-addressable)))
9660 (synopsis "Ruby JSON Schema Validator")
9661 (description "This library provides Ruby with an interface for validating
9662JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
9663support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
9664is also included.")
9665 (home-page "https://github.com/ruby-json-schema/json-schema")
9666 (license license:expat)))
44881cad
JL
9667
9668(define-public swagger-diff
9669 (package
9670 (name "swagger-diff")
9671 (version "1.1.2")
9672 (source
9673 (origin
9674 (method url-fetch)
9675 (uri (rubygems-uri "swagger-diff" version))
9676 (sha256
9677 (base32
9678 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
9679 (build-system ruby-build-system)
9680 (arguments
9681 `(#:test-target "spec"
9682 #:phases
9683 (modify-phases %standard-phases
9684 ;; Don't run or require rubocop, the code linting tool, as this is a
9685 ;; bit unnecessary.
9686 (add-after 'unpack 'dont-run-rubocop
9687 (lambda _
9688 (substitute* "Rakefile"
9689 ((".*rubocop.*") "")
9690 ((".*RuboCop.*") ""))
9691 #t)))))
9692 (propagated-inputs
9693 `(("ruby-json-schema" ,ruby-json-schema)))
9694 (native-inputs
9695 `(("bundler" ,bundler)
9696 ("ruby-rspec-core" ,ruby-rspec-core)
9697 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
9698 (synopsis
9699 "Compare Open API Initiative specification files")
9700 (description
9701 "Swagger::Diff is a utility for comparing two different Open API
9702Initiative (OAI) specifications (formerly known as Swagger specifications).
9703It is intended to determine whether a newer API specification is
9704backwards-compatible with an older API specification.")
9705 (home-page "https://github.com/civisanalytics/swagger-diff")
9706 (license license:bsd-3)))
9e065a8a
BL
9707
9708(define-public ruby-reverse-markdown
9709 (package
9710 (name "ruby-reverse-markdown")
9711 (version "1.1.0")
9712 (source
9713 (origin
9714 (method url-fetch)
9715 (uri (rubygems-uri "reverse_markdown" version))
9716 (sha256
9717 (base32
9718 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
9719 (build-system ruby-build-system)
9720 (propagated-inputs
9721 `(("ruby-nokogiri" ,ruby-nokogiri)))
9722 (native-inputs
9723 `(("bundler" ,bundler)
9724 ("ruby-rspec" ,ruby-rspec)
9725 ("ruby-kramdown" ,ruby-kramdown)
9726 ("ruby-simplecov" ,ruby-simplecov)))
9727 (arguments
9728 `(#:phases
9729 (modify-phases %standard-phases
9730 (replace 'check
9731 (lambda* (#:key tests? #:allow-other-keys)
9732 (when tests?
9733 (invoke "rspec"))
9734 #t)))))
9735 (synopsis "Convert HTML into Markdown")
9736 (description
9737 "This Ruby module allows you to map simple HTML back into
9738Markdown---e.g., if you want to import existing HTML data in your
9739application.")
9740 (home-page "https://github.com/xijo/reverse_markdown")
9741 (license license:wtfpl2)))
9742
a9e2de7e
BL
9743(define-public ruby-solargraph
9744 (package
9745 (name "ruby-solargraph")
9746 (version "0.36.0")
9747 (source
9748 (origin
9749 (method url-fetch)
9750 (uri (rubygems-uri "solargraph" version))
9751 (sha256
9752 (base32
9753 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
9754 (build-system ruby-build-system)
9755 (propagated-inputs
9756 `(("ruby-backport" ,ruby-backport)
9757 ("bundler" ,bundler)
9758 ("ruby-htmlentities" ,ruby-htmlentities)
9759 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
9760 ("ruby-maruku" ,ruby-maruku)
9761 ("ruby-nokogiri" ,ruby-nokogiri)
9762 ("ruby-parser" ,ruby-parser)
9763 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
9764 ("ruby-rubocop" ,ruby-rubocop)
9765 ("ruby-thor" ,ruby-thor)
9766 ("ruby-tilt" ,ruby-tilt)
9767 ("ruby-yard" ,ruby-yard)))
9768 (native-inputs
9769 `(("ruby-rspec" ,ruby-rspec)
9770 ("ruby-pry" ,ruby-pry)
9771 ("ruby-simplecov" ,ruby-simplecov)
9772 ("ruby-webmock" ,ruby-webmock-2)))
9773 ;; FIXME: can't figure out how to run the tests properly:
9774
9775 ;; An error occurred while loading spec_helper.
9776 ;; Failure/Error: return gem_original_require(path)
9777 ;; LoadError:
9778 ;; cannot load such file -- spec_helper
9779 (arguments
9780 '(#:tests? #f
9781 #:phases
9782 (modify-phases %standard-phases
9783 (replace 'check
9784 (lambda* (#:key tests? #:allow-other-keys)
9785 (when tests?
9786 (invoke "rspec"))
9787 #t)))))
9788 (synopsis
9789 "IDE tools for code completion, inline documentation, and static analysis")
9790 (description
9791 "Solargraph provides a comprehensive suite of tools for Ruby
9792programming: intellisense, diagnostics, inline documentation, and type
9793checking.")
9794 (home-page "https://solargraph.org/")
9795 (license license:expat)))
0c558aa9
DNB
9796
9797(define-public ruby-wayback-machine-downloader
9798 (package
9799 (name "ruby-wayback-machine-downloader")
9800 (version "2.2.1")
9801 (source
9802 (origin
9803 (method url-fetch)
9804 (uri (rubygems-uri
9805 "wayback_machine_downloader"
9806 version))
9807 (sha256
9808 (base32
9809 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
9810 (build-system ruby-build-system)
9811 (arguments
9812 '(#:tests? #f)) ; no tests
9813 (synopsis "Download archived websites from the Wayback Machine")
9814 (description
9815 "Wayback Machine Downloader is a command line tool for downloading
9816websites from the Internet Archive's Wayback Machine (archive.org).
9817It allows fine grained control over what to download by specifying
9818which snapshots to consider and what files to include.")
9819 (home-page
9820 "https://github.com/hartator/wayback-machine-downloader")
9821 (license license:expat)))
e6483f8c
MB
9822
9823(define-public ruby-wwtd
9824 (package
9825 (name "ruby-wwtd")
9826 (version "1.4.1")
9827 (home-page "http://github.com/grosser/wwtd")
9828 (source (origin
9829 (method git-fetch)
9830 (uri (git-reference
9831 (url home-page)
9832 (commit (string-append "v" version))))
9833 (file-name (git-file-name name version))
9834 (sha256
9835 (base32
9836 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
9837 (modules '((guix build utils)))
9838 (snippet
9839 '(begin
9840 ;; Remove bundled library.
9841 (delete-file "spec/rake-12.3.0.gem")
9842 #t))))
9843 (build-system ruby-build-system)
9844 (arguments
9845 '(;; XXX: Tests need multiple versions of ruby, wants to run
9846 ;; `bundle install`, etc.
9847 #:tests? #f
9848 #:phases (modify-phases %standard-phases
9849 (replace 'replace-git-ls-files
9850 (lambda _
9851 (substitute* "wwtd.gemspec"
9852 (("git ls-files lib/ bin/`")
9853 "find lib/ bin/ -type f |sort`"))
9854 #t))
9855 (add-before 'check 'remove-version-constraints
9856 (lambda _
9857 (delete-file "Gemfile.lock")
9858 #t))
9859 (replace 'check
9860 (lambda* (#:key tests? #:allow-other-keys)
9861 (if tests?
9862 (invoke "rspec" "spec/")
9863 (format #t "test suite not run~%"))
9864 #t)))))
9865 (native-inputs
9866 `(("ruby-bump" ,ruby-bump)
9867 ("ruby-rspec" ,ruby-rspec)))
9868 (synopsis "Run @file{.travis.yml} files locally")
9869 (description
9870 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
9871defined in @file{.travis.yml} on your local machine, using @code{rvm},
9872@code{rbenv}, or @code{chruby} to test different versions of Ruby.")
9873 (license license:expat)))