gnu: Add ruby-jekyll-sass-converter.
[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 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
9 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017 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 ;;;
14 ;;; This file is part of GNU Guix.
15 ;;;
16 ;;; GNU Guix is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
20 ;;;
21 ;;; GNU Guix is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
25 ;;;
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28
29 (define-module (gnu packages ruby)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages base)
33 #:use-module (gnu packages compression)
34 #:use-module (gnu packages databases)
35 #:use-module (gnu packages readline)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages java)
38 #:use-module (gnu packages libffi)
39 #:use-module (gnu packages maths)
40 #:use-module (gnu packages ncurses)
41 #:use-module (gnu packages networking)
42 #:use-module (gnu packages python)
43 #:use-module (gnu packages ragel)
44 #:use-module (gnu packages tls)
45 #:use-module (gnu packages version-control)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix git-download)
49 #:use-module (guix utils)
50 #:use-module (guix build-system gnu)
51 #:use-module (gnu packages xml)
52 #:use-module (gnu packages web)
53 #:use-module (guix build-system ruby))
54
55 (define-public ruby
56 (package
57 (name "ruby")
58 (version "2.4.3")
59 (source
60 (origin
61 (method url-fetch)
62 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
63 (version-major+minor version)
64 "/ruby-" version ".tar.xz"))
65 (sha256
66 (base32
67 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
68 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
69 (modules '((guix build utils)))
70 (snippet `(begin
71 ;; Remove bundled libffi
72 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
73 #t))))
74 (build-system gnu-build-system)
75 (arguments
76 `(#:test-target "test"
77 #:phases
78 (modify-phases %standard-phases
79 (add-before 'configure 'replace-bin-sh-and-remove-libffi
80 (lambda _
81 (substitute* '("Makefile.in"
82 "ext/pty/pty.c"
83 "io.c"
84 "lib/mkmf.rb"
85 "process.c"
86 "test/rubygems/test_gem_ext_configure_builder.rb"
87 "test/rdoc/test_rdoc_parser.rb"
88 "test/ruby/test_rubyoptions.rb"
89 "test/ruby/test_process.rb"
90 "test/ruby/test_system.rb"
91 "tool/rbinstall.rb")
92 (("/bin/sh") (which "sh")))
93 #t)))))
94 (inputs
95 `(("readline" ,readline)
96 ("openssl" ,openssl)
97 ("libffi" ,libffi)
98 ("gdbm" ,gdbm)
99 ("zlib" ,zlib)))
100 (native-search-paths
101 (list (search-path-specification
102 (variable "GEM_PATH")
103 (files (list (string-append "lib/ruby/vendor_ruby"))))))
104 (synopsis "Programming language interpreter")
105 (description "Ruby is a dynamic object-oriented programming language with
106 a focus on simplicity and productivity.")
107 (home-page "https://www.ruby-lang.org")
108 (license license:ruby)))
109
110 (define-public ruby-2.3
111 (package
112 (inherit ruby)
113 (version "2.3.7")
114 (source
115 (origin
116 (method url-fetch)
117 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
118 (version-major+minor version)
119 "/ruby-" version ".tar.xz"))
120 (sha256
121 (base32
122 "1nwfaifq5624p1ml56qq5dy5w38z37x22r0qgrbgbzrzklmqy7y6"))
123 (modules '((guix build utils)))
124 (snippet `(begin
125 ;; Remove bundled libffi
126 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
127 #t))))))
128
129 (define-public ruby-2.2
130 (package (inherit ruby)
131 (version "2.2.10")
132 (source
133 (origin
134 (method url-fetch)
135 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
136 (version-major+minor version)
137 "/ruby-" version ".tar.xz"))
138 (sha256
139 (base32
140 "0l5nk9mc0q4769d2i9d9y1izk0pk0lms2bl8s3lclv36wsvvqxxz"))))))
141
142 (define-public ruby-2.1
143 (package (inherit ruby)
144 (version "2.1.10")
145 (source
146 (origin
147 (method url-fetch)
148 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
149 (version-major+minor version)
150 "/ruby-" version ".tar.bz2"))
151 (sha256
152 (base32
153 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
154 (arguments
155 `(#:test-target "test"
156 #:parallel-tests? #f
157 #:phases
158 (modify-phases %standard-phases
159 (add-before 'configure 'replace-bin-sh
160 (lambda _
161 (substitute* '("Makefile.in"
162 "ext/pty/pty.c"
163 "io.c"
164 "lib/mkmf.rb"
165 "process.c")
166 (("/bin/sh") (which "sh")))
167 #t)))))))
168
169 (define-public ruby-1.8
170 (package (inherit ruby)
171 (version "1.8.7-p374")
172 (source
173 (origin
174 (method url-fetch)
175 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
176 (version-major+minor version)
177 "/ruby-" version ".tar.bz2"))
178 (sha256
179 (base32
180 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
181 (native-search-paths '())
182 (arguments
183 `(#:test-target "test"
184 #:parallel-tests? #f
185 #:phases
186 (modify-phases %standard-phases
187 (add-before 'configure 'replace-bin-sh
188 (lambda _
189 (substitute* '("Makefile.in"
190 "ext/pty/pty.c"
191 "io.c"
192 "lib/mkmf.rb"
193 "process.c")
194 (("/bin/sh") (which "sh")))
195 #t)))))))
196
197 (define-public ruby-concurrent
198 (package
199 (name "ruby-concurrent")
200 (version "1.0.5")
201 (source (origin
202 (method url-fetch)
203 (uri (rubygems-uri "concurrent-ruby" version))
204 (sha256
205 (base32
206 "183lszf5gx84kcpb779v6a2y0mx9sssy8dgppng1z9a505nj1qcf"))))
207 (build-system ruby-build-system)
208 (arguments `(#:tests? #f)); No rakefile
209 (home-page "https://github.com/ruby-concurrency/concurrent-ruby")
210 (synopsis "Concurrency tools for Ruby")
211 (description "This gem provides concurrency tools for Ruby. It provides
212 a library of common thread-safe types and data-structures as well as abstractions
213 for concurrency and communication between threads.")
214 (license license:expat)))
215
216 (define-public ruby-highline
217 (package
218 (name "ruby-highline")
219 (version "1.7.10")
220 (source
221 (origin
222 (method url-fetch)
223 (uri (rubygems-uri "highline" version))
224 (sha256
225 (base32
226 "01ib7jp85xjc4gh4jg0wyzllm46hwv8p0w1m4c75pbgi41fps50y"))))
227 (build-system ruby-build-system)
228 (arguments
229 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
230 (native-inputs
231 `(("bundler" ,bundler)
232 ("ruby-code-statistics" ,ruby-code-statistics)))
233 (synopsis
234 "HighLine helps you build command-line interfaces")
235 (description
236 "HighLine provides a high-level IO library that provides validation,
237 type conversion, and more for command-line interfaces. HighLine also includes
238 a menu system for providing multiple options to the user.")
239 (home-page "https://github.com/JEG2/highline")
240 (license (list license:gpl2 license:ruby))))
241
242 (define-public ruby-hoe
243 (package
244 (name "ruby-hoe")
245 (version "3.16.2")
246 (source (origin
247 (method url-fetch)
248 (uri (rubygems-uri "hoe" version))
249 (sha256
250 (base32
251 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
252 (build-system ruby-build-system)
253 (synopsis "Ruby project management helper")
254 (description
255 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
256 maintain, and release projects and includes a dynamic plug-in system allowing
257 for easy extensibility. Hoe ships with plug-ins for all the usual project
258 tasks including rdoc generation, testing, packaging, deployment, and
259 announcement.")
260 (home-page "https://www.zenspider.com/projects/hoe.html")
261 (license license:expat)))
262
263 (define-public ruby-rake-compiler
264 (package
265 (name "ruby-rake-compiler")
266 (version "1.0.4")
267 (source (origin
268 (method url-fetch)
269 (uri (rubygems-uri "rake-compiler" version))
270 (sha256
271 (base32
272 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
273 (build-system ruby-build-system)
274 (arguments
275 '(#:tests? #f)) ; needs cucumber
276 (synopsis "Building and packaging helper for Ruby native extensions")
277 (description "Rake-compiler provides a framework for building and
278 packaging native C and Java extensions in Ruby.")
279 (home-page "https://github.com/rake-compiler/rake-compiler")
280 (license license:expat)))
281
282 (define-public ruby-i18n
283 (package
284 (name "ruby-i18n")
285 (version "1.1.0")
286 (source (origin
287 (method url-fetch)
288 (uri (rubygems-uri "i18n" version))
289 (sha256
290 (base32
291 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
292 (build-system ruby-build-system)
293 (arguments
294 '(#:tests? #f)) ; no tests
295 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
296 (synopsis "Internationalization library for Ruby")
297 (description "Ruby i18n is an internationalization and localization
298 solution for Ruby programs. It features translation and localization,
299 interpolation of values to translations, pluralization, customizable
300 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
301 translation data, custom key/scope separator, custom exception handlers, and
302 an extensible architecture with a swappable backend.")
303 (home-page "https://github.com/svenfuchs/i18n")
304 (license license:expat)))
305
306 (define-public ruby-iruby
307 (package
308 (name "ruby-iruby")
309 (version "0.3")
310 (source
311 (origin
312 (method url-fetch)
313 (uri (rubygems-uri "iruby" version))
314 (sha256
315 (base32
316 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
317 (build-system ruby-build-system)
318 (arguments
319 ;; TODO: Tests currently fail.
320 ;;
321 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
322 ;;
323 ;; 1) Failure:
324 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
325 ;; In [ expected
326 ;;
327 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
328 '(#:tests? #f
329 #:phases
330 (modify-phases %standard-phases
331 (add-after 'unpack 'patch-ipython
332 (lambda* (#:key inputs #:allow-other-keys)
333 (substitute* "lib/iruby/command.rb"
334 (("version = `")
335 (string-append
336 "version = `"
337 (assoc-ref inputs "python-ipython")
338 "/bin/"))
339 (("Kernel\\.exec\\('")
340 (string-append
341 "Kernel.exec('"
342 (assoc-ref inputs "python-ipython")
343 "/bin/")))
344 #t)))))
345 (inputs
346 `(("python-ipython" ,python-ipython)))
347 (propagated-inputs
348 `(("ruby-bond" ,ruby-bond)
349 ("ruby-data_uri" ,ruby-data_uri)
350 ("ruby-mimemagic" ,ruby-mimemagic)
351 ("ruby-multi-json" ,ruby-multi-json)
352 ("ruby-cztop" ,ruby-cztop)
353 ;; Optional inputs
354 ("ruby-pry" ,ruby-pry)))
355 (synopsis "Ruby kernel for Jupyter/IPython")
356 (description
357 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
358 notebook).")
359 (home-page "https://github.com/SciRuby/iruby")
360 (license license:expat)))
361
362 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
363 ;; dependencies use RSpec for their test suites! To avoid these circular
364 ;; dependencies, we disable tests for all of the RSpec-related packages.
365 (define ruby-rspec-support
366 (package
367 (name "ruby-rspec-support")
368 (version "3.5.0")
369 (source (origin
370 (method url-fetch)
371 (uri (rubygems-uri "rspec-support" version))
372 (sha256
373 (base32
374 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
375 (build-system ruby-build-system)
376 (arguments
377 '(#:tests? #f)) ; avoid dependency cycles
378 (synopsis "RSpec support library")
379 (description "Support utilities for RSpec gems.")
380 (home-page "https://github.com/rspec/rspec-support")
381 (license license:expat)))
382
383 (define-public ruby-rspec-core
384 (package
385 (name "ruby-rspec-core")
386 (version "3.5.4")
387 (source (origin
388 (method url-fetch)
389 (uri (rubygems-uri "rspec-core" version))
390 (sha256
391 (base32
392 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
393 (build-system ruby-build-system)
394 (arguments
395 '(#:tests? #f)) ; avoid dependency cycles
396 (propagated-inputs
397 `(("ruby-rspec-support" ,ruby-rspec-support)))
398 (synopsis "RSpec core library")
399 (description "Rspec-core provides the RSpec test runner and example
400 groups.")
401 (home-page "https://github.com/rspec/rspec-core")
402 (license license:expat)))
403
404 (define-public ruby-rspec-core-2
405 (package (inherit ruby-rspec-core)
406 (version "2.14.8")
407 (source (origin
408 (method url-fetch)
409 (uri (rubygems-uri "rspec-core" version))
410 (sha256
411 (base32
412 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
413 (propagated-inputs `())))
414
415 (define-public ruby-diff-lcs
416 (package
417 (name "ruby-diff-lcs")
418 (version "1.3")
419 (source (origin
420 (method url-fetch)
421 (uri (rubygems-uri "diff-lcs" version))
422 (sha256
423 (base32
424 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
425 (build-system ruby-build-system)
426 (arguments
427 '(#:tests? #f)) ; avoid dependency cycles
428 (synopsis "Compute the difference between two Enumerable sequences")
429 (description "Diff::LCS computes the difference between two Enumerable
430 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
431 It includes utilities to create a simple HTML diff output format and a
432 standard diff-like tool.")
433 (home-page "https://github.com/halostatue/diff-lcs")
434 (license license:expat)))
435
436 (define-public ruby-rspec-expectations
437 (package
438 (name "ruby-rspec-expectations")
439 (version "3.5.0")
440 (source (origin
441 (method url-fetch)
442 (uri (rubygems-uri "rspec-expectations" version))
443 (sha256
444 (base32
445 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
446 (build-system ruby-build-system)
447 (arguments
448 '(#:tests? #f)) ; avoid dependency cycles
449 (propagated-inputs
450 `(("ruby-rspec-support" ,ruby-rspec-support)
451 ("ruby-diff-lcs" ,ruby-diff-lcs)))
452 (synopsis "RSpec expectations library")
453 (description "Rspec-expectations provides a simple API to express expected
454 outcomes of a code example.")
455 (home-page "https://github.com/rspec/rspec-expectations")
456 (license license:expat)))
457
458 (define-public ruby-rspec-expectations-2
459 (package (inherit ruby-rspec-expectations)
460 (version "2.14.5")
461 (source (origin
462 (method url-fetch)
463 (uri (rubygems-uri "rspec-expectations" version))
464 (sha256
465 (base32
466 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
467 (propagated-inputs
468 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
469
470 (define-public ruby-rspec-its
471 (package
472 (name "ruby-rspec-its")
473 (version "1.2.0")
474 (source
475 (origin
476 (method url-fetch)
477 (uri (rubygems-uri "rspec-its" version))
478 (sha256
479 (base32
480 "1pwphny5jawcm1hda3vs9pjv1cybaxy17dc1s75qd7drrvx697p3"))))
481 (build-system ruby-build-system)
482 (arguments
483 `(#:tests? #f)) ; needs cucumber.
484 (propagated-inputs
485 `(("ruby-rspec-core" ,ruby-rspec-core)
486 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
487 (synopsis "RSpec extension gem for attribute matching")
488 (description "@code{rspec-its} is an RSpec extension gem for attribute
489 matching.")
490 (home-page "https://github.com/rspec/rspec-its")
491 (license license:expat)))
492
493 (define-public ruby-rspec-mocks
494 (package
495 (name "ruby-rspec-mocks")
496 (version "3.5.0")
497 (source (origin
498 (method url-fetch)
499 (uri (rubygems-uri "rspec-mocks" version))
500 (sha256
501 (base32
502 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
503 (build-system ruby-build-system)
504 (arguments
505 '(#:tests? #f)) ; avoid dependency cycles
506 (propagated-inputs
507 `(("ruby-rspec-support" ,ruby-rspec-support)
508 ("ruby-diff-lcs" ,ruby-diff-lcs)))
509 (synopsis "RSpec stubbing and mocking library")
510 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
511 support for stubbing and mocking.")
512 (home-page "https://github.com/rspec/rspec-mocks")
513 (license license:expat)))
514
515 (define-public ruby-rspec-mocks-2
516 (package (inherit ruby-rspec-mocks)
517 (version "2.14.6")
518 (source (origin
519 (method url-fetch)
520 (uri (rubygems-uri "rspec-mocks" version))
521 (sha256
522 (base32
523 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
524 (propagated-inputs
525 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
526
527 (define-public ruby-rspec
528 (package
529 (name "ruby-rspec")
530 (version "3.5.0")
531 (source (origin
532 (method url-fetch)
533 (uri (rubygems-uri "rspec" version))
534 (sha256
535 (base32
536 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
537 (build-system ruby-build-system)
538 (arguments
539 '(#:tests? #f)) ; avoid dependency cycles
540 (propagated-inputs
541 `(("ruby-rspec-core" ,ruby-rspec-core)
542 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
543 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
544 (synopsis "Behavior-driven development framework for Ruby")
545 (description "RSpec is a behavior-driven development (BDD) framework for
546 Ruby. This meta-package includes the RSpec test runner, along with the
547 expectations and mocks frameworks.")
548 (home-page "http://rspec.info/")
549 (license license:expat)))
550
551 (define-public ruby-rspec-2
552 (package (inherit ruby-rspec)
553 (version "2.14.1")
554 (source (origin
555 (method url-fetch)
556 (uri (rubygems-uri "rspec" version))
557 (sha256
558 (base32
559 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
560 (propagated-inputs
561 `(("ruby-rspec-core" ,ruby-rspec-core-2)
562 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
563 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
564
565 ;; Bundler is yet another source of circular dependencies, so we must disable
566 ;; its test suite as well.
567 (define-public bundler
568 (package
569 (name "bundler")
570 (version "1.15.4")
571 (source (origin
572 (method url-fetch)
573 (uri (rubygems-uri "bundler" version))
574 (sha256
575 (base32
576 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
577 (build-system ruby-build-system)
578 (arguments
579 '(#:tests? #f)) ; avoid dependency cycles
580 (synopsis "Ruby gem bundler")
581 (description "Bundler automatically downloads and installs a list of gems
582 specified in a \"Gemfile\", as well as their dependencies.")
583 (home-page "https://bundler.io/")
584 (license license:expat)))
585
586 (define-public ruby-builder
587 (package
588 (name "ruby-builder")
589 (version "3.2.3")
590 (source (origin
591 (method url-fetch)
592 (uri (rubygems-uri "builder" version))
593 (sha256
594 (base32
595 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
596 (build-system ruby-build-system)
597 (arguments
598 `(#:phases
599 (modify-phases %standard-phases
600 (add-after 'unpack 'do-not-use-rvm
601 (lambda _
602 (substitute* "rakelib/tags.rake"
603 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
604 #t)))))
605 (synopsis "Ruby library to create structured data")
606 (description "Builder provides a number of builder objects that make it
607 easy to create structured data. Currently the following builder objects are
608 supported: XML Markup and XML Events.")
609 (home-page "https://github.com/jimweirich/builder")
610 (license license:expat)))
611
612 (define-public ruby-rjb
613 (package
614 (name "ruby-rjb")
615 (version "1.5.5")
616 (source (origin
617 (method url-fetch)
618 (uri (rubygems-uri "rjb" version))
619 (sha256
620 (base32
621 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
622 (build-system ruby-build-system)
623 (arguments
624 `(#:tests? #f ; no rakefile
625 #:phases
626 (modify-phases %standard-phases
627 (add-before 'build 'set-java-home
628 (lambda* (#:key inputs #:allow-other-keys)
629 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
630 #t)))))
631 (native-inputs
632 `(("jdk" ,icedtea "jdk")))
633 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
634 (description "RJB is a bridge program that connects Ruby and Java via the
635 Java Native Interface.")
636 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
637 (license license:lgpl2.1+)))
638
639 (define-public ruby-log4r
640 (package
641 (name "ruby-log4r")
642 (version "1.1.10")
643 (source
644 (origin
645 (method url-fetch)
646 (uri (rubygems-uri "log4r" version))
647 (sha256
648 (base32
649 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
650 (build-system ruby-build-system)
651 (arguments
652 '(#:tests? #f)) ; no Rakefile in gem
653 (synopsis "Flexible logging library for Ruby")
654 (description "Comprehensive and flexible logging library written
655 in Ruby for use in Ruby programs. It features a hierarchical logging
656 system of any number of levels, custom level names, logger
657 inheritance, multiple output destinations per log event, execution
658 tracing, custom formatting, thread safteyness, XML and YAML
659 configuration, and more.")
660 (home-page "http://log4r.rubyforge.org/")
661 (license license:bsd-3)))
662
663 (define-public ruby-atoulme-antwrap
664 (package
665 (name "ruby-atoulme-antwrap")
666 (version "0.7.5")
667 (source (origin
668 (method url-fetch)
669 (uri (rubygems-uri "atoulme-Antwrap" version))
670 (sha256
671 (base32
672 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
673 (build-system ruby-build-system)
674 ;; Test data required for most of the tests are not included.
675 (arguments `(#:tests? #f))
676 (native-inputs
677 `(("ruby-hoe" ,ruby-hoe)))
678 (inputs
679 `(("ruby-rjb" ,ruby-rjb)))
680 (synopsis "Ruby wrapper for the Ant build tool")
681 (description "Antwrap is a Ruby module that wraps the Apache Ant build
682 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
683 script.")
684 (home-page "http://rubyforge.org/projects/antwrap/")
685 (license license:expat)))
686
687 (define-public ruby-atoulme-saikuro
688 (package
689 (name "ruby-atoulme-saikuro")
690 (version "1.2.1")
691 (source (origin
692 (method url-fetch)
693 (uri (rubygems-uri "atoulme-Saikuro" version))
694 (sha256
695 (base32
696 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
697 (build-system ruby-build-system)
698 ;; FIXME: There are no unit tests. The tests are demonstrations of the
699 ;; "saikuro" tool.
700 (arguments `(#:tests? #f))
701 (synopsis "Cyclomatic complexity analyzer")
702 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
703 given Ruby source code Saikuro will generate a report listing the cyclomatic
704 complexity of each method found. In addition, Saikuro counts the number of
705 lines per method and can generate a listing of the number of tokens on each
706 line of code.")
707 (home-page "http://www.github.com/atoulme/Saikuro")
708 ;; File headers contain the BSD-3 license and the README.rdoc says that
709 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
710 ;; of the Expat license.
711 (license license:bsd-3)))
712
713 (define-public ruby-asciidoctor
714 (package
715 (name "ruby-asciidoctor")
716 (version "1.5.7.1")
717 (source
718 (origin
719 (method url-fetch)
720 (uri (rubygems-uri "asciidoctor" version))
721 (sha256
722 (base32
723 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
724 (build-system ruby-build-system)
725 (arguments
726 `(#:test-target "test:all"
727 #:phases
728 (modify-phases %standard-phases
729 (add-before 'check 'remove-circular-tests
730 (lambda _
731 ;; Remove tests that require circular dependencies to load or pass.
732 (delete-file "test/invoker_test.rb")
733 (delete-file "test/converter_test.rb")
734 (delete-file "test/options_test.rb")
735 #t)))))
736 (native-inputs
737 `(("ruby-minitest" ,ruby-minitest)
738 ("ruby-nokogiri" ,ruby-nokogiri)
739 ("ruby-asciimath" ,ruby-asciimath)
740 ("ruby-coderay" ,ruby-coderay)))
741 (synopsis "Converter from AsciiDoc content to other formats")
742 (description
743 "Asciidoctor is a text processor and publishing toolchain for converting
744 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
745 (home-page "https://asciidoctor.org")
746 (license license:expat)))
747
748 (define-public ruby-sporkmonger-rack-mount
749 ;; Testing the addressable gem requires a newer commit than that released, so
750 ;; use an up to date version.
751 (let ((revision "1")
752 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
753 (package
754 (name "ruby-sporkmonger-rack-mount")
755 (version (git-version "0.8.3" revision commit))
756 (source (origin
757 (method git-fetch)
758 (uri (git-reference
759 (url "https://github.com/sporkmonger/rack-mount.git")
760 (commit commit)))
761 (file-name (git-file-name name version))
762 (sha256
763 (base32
764 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
765 (build-system ruby-build-system)
766 (arguments
767 ;; Tests currently fail so disable them.
768 ;; https://github.com/sporkmonger/rack-mount/pull/1
769 `(#:tests? #f))
770 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
771 (synopsis "Stackable dynamic tree based Rack router")
772 (description
773 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
774 continue trying routes if the response returns pass. This allows multiple
775 routes to be nested or stacked on top of each other.")
776 (home-page "https://github.com/sporkmonger/rack-mount")
777 (license license:expat))))
778
779 (define-public ruby-ci-reporter
780 (package
781 (name "ruby-ci-reporter")
782 (version "2.0.0")
783 (source (origin
784 (method url-fetch)
785 (uri (rubygems-uri "ci_reporter" version))
786 (sha256
787 (base32
788 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
789 (build-system ruby-build-system)
790 (arguments
791 `(#:test-target "rspec"))
792 (propagated-inputs
793 `(("ruby-builder" ,ruby-builder)))
794 (native-inputs
795 `(("bundler" ,bundler)
796 ("ruby-rspec" ,ruby-rspec)))
797 (synopsis "Generate XML reports of runs test")
798 (description
799 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
800 you to generate XML reports of your test runs. The resulting files can be
801 read by a continuous integration system that understands Ant's JUnit report
802 format.")
803 (home-page "https://github.com/nicksieger/ci_reporter")
804 (license license:expat)))
805
806 (define-public ruby-czmq-ffi-gen
807 (package
808 (name "ruby-czmq-ffi-gen")
809 (version "0.13.0")
810 (source
811 (origin
812 (method url-fetch)
813 (uri (rubygems-uri "czmq-ffi-gen" version))
814 (sha256
815 (base32
816 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
817 (build-system ruby-build-system)
818 (arguments
819 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
820 #:phases
821 (modify-phases %standard-phases
822 (add-after 'unpack 'patch-lib_dirs
823 (lambda* (#:key inputs #:allow-other-keys)
824 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
825 (("lib\\_dirs = \\[.*\\]")
826 (string-append "lib_dirs = ['"
827 (assoc-ref inputs "czmq") "/lib"
828 "']")))
829 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
830 (("lib\\_dirs = \\[.*\\]")
831 (string-append "lib_dirs = ['"
832 (assoc-ref inputs "zeromq") "/lib"
833 "']"))))))))
834 (inputs
835 `(("zeromq" ,zeromq)
836 ("czmq" ,czmq)))
837 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
838 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
839 (description
840 "These Ruby bindings are not intended to be directly used, but rather
841 used by higher level bindings like those provided by CZTop.")
842 (home-page
843 "https://github.com/paddor/czmq-ffi-gen")
844 (license license:isc)))
845
846 (define-public ruby-cztop
847 (package
848 (name "ruby-cztop")
849 (version "0.12.2")
850 (source
851 (origin
852 (method url-fetch)
853 (uri (rubygems-uri "cztop" version))
854 (sha256
855 (base32
856 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
857 (build-system ruby-build-system)
858 (arguments
859 '(#:test-target "spec"
860 #:phases
861 (modify-phases %standard-phases
862 (add-after 'unpack 'patch-lib_paths
863 (lambda* (#:key inputs #:allow-other-keys)
864 (substitute* "lib/cztop/poller/zmq.rb"
865 (("lib\\_paths = \\[.*\\]")
866 (string-append "lib_paths = ['"
867 (assoc-ref inputs "zeromq") "/lib"
868 "']"))))))))
869 (native-inputs
870 `(("bundler" ,bundler)
871 ("ruby-rspec" ,ruby-rspec)))
872 (inputs
873 `(("zeromq" ,zeromq)))
874 (propagated-inputs
875 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
876 (synopsis "CZMQ Ruby bindings")
877 (description
878 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
879 CZMQ. The focus of of CZTop is on being easy to use and providing first class
880 support for security mechanisms.")
881 (home-page "https://github.com/paddor/cztop")
882 (license license:isc)))
883
884 (define-public ruby-saikuro-treemap
885 (package
886 (name "ruby-saikuro-treemap")
887 (version "0.2.0")
888 (source (origin
889 (method url-fetch)
890 (uri (rubygems-uri "saikuro_treemap" version))
891 (sha256
892 (base32
893 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
894 (build-system ruby-build-system)
895 ;; Some of the tests fail because the generated JSON has keys in a
896 ;; different order. This is a problem with the test suite rather than any
897 ;; of the involved libraries.
898 (arguments `(#:tests? #f))
899 (propagated-inputs
900 `(("ruby-json-pure" ,ruby-json-pure)
901 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
902 (synopsis "Generate complexity treemap based on saikuro analysis")
903 (description
904 "This gem generates a treemap showing the complexity of Ruby code on
905 which it is run. It uses Saikuro under the covers to analyze Ruby code
906 complexity.")
907 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
908 (license license:expat)))
909
910 (define-public ruby-options
911 (package
912 (name "ruby-options")
913 (version "2.3.2")
914 (source
915 (origin
916 (method url-fetch)
917 (uri (rubygems-uri "options" version))
918 (sha256
919 (base32
920 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
921 (build-system ruby-build-system)
922 (arguments
923 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
924 #:phases
925 (modify-phases %standard-phases
926 (add-before 'check 'set-LIB
927 (lambda _
928 ;; This is used in the Rakefile, and setting it avoids an issue
929 ;; with running the tests.
930 (setenv "LIB" "options")
931 #t)))))
932 (synopsis "Ruby library to parse options from *args cleanly")
933 (description
934 "The @code{options} library helps with parsing keyword options in Ruby
935 functions.")
936 (home-page "https://github.com/ahoward/options")
937 (license license:ruby)))
938
939 (define-public ruby-erubis
940 (package
941 (name "ruby-erubis")
942 (version "2.7.0")
943 (source
944 (origin
945 (method url-fetch)
946 (uri (rubygems-uri "erubis" version))
947 (sha256
948 (base32
949 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
950 (build-system ruby-build-system)
951 (arguments
952 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
953 (synopsis "Implementation of embedded Ruby (eRuby)")
954 (description
955 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
956 features such as multi-language support, auto escaping, auto trimming spaces
957 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
958 support.")
959 (home-page "http://www.kuwata-lab.com/erubis/")
960 (license license:expat)))
961
962 (define-public ruby-orderedhash
963 (package
964 (name "ruby-orderedhash")
965 (version "0.0.6")
966 (source (origin
967 (method url-fetch)
968 (uri (rubygems-uri "orderedhash" version))
969 (sha256
970 (base32
971 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
972 (build-system ruby-build-system)
973 (arguments
974 '(#:tests? #f)) ; no test suite
975 (synopsis "Ruby library providing an order-preserving hash")
976 (description "Orderedhash is a Ruby library providing a hash
977 implementation that preserves the order of items and features some array-like
978 extensions.")
979 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
980 (license license:public-domain)))
981
982 (define-public ruby-libxml
983 (package
984 (name "ruby-libxml")
985 (version "3.0.0")
986 (source
987 (origin
988 (method url-fetch)
989 (uri (rubygems-uri "libxml-ruby" version))
990 (sha256
991 (base32
992 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
993 (build-system ruby-build-system)
994 (inputs
995 `(("zlib" ,zlib)
996 ("libxml2" ,libxml2)))
997 (arguments
998 '(#:tests? #f ; test suite hangs for unknown reason
999 #:gem-flags
1000 (list "--"
1001 (string-append "--with-xml2-include="
1002 (assoc-ref %build-inputs "libxml2")
1003 "/include/libxml2" ))))
1004 (synopsis "Ruby bindings for GNOME Libxml2")
1005 (description "The Libxml-Ruby project provides Ruby language bindings for
1006 the GNOME Libxml2 XML toolkit.")
1007 (home-page "https://xml4r.github.com/libxml-ruby")
1008 (license license:expat)))
1009
1010 (define-public ruby-xml-simple
1011 (package
1012 (name "ruby-xml-simple")
1013 (version "1.1.5")
1014 (source (origin
1015 (method url-fetch)
1016 (uri (rubygems-uri "xml-simple" version))
1017 (sha256
1018 (base32
1019 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1020 (build-system ruby-build-system)
1021 (arguments
1022 '(#:tests? #f)) ; no test suite
1023 (synopsis "Simple Ruby library for XML processing")
1024 (description "This library provides a simple API for XML processing in
1025 Ruby.")
1026 (home-page "https://github.com/maik/xml-simple")
1027 (license license:ruby)))
1028
1029 (define-public ruby-thor
1030 (package
1031 (name "ruby-thor")
1032 (version "0.19.4")
1033 (source (origin
1034 (method url-fetch)
1035 (uri (rubygems-uri "thor" version))
1036 (sha256
1037 (base32
1038 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1039 (build-system ruby-build-system)
1040 (arguments
1041 '(#:tests? #f)) ; no test suite
1042 (native-inputs
1043 `(("bundler" ,bundler)))
1044 (synopsis "Ruby toolkit for building command-line interfaces")
1045 (description "Thor is a toolkit for building powerful command-line
1046 interfaces.")
1047 (home-page "http://whatisthor.com/")
1048 (license license:expat)))
1049
1050 (define-public ruby-lumberjack
1051 (package
1052 (name "ruby-lumberjack")
1053 (version "1.0.13")
1054 (source (origin
1055 (method url-fetch)
1056 (uri (rubygems-uri "lumberjack" version))
1057 (sha256
1058 (base32
1059 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1060 (build-system ruby-build-system)
1061 (native-inputs
1062 `(("ruby-rspec" ,ruby-rspec)
1063 ("ruby-timecop" ,ruby-timecop)))
1064 (synopsis "Logging utility library for Ruby")
1065 (description "Lumberjack is a simple logging utility that can be a drop in
1066 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1067 for automatically rolling log files even with multiple processes writing the
1068 same log file.")
1069 (home-page "https://github.com/bdurand/lumberjack")
1070 (license license:expat)))
1071
1072 (define-public ruby-nenv
1073 (package
1074 (name "ruby-nenv")
1075 (version "0.3.0")
1076 (source (origin
1077 (method url-fetch)
1078 (uri (rubygems-uri "nenv" version))
1079 (sha256
1080 (base32
1081 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1082 (build-system ruby-build-system)
1083 (arguments
1084 `(#:tests? #f)) ; no tests included
1085 (native-inputs
1086 `(("ruby-rspec" ,ruby-rspec)
1087 ("bundler" ,bundler)))
1088 (synopsis "Ruby interface for modifying the environment")
1089 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1090 and inspect the environment.")
1091 (home-page "https://github.com/e2/nenv")
1092 (license license:expat)))
1093
1094 (define-public ruby-permutation
1095 (package
1096 (name "ruby-permutation")
1097 (version "0.1.8")
1098 (source (origin
1099 (method url-fetch)
1100 (uri (rubygems-uri "permutation" version))
1101 (sha256
1102 (base32
1103 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1104 (build-system ruby-build-system)
1105 (arguments
1106 `(#:phases
1107 (modify-phases %standard-phases
1108 (add-after 'unpack 'fix-rakefile
1109 (lambda _
1110 (substitute* "Rakefile"
1111 (("require 'rake/gempackagetask'")
1112 "require 'rubygems/package_task'")
1113 (("include Config") ""))
1114 #t))
1115 (replace 'check
1116 (lambda _
1117 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
1118 (synopsis "Library to perform operations with sequence permutations")
1119 (description "This package provides a Ruby library to perform different
1120 operations with permutations of sequences, such as strings and arrays.")
1121 (home-page "https://flori.github.io/permutation")
1122 (license license:gpl2))) ; GPL 2 only
1123
1124 (define-public ruby-shellany
1125 (package
1126 (name "ruby-shellany")
1127 (version "0.0.1")
1128 (source (origin
1129 (method url-fetch)
1130 (uri (rubygems-uri "shellany" version))
1131 (sha256
1132 (base32
1133 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1134 (build-system ruby-build-system)
1135 (arguments
1136 `(#:test-target "default"
1137 #:phases
1138 (modify-phases %standard-phases
1139 (add-after 'unpack 'fix-version-test
1140 (lambda _
1141 (substitute* "spec/shellany_spec.rb"
1142 (("^RSpec") "require \"shellany\"\nRSpec"))
1143 #t)))))
1144 (native-inputs
1145 `(("ruby-rspec" ,ruby-rspec)
1146 ("ruby-nenv" ,ruby-nenv)
1147 ("bundler" ,bundler)))
1148 (synopsis "Capture command output")
1149 (description "Shellany is a Ruby library providing functions to capture
1150 the output produced by running shell commands.")
1151 (home-page "https://rubygems.org/gems/shellany")
1152 (license license:expat)))
1153
1154 (define-public ruby-notiffany
1155 (package
1156 (name "ruby-notiffany")
1157 (version "0.1.1")
1158 (source (origin
1159 (method url-fetch)
1160 (uri (rubygems-uri "notiffany" version))
1161 (sha256
1162 (base32
1163 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1164 (build-system ruby-build-system)
1165 ;; Tests are not included in the gem.
1166 (arguments `(#:tests? #f))
1167 (propagated-inputs
1168 `(("ruby-shellany" ,ruby-shellany)
1169 ("ruby-nenv" ,ruby-nenv)))
1170 (native-inputs
1171 `(("bundler" ,bundler)))
1172 (synopsis "Wrapper libray for notification libraries")
1173 (description "Notiffany is a Ruby wrapper libray for notification
1174 libraries such as Libnotify.")
1175 (home-page "https://github.com/guard/notiffany")
1176 (license license:expat)))
1177
1178 (define-public ruby-formatador
1179 (package
1180 (name "ruby-formatador")
1181 (version "0.2.5")
1182 (source (origin
1183 (method url-fetch)
1184 (uri (rubygems-uri "formatador" version))
1185 (sha256
1186 (base32
1187 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1188 (build-system ruby-build-system)
1189 ;; Circular dependency: Tests require ruby-shindo, which requires
1190 ;; ruby-formatador at runtime.
1191 (arguments `(#:tests? #f))
1192 (synopsis "Ruby library to format text on stdout")
1193 (description "Formatador is a Ruby library to format text printed to the
1194 standard output stream.")
1195 (home-page "https://github.com/geemus/formatador")
1196 (license license:expat)))
1197
1198 (define-public ruby-shindo
1199 (package
1200 (name "ruby-shindo")
1201 (version "0.3.8")
1202 (source (origin
1203 (method url-fetch)
1204 (uri (rubygems-uri "shindo" version))
1205 (sha256
1206 (base32
1207 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1208 (build-system ruby-build-system)
1209 (arguments
1210 `(#:test-target "shindo_tests"
1211 #:phases
1212 (modify-phases %standard-phases
1213 (add-after 'unpack 'fix-tests
1214 (lambda _
1215 (substitute* "Rakefile"
1216 (("system \"shindo") "system \"./bin/shindo")
1217 ;; This test doesn't work, so we disable it.
1218 (("fail \"The build_error test should fail") "#"))
1219 #t)))))
1220 (propagated-inputs
1221 `(("ruby-formatador" ,ruby-formatador)))
1222 (synopsis "Simple depth first Ruby testing")
1223 (description "Shindo is a simple depth first testing library for Ruby.")
1224 (home-page "https://github.com/geemus/shindo")
1225 (license license:expat)))
1226
1227 (define-public ruby-rubygems-tasks
1228 (package
1229 (name "ruby-rubygems-tasks")
1230 (version "0.2.4")
1231 (source (origin
1232 (method url-fetch)
1233 (uri (rubygems-uri "rubygems-tasks" version))
1234 (sha256
1235 (base32
1236 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1237 (build-system ruby-build-system)
1238 ;; Tests need Internet access.
1239 (arguments `(#:tests? #f))
1240 (native-inputs
1241 `(("ruby-rspec" ,ruby-rspec)
1242 ("ruby-yard" ,ruby-yard)))
1243 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1244 (description "Rubygems-task provides Rake tasks for managing and releasing
1245 Ruby Gems.")
1246 (home-page "https://github.com/postmodern/rubygems-tasks")
1247 (license license:expat)))
1248
1249 (define-public ruby-rubyzip
1250 (package
1251 (name "ruby-rubyzip")
1252 (version "1.2.1")
1253 (source
1254 (origin
1255 (method url-fetch)
1256 (uri (rubygems-uri "rubyzip" version))
1257 (sha256
1258 (base32
1259 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1260 (build-system ruby-build-system)
1261 (arguments
1262 '(#:phases
1263 (modify-phases %standard-phases
1264 (add-before 'check 'patch-tests
1265 (lambda* (#:key inputs #:allow-other-keys)
1266 (substitute* "test/gentestfiles.rb"
1267 (("/usr/bin/zip")
1268 (string-append
1269 (assoc-ref inputs "zip") "/bin/zip")))
1270 (substitute* "test/input_stream_test.rb"
1271 (("/usr/bin/env ruby") (which "ruby")))
1272 #t)))))
1273 (native-inputs
1274 `(("bundler" ,bundler)
1275 ("ruby-simplecov" ,ruby-simplecov)
1276 ("zip" ,zip)
1277 ("unzip" ,unzip)))
1278 (synopsis "Ruby module is for reading and writing zip files")
1279 (description
1280 "The rubyzip module provides ways to read from and create zip files.")
1281 (home-page "http://github.com/rubyzip/rubyzip")
1282 (license license:bsd-2)))
1283
1284 (define-public ruby-simplecov-html
1285 (package
1286 (name "ruby-simplecov-html")
1287 (version "0.10.2")
1288 (source (origin
1289 (method url-fetch)
1290 (uri (rubygems-uri "simplecov-html" version))
1291 (sha256
1292 (base32
1293 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
1294 (build-system ruby-build-system)
1295 (arguments `(#:tests? #f)) ; there are no tests
1296 (native-inputs
1297 `(("bundler" ,bundler)))
1298 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1299 (description "This package provides the default HTML formatter for
1300 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1301 (home-page "https://github.com/colszowka/simplecov-html")
1302 (license license:expat)))
1303
1304 (define-public ruby-simplecov
1305 (package
1306 (name "ruby-simplecov")
1307 (version "0.12.0")
1308 (source (origin
1309 (method url-fetch)
1310 (uri (rubygems-uri "simplecov" version))
1311 (sha256
1312 (base32
1313 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
1314 (build-system ruby-build-system)
1315 ;; Simplecov depends on rubocop for code style checking at build time.
1316 ;; Rubocop needs simplecov at build time.
1317 (arguments `(#:tests? #f))
1318 (propagated-inputs
1319 `(("ruby-json" ,ruby-json)
1320 ("ruby-docile" ,ruby-docile)
1321 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1322 (native-inputs
1323 `(("bundler" ,bundler)))
1324 (synopsis "Code coverage framework for Ruby")
1325 (description "SimpleCov is a code coverage framework for Ruby with a
1326 powerful configuration library and automatic merging of coverage across test
1327 suites.")
1328 (home-page "https://github.com/colszowka/simplecov")
1329 (license license:expat)))
1330
1331 (define-public ruby-useragent
1332 (package
1333 (name "ruby-useragent")
1334 (version "0.16.8")
1335 (source (origin
1336 (method url-fetch)
1337 (uri (rubygems-uri "useragent" version))
1338 (sha256
1339 (base32
1340 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1341 (build-system ruby-build-system)
1342 (arguments
1343 '(#:tests? #f)) ; no test suite
1344 (synopsis "HTTP user agent parser for Ruby")
1345 (description "UserAgent is a Ruby library that parses and compares HTTP
1346 User Agents.")
1347 (home-page "https://github.com/gshutler/useragent")
1348 (license license:expat)))
1349
1350 (define-public ruby-bacon
1351 (package
1352 (name "ruby-bacon")
1353 (version "1.2.0")
1354 (source (origin
1355 (method url-fetch)
1356 (uri (rubygems-uri "bacon" version))
1357 (sha256
1358 (base32
1359 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1360 (build-system ruby-build-system)
1361 (synopsis "Small RSpec clone")
1362 (description "Bacon is a small RSpec clone providing all essential
1363 features.")
1364 (home-page "https://github.com/chneukirchen/bacon")
1365 (license license:expat)))
1366
1367 (define-public ruby-bacon-bits
1368 (package
1369 (name "ruby-bacon-bits")
1370 (version "0.1.0")
1371 (source
1372 (origin
1373 (method url-fetch)
1374 (uri (rubygems-uri "bacon-bits" version))
1375 (sha256
1376 (base32
1377 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
1378 (build-system ruby-build-system)
1379 (arguments
1380 ;; No tests
1381 '(#:tests? #f))
1382 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
1383 (synopsis "Extensions to Bacon, for disabling tests, before and after
1384 blocks and more")
1385 (description
1386 "This extends the bacon testing framework with useful extensions to
1387 disable tests, have before and after blocks that run once and more.")
1388 (home-page "https://github.com/cldwalker/bacon-bits")
1389 (license license:expat)))
1390
1391 (define-public ruby-connection-pool
1392 (package
1393 (name "ruby-connection-pool")
1394 (version "2.2.2")
1395 (source (origin
1396 (method url-fetch)
1397 (uri (rubygems-uri "connection_pool" version))
1398 (sha256
1399 (base32
1400 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
1401 (build-system ruby-build-system)
1402 (native-inputs
1403 `(("bundler" ,bundler)))
1404 (synopsis "Generic connection pool for Ruby")
1405 (description "Connection_pool provides a generic connection pooling
1406 interface for Ruby programs.")
1407 (home-page "https://github.com/mperham/connection_pool")
1408 (license license:expat)))
1409
1410 (define-public ruby-net-http-persistent
1411 (package
1412 (name "ruby-net-http-persistent")
1413 (version "3.0.0")
1414 (source (origin
1415 (method url-fetch)
1416 (uri (rubygems-uri "net-http-persistent" version))
1417 (sha256
1418 (base32
1419 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1420 (build-system ruby-build-system)
1421 (native-inputs
1422 `(("ruby-connection-pool" ,ruby-connection-pool)
1423 ("ruby-hoe" ,ruby-hoe)))
1424 (synopsis "Persistent HTTP connection manager")
1425 (description "Net::HTTP::Persistent manages persistent HTTP connections
1426 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1427 (home-page "https://github.com/drbrain/net-http-persistent")
1428 (license license:expat)))
1429
1430 (define-public ruby-power-assert
1431 (package
1432 (name "ruby-power-assert")
1433 (version "0.2.7")
1434 (source (origin
1435 (method url-fetch)
1436 (uri (rubygems-uri "power_assert" version))
1437 (sha256
1438 (base32
1439 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1440 (build-system ruby-build-system)
1441 (native-inputs
1442 `(("bundler" ,bundler)))
1443 (synopsis "Assert library with descriptive assertion messages")
1444 (description "Power-assert is an assertion library providing descriptive
1445 assertion messages for tests.")
1446 (home-page "https://github.com/k-tsj/power_assert")
1447 (license (list license:bsd-2 license:ruby))))
1448
1449 (define-public ruby-locale
1450 (package
1451 (name "ruby-locale")
1452 (version "2.1.2")
1453 (source (origin
1454 (method url-fetch)
1455 (uri (rubygems-uri "locale" version))
1456 (sha256
1457 (base32
1458 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1459 (build-system ruby-build-system)
1460 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1461 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1462 ;; dependency cycle we disable tests.
1463 (arguments `(#:tests? #f))
1464 (native-inputs
1465 `(("bundler" ,bundler)
1466 ("ruby-yard" ,ruby-yard)))
1467 (synopsis "Ruby library providing basic localization APIs")
1468 (description
1469 "Ruby-Locale is the pure ruby library which provides basic APIs for
1470 localization.")
1471 (home-page "https://github.com/ruby-gettext/locale")
1472 (license (list license:lgpl3+ license:ruby))))
1473
1474 (define-public ruby-text
1475 (package
1476 (name "ruby-text")
1477 (version "1.3.1")
1478 (source (origin
1479 (method url-fetch)
1480 (uri (rubygems-uri "text" version))
1481 (sha256
1482 (base32
1483 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1484 (build-system ruby-build-system)
1485 (synopsis "Collection of text algorithms for Ruby")
1486 (description
1487 "This package provides a collection of text algorithms: Levenshtein,
1488 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1489 (home-page "https://github.com/threedaymonk/text")
1490 (license license:expat)))
1491
1492 (define-public ruby-gettext
1493 (package
1494 (name "ruby-gettext")
1495 (version "3.1.7")
1496 (source (origin
1497 (method url-fetch)
1498 (uri (rubygems-uri "gettext" version))
1499 (sha256
1500 (base32
1501 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1502 (build-system ruby-build-system)
1503 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1504 ;; which needs ruby-gettext. To break the dependency cycle we disable
1505 ;; tests.
1506 (arguments `(#:tests? #f))
1507 (propagated-inputs
1508 `(("ruby-locale" ,ruby-locale)
1509 ("ruby-text" ,ruby-text)))
1510 (native-inputs
1511 `(("bundler" ,bundler)
1512 ("ruby-yard" ,ruby-yard)))
1513 (synopsis "GNU gettext-like program for Ruby")
1514 (description
1515 "Gettext is a GNU gettext-like program for Ruby. The catalog
1516 file (po-file) used is the same as that used by GNU gettext, allowing you to
1517 use GNU gettext tools for maintenance.")
1518 (home-page "https://ruby-gettext.github.com/")
1519 (license (list license:lgpl3+ license:ruby))))
1520
1521 (define-public ruby-packnga
1522 (package
1523 (name "ruby-packnga")
1524 (version "1.0.4")
1525 (source (origin
1526 (method url-fetch)
1527 (uri (rubygems-uri "packnga" version))
1528 (sha256
1529 (base32
1530 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
1531 (build-system ruby-build-system)
1532 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1533 ;; To break the dependency cycle we disable tests.
1534 (arguments `(#:tests? #f))
1535 (propagated-inputs
1536 `(("ruby-gettext" ,ruby-gettext)
1537 ("ruby-yard" ,ruby-yard)))
1538 (native-inputs
1539 `(("bundler" ,bundler)))
1540 (synopsis "Utility library to package internationalized libraries")
1541 (description
1542 "Packnga is a library to translate to many languages using YARD.")
1543 (home-page "http://ranguba.org/packnga/")
1544 (license license:lgpl2.0+)))
1545
1546 (define-public ruby-test-unit
1547 (package
1548 (name "ruby-test-unit")
1549 (version "3.2.5")
1550 (source (origin
1551 (method url-fetch)
1552 (uri (rubygems-uri "test-unit" version))
1553 (sha256
1554 (base32
1555 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
1556 (build-system ruby-build-system)
1557 (propagated-inputs
1558 `(("ruby-power-assert" ,ruby-power-assert)))
1559 (native-inputs
1560 `(("bundler" ,bundler)
1561 ("ruby-packnga" ,ruby-packnga)
1562 ("ruby-yard" ,ruby-yard)))
1563 (synopsis "Unit testing framework for Ruby")
1564 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1565 on xUnit principles. These were originally designed by Kent Beck, creator of
1566 extreme programming software development methodology, for Smalltalk's SUnit.
1567 It allows writing tests, checking results and automated testing in Ruby.")
1568 (home-page "https://test-unit.github.io/")
1569 (license (list license:psfl license:ruby))))
1570
1571 (define-public ruby-metaclass
1572 (package
1573 (name "ruby-metaclass")
1574 (version "0.0.4")
1575 (source (origin
1576 (method url-fetch)
1577 (uri (rubygems-uri "metaclass" version))
1578 (sha256
1579 (base32
1580 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1581 (build-system ruby-build-system)
1582 (arguments
1583 `(#:phases
1584 (modify-phases %standard-phases
1585 (add-after 'unpack 'add-test-unit-to-search-path
1586 (lambda* (#:key inputs #:allow-other-keys)
1587 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1588 (substitute* "Rakefile"
1589 (("t\\.libs << \"test\"" line)
1590 (string-append line "; t.libs << \""
1591 test-unit "/lib/ruby/vendor_ruby"
1592 "/gems/test-unit-"
1593 ,(package-version ruby-test-unit)
1594 "/lib\""))))
1595 #t)))))
1596 (native-inputs
1597 `(("bundler" ,bundler)
1598 ("ruby-test-unit" ,ruby-test-unit)))
1599 (synopsis "Ruby library adding metaclass method to all objects")
1600 (description
1601 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1602 objects.")
1603 (home-page "https://github.com/floehopper/metaclass")
1604 (license license:expat)))
1605
1606 (define-public ruby-blankslate
1607 (package
1608 (name "ruby-blankslate")
1609 (version "3.1.3")
1610 (source (origin
1611 (method url-fetch)
1612 (uri (rubygems-uri "blankslate" version))
1613 (sha256
1614 (base32
1615 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1616 (build-system ruby-build-system)
1617 (arguments
1618 `(#:phases
1619 (modify-phases %standard-phases
1620 (replace 'check
1621 (lambda _ (zero? (system* "rspec" "spec/")))))))
1622 (native-inputs
1623 `(("bundler" ,bundler)
1624 ("ruby-rspec" ,ruby-rspec)))
1625 (synopsis "Abstract base class with no predefined methods")
1626 (description
1627 "BlankSlate provides an abstract base class with no predefined
1628 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1629 as a base class when writing classes that depend upon
1630 @code{method_missing} (e.g. dynamic proxies).")
1631 (home-page "https://github.com/masover/blankslate")
1632 (license license:expat)))
1633
1634 (define-public ruby-bond
1635 (package
1636 (name "ruby-bond")
1637 (version "0.5.1")
1638 (source
1639 (origin
1640 (method url-fetch)
1641 (uri (rubygems-uri "bond" version))
1642 (sha256
1643 (base32
1644 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
1645 (build-system ruby-build-system)
1646 (native-inputs
1647 `(("ruby-bacon" ,ruby-bacon)
1648 ("ruby-bacon-bits" ,ruby-bacon-bits)
1649 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
1650 (synopsis "Bond can provide custom autocompletion for arguments, methods
1651 and more")
1652 (description
1653 "Bond can autocomplete argument(s) to methods, uniquely completing per
1654 module, per method and per argument. Bond provides a configuration system and
1655 a DSL for creating custom completions and completion rules. Bond can also
1656 load completions that ship with gems. Bond is able to offer more than irb's
1657 completion since it uses the full line of input when completing as opposed to
1658 irb's last-word approach.")
1659 (home-page "http://tagaholic.me/bond/")
1660 (license license:expat)))
1661
1662 (define-public ruby-instantiator
1663 (package
1664 (name "ruby-instantiator")
1665 (version "0.0.7")
1666 (source (origin
1667 (method url-fetch)
1668 (uri (rubygems-uri "instantiator" version))
1669 (sha256
1670 (base32
1671 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
1672 (build-system ruby-build-system)
1673 (arguments
1674 `(#:phases
1675 (modify-phases %standard-phases
1676 (add-after 'unpack 'add-test-unit-to-search-path
1677 (lambda* (#:key inputs #:allow-other-keys)
1678 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1679 (substitute* "Rakefile"
1680 (("t\\.libs << \"test\"" line)
1681 (string-append line "; t.libs << \""
1682 test-unit "/lib/ruby/vendor_ruby"
1683 "/gems/test-unit-"
1684 ,(package-version ruby-test-unit)
1685 "/lib\""))))
1686 #t)))))
1687 (propagated-inputs
1688 `(("ruby-blankslate" ,ruby-blankslate)))
1689 (native-inputs
1690 `(("bundler" ,bundler)
1691 ("ruby-test-unit" ,ruby-test-unit)))
1692 (synopsis "Instantiate an arbitrary Ruby class")
1693 (description
1694 "Instantiator lets you instantiate an arbitrary Ruby class without
1695 knowing anything about the constructor.")
1696 (home-page "https://github.com/floehopper/instantiator")
1697 (license license:expat)))
1698
1699 (define-public ruby-introspection
1700 (package
1701 (name "ruby-introspection")
1702 (version "0.0.4")
1703 (source (origin
1704 (method url-fetch)
1705 (uri (rubygems-uri "introspection" version))
1706 (sha256
1707 (base32
1708 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
1709 (build-system ruby-build-system)
1710 (arguments
1711 `(#:phases
1712 (modify-phases %standard-phases
1713 (add-after 'unpack 'add-test-unit-to-search-path
1714 (lambda* (#:key inputs #:allow-other-keys)
1715 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1716 (substitute* "Rakefile"
1717 (("t\\.libs << \"test\"" line)
1718 (string-append line "; t.libs << \""
1719 test-unit "/lib/ruby/vendor_ruby"
1720 "/gems/test-unit-"
1721 ,(package-version ruby-test-unit)
1722 "/lib\""))))
1723 #t)))))
1724 (propagated-inputs
1725 `(("ruby-instantiator" ,ruby-instantiator)
1726 ("ruby-metaclass" ,ruby-metaclass)))
1727 (native-inputs
1728 `(("bundler" ,bundler)
1729 ("ruby-blankslate" ,ruby-blankslate)
1730 ("ruby-test-unit" ,ruby-test-unit)))
1731 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1732 (description
1733 "Introspection provides tools to inspect the hierarchy of method
1734 definitions on a Ruby object.")
1735 (home-page "https://github.com/floehopper/introspection")
1736 (license license:expat)))
1737
1738 (define-public ruby-redcarpet
1739 (package
1740 (name "ruby-redcarpet")
1741 (version "3.4.0")
1742 (source (origin
1743 (method url-fetch)
1744 (uri (rubygems-uri "redcarpet" version))
1745 (sha256
1746 (base32
1747 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
1748 (build-system ruby-build-system)
1749 (arguments
1750 `(#:phases
1751 (modify-phases %standard-phases
1752 ;; The gem archive does not include the conformance tests.
1753 (add-after 'unpack 'disable-conformance-tests
1754 (lambda _
1755 (substitute* "Rakefile"
1756 (("task :test => %w\\[test:unit test:conformance\\]")
1757 "task :test => %w[test:unit]"))
1758 #t)))))
1759 (native-inputs
1760 `(("bundler" ,bundler)
1761 ("ruby-test-unit" ,ruby-test-unit)
1762 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1763 (synopsis "Extensible Markdown to (X)HTML converter")
1764 (description
1765 "Redcarpet is an extensible Ruby library for Markdown processing and
1766 conversion to (X)HTML.")
1767 (home-page "https://github.com/vmg/redcarpet")
1768 (license license:expat)))
1769
1770 (define-public ruby-mocha
1771 (package
1772 (name "ruby-mocha")
1773 (version "1.1.0")
1774 (source (origin
1775 (method url-fetch)
1776 (uri (rubygems-uri "mocha" version))
1777 (sha256
1778 (base32
1779 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1780 (build-system ruby-build-system)
1781 (arguments
1782 `(#:phases
1783 (modify-phases %standard-phases
1784 (add-after 'unpack 'add-test-unit-to-search-path
1785 (lambda* (#:key inputs #:allow-other-keys)
1786 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1787 (substitute* "Rakefile"
1788 (("t\\.libs << 'test'" line)
1789 (string-append line "; t.libs << \""
1790 test-unit "/lib/ruby/vendor_ruby"
1791 "/gems/test-unit-"
1792 ,(package-version ruby-test-unit)
1793 "/lib\""))))
1794 #t))
1795 (add-before 'check 'use-latest-redcarpet
1796 (lambda _
1797 (substitute* "mocha.gemspec"
1798 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1799 "<redcarpet>.freeze, [\">= 3\"]"))
1800 #t))
1801 (add-before 'check 'hardcode-version
1802 (lambda _
1803 ;; Mocha is undefined at build time
1804 (substitute* "Rakefile"
1805 (("#\\{Mocha::VERSION\\}") ,version))
1806 #t))
1807 (add-before 'check 'remove-failing-test
1808 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1809 (lambda _
1810 (delete-file "test/acceptance/stubbing_nil_test.rb")
1811 #t)))))
1812 (propagated-inputs
1813 `(("ruby-metaclass" ,ruby-metaclass)))
1814 (native-inputs
1815 `(("bundler" ,bundler)
1816 ("ruby-yard" ,ruby-yard)
1817 ("ruby-introspection" ,ruby-introspection)
1818 ("ruby-test-unit" ,ruby-test-unit)
1819 ("ruby-redcarpet" ,ruby-redcarpet)))
1820 (synopsis "Mocking and stubbing library for Ruby")
1821 (description
1822 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1823 allows mocking and stubbing of methods on real (non-mock) classes.")
1824 (home-page "http://gofreerange.com/mocha/docs")
1825 (license license:expat)))
1826
1827 (define-public ruby-mocha-on-bacon
1828 (package
1829 (name "ruby-mocha-on-bacon")
1830 (version "0.2.3")
1831 (source
1832 (origin
1833 (method url-fetch)
1834 (uri (rubygems-uri "mocha-on-bacon" version))
1835 (sha256
1836 (base32
1837 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
1838 (build-system ruby-build-system)
1839 (arguments
1840 ;; rubygems.org release missing tests
1841 '(#:tests? #f))
1842 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
1843 (synopsis "Mocha adapter for Bacon")
1844 (description
1845 "This package provides a Mocha adapter for Bacon, allowing you to use the
1846 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
1847 (home-page
1848 "https://github.com/alloy/mocha-on-bacon")
1849 (license license:expat)))
1850
1851 (define-public ruby-net-ssh
1852 (package
1853 (name "ruby-net-ssh")
1854 (version "4.2.0")
1855 (source (origin
1856 (method url-fetch)
1857 (uri (rubygems-uri "net-ssh" version))
1858 (sha256
1859 (base32
1860 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
1861 (build-system ruby-build-system)
1862 (native-inputs
1863 `(("bundler" ,bundler)
1864 ("ruby-mocha" ,ruby-mocha)
1865 ("ruby-test-unit" ,ruby-test-unit)))
1866 (synopsis "Ruby implementation of the SSH2 client protocol")
1867 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1868 client protocol. It allows you to write programs that invoke and interact
1869 with processes on remote servers, via SSH2.")
1870 (home-page "https://github.com/net-ssh/net-ssh")
1871 (license license:expat)))
1872
1873 (define-public ruby-net-scp
1874 (package
1875 (name "ruby-net-scp")
1876 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
1877 (version "1.2.2.rc2")
1878 (source
1879 (origin
1880 (method url-fetch)
1881 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
1882 version ".tar.gz"))
1883 (sha256
1884 (base32
1885 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
1886 (build-system ruby-build-system)
1887 (native-inputs
1888 `(("bundler" ,bundler)
1889 ("ruby-test-unit" ,ruby-test-unit)
1890 ("ruby-mocha" ,ruby-mocha)))
1891 (propagated-inputs
1892 `(("ruby-net-ssh" ,ruby-net-ssh)))
1893 (synopsis "Pure-Ruby SCP client library")
1894 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
1895 client protocol.")
1896 (home-page "https://github.com/net-ssh/net-scp")
1897 (license license:expat)))
1898
1899 (define-public ruby-minitest
1900 (package
1901 (name "ruby-minitest")
1902 (version "5.10.3")
1903 (source (origin
1904 (method url-fetch)
1905 (uri (rubygems-uri "minitest" version))
1906 (sha256
1907 (base32
1908 "05521clw19lrksqgvg2kmm025pvdhdaniix52vmbychrn2jm7kz2"))))
1909 (build-system ruby-build-system)
1910 (native-inputs
1911 `(("ruby-hoe" ,ruby-hoe)))
1912 (synopsis "Small test suite library for Ruby")
1913 (description "Minitest provides a complete suite of Ruby testing
1914 facilities supporting TDD, BDD, mocking, and benchmarking.")
1915 (home-page "https://github.com/seattlerb/minitest")
1916 (license license:expat)))
1917
1918 ;; This is the last release of Minitest 4, which is used by some packages.
1919 (define-public ruby-minitest-4
1920 (package (inherit ruby-minitest)
1921 (version "4.7.5")
1922 (source (origin
1923 (method url-fetch)
1924 (uri (rubygems-uri "minitest" version))
1925 (sha256
1926 (base32
1927 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1928 (arguments
1929 `(#:phases
1930 (modify-phases %standard-phases
1931 (add-after 'unpack 'remove-unsupported-method
1932 (lambda _
1933 (substitute* "Rakefile"
1934 (("self\\.rubyforge_name = .*") ""))
1935 #t))
1936 (add-after 'build 'exclude-failing-tests
1937 (lambda _
1938 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
1939 ;; Fixnum.
1940 (delete-file "test/minitest/test_minitest_spec.rb")
1941 #t)))))))
1942
1943 (define-public ruby-minitest-sprint
1944 (package
1945 (name "ruby-minitest-sprint")
1946 (version "1.1.0")
1947 (source (origin
1948 (method url-fetch)
1949 (uri (rubygems-uri "minitest-sprint" version))
1950 (sha256
1951 (base32
1952 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
1953 (build-system ruby-build-system)
1954 (native-inputs
1955 `(("ruby-hoe" ,ruby-hoe)
1956 ("ruby-minitest" ,ruby-minitest)))
1957 (synopsis "Fast test suite runner for minitest")
1958 (description "Minitest-sprint is a test runner for minitest that makes it
1959 easier to re-run individual failing tests.")
1960 (home-page "https://github.com/seattlerb/minitest-sprint")
1961 (license license:expat)))
1962
1963 (define-public ruby-minitest-bacon
1964 (package
1965 (name "ruby-minitest-bacon")
1966 (version "1.0.3")
1967 (source (origin
1968 (method url-fetch)
1969 (uri (rubygems-uri "minitest-bacon" version))
1970 (sha256
1971 (base32
1972 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
1973 (build-system ruby-build-system)
1974 (native-inputs
1975 `(("ruby-hoe" ,ruby-hoe)))
1976 (inputs
1977 `(("ruby-minitest" ,ruby-minitest)))
1978 (synopsis "Bacon compatibility library for minitest")
1979 (description "Minitest-bacon extends minitest with bacon-like
1980 functionality, making it easier to migrate test suites from bacon to minitest.")
1981 (home-page "https://github.com/seattlerb/minitest-bacon")
1982 (license license:expat)))
1983
1984 (define-public ruby-minitest-focus
1985 (package
1986 (name "ruby-minitest-focus")
1987 (version "1.1.2")
1988 (source
1989 (origin
1990 (method url-fetch)
1991 (uri (rubygems-uri "minitest-focus" version))
1992 (sha256
1993 (base32
1994 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1995 (build-system ruby-build-system)
1996 (propagated-inputs
1997 `(("ruby-minitest" ,ruby-minitest)))
1998 (native-inputs
1999 `(("ruby-hoe" ,ruby-hoe)))
2000 (synopsis "Allows a few specific tests to be focused on")
2001 (description
2002 "@code{minitest-focus} gives the ability focus on a few tests with ease
2003 without having to use command-line arguments. It introduces a @code{focus}
2004 class method for use in testing classes, specifying that the next defined test
2005 is to be run.")
2006 (home-page "https://github.com/seattlerb/minitest-focus")
2007 (license license:expat)))
2008
2009 (define-public ruby-minitest-pretty-diff
2010 ;; Use git reference because gem is out of date and does not contain testing
2011 ;; script. There are no releases on GitHub.
2012 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
2013 (package
2014 (name "ruby-minitest-pretty-diff")
2015 (version (string-append "0.1-1." (string-take commit 8)))
2016 (source (origin
2017 (method git-fetch)
2018 (uri (git-reference
2019 (url "https://github.com/adammck/minitest-pretty_diff.git")
2020 (commit commit)))
2021 (file-name (string-append name "-" version "-checkout"))
2022 (sha256
2023 (base32
2024 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
2025 (build-system ruby-build-system)
2026 (arguments
2027 `(#:phases
2028 (modify-phases %standard-phases
2029 (replace 'check
2030 (lambda _
2031 (zero? (system* "script/test")))))))
2032 (native-inputs
2033 `(("bundler" ,bundler)
2034 ("ruby-turn" ,ruby-turn)))
2035 (synopsis "Pretty-print hashes and arrays in MiniTest")
2036 (description
2037 "@code{minitest-pretty_diff} monkey-patches
2038 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
2039 diffing them. This makes it easier to spot differences between nested
2040 structures when tests fail.")
2041 (home-page "https://github.com/adammck/minitest-pretty_diff")
2042 (license license:expat))))
2043
2044 (define-public ruby-minitest-moar
2045 (package
2046 (name "ruby-minitest-moar")
2047 (version "0.0.4")
2048 (source
2049 (origin
2050 (method url-fetch)
2051 (uri (rubygems-uri "minitest-moar" version))
2052 (sha256
2053 (base32
2054 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
2055 (build-system ruby-build-system)
2056 (arguments
2057 `(#:phases
2058 (modify-phases %standard-phases
2059 (add-before 'check 'clean-dependencies
2060 (lambda _
2061 ;; Remove all gems defined in the Gemfile because these are not
2062 ;; truly needed.
2063 (substitute* "Gemfile"
2064 (("gem .*") ""))
2065 ;; Remove byebug as not needed to run tests.
2066 (substitute* "test/test_helper.rb"
2067 (("require 'byebug'") ""))
2068 #t)))))
2069 (native-inputs
2070 `(("bundler" ,bundler)
2071 ("ruby-minitest" ,ruby-minitest)))
2072 (synopsis "Extra features and changes to MiniTest")
2073 (description "@code{MiniTest Moar} add some additional features and
2074 changes some default behaviours in MiniTest. For instance, Moar replaces the
2075 MiniTest @code{Object#stub} with a global @code{stub} method.")
2076 (home-page "https://github.com/dockyard/minitest-moar")
2077 (license license:expat)))
2078
2079 (define-public ruby-minitest-bonus-assertions
2080 (package
2081 (name "ruby-minitest-bonus-assertions")
2082 (version "3.0")
2083 (source
2084 (origin
2085 (method url-fetch)
2086 (uri (rubygems-uri "minitest-bonus-assertions" version))
2087 (sha256
2088 (base32
2089 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
2090 (build-system ruby-build-system)
2091 (arguments
2092 `(#:phases
2093 (modify-phases %standard-phases
2094 (add-before 'check 'clean-dependencies
2095 (lambda _
2096 ;; Remove unneeded require statement that would entail another
2097 ;; dependency.
2098 (substitute* "test/minitest_config.rb"
2099 (("require 'minitest/bisect'") ""))
2100 #t)))))
2101 (native-inputs
2102 `(("ruby-hoe" ,ruby-hoe)
2103 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
2104 ("ruby-minitest-focus" ,ruby-minitest-focus)
2105 ("ruby-minitest-moar" ,ruby-minitest-moar)))
2106 (synopsis "Bonus assertions for @code{Minitest}")
2107 (description
2108 "Minitest bonus assertions provides extra MiniTest assertions. For
2109 instance, it provides @code{assert_true}, @code{assert_false} and
2110 @code{assert_set_equal}.")
2111 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
2112 (license license:expat)))
2113
2114 (define-public ruby-minitest-rg
2115 (package
2116 (name "ruby-minitest-rg")
2117 (version "5.2.0")
2118 (source
2119 (origin
2120 (method url-fetch)
2121 (uri (rubygems-uri "minitest-rg" version))
2122 (sha256
2123 (base32
2124 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
2125 (build-system ruby-build-system)
2126 (arguments
2127 ;; Some tests fail even outside Guix, so disable tests.
2128 ;; https://github.com/blowmage/minitest-rg/issues/12
2129 ;; https://github.com/blowmage/minitest-rg/pull/13
2130 `(#:tests? #f))
2131 (propagated-inputs
2132 `(("ruby-minitest" ,ruby-minitest)))
2133 (synopsis "Coloured output for Minitest")
2134 (description
2135 "@code{minitest-rg} changes the colour of the output from Minitest.")
2136 (home-page "http://blowmage.com/minitest-rg")
2137 (license license:expat)))
2138
2139 (define-public ruby-minitest-hooks
2140 (package
2141 (name "ruby-minitest-hooks")
2142 (version "1.4.2")
2143 (source
2144 (origin
2145 (method url-fetch)
2146 (uri (rubygems-uri "minitest-hooks" version))
2147 (sha256
2148 (base32
2149 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
2150 (build-system ruby-build-system)
2151 (arguments
2152 '(#:test-target "spec"))
2153 (native-inputs
2154 `(("ruby-sequel" ,ruby-sequel)
2155 ("ruby-sqlite3" ,ruby-sqlite3)))
2156 (synopsis "Hooks for the minitest framework")
2157 (description
2158 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
2159 @code{around_all} hooks for Minitest. This allows, for instance, running each
2160 suite of specs inside a database transaction, running each spec inside its own
2161 savepoint inside that transaction. This can significantly speed up testing
2162 for specs that share expensive database setup code.")
2163 (home-page "https://github.com/jeremyevans/minitest-hooks")
2164 (license license:expat)))
2165
2166 (define-public ruby-daemons
2167 (package
2168 (name "ruby-daemons")
2169 (version "1.2.5")
2170 (source (origin
2171 (method url-fetch)
2172 (uri (rubygems-uri "daemons" version))
2173 (sha256
2174 (base32
2175 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
2176 (build-system ruby-build-system)
2177 (arguments
2178 `(#:tests? #f)) ; no test suite
2179 (synopsis "Daemonize Ruby programs")
2180 (description "Daemons provides a way to wrap existing Ruby scripts to be
2181 run as a daemon and to be controlled by simple start/stop/restart commands.")
2182 (home-page "https://github.com/thuehlinger/daemons")
2183 (license license:expat)))
2184
2185 (define-public ruby-data_uri
2186 (package
2187 (name "ruby-data_uri")
2188 (version "0.1.0")
2189 (source
2190 (origin
2191 (method url-fetch)
2192 (uri (rubygems-uri "data_uri" version))
2193 (sha256
2194 (base32
2195 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
2196 (build-system ruby-build-system)
2197 (synopsis "URI class for parsing data URIs")
2198 (description
2199 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
2200 embedded inside a URI. The URI::Data class provides support for parsing these
2201 URIs using the normal URI.parse method.")
2202 (home-page "https://github.com/dball/data_uri")
2203 (license license:expat)))
2204
2205 (define-public ruby-git
2206 (package
2207 (name "ruby-git")
2208 (version "1.3.0")
2209 (source (origin
2210 (method url-fetch)
2211 (uri (rubygems-uri "git" version))
2212 (sha256
2213 (base32
2214 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
2215 (build-system ruby-build-system)
2216 (arguments
2217 `(#:tests? #f ; no tests
2218 #:phases (modify-phases %standard-phases
2219 (add-after 'install 'patch-git-binary
2220 (lambda* (#:key inputs outputs #:allow-other-keys)
2221 ;; Make the default git binary an absolute path to the
2222 ;; store.
2223 (let ((git (string-append (assoc-ref inputs "git")
2224 "/bin/git"))
2225 (config (string-append
2226 (assoc-ref outputs "out")
2227 "/lib/ruby/vendor_ruby/gems/git-"
2228 ,version "/lib/git/config.rb")))
2229 (substitute* (list config)
2230 (("'git'")
2231 (string-append "'" git "'")))
2232 #t))))))
2233 (inputs
2234 `(("git" ,git)))
2235 (synopsis "Ruby wrappers for Git")
2236 (description "Ruby/Git is a Ruby library that can be used to create, read
2237 and manipulate Git repositories by wrapping system calls to the git binary.")
2238 (home-page "https://github.com/schacon/ruby-git")
2239 (license license:expat)))
2240
2241 (define-public ruby-slop
2242 (package
2243 (name "ruby-slop")
2244 (version "4.5.0")
2245 (source (origin
2246 (method url-fetch)
2247 (uri (rubygems-uri "slop" version))
2248 (sha256
2249 (base32
2250 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
2251 (build-system ruby-build-system)
2252 (native-inputs
2253 `(("ruby-minitest" ,ruby-minitest)))
2254 (synopsis "Ruby command line option parser")
2255 (description "Slop provides a Ruby domain specific language for gathering
2256 options and parsing command line flags.")
2257 (home-page "https://github.com/leejarvis/slop")
2258 (license license:expat)))
2259
2260 (define-public ruby-slop-3
2261 (package (inherit ruby-slop)
2262 (version "3.6.0")
2263 (source (origin
2264 (method url-fetch)
2265 (uri (rubygems-uri "slop" version))
2266 (sha256
2267 (base32
2268 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
2269
2270 (define-public ruby-multipart-post
2271 (package
2272 (name "ruby-multipart-post")
2273 (version "2.0.0")
2274 (source (origin
2275 (method url-fetch)
2276 (uri (rubygems-uri "multipart-post" version))
2277 (sha256
2278 (base32
2279 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
2280 (build-system ruby-build-system)
2281 (native-inputs
2282 `(("bundler" ,bundler)))
2283 (synopsis "Multipart POST library for Ruby")
2284 (description "Multipart-Post Adds multipart POST capability to Ruby's
2285 net/http library.")
2286 (home-page "https://github.com/nicksieger/multipart-post")
2287 (license license:expat)))
2288
2289 (define-public ruby-multi-json
2290 (package
2291 (name "ruby-multi-json")
2292 (version "1.12.2")
2293 (source
2294 (origin
2295 (method url-fetch)
2296 (uri (rubygems-uri "multi_json" version))
2297 (sha256
2298 (base32
2299 "1raim9ddjh672m32psaa9niw67ywzjbxbdb8iijx3wv9k5b0pk2x"))))
2300 (build-system ruby-build-system)
2301 (arguments
2302 '(#:tests? #f)) ;; No testsuite included in the gem.
2303 (synopsis "Common interface to multiple JSON libraries for Ruby")
2304 (description
2305 "This package provides a common interface to multiple JSON libraries,
2306 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
2307 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
2308 (home-page "http://github.com/intridea/multi_json")
2309 (license license:expat)))
2310
2311 (define-public ruby-arel
2312 (package
2313 (name "ruby-arel")
2314 (version "8.0.0")
2315 (source (origin
2316 (method url-fetch)
2317 (uri (rubygems-uri "arel" version))
2318 (sha256
2319 (base32
2320 "0nw0qbc6ph625p6n3maqq9f527vz3nbl0hk72fbyka8jzsmplxzl"))))
2321 (build-system ruby-build-system)
2322 (arguments '(#:tests? #f)) ; no tests
2323 (home-page "https://github.com/rails/arel")
2324 (synopsis "SQL AST manager for Ruby")
2325 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
2326 Ruby. It simplifies the generation of complex SQL queries and adapts to
2327 various relational database implementations.")
2328 (license license:expat)))
2329
2330 (define-public ruby-minitar
2331 ;; We package from the GitHub source to fix the security issue reported at
2332 ;; https://github.com/halostatue/minitar/issues/16.
2333 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
2334 (package
2335 (name "ruby-minitar")
2336 (version (string-append "0.5.4-1." (string-take commit 8)))
2337 (source
2338 (origin
2339 (method git-fetch)
2340 (uri (git-reference
2341 (url "https://github.com/halostatue/minitar.git")
2342 (commit commit)))
2343 (file-name (string-append name "-" version "-checkout"))
2344 (sha256
2345 (base32
2346 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
2347 (build-system ruby-build-system)
2348 (arguments
2349 '(#:tests? #f)) ; missing a gemspec
2350 (synopsis "Ruby library and utility for handling tar archives")
2351 (description
2352 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
2353 that provides the ability to deal with POSIX tar archive files.")
2354 (home-page "http://www.github.com/atoulme/minitar")
2355 (license (list license:gpl2+ license:ruby)))))
2356
2357 (define-public ruby-mini-portile
2358 (package
2359 (name "ruby-mini-portile")
2360 (version "0.6.2")
2361 (source
2362 (origin
2363 (method url-fetch)
2364 (uri (rubygems-uri "mini_portile" version))
2365 (sha256
2366 (base32
2367 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
2368 (build-system ruby-build-system)
2369 (arguments
2370 '(#:tests? #f)) ; tests require network access
2371 (synopsis "Ports system for Ruby developers")
2372 (description "Mini-portile is a port/recipe system for Ruby developers.
2373 It provides a standard way to compile against specific versions of libraries
2374 to reproduce user environments.")
2375 (home-page "https://github.com/flavorjones/mini_portile")
2376 (license license:expat)))
2377
2378 (define-public ruby-mini-portile-2
2379 (package (inherit ruby-mini-portile)
2380 (version "2.2.0")
2381 (source (origin
2382 (method url-fetch)
2383 (uri (rubygems-uri "mini_portile2" version))
2384 (sha256
2385 (base32
2386 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
2387
2388 (define-public ruby-nokogiri
2389 (package
2390 (name "ruby-nokogiri")
2391 (version "1.8.0")
2392 (source (origin
2393 (method url-fetch)
2394 (uri (rubygems-uri "nokogiri" version))
2395 (sha256
2396 (base32
2397 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
2398 (build-system ruby-build-system)
2399 (arguments
2400 ;; Tests fail because Nokogiri can only test with an installed extension,
2401 ;; and also because many test framework dependencies are missing.
2402 `(#:tests? #f
2403 #:gem-flags (list "--" "--use-system-libraries"
2404 (string-append "--with-xml2-include="
2405 (assoc-ref %build-inputs "libxml2")
2406 "/include/libxml2" ))
2407 #:phases
2408 (modify-phases %standard-phases
2409 (add-before 'build 'patch-extconf
2410 ;; 'pkg-config' is not included in the GEM_PATH during
2411 ;; installation, so we add it directly to the load path.
2412 (lambda* (#:key inputs #:allow-other-keys)
2413 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
2414 (substitute* "ext/nokogiri/extconf.rb"
2415 (("gem 'pkg-config'.*")
2416 (string-append "$:.unshift '"
2417 pkg-config "/lib/ruby/vendor_ruby"
2418 "/gems/pkg-config-"
2419 ,(package-version ruby-pkg-config)
2420 "/lib'\n"))))
2421 #t)))))
2422 (native-inputs
2423 `(("ruby-hoe" ,ruby-hoe)))
2424 (inputs
2425 `(("zlib" ,zlib)
2426 ("libxml2" ,libxml2)
2427 ("libxslt" ,libxslt)))
2428 (propagated-inputs
2429 `(("ruby-mini-portile" ,ruby-mini-portile-2)
2430 ("ruby-pkg-config" ,ruby-pkg-config)))
2431 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
2432 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
2433 both CSS3 selector and XPath 1.0 support.")
2434 (home-page "http://www.nokogiri.org/")
2435 (license license:expat)))
2436
2437 (define-public ruby-method-source
2438 (package
2439 (name "ruby-method-source")
2440 (version "0.9.0")
2441 (source
2442 (origin
2443 (method url-fetch)
2444 (uri (rubygems-uri "method_source" version))
2445 (sha256
2446 (base32
2447 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
2448 (build-system ruby-build-system)
2449 (arguments
2450 `(#:test-target "spec"))
2451 (native-inputs
2452 `(("ruby-rspec" ,ruby-rspec)
2453 ("git" ,git)))
2454 (synopsis "Retrieve the source code for Ruby methods")
2455 (description "Method_source retrieves the source code for Ruby methods.
2456 Additionally, it can extract source code from Proc and Lambda objects or just
2457 extract comments.")
2458 (home-page "https://github.com/banister/method_source")
2459 (license license:expat)))
2460
2461 (define-public ruby-coderay
2462 (package
2463 (name "ruby-coderay")
2464 (version "1.1.2")
2465 (source
2466 (origin
2467 (method url-fetch)
2468 (uri (rubygems-uri "coderay" version))
2469 (sha256
2470 (base32
2471 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
2472 (build-system ruby-build-system)
2473 (arguments
2474 '(#:tests? #f)) ; missing test files
2475 (synopsis "Ruby syntax highlighting library")
2476 (description "Coderay is a Ruby library that provides syntax highlighting
2477 for select languages.")
2478 (home-page "http://coderay.rubychan.de")
2479 (license license:expat)))
2480
2481 (define-public ruby-progress_bar
2482 (package
2483 (name "ruby-progress_bar")
2484 (version "1.1.0")
2485 (source
2486 (origin
2487 (method url-fetch)
2488 (uri (rubygems-uri "progress_bar" version))
2489 (sha256
2490 (base32
2491 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
2492 (build-system ruby-build-system)
2493 (arguments
2494 '(#:test-target "spec"))
2495 (propagated-inputs
2496 `(("ruby-highline" ,ruby-highline)
2497 ("ruby-options" ,ruby-options)))
2498 (native-inputs
2499 `(("bundler" ,bundler)
2500 ("ruby-rspec" ,ruby-rspec)
2501 ("ruby-timecop" ,ruby-timecop)))
2502 (synopsis
2503 "Ruby library for displaying progress bars")
2504 (description
2505 "ProgressBar is a simple library for displaying progress bars. The
2506 maximum value is configurable, and additional information can be displayed
2507 like the percentage completion, estimated time remaining, elapsed time and
2508 rate.")
2509 (home-page "https://github.com/paul/progress_bar")
2510 (license license:wtfpl2)))
2511
2512 (define-public ruby-pry
2513 (package
2514 (name "ruby-pry")
2515 (version "0.11.3")
2516 (source
2517 (origin
2518 (method url-fetch)
2519 (uri (rubygems-uri "pry" version))
2520 (sha256
2521 (base32
2522 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
2523 (build-system ruby-build-system)
2524 (arguments
2525 '(#:tests? #f)) ; no tests
2526 (propagated-inputs
2527 `(("ruby-coderay" ,ruby-coderay)
2528 ("ruby-method-source" ,ruby-method-source)))
2529 (synopsis "Ruby REPL")
2530 (description "Pry is an IRB alternative and runtime developer console for
2531 Ruby. It features syntax highlighting, a plugin architecture, runtime
2532 invocation, and source and documentation browsing.")
2533 (home-page "https://pryrepl.org")
2534 (license license:expat)))
2535
2536 (define-public ruby-guard
2537 (package
2538 (name "ruby-guard")
2539 (version "2.13.0")
2540 (source (origin
2541 (method url-fetch)
2542 ;; The gem does not include a Rakefile, nor does it contain a
2543 ;; gemspec file, nor does it come with the tests. This is why
2544 ;; we fetch the tarball from Github.
2545 (uri (string-append "https://github.com/guard/guard/archive/v"
2546 version ".tar.gz"))
2547 (file-name (string-append name "-" version ".tar.gz"))
2548 (sha256
2549 (base32
2550 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2551 (build-system ruby-build-system)
2552 (arguments
2553 `(#:tests? #f ; tests require cucumber
2554 #:phases
2555 (modify-phases %standard-phases
2556 (add-after 'unpack 'remove-git-ls-files
2557 (lambda* (#:key outputs #:allow-other-keys)
2558 (substitute* "guard.gemspec"
2559 (("git ls-files -z") "find . -type f -print0"))
2560 #t))
2561 (replace 'build
2562 (lambda _
2563 (zero? (system* "gem" "build" "guard.gemspec")))))))
2564 (propagated-inputs
2565 `(("ruby-formatador" ,ruby-formatador)
2566 ("ruby-listen" ,ruby-listen)
2567 ("ruby-lumberjack" ,ruby-lumberjack)
2568 ("ruby-nenv" ,ruby-nenv)
2569 ("ruby-notiffany" ,ruby-notiffany)
2570 ("ruby-pry" ,ruby-pry)
2571 ("ruby-shellany" ,ruby-shellany)
2572 ("ruby-thor" ,ruby-thor)))
2573 (native-inputs
2574 `(("bundler" ,bundler)
2575 ("ruby-rspec" ,ruby-rspec)))
2576 (synopsis "Tool to handle events on file system modifications")
2577 (description
2578 "Guard is a command line tool to easily handle events on file system
2579 modifications. Guard automates various tasks by running custom rules whenever
2580 file or directories are modified.")
2581 (home-page "http://guardgem.org/")
2582 (license license:expat)))
2583
2584 (define-public ruby-thread-safe
2585 (package
2586 (name "ruby-thread-safe")
2587 (version "0.3.6")
2588 (source
2589 (origin
2590 (method url-fetch)
2591 (uri (rubygems-uri "thread_safe" version))
2592 (sha256
2593 (base32
2594 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
2595 (build-system ruby-build-system)
2596 (arguments
2597 '(#:tests? #f)) ; needs simplecov, among others
2598 (synopsis "Thread-safe utilities for Ruby")
2599 (description "The thread_safe library provides thread-safe collections and
2600 utilities for Ruby.")
2601 (home-page "https://github.com/ruby-concurrency/thread_safe")
2602 (license license:asl2.0)))
2603
2604 (define-public ruby-tzinfo
2605 (package
2606 (name "ruby-tzinfo")
2607 (version "1.2.4")
2608 (source
2609 (origin
2610 (method url-fetch)
2611 (uri (rubygems-uri "tzinfo" version))
2612 (sha256
2613 (base32
2614 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
2615 (build-system ruby-build-system)
2616 (propagated-inputs
2617 `(("ruby-thread-safe" ,ruby-thread-safe)))
2618 (synopsis "Time zone library for Ruby")
2619 (description "TZInfo is a Ruby library that provides daylight savings
2620 aware transformations between times in different time zones.")
2621 (home-page "https://tzinfo.github.io")
2622 (license license:expat)))
2623
2624 (define-public ruby-tzinfo-data
2625 (package
2626 (name "ruby-tzinfo-data")
2627 (version "1.2017.3")
2628 (source
2629 (origin
2630 (method url-fetch)
2631 ;; Download from GitHub because the rubygems version does not contain
2632 ;; Rakefile or tests.
2633 (uri (string-append
2634 "https://github.com/tzinfo/tzinfo-data/archive/v"
2635 version
2636 ".tar.gz"))
2637 (file-name (string-append name "-" version ".tar.gz"))
2638 (sha256
2639 (base32
2640 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
2641 ;; Remove the known test failure.
2642 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2643 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2644 (patches (search-patches
2645 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2646 (build-system ruby-build-system)
2647 (propagated-inputs
2648 `(("ruby-tzinfo" ,ruby-tzinfo)))
2649 (synopsis "Data from the IANA Time Zone database")
2650 (description
2651 "This library provides @code{TZInfo::Data}, which contains data from the
2652 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2653 (home-page "https://tzinfo.github.io")
2654 (license license:expat)))
2655
2656 (define-public ruby-rb-inotify
2657 (package
2658 (name "ruby-rb-inotify")
2659 (version "0.9.10")
2660 (source
2661 (origin
2662 (method url-fetch)
2663 (uri (rubygems-uri "rb-inotify" version))
2664 (sha256
2665 (base32
2666 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
2667 (build-system ruby-build-system)
2668 (arguments
2669 '(#:tests? #f ; there are no tests
2670 #:phases
2671 (modify-phases %standard-phases
2672 ;; Building the gemspec with rake is not working here since it is
2673 ;; generated with Jeweler. It is also unnecessary because the
2674 ;; existing gemspec does not use any development tools to generate a
2675 ;; list of files.
2676 (replace 'build
2677 (lambda _
2678 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2679 (propagated-inputs
2680 `(("ruby-ffi" ,ruby-ffi)))
2681 (native-inputs
2682 `(("ruby-yard" ,ruby-yard)))
2683 (synopsis "Ruby wrapper for Linux's inotify")
2684 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2685 kernel subsystem for monitoring changes to files and directories.")
2686 (home-page "https://github.com/nex3/rb-inotify")
2687 (license license:expat)))
2688
2689 (define-public ruby-pry-editline
2690 (package
2691 (name "ruby-pry-editline")
2692 (version "1.1.2")
2693 (source (origin
2694 (method url-fetch)
2695 (uri (rubygems-uri "pry-editline" version))
2696 (sha256
2697 (base32
2698 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2699 (build-system ruby-build-system)
2700 (arguments `(#:tests? #f)) ; no tests included
2701 (native-inputs
2702 `(("bundler" ,bundler)))
2703 (synopsis "Open the current REPL line in an editor")
2704 (description
2705 "This gem provides a plugin for the Ruby REPL to enable opening the
2706 current line in an external editor.")
2707 (home-page "https://github.com/tpope/pry-editline")
2708 (license license:expat)))
2709
2710 (define-public ruby-sdoc
2711 (package
2712 (name "ruby-sdoc")
2713 (version "0.4.2")
2714 (source (origin
2715 (method url-fetch)
2716 (uri (rubygems-uri "sdoc" version))
2717 (sha256
2718 (base32
2719 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
2720 (build-system ruby-build-system)
2721 (arguments
2722 `(#:phases
2723 (modify-phases %standard-phases
2724 (add-before 'check 'set-rubylib-and-patch-gemfile
2725 (lambda _
2726 (setenv "RUBYLIB" "lib")
2727 (substitute* "sdoc.gemspec"
2728 (("s.add_runtime_dependency.*") "\n")
2729 (("s.add_dependency.*") "\n"))
2730 (substitute* "Gemfile"
2731 (("gem \"rake\".*")
2732 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
2733 #t)))))
2734 (propagated-inputs
2735 `(("ruby-json" ,ruby-json)))
2736 (native-inputs
2737 `(("bundler" ,bundler)
2738 ("ruby-minitest" ,ruby-minitest)
2739 ("ruby-hoe" ,ruby-hoe)))
2740 (synopsis "Generate searchable RDoc documentation")
2741 (description
2742 "SDoc is an RDoc documentation generator to build searchable HTML
2743 documentation for Ruby code.")
2744 (home-page "https://github.com/voloko/sdoc")
2745 (license license:expat)))
2746
2747 (define-public ruby-tins
2748 (package
2749 (name "ruby-tins")
2750 (version "1.15.0")
2751 (source (origin
2752 (method url-fetch)
2753 (uri (rubygems-uri "tins" version))
2754 (sha256
2755 (base32
2756 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
2757 (build-system ruby-build-system)
2758 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2759 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2760 ;; the gemspec.
2761 (arguments
2762 `(#:tests? #f ; there are no tests
2763 #:phases
2764 (modify-phases %standard-phases
2765 (replace 'build
2766 (lambda _
2767 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2768 ;; causes an error.
2769 (substitute* "tins.gemspec"
2770 (("\"lib/spruz\", ") ""))
2771 (zero? (system* "gem" "build" "tins.gemspec")))))))
2772 (synopsis "Assorted tools for Ruby")
2773 (description "Tins is a Ruby library providing assorted tools.")
2774 (home-page "https://github.com/flori/tins")
2775 (license license:expat)))
2776
2777 (define-public ruby-gem-hadar
2778 (package
2779 (name "ruby-gem-hadar")
2780 (version "1.9.1")
2781 (source (origin
2782 (method url-fetch)
2783 (uri (rubygems-uri "gem_hadar" version))
2784 (sha256
2785 (base32
2786 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
2787 (build-system ruby-build-system)
2788 ;; This gem needs itself at development time. We disable rebuilding of the
2789 ;; gemspec to avoid this loop.
2790 (arguments
2791 `(#:tests? #f ; there are no tests
2792 #:phases
2793 (modify-phases %standard-phases
2794 (replace 'build
2795 (lambda _
2796 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2797 (propagated-inputs
2798 `(("git" ,git)
2799 ("ruby-tins" ,ruby-tins)
2800 ("ruby-yard" ,ruby-yard)))
2801 (synopsis "Library for the development of Ruby gems")
2802 (description
2803 "This library contains some useful functionality to support the
2804 development of Ruby gems.")
2805 (home-page "https://github.com/flori/gem_hadar")
2806 (license license:expat)))
2807
2808 (define-public ruby-minitest-tu-shim
2809 (package
2810 (name "ruby-minitest-tu-shim")
2811 (version "1.3.3")
2812 (source (origin
2813 (method url-fetch)
2814 (uri (rubygems-uri "minitest_tu_shim" version))
2815 (sha256
2816 (base32
2817 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2818 (build-system ruby-build-system)
2819 (arguments
2820 `(#:phases
2821 (modify-phases %standard-phases
2822 (add-after 'unpack 'fix-test-include-path
2823 (lambda* (#:key inputs #:allow-other-keys)
2824 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
2825 (substitute* "Rakefile"
2826 (("Hoe\\.add_include_dirs .*")
2827 (string-append "Hoe.add_include_dirs \""
2828 minitest "/lib/ruby/vendor_ruby"
2829 "/gems/minitest-"
2830 ,(package-version ruby-minitest-4)
2831 "/lib" "\""))))
2832 #t))
2833 (add-before 'check 'fix-test-assumptions
2834 (lambda _
2835 ;; The test output includes the file name, so a couple of tests
2836 ;; fail. Changing the regular expressions slightly fixes this
2837 ;; problem.
2838 (substitute* "test/test_mini_test.rb"
2839 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2840 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2841 (("gsub\\(/.*, 'FILE:LINE'\\)")
2842 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2843 #t)))))
2844 (propagated-inputs
2845 `(("ruby-minitest-4" ,ruby-minitest-4)))
2846 (native-inputs
2847 `(("ruby-hoe" ,ruby-hoe)))
2848 (synopsis "Adapter library between minitest and test/unit")
2849 (description
2850 "This library bridges the gap between the small and fast minitest and
2851 Ruby's large and slower test/unit.")
2852 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2853 (license license:expat)))
2854
2855 (define-public ruby-term-ansicolor
2856 (package
2857 (name "ruby-term-ansicolor")
2858 (version "1.6.0")
2859 (source (origin
2860 (method url-fetch)
2861 (uri (rubygems-uri "term-ansicolor" version))
2862 (sha256
2863 (base32
2864 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
2865 (build-system ruby-build-system)
2866 ;; Rebuilding the gemspec seems to require git, even though this is not a
2867 ;; git repository, so we just build the gem from the existing gemspec.
2868 (arguments
2869 `(#:phases
2870 (modify-phases %standard-phases
2871 (replace 'build
2872 (lambda _
2873 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2874 (propagated-inputs
2875 `(("ruby-tins" ,ruby-tins)))
2876 (native-inputs
2877 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2878 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2879 (synopsis "Ruby library to control the attributes of terminal output")
2880 (description
2881 "This Ruby library uses ANSI escape sequences to control the attributes
2882 of terminal output.")
2883 (home-page "https://flori.github.io/term-ansicolor/")
2884 ;; There is no mention of the "or later" clause.
2885 (license license:gpl2)))
2886
2887 (define-public ruby-pstree
2888 (package
2889 (name "ruby-pstree")
2890 (version "0.1.0")
2891 (source (origin
2892 (method url-fetch)
2893 (uri (rubygems-uri "pstree" version))
2894 (sha256
2895 (base32
2896 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2897 (build-system ruby-build-system)
2898 (native-inputs
2899 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2900 ("bundler" ,bundler)))
2901 (synopsis "Create a process tree data structure")
2902 (description
2903 "This library uses the output of the @code{ps} command to create a
2904 process tree data structure for the current host.")
2905 (home-page "https://github.com/flori/pstree")
2906 ;; There is no mention of the "or later" clause.
2907 (license license:gpl2)))
2908
2909 (define-public ruby-utils
2910 (package
2911 (name "ruby-utils")
2912 (version "0.9.0")
2913 (source (origin
2914 (method url-fetch)
2915 (uri (rubygems-uri "utils" version))
2916 (sha256
2917 (base32
2918 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
2919 (build-system ruby-build-system)
2920 (propagated-inputs
2921 `(("ruby-tins" ,ruby-tins)
2922 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2923 ("ruby-pstree" ,ruby-pstree)
2924 ("ruby-pry-editline" ,ruby-pry-editline)))
2925 (native-inputs
2926 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2927 ("bundler" ,bundler)))
2928 (synopsis "Command line tools for working with Ruby")
2929 (description
2930 "This package provides assorted command line tools that may be useful
2931 when working with Ruby code.")
2932 (home-page "https://github.com/flori/utils")
2933 ;; There is no mention of the "or later" clause.
2934 (license license:gpl2)))
2935
2936 (define-public ruby-json
2937 (package
2938 (name "ruby-json")
2939 (version "2.1.0")
2940 (source
2941 (origin
2942 (method url-fetch)
2943 (uri (rubygems-uri "json" version))
2944 (sha256
2945 (base32
2946 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
2947 (build-system ruby-build-system)
2948 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2949 (synopsis "JSON library for Ruby")
2950 (description "This Ruby library provides a JSON implementation written as
2951 a native C extension.")
2952 (home-page "http://json-jruby.rubyforge.org/")
2953 (license (list license:ruby license:gpl2)))) ; GPL2 only
2954
2955 (define-public ruby-json-pure
2956 (package
2957 (name "ruby-json-pure")
2958 (version "2.1.0")
2959 (source (origin
2960 (method url-fetch)
2961 (uri (rubygems-uri "json_pure" version))
2962 (sha256
2963 (base32
2964 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
2965 (build-system ruby-build-system)
2966 (arguments
2967 `(#:phases
2968 (modify-phases %standard-phases
2969 (add-after 'unpack 'fix-rakefile
2970 (lambda _
2971 (substitute* "Rakefile"
2972 ;; Since this is not a git repository, do not call 'git'.
2973 (("`git ls-files`") "`find . -type f |sort`")
2974 ;; Loosen dependency constraint.
2975 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
2976 #t))
2977 (add-after 'replace-git-ls-files 'regenerate-gemspec
2978 (lambda _
2979 ;; Regenerate gemspec so loosened dependency constraints are
2980 ;; propagated.
2981 (zero? (system* "rake" "gemspec")))))))
2982 (native-inputs
2983 `(("bundler" ,bundler)
2984 ("ragel" ,ragel)
2985 ("ruby-simplecov" ,ruby-simplecov)
2986 ("ruby-test-unit" ,ruby-test-unit)))
2987 (synopsis "JSON implementation in pure Ruby")
2988 (description
2989 "This package provides a JSON implementation written in pure Ruby.")
2990 (home-page "https://flori.github.com/json")
2991 (license license:ruby)))
2992
2993 ;; Even though this package only provides bindings for a Mac OSX API it is
2994 ;; required by "ruby-listen" at runtime.
2995 (define-public ruby-rb-fsevent
2996 (package
2997 (name "ruby-rb-fsevent")
2998 (version "0.10.3")
2999 (source (origin
3000 (method url-fetch)
3001 (uri (rubygems-uri "rb-fsevent" version))
3002 (sha256
3003 (base32
3004 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
3005 (build-system ruby-build-system)
3006 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
3007 ;; "listen", which needs "rb-fsevent" at runtime.
3008 (arguments `(#:tests? #f))
3009 (synopsis "FSEvents API with signals catching")
3010 (description
3011 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
3012 (home-page "https://rubygems.org/gems/rb-fsevent")
3013 (license license:expat)))
3014
3015 (define-public ruby-listen
3016 (package
3017 (name "ruby-listen")
3018 (version "3.1.5")
3019 (source
3020 (origin
3021 (method url-fetch)
3022 (uri (rubygems-uri "listen" version))
3023 (sha256
3024 (base32
3025 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
3026 (build-system ruby-build-system)
3027 (arguments '(#:tests? #f)) ; no tests
3028 (propagated-inputs
3029 `(("ruby-rb-inotify" ,ruby-rb-inotify)
3030 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
3031 (synopsis "Listen to file modifications")
3032 (description "The Listen gem listens to file modifications and notifies
3033 you about the changes.")
3034 (home-page "https://github.com/guard/listen")
3035 (license license:expat)))
3036
3037 (define-public ruby-activesupport
3038 (package
3039 (name "ruby-activesupport")
3040 (version "5.2.1")
3041 (source
3042 (origin
3043 (method url-fetch)
3044 (uri (rubygems-uri "activesupport" version))
3045 (sha256
3046 (base32
3047 "0ziy6xk31k4fs115cdkba1ys4i8nzcyri7a2jig7nx7k5h7li6l2"))))
3048 (build-system ruby-build-system)
3049 (arguments
3050 `(#:phases
3051 (modify-phases %standard-phases
3052 (replace 'check
3053 (lambda _
3054 ;; There is no tests, instead attempt to load the library.
3055 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
3056 (propagated-inputs
3057 `(("ruby-concurrent" ,ruby-concurrent)
3058 ("ruby-i18n" ,ruby-i18n)
3059 ("ruby-minitest" ,ruby-minitest)
3060 ("ruby-tzinfo" ,ruby-tzinfo)
3061 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
3062 (synopsis "Ruby on Rails utility library")
3063 (description "ActiveSupport is a toolkit of support libraries and Ruby
3064 core extensions extracted from the Rails framework. It includes support for
3065 multibyte strings, internationalization, time zones, and testing.")
3066 (home-page "http://www.rubyonrails.org")
3067 (license license:expat)))
3068
3069 (define-public ruby-crass
3070 (package
3071 (name "ruby-crass")
3072 (version "1.0.4")
3073 (source (origin
3074 (method url-fetch)
3075 (uri (rubygems-uri "crass" version))
3076 (sha256
3077 (base32
3078 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
3079 (build-system ruby-build-system)
3080 (native-inputs
3081 `(("bundler" ,bundler)
3082 ("ruby-minitest" ,ruby-minitest)))
3083 (synopsis "Pure Ruby CSS parser")
3084 (description
3085 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
3086 (home-page "https://github.com/rgrove/crass/")
3087 (license license:expat)))
3088
3089 (define-public ruby-nokogumbo
3090 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
3091 (package
3092 (name "ruby-nokogumbo")
3093 (version (string-append "1.4.7-1." (string-take commit 8)))
3094 (source (origin
3095 ;; We use the git reference, because there's no Rakefile in the
3096 ;; published gem and the tarball on Github is outdated.
3097 (method git-fetch)
3098 (uri (git-reference
3099 (url "https://github.com/rubys/nokogumbo.git")
3100 (commit "d56f954d20a")))
3101 (file-name (string-append name "-" version "-checkout"))
3102 (sha256
3103 (base32
3104 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
3105 (build-system ruby-build-system)
3106 (arguments
3107 `(#:modules ((guix build ruby-build-system)
3108 (guix build utils)
3109 (ice-9 rdelim))
3110 #:phases
3111 (modify-phases %standard-phases
3112 (add-after 'unpack 'build-gemspec
3113 (lambda _
3114 (substitute* "Rakefile"
3115 ;; Build Makefile even without a copy of gumbo-parser sources
3116 (("'gumbo-parser/src',") "")
3117 ;; We don't bundle gumbo-parser sources
3118 (("'gumbo-parser/src/\\*',") "")
3119 (("'gumbo-parser/visualc/include/\\*',") "")
3120 ;; The definition of SOURCES will be cut in gemspec, and
3121 ;; "FileList" will be undefined.
3122 (("SOURCES \\+ FileList\\[")
3123 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
3124
3125 ;; Copy the Rakefile and cut out the gemspec.
3126 (copy-file "Rakefile" ".gemspec")
3127 (with-atomic-file-replacement ".gemspec"
3128 (lambda (in out)
3129 (let loop ((line (read-line in 'concat))
3130 (skipping? #t))
3131 (if (eof-object? line)
3132 #t
3133 (let ((skip-next? (if skipping?
3134 (not (string-prefix? "SPEC =" line))
3135 (string-prefix? "end" line))))
3136 (when (or (not skipping?)
3137 (and skipping? (not skip-next?)))
3138 (format #t "~a" line)
3139 (display line out))
3140 (loop (read-line in 'concat) skip-next?))))))
3141 #t)))))
3142 (inputs
3143 `(("gumbo-parser" ,gumbo-parser)))
3144 (propagated-inputs
3145 `(("ruby-nokogiri" ,ruby-nokogiri)))
3146 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
3147 (description
3148 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
3149 access the result as a Nokogiri parsed document.")
3150 (home-page "https://github.com/rubys/nokogumbo/")
3151 (license license:asl2.0))))
3152
3153 (define-public ruby-sanitize
3154 (package
3155 (name "ruby-sanitize")
3156 (version "4.6.3")
3157 (source (origin
3158 (method url-fetch)
3159 ;; The gem does not include the Rakefile, so we download the
3160 ;; release tarball from Github.
3161 (uri (string-append "https://github.com/rgrove/"
3162 "sanitize/archive/v" version ".tar.gz"))
3163 (file-name (string-append name "-" version ".tar.gz"))
3164 (sha256
3165 (base32
3166 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
3167 (build-system ruby-build-system)
3168 (propagated-inputs
3169 `(("ruby-crass" ,ruby-crass)
3170 ("ruby-nokogiri" ,ruby-nokogiri)
3171 ("ruby-nokogumbo" ,ruby-nokogumbo)))
3172 (native-inputs
3173 `(("bundler" ,bundler)
3174 ("ruby-minitest" ,ruby-minitest)
3175 ("ruby-redcarpet" ,ruby-redcarpet)
3176 ("ruby-yard" ,ruby-yard)))
3177 (synopsis "Whitelist-based HTML and CSS sanitizer")
3178 (description
3179 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
3180 acceptable elements, attributes, and CSS properties, Sanitize will remove all
3181 unacceptable HTML and/or CSS from a string.")
3182 (home-page "https://github.com/rgrove/sanitize/")
3183 (license license:expat)))
3184
3185 (define-public ruby-ox
3186 (package
3187 (name "ruby-ox")
3188 (version "2.6.0")
3189 (source
3190 (origin
3191 (method url-fetch)
3192 (uri (rubygems-uri "ox" version))
3193 (sha256
3194 (base32
3195 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
3196 (build-system ruby-build-system)
3197 (arguments
3198 '(#:tests? #f)) ; no tests
3199 (synopsis "Optimized XML library for Ruby")
3200 (description
3201 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
3202 written as a native C extension. It was designed to be an alternative to
3203 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
3204 alternative to Marshal for Object serialization. ")
3205 (home-page "http://www.ohler.com/ox")
3206 (license license:expat)))
3207
3208 (define-public ruby-redcloth
3209 (package
3210 (name "ruby-redcloth")
3211 (version "4.3.2")
3212 (source (origin
3213 (method url-fetch)
3214 (uri (rubygems-uri "RedCloth" version))
3215 (sha256
3216 (base32
3217 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
3218 (build-system ruby-build-system)
3219 (arguments
3220 `(#:tests? #f ; no tests
3221 #:phases
3222 (modify-phases %standard-phases
3223 ;; Redcloth has complicated rake tasks to build various versions for
3224 ;; multiple targets using RVM. We don't want this so we just use the
3225 ;; existing gemspec.
3226 (replace 'build
3227 (lambda _
3228 (zero? (system* "gem" "build" "redcloth.gemspec")))))))
3229 (native-inputs
3230 `(("bundler" ,bundler)
3231 ("ruby-diff-lcs" ,ruby-diff-lcs)
3232 ("ruby-rspec-2" ,ruby-rspec-2)))
3233 (synopsis "Textile markup language parser for Ruby")
3234 (description
3235 "RedCloth is a Ruby parser for the Textile markup language.")
3236 (home-page "http://redcloth.org")
3237 (license license:expat)))
3238
3239 (define-public ruby-pg
3240 (package
3241 (name "ruby-pg")
3242 (version "0.21.0")
3243 (source
3244 (origin
3245 (method url-fetch)
3246 (uri (rubygems-uri "pg" version))
3247 (sha256
3248 (base32
3249 "00vhasqwc4f98qb4wxqn2h07fjwzhp5lwyi41j2gndi2g02wrdqh"))))
3250 (build-system ruby-build-system)
3251 (arguments
3252 '(#:test-target "spec"))
3253 (native-inputs
3254 `(("ruby-rake-compiler" ,ruby-rake-compiler)
3255 ("ruby-hoe" ,ruby-hoe)
3256 ("ruby-rspec" ,ruby-rspec)))
3257 (inputs
3258 `(("postgresql" ,postgresql-9.6)))
3259 (synopsis "Ruby interface to PostgreSQL")
3260 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
3261 with PostgreSQL 8.4 and later.")
3262 (home-page "https://bitbucket.org/ged/ruby-pg")
3263 (license license:ruby)))
3264
3265 (define-public ruby-byebug
3266 (package
3267 (name "ruby-byebug")
3268 (version "9.0.6")
3269 (source
3270 (origin
3271 (method url-fetch)
3272 (uri (rubygems-uri "byebug" version))
3273 (sha256
3274 (base32
3275 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
3276 (build-system ruby-build-system)
3277 (arguments
3278 '(#:tests? #f)) ; no tests
3279 (synopsis "Debugger for Ruby 2")
3280 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
3281 TracePoint C API for execution control and the Debug Inspector C API for call
3282 stack navigation. The core component provides support that front-ends can
3283 build on. It provides breakpoint handling and bindings for stack frames among
3284 other things and it comes with a command line interface.")
3285 (home-page "https://github.com/deivid-rodriguez/byebug")
3286 (license license:bsd-2)))
3287
3288 (define-public ruby-netrc
3289 (package
3290 (name "ruby-netrc")
3291 (version "0.11.0")
3292 (source (origin
3293 (method url-fetch)
3294 (uri (rubygems-uri "netrc" version))
3295 (sha256
3296 (base32
3297 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
3298 (build-system ruby-build-system)
3299 (arguments
3300 `(#:phases
3301 (modify-phases %standard-phases
3302 (replace 'check
3303 ;; There is no Rakefile and minitest can only run one file at once,
3304 ;; so we have to iterate over all test files.
3305 (lambda _
3306 (and (map (lambda (file)
3307 (zero? (system* "ruby" "-Itest" file)))
3308 (find-files "./test" "test_.*\\.rb"))))))))
3309 (native-inputs
3310 `(("ruby-minitest" ,ruby-minitest)))
3311 (synopsis "Library to read and update netrc files")
3312 (description
3313 "This library can read and update netrc files, preserving formatting
3314 including comments and whitespace.")
3315 (home-page "https://github.com/geemus/netrc")
3316 (license license:expat)))
3317
3318 (define-public ruby-unf-ext
3319 (package
3320 (name "ruby-unf-ext")
3321 (version "0.0.7.1")
3322 (source (origin
3323 (method url-fetch)
3324 (uri (rubygems-uri "unf_ext" version))
3325 (sha256
3326 (base32
3327 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
3328 (build-system ruby-build-system)
3329 (arguments
3330 `(#:phases
3331 (modify-phases %standard-phases
3332 (add-after 'build 'build-ext
3333 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
3334 (native-inputs
3335 `(("bundler" ,bundler)
3336 ("ruby-rake-compiler" ,ruby-rake-compiler)
3337 ("ruby-test-unit" ,ruby-test-unit)))
3338 (synopsis "Unicode normalization form support library")
3339 (description
3340 "This package provides unicode normalization form support for Ruby.")
3341 (home-page "https://github.com/knu/ruby-unf_ext")
3342 (license license:expat)))
3343
3344 (define-public ruby-tdiff
3345 ;; Use a newer than released snapshot so that rspec-2 is not required.
3346 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
3347 (package
3348 (name "ruby-tdiff")
3349 (version (string-append "0.3.3-1." (string-take commit 8)))
3350 (source (origin
3351 (method git-fetch)
3352 (uri (git-reference
3353 (url "https://github.com/postmodern/tdiff.git")
3354 (commit commit)))
3355 (file-name (string-append name "-" version "-checkout"))
3356 (sha256
3357 (base32
3358 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
3359 (build-system ruby-build-system)
3360 (native-inputs
3361 `(("ruby-rspec" ,ruby-rspec)
3362 ("ruby-yard" ,ruby-yard)
3363 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3364 (synopsis "Calculate the differences between two tree-like structures")
3365 (description
3366 "This library provides functions to calculate the differences between two
3367 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
3368 (home-page "https://github.com/postmodern/tdiff")
3369 (license license:expat))))
3370
3371 (define-public ruby-nokogiri-diff
3372 ;; Use a newer than released snapshot so that rspec-2 is not required.
3373 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
3374 (package
3375 (name "ruby-nokogiri-diff")
3376 (version (string-append "0.2.0-1." (string-take commit 8)))
3377 (source (origin
3378 (method git-fetch)
3379 (uri (git-reference
3380 (url "https://github.com/postmodern/nokogiri-diff.git")
3381 (commit commit)))
3382 (file-name (string-append name "-" version "-checkout"))
3383 (sha256
3384 (base32
3385 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
3386 (build-system ruby-build-system)
3387 (propagated-inputs
3388 `(("ruby-tdiff" ,ruby-tdiff)
3389 ("ruby-nokogiri" ,ruby-nokogiri)))
3390 (native-inputs
3391 `(("ruby-rspec" ,ruby-rspec)
3392 ("ruby-yard" ,ruby-yard)
3393 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3394 (synopsis "Calculate the differences between two XML/HTML documents")
3395 (description
3396 "@code{Nokogiri::Diff} adds the ability to calculate the
3397 differences (added or removed nodes) between two XML/HTML documents.")
3398 (home-page "https://github.com/postmodern/nokogiri-diff")
3399 (license license:expat))))
3400
3401 (define-public ruby-rack
3402 (package
3403 (name "ruby-rack")
3404 (version "2.0.5")
3405 (source
3406 (origin
3407 (method url-fetch)
3408 ;; Download from GitHub so that the patch can be applied.
3409 (uri (string-append
3410 "https://github.com/rack/rack/archive/"
3411 version
3412 ".tar.gz"))
3413 (file-name (string-append name "-" version ".tar.gz"))
3414 (sha256
3415 (base32
3416 "1k1k4wk10l6bxx46pw58j2p3nmyzjqnr65hbjjqydd6517fmxgib"))
3417 ;; Ignore test which fails inside the build environment but works
3418 ;; outside.
3419 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
3420 (build-system ruby-build-system)
3421 (arguments
3422 '(#:phases
3423 (modify-phases %standard-phases
3424 (add-before 'check 'fix-tests
3425 (lambda _
3426 ;; A few of the tests use the length of a file on disk for
3427 ;; Content-Length and Content-Range headers. However, this file
3428 ;; has a shebang in it which an earlier phase patches, growing
3429 ;; the file size from 193 to 239 bytes when the store prefix is
3430 ;; "/gnu/store".
3431 (let ((size-diff (- (string-length (which "ruby"))
3432 (string-length "/usr/bin/env ruby"))))
3433 (substitute* '("test/spec_file.rb")
3434 (("193")
3435 (number->string (+ 193 size-diff)))
3436 (("bytes(.)22-33" all delimiter)
3437 (string-append "bytes"
3438 delimiter
3439 (number->string (+ 22 size-diff))
3440 "-"
3441 (number->string (+ 33 size-diff))))))
3442 #t)))))
3443 (native-inputs
3444 `(("ruby-minitest" ,ruby-minitest)
3445 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
3446 ("which" ,which)))
3447 (propagated-inputs
3448 `(("ruby-concurrent" ,ruby-concurrent)))
3449 (synopsis "Unified web application interface for Ruby")
3450 (description "Rack provides a minimal, modular and adaptable interface for
3451 developing web applications in Ruby. By wrapping HTTP requests and responses,
3452 it unifies the API for web servers, web frameworks, and software in between
3453 into a single method call.")
3454 (home-page "https://rack.github.io/")
3455 (license license:expat)))
3456
3457 (define-public ruby-rack-test
3458 (package
3459 (name "ruby-rack-test")
3460 (version "0.8.3")
3461 (source
3462 (origin
3463 (method url-fetch)
3464 (uri (rubygems-uri "rack-test" version))
3465 (sha256
3466 (base32
3467 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
3468 (build-system ruby-build-system)
3469 (arguments
3470 ;; Disable tests because of circular dependencies: requires sinatra,
3471 ;; which requires rack-protection, which requires rack-test. Instead
3472 ;; simply require the library.
3473 `(#:phases
3474 (modify-phases %standard-phases
3475 (replace 'check
3476 (lambda _
3477 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
3478 (propagated-inputs
3479 `(("ruby-rack" ,ruby-rack)))
3480 (synopsis "Testing API for Rack applications")
3481 (description
3482 "Rack::Test is a small, simple testing API for Rack applications. It can
3483 be used on its own or as a reusable starting point for Web frameworks and
3484 testing libraries to build on.")
3485 (home-page "https://github.com/rack-test/rack-test")
3486 (license license:expat)))
3487
3488 (define-public ruby-rack-protection
3489 (package
3490 (name "ruby-rack-protection")
3491 (version "2.0.3")
3492 (source
3493 (origin
3494 (method url-fetch)
3495 (uri (rubygems-uri "rack-protection" version))
3496 (sha256
3497 (base32
3498 "1z5598qipilmnf45428jnxi63ykrgvnyywa5ckpr52zv2vpd8jdp"))))
3499 (build-system ruby-build-system)
3500 (arguments
3501 '(;; Tests missing from the gem.
3502 #:tests? #f))
3503 (propagated-inputs
3504 `(("ruby-rack" ,ruby-rack)))
3505 (native-inputs
3506 `(("bundler" ,bundler)
3507 ("ruby-rspec" ,ruby-rspec-2)
3508 ("ruby-rack-test" ,ruby-rack-test)))
3509 (synopsis "Rack middleware that protects against typical web attacks")
3510 (description "Rack middleware that can be used to protect against typical
3511 web attacks. It can protect all Rack apps, including Rails. For instance, it
3512 protects against cross site request forgery, cross site scripting,
3513 clickjacking, directory traversal, session hijacking and IP spoofing.")
3514 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
3515 (license license:expat)))
3516
3517 (define-public ruby-contest
3518 (package
3519 (name "ruby-contest")
3520 (version "0.1.3")
3521 (source
3522 (origin
3523 (method url-fetch)
3524 (uri (rubygems-uri "contest" version))
3525 (sha256
3526 (base32
3527 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
3528 (build-system ruby-build-system)
3529 (synopsis "Write declarative tests using nested contexts")
3530 (description
3531 "Contest allows writing declarative @code{Test::Unit} tests using nested
3532 contexts without performance penalties.")
3533 (home-page "https://github.com/citrusbyte/contest")
3534 (license license:expat)))
3535
3536 (define-public ruby-creole
3537 (package
3538 (name "ruby-creole")
3539 (version "0.5.0")
3540 (source
3541 (origin
3542 (method url-fetch)
3543 (uri (rubygems-uri "creole" version))
3544 (sha256
3545 (base32
3546 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
3547 (build-system ruby-build-system)
3548 (native-inputs
3549 `(("ruby-bacon" ,ruby-bacon)))
3550 (synopsis "Creole markup language converter")
3551 (description
3552 "Creole is a lightweight markup language and this library for converting
3553 creole to @code{HTML}.")
3554 (home-page "https://github.com/minad/creole")
3555 (license license:ruby)))
3556
3557 (define-public ruby-docile
3558 (package
3559 (name "ruby-docile")
3560 (version "1.1.5")
3561 (source
3562 (origin
3563 (method url-fetch)
3564 (uri (rubygems-uri "docile" version))
3565 (sha256
3566 (base32
3567 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
3568 (build-system ruby-build-system)
3569 (arguments
3570 '(#:tests? #f)) ; needs github-markup, among others
3571 (synopsis "Ruby EDSL helper library")
3572 (description "Docile is a Ruby library that provides an interface for
3573 creating embedded domain specific languages (EDSLs) that manipulate existing
3574 Ruby classes.")
3575 (home-page "https://ms-ati.github.io/docile/")
3576 (license license:expat)))
3577
3578 (define-public ruby-gherkin
3579 (package
3580 (name "ruby-gherkin")
3581 (version "4.1.3")
3582 (source
3583 (origin
3584 (method url-fetch)
3585 (uri (rubygems-uri "gherkin" version))
3586 (sha256
3587 (base32
3588 "1d18r8mf2qyd9jbq9xxvca8adyysdzvwdy8v9c2s5hrd6p02kg79"))))
3589 (build-system ruby-build-system)
3590 (native-inputs
3591 `(("bundler" ,bundler)))
3592 (arguments
3593 '(#:tests? #f)) ; needs simplecov, among others
3594 (synopsis "Gherkin parser for Ruby")
3595 (description "Gherkin is a parser and compiler for the Gherkin language.
3596 It is intended be used by all Cucumber implementations to parse '.feature'
3597 files.")
3598 (home-page "https://github.com/cucumber/gherkin3")
3599 (license license:expat)))
3600
3601 (define-public ruby-cucumber-core
3602 (package
3603 (name "ruby-cucumber-core")
3604 (version "2.0.0")
3605 (source
3606 (origin
3607 (method url-fetch)
3608 (uri (rubygems-uri "cucumber-core" version))
3609 (sha256
3610 (base32
3611 "136hnvqv444qyxzcgy1k60y4i6cn3sn9lbqr4wan9dzz1yzllqbm"))))
3612 (build-system ruby-build-system)
3613 (propagated-inputs
3614 `(("ruby-gherkin" ,ruby-gherkin)))
3615 (native-inputs
3616 `(("bundler" ,bundler)))
3617 (arguments
3618 '(#:tests? #f)) ; needs simplecov, among others
3619 (synopsis "Core library for the Cucumber BDD app")
3620 (description "Cucumber is a tool for running automated tests
3621 written in plain language. Because they're written in plain language,
3622 they can be read by anyone on your team. Because they can be read by
3623 anyone, you can use them to help improve communication, collaboration
3624 and trust on your team.")
3625 (home-page "https://cucumber.io/")
3626 (license license:expat)))
3627
3628 (define-public ruby-bio-logger
3629 (package
3630 (name "ruby-bio-logger")
3631 (version "1.0.1")
3632 (source
3633 (origin
3634 (method url-fetch)
3635 (uri (rubygems-uri "bio-logger" version))
3636 (sha256
3637 (base32
3638 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3639 (build-system ruby-build-system)
3640 (arguments
3641 `(#:tests? #f)) ; rake errors, missing shoulda
3642 (propagated-inputs
3643 `(("ruby-log4r" ,ruby-log4r)))
3644 (synopsis "Log4r wrapper for Ruby")
3645 (description "Bio-logger is a wrapper around Log4r adding extra logging
3646 features such as filtering and fine grained logging.")
3647 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3648 (license license:expat)))
3649
3650 (define-public ruby-yard
3651 (package
3652 (name "ruby-yard")
3653 (version "0.9.6")
3654 (source
3655 (origin
3656 (method url-fetch)
3657 ;; Tests do not pass if we build from the distributed gem.
3658 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3659 version ".tar.gz"))
3660 (file-name (string-append name "-" version ".tar.gz"))
3661 (sha256
3662 (base32
3663 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3664 (build-system ruby-build-system)
3665 (arguments
3666 `(#:phases
3667 (modify-phases %standard-phases
3668 (replace 'check
3669 (lambda _
3670 ;; $HOME needs to be set to somewhere writeable for tests to run
3671 (setenv "HOME" "/tmp")
3672 ;; Run tests without using 'rake' to avoid dependencies.
3673 (zero? (system* "rspec")))))))
3674 (native-inputs
3675 `(("ruby-rspec" ,ruby-rspec)
3676 ("ruby-rack" ,ruby-rack)))
3677 (synopsis "Documentation generation tool for Ruby")
3678 (description
3679 "YARD is a documentation generation tool for the Ruby programming
3680 language. It enables the user to generate consistent, usable documentation
3681 that can be exported to a number of formats very easily, and also supports
3682 extending for custom Ruby constructs such as custom class level definitions.")
3683 (home-page "https://yardoc.org")
3684 (license license:expat)))
3685
3686 (define-public ruby-clap
3687 (package
3688 (name "ruby-clap")
3689 (version "1.0.0")
3690 (source (origin
3691 (method url-fetch)
3692 (uri (rubygems-uri "clap" version))
3693 (sha256
3694 (base32
3695 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3696 (build-system ruby-build-system)
3697 ;; Clap needs cutest for running tests, but cutest needs clap.
3698 (arguments `(#:tests? #f))
3699 (synopsis "Command line argument parsing for simple applications")
3700 (description
3701 "Clap provides command line argument parsing features. It covers the
3702 simple case of executing code based on the flags or parameters passed.")
3703 (home-page "https://github.com/djanowski/cutest")
3704 (license license:expat)))
3705
3706 (define-public ruby-cutest
3707 (package
3708 (name "ruby-cutest")
3709 (version "1.2.2")
3710 (source (origin
3711 (method url-fetch)
3712 (uri (rubygems-uri "cutest" version))
3713 (sha256
3714 (base32
3715 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3716 (build-system ruby-build-system)
3717 (propagated-inputs
3718 `(("ruby-clap" ,ruby-clap)))
3719 (synopsis "Run tests in separate processes")
3720 (description
3721 "Cutest runs tests in separate processes to avoid shared state.")
3722 (home-page "https://github.com/djanowski/cutest")
3723 (license license:expat)))
3724
3725 (define-public ruby-pygmentize
3726 (package
3727 (name "ruby-pygmentize")
3728 (version "0.0.3")
3729 (source (origin
3730 (method url-fetch)
3731 (uri (rubygems-uri "pygmentize" version))
3732 (sha256
3733 (base32
3734 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3735 (build-system ruby-build-system)
3736 (arguments
3737 `(#:phases
3738 (modify-phases %standard-phases
3739 (add-after 'unpack 'fix-pygmentize-path
3740 (lambda _
3741 (substitute* "lib/pygmentize.rb"
3742 (("\"/usr/bin/env python.*")
3743 (string-append "\"" (which "pygmentize") "\"\n")))
3744 #t))
3745 (add-after 'build 'do-not-use-vendor-directory
3746 (lambda _
3747 ;; Remove bundled pygments sources
3748 ;; FIXME: ruby-build-system does not support snippets.
3749 (delete-file-recursively "vendor")
3750 (substitute* "pygmentize.gemspec"
3751 (("\"vendor/\\*\\*/\\*\",") ""))
3752 #t)))))
3753 (inputs
3754 `(("pygments" ,python-pygments)))
3755 (native-inputs
3756 `(("ruby-cutest" ,ruby-cutest)
3757 ("ruby-nokogiri" ,ruby-nokogiri)))
3758 (synopsis "Thin Ruby wrapper around pygmentize")
3759 (description
3760 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3761 application.")
3762 (home-page "https://github.com/djanowski/pygmentize")
3763 (license license:expat)))
3764
3765 (define-public ruby-eventmachine
3766 (package
3767 (name "ruby-eventmachine")
3768 (version "1.2.7")
3769 (source
3770 (origin
3771 (method url-fetch)
3772 (uri (rubygems-uri "eventmachine" version))
3773 (sha256
3774 (base32
3775 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
3776 (build-system ruby-build-system)
3777 (arguments
3778 '(#:tests? #f)) ; test suite tries to connect to google.com
3779 (native-inputs
3780 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3781 (synopsis "Single-threaded network event framework for Ruby")
3782 (description
3783 "EventMachine implements a single-threaded engine for arbitrary network
3784 communications. EventMachine wraps all interactions with sockets, allowing
3785 programs to concentrate on the implementation of network protocols. It can be
3786 used to create both network servers and clients.")
3787 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
3788 (home-page "https://github.com/eventmachine/eventmachine")
3789 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
3790
3791 (define-public ruby-ruby-engine
3792 (package
3793 (name "ruby-ruby-engine")
3794 (version "1.0.1")
3795 (source
3796 (origin
3797 (method url-fetch)
3798 (uri (rubygems-uri "ruby_engine" version))
3799 (sha256
3800 (base32
3801 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
3802 (build-system ruby-build-system)
3803 (arguments
3804 `(#:phases
3805 (modify-phases %standard-phases
3806 (add-before 'check 'clean-up
3807 (lambda _
3808 (delete-file "Gemfile.lock")
3809 (substitute* "ruby_engine.gemspec"
3810 ;; Remove unnecessary imports that would entail further
3811 ;; dependencies.
3812 ((".*<rdoc.*") "")
3813 ((".*<rubygems-tasks.*") "")
3814 ;; Remove extraneous .gem file
3815 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
3816 ;; Soften rake dependency
3817 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
3818 "%q<rake>.freeze, [\">= 10.0\"]")
3819 ;; Soften the rspec dependency
3820 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
3821 "%q<rspec>.freeze, [\">= 2.4\"]"))
3822 (substitute* "Rakefile"
3823 (("require 'rubygems/tasks'") "")
3824 (("Gem::Tasks.new") ""))
3825 ;; Remove extraneous .gem file that otherwise gets installed.
3826 (delete-file "pkg/ruby_engine-1.0.0.gem")
3827 #t)))))
3828 (native-inputs
3829 `(("bundler" ,bundler)
3830 ("ruby-rake" ,ruby-rake)
3831 ("ruby-rspec" ,ruby-rspec)))
3832 (synopsis "Simplifies checking for Ruby implementation")
3833 (description
3834 "@code{ruby_engine} provides an RubyEngine class that can be used to
3835 check which implementation of Ruby is in use. It can provide the interpreter
3836 name and provides query methods such as @{RubyEngine.mri?}.")
3837 (home-page "https://github.com/janlelis/ruby_engine")
3838 (license license:expat)))
3839
3840 (define-public ruby-turn
3841 (package
3842 (name "ruby-turn")
3843 (version "0.9.7")
3844 (source
3845 (origin
3846 (method url-fetch)
3847 (uri (rubygems-uri "turn" version))
3848 (sha256
3849 (base32
3850 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3851 (build-system ruby-build-system)
3852 (arguments
3853 `(#:phases
3854 (modify-phases %standard-phases
3855 ;; Tests fail because turn changes its environment so can no longer
3856 ;; find test/unit. Instead simply test if the executable runs
3857 ;; without issue.
3858 (replace 'check
3859 (lambda _
3860 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3861 (propagated-inputs
3862 `(("ruby-ansi" ,ruby-ansi)
3863 ("ruby-minitest" ,ruby-minitest-4)))
3864 (synopsis "Alternate set of alternative runners for MiniTest")
3865 (description
3866 "TURN provides a set of alternative runners for MiniTest which are both
3867 colorful and informative. TURN displays each test on a separate line with
3868 failures being displayed immediately instead of at the end of the tests. Note
3869 that TURN is no longer being maintained.")
3870 (home-page "http://rubygems.org/gems/turn")
3871 (license license:expat)))
3872
3873 (define-public ruby-mimemagic
3874 (package
3875 (name "ruby-mimemagic")
3876 (version "0.3.2")
3877 (source
3878 (origin
3879 (method url-fetch)
3880 (uri (rubygems-uri "mimemagic" version))
3881 (sha256
3882 (base32
3883 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
3884 (build-system ruby-build-system)
3885 (arguments
3886 '(#:phases
3887 (modify-phases %standard-phases
3888 ;; This phase breaks the tests, as it patches some of the test data.
3889 (delete 'patch-source-shebangs))))
3890 (native-inputs
3891 `(("ruby-bacon" ,ruby-bacon)))
3892 (synopsis "Ruby library for MIME detection by extension or content")
3893 (description
3894 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
3895 extension or content, using the freedesktop.org.xml shared-mime-info
3896 database.")
3897 (home-page "https://github.com/minad/mimemagic")
3898 (license license:expat)))
3899
3900 (define-public ruby-mime-types-data
3901 (package
3902 (name "ruby-mime-types-data")
3903 (version "3.2016.0521")
3904 (source
3905 (origin
3906 (method url-fetch)
3907 (uri (rubygems-uri "mime-types-data" version))
3908 (sha256
3909 (base32
3910 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
3911 (build-system ruby-build-system)
3912 (native-inputs
3913 `(("ruby-hoe" ,ruby-hoe)))
3914 (synopsis "Registry for information about MIME media type definitions")
3915 (description
3916 "@code{mime-types-data} provides a registry for information about
3917 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3918 be used with the Ruby mime-types library or other software to determine
3919 defined filename extensions for MIME types, or to use filename extensions to
3920 look up the likely MIME type definitions.")
3921 (home-page "https://github.com/mime-types/mime-types-data/")
3922 (license license:expat)))
3923
3924 (define-public ruby-mime-types
3925 (package
3926 (name "ruby-mime-types")
3927 (version "3.1")
3928 (source
3929 (origin
3930 (method url-fetch)
3931 (uri (rubygems-uri "mime-types" version))
3932 (sha256
3933 (base32
3934 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
3935 (build-system ruby-build-system)
3936 (propagated-inputs
3937 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3938 (native-inputs
3939 `(("ruby-hoe" ,ruby-hoe)
3940 ("ruby-fivemat" ,ruby-fivemat)
3941 ("ruby-minitest-focus" ,ruby-minitest-focus)
3942 ("ruby-minitest-rg" ,ruby-minitest-rg)
3943 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3944 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
3945 (synopsis "Library and registry for MIME content type definitions")
3946 (description "The mime-types library provides a library and registry for
3947 information about Multipurpose Internet Mail Extensions (MIME) content type
3948 definitions. It can be used to determine defined filename extensions for MIME
3949 types, or to use filename extensions to look up the likely MIME type
3950 definitions.")
3951 (home-page "https://github.com/mime-types/ruby-mime-types")
3952 (license license:expat)))
3953
3954 (define-public ruby-fivemat
3955 (package
3956 (name "ruby-fivemat")
3957 (version "1.3.6")
3958 (source
3959 (origin
3960 (method url-fetch)
3961 (uri (rubygems-uri "fivemat" version))
3962 (sha256
3963 (base32
3964 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
3965 (build-system ruby-build-system)
3966 (arguments
3967 `(#:tests? #f)) ; no tests
3968 (synopsis "Each test file given its own line of dots")
3969 (description
3970 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3971 its own line of dots during testing. It aims to provide test output that is
3972 neither too verbose nor too minimal.")
3973 (home-page "https://github.com/tpope/fivemat")
3974 (license license:expat)))
3975
3976 (define-public ruby-sqlite3
3977 (package
3978 (name "ruby-sqlite3")
3979 (version "1.3.13")
3980 (source
3981 (origin
3982 (method url-fetch)
3983 (uri (rubygems-uri "sqlite3" version))
3984 (sha256
3985 (base32
3986 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
3987 (build-system ruby-build-system)
3988 (arguments
3989 `(#:phases
3990 (modify-phases %standard-phases
3991 (add-before 'check 'adjust-failing-test
3992 (lambda _
3993 ;; XXX: This test fails with SQLite versions >= 3.21.
3994 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
3995 (substitute* "test/test_integration_resultset.rb"
3996 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
3997 #t))
3998 (add-before 'check 'add-gemtest-file
3999 ;; This file exists in the repository but is not distributed.
4000 (lambda _ (zero? (system* "touch" ".gemtest")))))))
4001 (inputs
4002 `(("sqlite" ,sqlite)))
4003 (native-inputs
4004 `(("ruby-hoe" ,ruby-hoe)
4005 ("ruby-rake-compiler" ,ruby-rake-compiler)
4006 ("ruby-mini-portile" ,ruby-mini-portile)))
4007 (synopsis "Interface with SQLite3 databases")
4008 (description
4009 "This module allows Ruby programs to interface with the SQLite3 database
4010 engine.")
4011 (home-page
4012 "https://github.com/sparklemotion/sqlite3-ruby")
4013 (license license:bsd-3)))
4014
4015 (define-public ruby-shoulda-context
4016 (package
4017 (name "ruby-shoulda-context")
4018 (version "1.2.2")
4019 (source
4020 (origin
4021 (method url-fetch)
4022 (uri (rubygems-uri "shoulda-context" version))
4023 (sha256
4024 (base32
4025 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
4026 (build-system ruby-build-system)
4027 (arguments
4028 `(#:phases
4029 (modify-phases %standard-phases
4030 (replace 'check
4031 (lambda _
4032 ;; Do not run tests to avoid circular dependence with rails.
4033 ;; Instead just import the library to test.
4034 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
4035 (synopsis "Test::Unit context framework extracted from Shoulda")
4036 (description
4037 "@code{shoulda-context} is the context framework extracted from Shoulda.
4038 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
4039 context, setup, and should blocks combine to produce natural test method
4040 names.")
4041 (home-page "https://github.com/thoughtbot/shoulda-context")
4042 (license license:expat)))
4043
4044 (define-public ruby-shoulda-matchers
4045 (package
4046 (name "ruby-shoulda-matchers")
4047 (version "3.1.2")
4048 (source
4049 (origin
4050 (method url-fetch)
4051 (uri (rubygems-uri "shoulda-matchers" version))
4052 (sha256
4053 (base32
4054 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
4055 (build-system ruby-build-system)
4056 (arguments
4057 `(#:phases
4058 (modify-phases %standard-phases
4059 (replace 'check
4060 (lambda _
4061 ;; Do not run tests to avoid circular dependence with rails. Instead
4062 ;; just import the library to test.
4063 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
4064 (propagated-inputs
4065 `(("ruby-activesupport" ,ruby-activesupport)))
4066 (synopsis "Collection of testing matchers extracted from Shoulda")
4067 (description
4068 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
4069 test common Rails functionality. These tests would otherwise be much longer,
4070 more complex, and error-prone.")
4071 (home-page "https://github.com/thoughtbot/shoulda-matchers")
4072 (license license:expat)))
4073
4074 (define-public ruby-shoulda-matchers-2
4075 (package
4076 (inherit ruby-shoulda-matchers)
4077 (version "2.8.0")
4078 (source (origin
4079 (method url-fetch)
4080 (uri (rubygems-uri "shoulda-matchers" version))
4081 (sha256
4082 (base32
4083 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
4084
4085 (define-public ruby-shoulda
4086 (package
4087 (name "ruby-shoulda")
4088 (version "3.5.0")
4089 (source
4090 (origin
4091 (method url-fetch)
4092 (uri (rubygems-uri "shoulda" version))
4093 (sha256
4094 (base32
4095 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
4096 (build-system ruby-build-system)
4097 (arguments
4098 `(#:phases
4099 (modify-phases %standard-phases
4100 (replace 'check
4101 ;; Don't run tests to avoid circular dependence with rails. Instead
4102 ;; just import the library to test.
4103 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
4104 (propagated-inputs
4105 `(("ruby-shoulda-context" ,ruby-shoulda-context)
4106 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
4107 (synopsis "Context framework and matchers for testing")
4108 (description
4109 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
4110 @code{shoulda-matchers} providing tools for writing tests.")
4111 (home-page "https://github.com/thoughtbot/shoulda")
4112 (license license:expat)))
4113
4114 (define-public ruby-unf
4115 (package
4116 (name "ruby-unf")
4117 (version "0.1.4")
4118 (source
4119 (origin
4120 (method url-fetch)
4121 (uri (rubygems-uri "unf" version))
4122 (sha256
4123 (base32
4124 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
4125 (build-system ruby-build-system)
4126 (arguments
4127 `(#:phases
4128 (modify-phases %standard-phases
4129 (add-before 'check 'add-dependency-to-bundler
4130 (lambda _
4131 ;; test-unit is required but not provided by the bundler
4132 ;; environment. This is fixed in the upstream repository but fix
4133 ;; has not been released.
4134 (substitute* "Gemfile"
4135 (("^gemspec") "gem 'test-unit'\ngemspec"))
4136 #t)))))
4137 (propagated-inputs
4138 `(("ruby-unf-ext" ,ruby-unf-ext)))
4139 (native-inputs
4140 `(("ruby-shoulda" ,ruby-shoulda)
4141 ("bundler" ,bundler)
4142 ("ruby-test-unit" ,ruby-test-unit)))
4143 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
4144 (description
4145 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
4146 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
4147 @code{java.text.Normalizer} on JRuby.")
4148 (home-page "https://github.com/knu/ruby-unf")
4149 (license license:bsd-2)))
4150
4151 (define-public ruby-domain-name
4152 (package
4153 (name "ruby-domain-name")
4154 (version "0.5.20180417")
4155 (source
4156 (origin
4157 (method url-fetch)
4158 (uri (rubygems-uri "domain_name" version))
4159 (sha256
4160 (base32
4161 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
4162 (build-system ruby-build-system)
4163 (arguments
4164 `(#:phases
4165 (modify-phases %standard-phases
4166 (add-before 'check 'fix-versions
4167 (lambda _
4168 ;; Fix NameError that appears to already be fixed upstream.
4169 (substitute* "Rakefile"
4170 (("DomainName::VERSION")
4171 "Bundler::GemHelper.gemspec.version"))
4172 ;; Loosen unnecessarily strict test-unit version specification.
4173 (substitute* "domain_name.gemspec"
4174 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
4175 #t)))))
4176 (propagated-inputs
4177 `(("ruby-unf" ,ruby-unf)))
4178 (native-inputs
4179 `(("ruby-shoulda" ,ruby-shoulda)
4180 ("bundler" ,bundler)
4181 ("ruby-test-unit" ,ruby-test-unit)))
4182 (synopsis "Domain name manipulation library")
4183 (description
4184 "@code{domain_name} is a Domain name manipulation library. It parses a
4185 domain name ready for extracting the registered domain and TLD (Top Level
4186 Domain). It can also be used for cookie domain validation based on the Public
4187 Suffix List.")
4188 (home-page "https://github.com/knu/ruby-domain_name")
4189 (license license:bsd-2)))
4190
4191 (define-public ruby-http-cookie
4192 (package
4193 (name "ruby-http-cookie")
4194 (version "1.0.3")
4195 (source
4196 (origin
4197 (method url-fetch)
4198 (uri (rubygems-uri "http-cookie" version))
4199 (sha256
4200 (base32
4201 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
4202 (build-system ruby-build-system)
4203 (arguments
4204 `(#:phases
4205 (modify-phases %standard-phases
4206 (add-before 'check 'add-dependency-to-bundler
4207 (lambda _
4208 ;; Fix NameError
4209 (substitute* "Rakefile"
4210 (("HTTP::Cookie::VERSION")
4211 "Bundler::GemHelper.gemspec.version"))
4212 #t)))))
4213 (propagated-inputs
4214 `(("ruby-domain-name" ,ruby-domain-name)))
4215 (native-inputs
4216 `(("rubysimplecov" ,ruby-simplecov)
4217 ("bundler" ,bundler)
4218 ("ruby-sqlite3" ,ruby-sqlite3)
4219 ("ruby-test-unit" ,ruby-test-unit)))
4220 (synopsis "Handle HTTP Cookies based on RFC 6265")
4221 (description
4222 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
4223 RFC 6265. It has been designed with security, standards compliance and
4224 compatibility in mind, to behave just the same as today's major web browsers.
4225 It has built-in support for the legacy @code{cookies.txt} and
4226 @code{cookies.sqlite} formats of Mozilla Firefox.")
4227 (home-page "https://github.com/sparklemotion/http-cookie")
4228 (license license:expat)))
4229
4230 (define-public ruby-httpclient
4231 (package
4232 (name "ruby-httpclient")
4233 (version "2.8.3")
4234 (source
4235 (origin
4236 (method url-fetch)
4237 (uri (rubygems-uri "httpclient" version))
4238 (sha256
4239 (base32
4240 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
4241 (build-system ruby-build-system)
4242 (arguments
4243 '(;; TODO: Some tests currently fail
4244 ;; ------
4245 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
4246 ;; 2 omissions, 0 notifications
4247 ;; 91.866% passed
4248 ;; ------
4249 ;; 6.49 tests/s, 22.41 assertions/s
4250 #:tests? #f
4251 #:phases
4252 (modify-phases %standard-phases
4253 (replace 'check
4254 (lambda* (#:key tests? #:allow-other-keys)
4255 (if tests?
4256 (zero?
4257 (system* "ruby"
4258 "-Ilib"
4259 "test/runner.rb"))
4260 #t))))))
4261 (native-inputs
4262 `(("ruby-rack" ,ruby-rack)))
4263 (synopsis
4264 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
4265 (description
4266 "The @code{httpclient} ruby library provides functionality related to
4267 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
4268 Cookie, multithreading and authentication (digest, NTLM) support.
4269
4270 Also provided is a @command{httpclient} command, which can perform HTTP
4271 requests either using arguments or with an interactive prompt.")
4272 (home-page "https://github.com/nahi/httpclient")
4273 (license license:ruby)))
4274
4275 (define-public ruby-ansi
4276 (package
4277 (name "ruby-ansi")
4278 (version "1.5.0")
4279 (source
4280 (origin
4281 (method url-fetch)
4282 ;; Fetch from GitHub as the gem does not contain testing code.
4283 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
4284 version ".tar.gz"))
4285 (file-name (string-append name "-" version ".tar.gz"))
4286 (sha256
4287 (base32
4288 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
4289 (build-system ruby-build-system)
4290 (arguments
4291 `(#:phases
4292 (modify-phases %standard-phases
4293 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
4294 ;; cycle ansi, qed, ansi. Instead simply test that the library can
4295 ;; be require'd.
4296 (replace 'check
4297 (lambda _
4298 (zero? (system* "ruby" "-Ilib" "-r" "ansi"))))
4299 (add-before 'validate-runpath 'replace-broken-symlink
4300 (lambda* (#:key outputs #:allow-other-keys)
4301 (let* ((out (assoc-ref outputs "out"))
4302 (file (string-append
4303 out "/lib/ruby/vendor_ruby/gems/ansi-"
4304 ,version "/lib/ansi.yml")))
4305 ;; XXX: This symlink is broken since ruby 2.4.
4306 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
4307 (delete-file file)
4308 (symlink "../.index" file)
4309 #t))))))
4310 (synopsis "ANSI escape code related libraries")
4311 (description
4312 "This package is a collection of ANSI escape code related libraries
4313 enabling ANSI colorization and stylization of console output. Included in the
4314 library are the @code{Code} module, which defines ANSI codes as constants and
4315 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
4316 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
4317 @code{Terminal} module which provides information about the current output
4318 device.")
4319 (home-page "https://rubyworks.github.io/ansi")
4320 (license license:bsd-2)))
4321
4322 (define-public ruby-systemu
4323 (package
4324 (name "ruby-systemu")
4325 (version "2.6.5")
4326 (source
4327 (origin
4328 (method url-fetch)
4329 (uri (rubygems-uri "systemu" version))
4330 (sha256
4331 (base32
4332 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
4333 (build-system ruby-build-system)
4334 (arguments
4335 `(#:phases
4336 (modify-phases %standard-phases
4337 (add-before 'check 'set-version
4338 (lambda _
4339 (setenv "VERSION" ,version)
4340 #t)))))
4341 (synopsis "Capture of stdout/stderr and handling of child processes")
4342 (description
4343 "Systemu can be used on any platform to return status, stdout, and stderr
4344 of any command. Unlike other methods like @code{open3} and @code{popen4}
4345 there is no danger of full pipes or threading issues hanging your process or
4346 subprocess.")
4347 (home-page "https://github.com/ahoward/systemu")
4348 (license license:ruby)))
4349
4350 (define-public ruby-bio-commandeer
4351 (package
4352 (name "ruby-bio-commandeer")
4353 (version "0.4.0")
4354 (source
4355 (origin
4356 (method url-fetch)
4357 (uri (rubygems-uri "bio-commandeer" version))
4358 (sha256
4359 (base32
4360 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
4361 (build-system ruby-build-system)
4362 (arguments
4363 `(#:phases
4364 (modify-phases %standard-phases
4365 (replace 'check
4366 ;; Run test without calling 'rake' so that jeweler is
4367 ;; not required as an input.
4368 (lambda _
4369 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
4370 (propagated-inputs
4371 `(("ruby-bio-logger" ,ruby-bio-logger)
4372 ("ruby-systemu" ,ruby-systemu)))
4373 (native-inputs
4374 `(("bundler" ,bundler)
4375 ("ruby-rspec" ,ruby-rspec)))
4376 (synopsis "Simplified running of shell commands from within Ruby")
4377 (description
4378 "Bio-commandeer provides an opinionated method of running shell commands
4379 from within Ruby. The advantage of bio-commandeer over other methods of
4380 running external commands is that when something goes wrong, messages printed
4381 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
4382 detail to ease debugging.")
4383 (home-page "https://github.com/wwood/bioruby-commandeer")
4384 (license license:expat)))
4385
4386 (define-public ruby-rubytest
4387 (package
4388 (name "ruby-rubytest")
4389 (version "0.8.1")
4390 (source
4391 (origin
4392 (method url-fetch)
4393 (uri (rubygems-uri "rubytest" version))
4394 (sha256
4395 (base32
4396 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
4397 (build-system ruby-build-system)
4398 (arguments
4399 ;; Disable regular testing to break the cycle rubytest, qed, brass,
4400 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
4401 ;; simply test that the library can be require'd.
4402 `(#:phases
4403 (modify-phases %standard-phases
4404 (replace 'check
4405 (lambda _
4406 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
4407 (propagated-inputs
4408 `(("ruby-ansi" ,ruby-ansi)))
4409 (synopsis "Universal test harness for Ruby")
4410 (description
4411 "Rubytest is a testing meta-framework for Ruby. It can handle any
4412 compliant test framework and can run tests from multiple frameworks in a
4413 single pass.")
4414 (home-page "https://rubyworks.github.io/rubytest")
4415 (license license:bsd-2)))
4416
4417 (define-public ruby-brass
4418 (package
4419 (name "ruby-brass")
4420 (version "1.2.1")
4421 (source
4422 (origin
4423 (method url-fetch)
4424 (uri (rubygems-uri "brass" version))
4425 (sha256
4426 (base32
4427 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
4428 (build-system ruby-build-system)
4429 (arguments
4430 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
4431 ;; Instead simply test that the library can be require'd.
4432 `(#:phases
4433 (modify-phases %standard-phases
4434 (replace 'check
4435 (lambda _
4436 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
4437 (synopsis "Basic foundational assertions framework")
4438 (description
4439 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
4440 foundational assertions framework for other assertion and test frameworks to
4441 make use of.")
4442 (home-page "https://rubyworks.github.io/brass")
4443 (license license:bsd-2)))
4444
4445 (define-public ruby-qed
4446 (package
4447 (name "ruby-qed")
4448 (version "2.9.2")
4449 (source
4450 (origin
4451 (method url-fetch)
4452 (uri (rubygems-uri "qed" version))
4453 (sha256
4454 (base32
4455 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
4456 (build-system ruby-build-system)
4457 (arguments
4458 ;; Disable testing to break the cycle qed, ansi, qed, among others.
4459 ;; Instead simply test that the executable runs using --copyright.
4460 `(#:phases
4461 (modify-phases %standard-phases
4462 (replace 'check
4463 (lambda _
4464 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
4465 (propagated-inputs
4466 `(("ruby-ansi" ,ruby-ansi)
4467 ("ruby-brass" ,ruby-brass)))
4468 (synopsis "Test framework utilizing literate programming techniques")
4469 (description
4470 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
4471 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
4472 Development} (BDD) utilizing Literate Programming techniques. QED sits
4473 somewhere between lower-level testing tools like @code{Test::Unit} and
4474 requirement specifications systems like Cucumber.")
4475 (home-page "https://rubyworks.github.io/qed")
4476 (license license:bsd-2)))
4477
4478 (define-public ruby-ae
4479 (package
4480 (name "ruby-ae")
4481 (version "1.8.2")
4482 (source
4483 (origin
4484 (method url-fetch)
4485 ;; Fetch from github so tests are included.
4486 (uri (string-append
4487 "https://github.com/rubyworks/ae/archive/"
4488 version ".tar.gz"))
4489 (file-name (string-append name "-" version ".tar.gz"))
4490 (sha256
4491 (base32
4492 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
4493 (build-system ruby-build-system)
4494 (arguments
4495 `(#:phases
4496 (modify-phases %standard-phases
4497 (replace 'check
4498 (lambda _ (zero? (system* "qed"))))
4499 (add-before 'validate-runpath 'replace-broken-symlink
4500 (lambda* (#:key outputs #:allow-other-keys)
4501 (let* ((out (assoc-ref outputs "out"))
4502 (file (string-append
4503 out "/lib/ruby/vendor_ruby/gems/ae-"
4504 ,version "/lib/ae.yml")))
4505 ;; XXX: This symlink is broken since ruby 2.4.
4506 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
4507 (delete-file file)
4508 (symlink "../.index" file)
4509 #t))))))
4510 (propagated-inputs
4511 `(("ruby-ansi" ,ruby-ansi)))
4512 (native-inputs
4513 `(("ruby-qed" ,ruby-qed)))
4514 (synopsis "Assertions library")
4515 (description
4516 "Assertive Expressive (AE) is an assertions library specifically designed
4517 for reuse by other test frameworks.")
4518 (home-page "https://rubyworks.github.io/ae")
4519 (license license:bsd-2)))
4520
4521 (define-public ruby-lemon
4522 (package
4523 (name "ruby-lemon")
4524 (version "0.9.1")
4525 (source
4526 (origin
4527 (method url-fetch)
4528 (uri (rubygems-uri "lemon" version))
4529 (sha256
4530 (base32
4531 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
4532 (build-system ruby-build-system)
4533 (arguments
4534 `(#:phases
4535 (modify-phases %standard-phases
4536 (replace 'check (lambda _ (zero? (system* "qed")))))))
4537 (propagated-inputs
4538 `(("ruby-ae" ,ruby-ae)
4539 ("ruby-ansi" ,ruby-ansi)
4540 ("ruby-rubytest" ,ruby-rubytest)))
4541 (native-inputs
4542 `(("ruby-qed" ,ruby-qed)))
4543 (synopsis "Test framework correlating code structure and test unit")
4544 (description
4545 "Lemon is a unit testing framework that enforces highly formal
4546 case-to-class and unit-to-method test construction. This enforcement can help
4547 focus concern on individual units of behavior.")
4548 (home-page "https://rubyworks.github.io/lemon")
4549 (license license:bsd-2)))
4550
4551 (define-public ruby-rubytest-cli
4552 (package
4553 (name "ruby-rubytest-cli")
4554 (version "0.2.0")
4555 (source
4556 (origin
4557 (method url-fetch)
4558 (uri (rubygems-uri "rubytest-cli" version))
4559 (sha256
4560 (base32
4561 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
4562 (build-system ruby-build-system)
4563 (arguments
4564 `(#:tests? #f)) ; no tests
4565 (propagated-inputs
4566 `(("ruby-ansi" ,ruby-ansi)
4567 ("ruby-rubytest" ,ruby-rubytest)))
4568 (synopsis "Command-line interface for rubytest")
4569 (description
4570 "Rubytest CLI is a command-line interface for running tests for
4571 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
4572 (home-page "https://rubyworks.github.io/rubytest-cli")
4573 (license license:bsd-2)))
4574
4575 (define-public ruby-hashery
4576 (package
4577 (name "ruby-hashery")
4578 (version "2.1.2")
4579 (source
4580 (origin
4581 (method url-fetch)
4582 (uri (rubygems-uri "hashery" version))
4583 (sha256
4584 (base32
4585 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
4586 (build-system ruby-build-system)
4587 (arguments
4588 `(#:phases
4589 (modify-phases %standard-phases
4590 (replace 'check
4591 (lambda _
4592 (and (zero? (system* "qed"))
4593 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
4594 (native-inputs
4595 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
4596 ("ruby-qed" ,ruby-qed)
4597 ("ruby-lemon" ,ruby-lemon)))
4598 (synopsis "Hash-like classes with extra features")
4599 (description
4600 "The Hashery is a tight collection of @code{Hash}-like classes.
4601 Included are the auto-sorting @code{Dictionary} class, the efficient
4602 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
4603 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
4604 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
4605 standard @code{Hash} making it possible to subclass and augment to fit any
4606 specific use case.")
4607 (home-page "https://rubyworks.github.io/hashery")
4608 (license license:bsd-2)))
4609
4610 (define-public ruby-rc4
4611 (package
4612 (name "ruby-rc4")
4613 (version "0.1.5")
4614 (source
4615 (origin
4616 (method url-fetch)
4617 (uri (rubygems-uri "ruby-rc4" version))
4618 (sha256
4619 (base32
4620 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
4621 (build-system ruby-build-system)
4622 (arguments
4623 `(#:phases
4624 (modify-phases %standard-phases
4625 (replace 'check
4626 (lambda _
4627 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
4628 (native-inputs
4629 `(("ruby-rspec" ,ruby-rspec-2)))
4630 (synopsis "Implementation of the RC4 algorithm")
4631 (description
4632 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
4633 (home-page "https://github.com/caiges/Ruby-RC4")
4634 (license license:expat)))
4635
4636 (define-public ruby-afm
4637 (package
4638 (name "ruby-afm")
4639 (version "0.2.2")
4640 (source
4641 (origin
4642 (method url-fetch)
4643 (uri (rubygems-uri "afm" version))
4644 (sha256
4645 (base32
4646 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
4647 (build-system ruby-build-system)
4648 (native-inputs
4649 `(("bundler" ,bundler)))
4650 (synopsis "Read Adobe Font Metrics (afm) files")
4651 (description
4652 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
4653 files and use the data therein.")
4654 (home-page "https://github.com/halfbyte/afm")
4655 (license license:expat)))
4656
4657 (define-public ruby-ascii85
4658 (package
4659 (name "ruby-ascii85")
4660 (version "1.0.3")
4661 (source
4662 (origin
4663 (method url-fetch)
4664 (uri (rubygems-uri "Ascii85" version))
4665 (sha256
4666 (base32
4667 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
4668 (build-system ruby-build-system)
4669 (native-inputs
4670 `(("bundler" ,bundler)))
4671 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
4672 (description
4673 "This library provides methods to encode and decode Ascii85
4674 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
4675 @dfn{Portable Document Format} (PDF) file formats.")
4676 (home-page "https://github.com/datawraith/ascii85gem")
4677 (license license:expat)))
4678
4679 (define-public ruby-ttfunk
4680 (package
4681 (name "ruby-ttfunk")
4682 (version "1.5.1")
4683 (source
4684 (origin
4685 (method url-fetch)
4686 ;; fetch from github as the gem does not contain testing code
4687 (uri (string-append
4688 "https://github.com/prawnpdf/ttfunk/archive/"
4689 version ".tar.gz"))
4690 (file-name (string-append name "-" version ".tar.gz"))
4691 (sha256
4692 (base32
4693 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
4694 (build-system ruby-build-system)
4695 (arguments
4696 `(#:test-target "spec"
4697 #:phases
4698 (modify-phases %standard-phases
4699 (add-before 'build 'remove-ssh
4700 (lambda _
4701 ;; remove dependency on an ssh key pair that doesn't exist
4702 (substitute* "ttfunk.gemspec"
4703 (("spec.signing_key.*") ""))
4704 #t))
4705 (add-before 'check 'remove-rubocop
4706 (lambda _
4707 ;; remove rubocop as a dependency as not needed for testing
4708 (substitute* "ttfunk.gemspec"
4709 (("spec.add_development_dependency\\('rubocop'.*") ""))
4710 (substitute* "Rakefile"
4711 (("require 'rubocop/rake_task'") "")
4712 (("RuboCop::RakeTask.new") ""))
4713 #t)))))
4714 (native-inputs
4715 `(("ruby-rspec" ,ruby-rspec)
4716 ("ruby-yard" ,ruby-yard)
4717 ("bundler" ,bundler)))
4718 (synopsis "Font metrics parser for the Prawn PDF generator")
4719 (description
4720 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
4721 part of the Prawn PDF generator.")
4722 (home-page "https://github.com/prawnpdf/ttfunk")
4723 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
4724 ;; for details."
4725 (license (list license:gpl2 license:gpl3 license:ruby))))
4726
4727 (define-public ruby-puma
4728 (package
4729 (name "ruby-puma")
4730 (version "3.9.1")
4731 (source
4732 (origin
4733 (method url-fetch)
4734 ;; Fetch from GitHub because distributed gem does not contain tests.
4735 (uri (string-append "https://github.com/puma/puma/archive/v"
4736 version ".tar.gz"))
4737 (file-name (string-append name "-" version ".tar.gz"))
4738 (sha256
4739 (base32
4740 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
4741 (build-system ruby-build-system)
4742 (arguments
4743 `(#:tests? #f ; Tests require an out-dated version of minitest.
4744 #:phases
4745 (modify-phases %standard-phases
4746 (add-before 'build 'fix-gemspec
4747 (lambda _
4748 (substitute* "puma.gemspec"
4749 (("git ls-files") "find * |sort"))
4750 #t)))))
4751 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4752 (description
4753 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4754 for Ruby/Rack applications. Puma is intended for use in both development and
4755 production environments. In order to get the best throughput, it is highly
4756 recommended that you use a Ruby implementation with real threads like Rubinius
4757 or JRuby.")
4758 (home-page "http://puma.io")
4759 (license license:expat)))
4760
4761 (define-public ruby-hoe-git
4762 (package
4763 (name "ruby-hoe-git")
4764 (version "1.6.0")
4765 (source
4766 (origin
4767 (method url-fetch)
4768 (uri (rubygems-uri "hoe-git" version))
4769 (sha256
4770 (base32
4771 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4772 (build-system ruby-build-system)
4773 (propagated-inputs
4774 `(("ruby-hoe" ,ruby-hoe)
4775 ("git" ,git)))
4776 (synopsis "Hoe plugins for tighter Git integration")
4777 (description
4778 "This package provides a set of Hoe plugins for tighter Git integration.
4779 It provides tasks to automate release tagging and pushing and changelog
4780 generation.")
4781 (home-page "https://github.com/jbarnette/hoe-git")
4782 (license license:expat)))
4783
4784 (define-public ruby-sequel
4785 (package
4786 (name "ruby-sequel")
4787 (version "4.49.0")
4788 (source
4789 (origin
4790 (method url-fetch)
4791 (uri (rubygems-uri "sequel" version))
4792 (sha256
4793 (base32
4794 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
4795 (build-system ruby-build-system)
4796 (arguments
4797 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4798 (synopsis "Database toolkit for Ruby")
4799 (description "Sequel provides thread safety, connection pooling and a
4800 concise DSL for constructing SQL queries and table schemas. It includes a
4801 comprehensive ORM layer for mapping records to Ruby objects and handling
4802 associated records.")
4803 (home-page "http://sequel.jeremyevans.net")
4804 (license license:expat)))
4805
4806 (define-public ruby-timecop
4807 (package
4808 (name "ruby-timecop")
4809 (version "0.9.1")
4810 (source
4811 (origin
4812 (method url-fetch)
4813 (uri (rubygems-uri "timecop" version))
4814 (sha256
4815 (base32
4816 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
4817 (build-system ruby-build-system)
4818 (arguments
4819 `(#:phases
4820 (modify-phases %standard-phases
4821 (add-before 'check 'set-check-rubylib
4822 (lambda _
4823 ;; Set RUBYLIB so timecop tests finds its own lib.
4824 (setenv "RUBYLIB" "lib")
4825 #t)))))
4826 (native-inputs
4827 `(("bundler" ,bundler)
4828 ("ruby-minitest-rg" ,ruby-minitest-rg)
4829 ("ruby-mocha" ,ruby-mocha)
4830 ("ruby-activesupport" ,ruby-activesupport)))
4831 (synopsis "Test mocks for time-dependent functions")
4832 (description
4833 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4834 making it easier to test time-dependent code. It provides a unified method to
4835 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4836 call.")
4837 (home-page "https://github.com/travisjeffery/timecop")
4838 (license license:expat)))
4839
4840 (define-public ruby-concurrent
4841 (package
4842 (name "ruby-concurrent")
4843 (version "1.0.5")
4844 (source
4845 (origin
4846 (method url-fetch)
4847 ;; Download from GitHub because the rubygems version does not contain
4848 ;; Rakefile.
4849 (uri (string-append
4850 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4851 version
4852 ".tar.gz"))
4853 (file-name (string-append name "-" version ".tar.gz"))
4854 (sha256
4855 (base32
4856 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
4857 ;; Exclude failing test reported at
4858 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4859 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
4860 "ruby-concurrent-test-arm.patch"))))
4861 (build-system ruby-build-system)
4862 (arguments
4863 `(#:test-target "spec"
4864 #:phases
4865 (modify-phases %standard-phases
4866 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
4867 (lambda _
4868 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4869 ;; correct one.
4870 (delete-file "concurrent-ruby-edge.gemspec")
4871 (delete-file "concurrent-ruby-ext.gemspec")
4872 #t))
4873 (add-before 'build 'replace-git-ls-files2
4874 (lambda _
4875 (substitute* "support/file_map.rb"
4876 (("git ls-files") "find * |sort"))
4877 #t))
4878 (add-before 'check 'rake-compile
4879 ;; Fix the test error described at
4880 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
4881 (lambda _ (zero? (system* "rake" "compile"))))
4882 (add-before 'check 'remove-timecop-dependency
4883 ;; Remove timecop-dependent tests as having timecop as a depedency
4884 ;; causes circular depedencies.
4885 (lambda _
4886 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4887 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4888 #t)))))
4889 (native-inputs
4890 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4891 ("ruby-rspec" ,ruby-rspec)))
4892 (synopsis "Concurrency tools for Ruby")
4893 (description
4894 "This library provides modern concurrency tools including agents,
4895 futures, promises, thread pools, actors, supervisors, and more. It is
4896 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4897 patterns.")
4898 (home-page "http://www.concurrent-ruby.com")
4899 (license license:expat)))
4900
4901 (define-public ruby-pkg-config
4902 (package
4903 (name "ruby-pkg-config")
4904 (version "1.2.5")
4905 (source
4906 (origin
4907 (method url-fetch)
4908 (uri (rubygems-uri "pkg-config" version))
4909 (sha256
4910 (base32
4911 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
4912 (build-system ruby-build-system)
4913 (arguments
4914 ;; Tests require extra files not included in the gem.
4915 `(#:tests? #f))
4916 (synopsis "Detect libraries for compiling Ruby native extensions")
4917 (description
4918 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4919 libraries for compiling Ruby native extensions.")
4920 (home-page "https://github.com/ruby-gnome2/pkg-config")
4921 (license license:lgpl2.0+)))
4922
4923 (define-public ruby-net-http-digest-auth
4924 (package
4925 (name "ruby-net-http-digest-auth")
4926 (version "1.4.1")
4927 (source
4928 (origin
4929 (method url-fetch)
4930 (uri (rubygems-uri "net-http-digest_auth" version))
4931 (sha256
4932 (base32
4933 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
4934 (build-system ruby-build-system)
4935 (native-inputs
4936 `(("ruby-hoe" ,ruby-hoe)))
4937 (synopsis "RFC 2617 HTTP digest authentication library")
4938 (description
4939 "This library implements HTTP's digest authentication scheme based on
4940 RFC 2617. This enables the use of the digest authentication scheme instead
4941 of the more insecure basic authentication scheme.")
4942 (home-page "https://github.com/drbrain/net-http-digest_auth")
4943 (license license:expat)))
4944
4945 (define-public ruby-mail
4946 (package
4947 (name "ruby-mail")
4948 (version "2.6.6")
4949 (source
4950 (origin
4951 (method url-fetch)
4952 (uri (rubygems-uri "mail" version))
4953 (sha256
4954 (base32
4955 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
4956 (build-system ruby-build-system)
4957 (propagated-inputs
4958 `(("ruby-mime-types" ,ruby-mime-types)))
4959 (arguments
4960 ;; Tests require extra gems not included in the Gemfile.
4961 ;; XXX: Try enabling this for the next version with mini_mime.
4962 `(#:tests? #f))
4963 (synopsis "Mail library for Ruby")
4964 (description
4965 "Mail is an internet library for Ruby that is designed to handle email
4966 generation, parsing and sending. The purpose of this library is to provide
4967 a single point of access to handle all email functions, including sending
4968 and receiving emails. All network type actions are done through proxy
4969 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
4970
4971 Mail has been designed with a very simple object oriented system that
4972 really opens up the email messages you are parsing, if you know what you
4973 are doing, you can fiddle with every last bit of your email directly.")
4974 (home-page "https://github.com/mikel/mail")
4975 (license license:expat)))
4976
4977 (define-public ruby-code-statistics
4978 (package
4979 (name "ruby-code-statistics")
4980 (version "0.2.13")
4981 (source
4982 (origin
4983 (method url-fetch)
4984 (uri (rubygems-uri "code_statistics" version))
4985 (sha256
4986 (base32
4987 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
4988 (build-system ruby-build-system)
4989 (arguments
4990 `(#:tests? #f)) ; Not all test code is included in gem.
4991 (synopsis "Port of the rails 'rake stats' method")
4992 (description
4993 "This gem is a port of the rails 'rake stats' method so it can be made
4994 more robust and work for non rails projects.")
4995 (home-page "http://github.com/danmayer/code_statistics")
4996 (license license:expat)))
4997
4998 (define-public ruby-rubypants
4999 (package
5000 (name "ruby-rubypants")
5001 (version "0.6.0")
5002 (source (origin
5003 (method url-fetch)
5004 (uri (rubygems-uri "rubypants" version))
5005 (sha256
5006 (base32
5007 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
5008 (build-system ruby-build-system)
5009 (arguments
5010 '(#:tests? #f)) ; need Codecov
5011 (synopsis "Port of the smart-quotes library SmartyPants")
5012 (description
5013 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
5014 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
5015 and BBEdit that easily translates plain ASCII punctuation characters into
5016 smart typographic punctuation HTML entities.")
5017 (home-page "https://github.com/jmcnevin/rubypants")
5018 (license license:bsd-2)))
5019
5020 (define-public ruby-org-ruby
5021 (package
5022 (name "ruby-org-ruby")
5023 (version "0.9.12")
5024 (source (origin
5025 (method url-fetch)
5026 (uri (rubygems-uri "org-ruby" version))
5027 (sha256
5028 (base32
5029 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
5030 (build-system ruby-build-system)
5031 (arguments
5032 '(#:tests? #f)) ; no rakefile
5033 (propagated-inputs
5034 `(("ruby-rubypants" ,ruby-rubypants)))
5035 (synopsis "Org-mode parser written in Ruby")
5036 (description
5037 "Org-ruby is an org-mode parser written in Ruby. The most significant
5038 thing this library does today is convert org-mode files to HTML or Textile or
5039 Markdown.")
5040 (home-page "https://github.com/wallyqs/org-ruby")
5041 (license license:expat)))
5042
5043 (define-public ruby-rake
5044 (package
5045 (name "ruby-rake")
5046 (version "12.3.1")
5047 (source
5048 (origin
5049 (method url-fetch)
5050 (uri (rubygems-uri "rake" version))
5051 (sha256
5052 (base32
5053 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
5054 (build-system ruby-build-system)
5055 (native-inputs
5056 `(("bundler" ,bundler)))
5057 (synopsis "Rake is a Make-like program implemented in Ruby")
5058 (description
5059 "Rake is a Make-like program where tasks and dependencies are specified
5060 in standard Ruby syntax.")
5061 (home-page "https://github.com/ruby/rake")
5062 (license license:expat)))
5063
5064 (define-public ruby-childprocess-0.6
5065 (package
5066 (name "ruby-childprocess")
5067 (version "0.6.3")
5068 (source
5069 (origin
5070 (method url-fetch)
5071 (uri (rubygems-uri "childprocess" version))
5072 (sha256
5073 (base32
5074 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
5075 (build-system ruby-build-system)
5076 (arguments
5077 `(#:tests? #f))
5078 (native-inputs
5079 `(("bundler" ,bundler)
5080 ("ruby-rspec" ,ruby-rspec)))
5081 (propagated-inputs
5082 `(("ruby-ffi" ,ruby-ffi)))
5083 (synopsis "Control external programs running in the background, in Ruby")
5084 (description "@code{childprocess} provides a gem to control external
5085 programs running in the background, in Ruby.")
5086 (home-page "http://github.com/enkessler/childprocess")
5087 (license license:expat)))
5088
5089 (define-public ruby-childprocess
5090 (package
5091 (inherit ruby-childprocess-0.6)
5092 (name "ruby-childprocess")
5093 (version "0.9.0")
5094 (source
5095 (origin
5096 (method url-fetch)
5097 (uri (rubygems-uri "childprocess" version))
5098 (sha256
5099 (base32
5100 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
5101
5102 (define-public ruby-public-suffix
5103 (package
5104 (name "ruby-public-suffix")
5105 (version "3.0.3")
5106 (source (origin
5107 (method url-fetch)
5108 (uri (rubygems-uri "public_suffix" version))
5109 (sha256
5110 (base32
5111 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
5112 (build-system ruby-build-system)
5113 (arguments
5114 ;; Tests require network
5115 `(#:tests? #f))
5116 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
5117 (synopsis "Domain name parser")
5118 (description "The gem @code{public_suffix} is a domain name parser,
5119 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
5120 is one under which Internet users can (or historically could) directly
5121 register names. Some examples of public suffixes are @code{.com},
5122 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
5123 all known public suffixes.")
5124 (license license:expat)))
5125
5126 (define-public ruby-addressable
5127 (package
5128 (name "ruby-addressable")
5129 (version "2.5.2")
5130 (source (origin
5131 (method url-fetch)
5132 (uri (rubygems-uri "addressable" version))
5133 (sha256
5134 (base32
5135 "0viqszpkggqi8hq87pqp0xykhvz60g99nwmkwsb0v45kc2liwxvk"))))
5136 (build-system ruby-build-system)
5137 (propagated-inputs
5138 `(("ruby-public-suffix" ,ruby-public-suffix)))
5139 (arguments
5140 ;; No test target
5141 `(#:tests? #f))
5142 (home-page "https://github.com/sporkmonger/addressable")
5143 (synopsis "Alternative URI implementation")
5144 (description "Addressable is a replacement for the URI implementation that
5145 is part of Ruby's standard library. It more closely conforms to RFC 3986,
5146 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
5147 (license license:asl2.0)))
5148
5149 (define-public ruby-colorator
5150 (package
5151 (name "ruby-colorator")
5152 (version "1.1.0")
5153 (source (origin
5154 (method url-fetch)
5155 (uri (rubygems-uri "colorator" version))
5156 (sha256
5157 (base32
5158 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
5159 (build-system ruby-build-system)
5160 (arguments
5161 ;; No test target
5162 `(#:tests? #f))
5163 (home-page "http://octopress.org/colorator/")
5164 (synopsis "Terminal color library")
5165 (description "Colorator is a Ruby gem that helps you colorize your text
5166 for the terminal.")
5167 (license license:expat)))
5168
5169 (define-public ruby-command-line-reporter
5170 (package
5171 (name "ruby-command-line-reporter")
5172 (version "4.0.0")
5173 (source (origin
5174 (method url-fetch)
5175 (uri (rubygems-uri "command_line_reporter" version))
5176 (sha256
5177 (base32
5178 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
5179 (build-system ruby-build-system)
5180 (arguments
5181 ;; No Rakefile
5182 `(#:tests? #f
5183 #:phases
5184 (modify-phases %standard-phases
5185 (add-before 'build 'fix-dependencies
5186 (lambda _
5187 (substitute* ".gemspec"
5188 ;; colored is unmaintained
5189 (("colored") "colorator")
5190 ;; colorator version
5191 (("= 1.2") "= 1.1"))
5192 #t)))))
5193 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
5194 (home-page "https://github.com/wbailey/command_line_reporter")
5195 (synopsis "Report production while executing Ruby scripts")
5196 (description "This gem provides a DSL that makes it easy to write reports
5197 of various types in ruby. It eliminates the need to litter your source with
5198 puts statements, instead providing a more readable, expressive interface to
5199 your application.")
5200 (license license:asl2.0)))
5201
5202 (define-public ruby-command-line-reporter-3
5203 (package
5204 (inherit ruby-command-line-reporter)
5205 (version "3.3.6")
5206 (source (origin
5207 (method url-fetch)
5208 (uri (rubygems-uri "command_line_reporter" version))
5209 (sha256
5210 (base32
5211 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
5212
5213 (define-public ruby-rdoc
5214 (package
5215 (name "ruby-rdoc")
5216 (version "6.0.4")
5217 (source
5218 (origin
5219 (method url-fetch)
5220 (uri (rubygems-uri "rdoc" version))
5221 (sha256
5222 (base32
5223 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
5224 (build-system ruby-build-system)
5225 (native-inputs
5226 `(("bundler" ,bundler)))
5227 (home-page "https://ruby.github.io/rdoc/")
5228 (synopsis "HTML and command-line documentation utility")
5229 (description "RDoc produces HTML and command-line documentation for Ruby
5230 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
5231 documentation from the command-line.")
5232 (license license:gpl2+)))
5233
5234 (define-public ruby-sass-listen
5235 (package
5236 (name "ruby-sass-listen")
5237 (version "4.0.0")
5238 (source (origin
5239 (method url-fetch)
5240 (uri (rubygems-uri "sass-listen" version))
5241 (sha256
5242 (base32
5243 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
5244 (build-system ruby-build-system)
5245 (arguments
5246 ;; No test target
5247 `(#:tests? #f))
5248 (propagated-inputs
5249 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
5250 ("ruby-rb-inotify" ,ruby-rb-inotify)))
5251 (home-page "https://github.com/sass/listen")
5252 (synopsis "File modification notification library")
5253 (description "The Listen gem listens to file modifications and notifies you
5254 about the changes.")
5255 (license license:expat)))
5256
5257 (define-public ruby-terminfo
5258 (package
5259 (name "ruby-terminfo")
5260 (version "0.1.1")
5261 (source
5262 (origin
5263 (method url-fetch)
5264 (uri (rubygems-uri "ruby-terminfo" version))
5265 (sha256
5266 (base32
5267 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
5268 (build-system ruby-build-system)
5269 (arguments
5270 `(#:test-target "test"
5271 ;; Rakefile requires old packages and would need modification to
5272 ;; work with current software.
5273 #:tests? #f))
5274 (inputs
5275 `(("ncurses" ,ncurses)))
5276 (native-inputs
5277 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
5278 ("ruby-rdoc" ,ruby-rdoc)))
5279 (home-page "http://www.a-k-r.org/ruby-terminfo/")
5280 (synopsis "Terminfo binding for Ruby")
5281 (description "Ruby-terminfo provides terminfo binding for Ruby.")
5282 (license license:bsd-3)))
5283
5284 (define-public ruby-diffy
5285 (package
5286 (name "ruby-diffy")
5287 (version "3.2.1")
5288 (source
5289 (origin
5290 (method url-fetch)
5291 (uri (rubygems-uri "diffy" version))
5292 (sha256
5293 (base32
5294 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
5295 (build-system ruby-build-system)
5296 (arguments
5297 ;; No tests
5298 `(#:tests? #f))
5299 (native-inputs
5300 `(("ruby-rspec" ,ruby-rspec)))
5301 (home-page "https://github.com/samg/diffy")
5302 (synopsis "Convenient diffing in ruby")
5303 (description "Diffy provides a convenient way to generate a diff from two
5304 strings or files.")
5305 (license license:expat)))
5306
5307 (define-public ruby-sass-spec
5308 (package
5309 (name "ruby-sass-spec")
5310 (version "3.5.4")
5311 (source (origin
5312 (method url-fetch)
5313 (uri (string-append "https://github.com/sass/sass-spec/archive/v"
5314 version ".tar.gz"))
5315 (file-name (string-append name "-" version ".tar.gz"))
5316 (sha256
5317 (base32
5318 "0nx8lp7c9qa58w489crgqa3c489xsyarn1a8h4np9mwwfqm1h3rr"))))
5319 (build-system ruby-build-system)
5320 (propagated-inputs
5321 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
5322 ("ruby-diffy" ,ruby-diffy)
5323 ("ruby-terminfo" ,ruby-terminfo)))
5324 (arguments
5325 ;; No Rakefile
5326 `(#:tests? #f))
5327 (home-page "https://github.com/sass/sass-spec")
5328 (synopsis "Test suite for Sass")
5329 (description "Sass Spec is a test suite for Sass. Test cases are all in
5330 the @file{spec} directory.")
5331 (license license:expat)))
5332
5333 (define-public ruby-sass
5334 (package
5335 (name "ruby-sass")
5336 (version "3.5.7")
5337 (source (origin
5338 (method url-fetch)
5339 (uri (rubygems-uri "sass" version))
5340 (sha256
5341 (base32
5342 "1sy7xsbgpcy90j5ynbq967yplffp74pvph3r8ivn2sv2b44q6i61"))))
5343 (build-system ruby-build-system)
5344 (propagated-inputs
5345 `(("ruby-sass-listen" ,ruby-sass-listen)))
5346 (native-inputs
5347 `(("ruby-sass-spec" ,ruby-sass-spec)))
5348 (home-page "http://sass-lang.com/")
5349 (synopsis "CSS extension language")
5350 (description "Sass is a CSS extension language. It extends CSS with
5351 features that don't exist yet like variables, nesting, mixins and inheritance.")
5352 (license license:expat)))
5353
5354 (define-public ruby-jekyll-sass-converter
5355 (package
5356 (name "ruby-jekyll-sass-converter")
5357 (version "1.5.2")
5358 (source (origin
5359 (method url-fetch)
5360 (uri (rubygems-uri "jekyll-sass-converter" version))
5361 (sha256
5362 (base32
5363 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
5364 (build-system ruby-build-system)
5365 (propagated-inputs
5366 `(("ruby-sass" ,ruby-sass)))
5367 (arguments
5368 ;; No rakefile
5369 `(#:tests? #f))
5370 (home-page "https://github.com/jekyll/jekyll-sass-converter")
5371 (synopsis "Sass converter for Jekyll")
5372 (description "This gem provide built-in support for the Sass converter
5373 in Jekyll.")
5374 (license license:expat)))