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