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