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