gnu: linux-libre: Update to 4.9.2.
[jackhill/guix/guix.git] / gnu / packages / ruby.scm
CommitLineData
6ef8c59a 1;;; GNU Guix --- Functional package management for GNU
37ab3aba 2;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
d99ee3d9 3;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
f586c877 4;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
37ab3aba 5;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
cf36174f 6;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
3918146b 7;;; Copyright © 2015, 2016 Ben Woodcroft <donttrustben@gmail.com>
6ef8c59a
PP
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages ruby)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (gnu packages)
1db791d5 27 #:use-module (gnu packages base)
6ef8c59a 28 #:use-module (gnu packages compression)
4a9e0585 29 #:use-module (gnu packages databases)
6ef8c59a 30 #:use-module (gnu packages readline)
6ef8c59a 31 #:use-module (gnu packages autotools)
ad79eb55 32 #:use-module (gnu packages java)
6ef8c59a 33 #:use-module (gnu packages libffi)
ac09beba 34 #:use-module (gnu packages python)
763624f5 35 #:use-module (gnu packages ragel)
cc2b77df 36 #:use-module (gnu packages tls)
66e20863 37 #:use-module (gnu packages version-control)
6ef8c59a
PP
38 #:use-module (guix packages)
39 #:use-module (guix download)
bda0c139 40 #:use-module (guix git-download)
6ef8c59a 41 #:use-module (guix utils)
acf735f2 42 #:use-module (guix build-system gnu)
e920bfca 43 #:use-module (gnu packages xml)
c2c4e5b2 44 #:use-module (gnu packages web)
acf735f2 45 #:use-module (guix build-system ruby))
6ef8c59a
PP
46
47(define-public ruby
48 (package
49 (name "ruby")
f4a8081d 50 (version "2.3.3")
6ef8c59a
PP
51 (source
52 (origin
53 (method url-fetch)
6becfdff
MW
54 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
55 (version-major+minor version)
12d39eb5 56 "/ruby-" version ".tar.xz"))
6ef8c59a
PP
57 (sha256
58 (base32
f4a8081d 59 "1p0rfk0blrbfjcnv0vb0ha4hxflgkfhv9zbzp4vvld2pi31ahkqs"))
65e84e31
BW
60 (modules '((guix build utils)))
61 (snippet `(begin
62 ;; Remove bundled libffi
c033c195 63 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
65e84e31 64 #t))))
6ef8c59a
PP
65 (build-system gnu-build-system)
66 (arguments
67 `(#:test-target "test"
6ef8c59a 68 #:phases
9656b8be 69 (modify-phases %standard-phases
65e84e31 70 (add-before 'configure 'replace-bin-sh-and-remove-libffi
9656b8be
BW
71 (lambda _
72 (substitute* '("Makefile.in"
73 "ext/pty/pty.c"
74 "io.c"
75 "lib/mkmf.rb"
76 "process.c"
77 "test/rubygems/test_gem_ext_configure_builder.rb"
78 "test/rdoc/test_rdoc_parser.rb"
79 "test/ruby/test_rubyoptions.rb"
80 "test/ruby/test_process.rb"
81 "test/ruby/test_system.rb"
82 "tool/rbinstall.rb")
83 (("/bin/sh") (which "sh")))
84 #t)))))
6ef8c59a
PP
85 (inputs
86 `(("readline" ,readline)
6ef8c59a
PP
87 ("openssl" ,openssl)
88 ("libffi" ,libffi)
89 ("gdbm" ,gdbm)
90 ("zlib" ,zlib)))
91 (native-search-paths
92 (list (search-path-specification
93 (variable "GEM_PATH")
af070955
LC
94 (files (list (string-append "lib/ruby/gems/"
95 (version-major+minor version)
96 ".0"))))))
6becfdff 97 (synopsis "Programming language interpreter")
6ef8c59a
PP
98 (description "Ruby is a dynamic object-oriented programming language with
99a focus on simplicity and productivity.")
100 (home-page "https://ruby-lang.org")
101 (license license:ruby)))
102
65e84e31
BW
103(define-public ruby-2.2
104 (package (inherit ruby)
6e02766d 105 (replacement #f)
4af80275 106 (version "2.2.6")
65e84e31
BW
107 (source
108 (origin
109 (method url-fetch)
110 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
111 (version-major+minor version)
112 "/ruby-" version ".tar.xz"))
113 (sha256
114 (base32
4af80275 115 "0fbk2pyjphynj4kxn27vb5rsq6brr3y85p784jd1rxwws30fq54l"))))))
65e84e31 116
9942e803
PP
117(define-public ruby-2.1
118 (package (inherit ruby)
6e02766d 119 (replacement #f)
a754eaf1 120 (version "2.1.10")
9942e803
PP
121 (source
122 (origin
123 (method url-fetch)
124 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
125 (version-major+minor version)
126 "/ruby-" version ".tar.bz2"))
127 (sha256
128 (base32
a754eaf1 129 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
9942e803
PP
130 (arguments
131 `(#:test-target "test"
132 #:parallel-tests? #f
133 #:phases
134 (alist-cons-before
135 'configure 'replace-bin-sh
136 (lambda _
137 (substitute* '("Makefile.in"
138 "ext/pty/pty.c"
139 "io.c"
140 "lib/mkmf.rb"
141 "process.c")
142 (("/bin/sh") (which "sh"))))
143 %standard-phases)))
144 (native-search-paths
145 (list (search-path-specification
146 (variable "GEM_PATH")
147 (files (list (string-append "lib/ruby/gems/"
148 (version-major+minor version)
149 ".0"))))))))
150
218ee89b
PP
151(define-public ruby-1.8
152 (package (inherit ruby)
6e02766d 153 (replacement #f)
218ee89b
PP
154 (version "1.8.7-p374")
155 (source
156 (origin
157 (method url-fetch)
6becfdff
MW
158 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
159 (version-major+minor version)
160 "/ruby-" version ".tar.bz2"))
218ee89b
PP
161 (sha256
162 (base32
163 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
164 (native-search-paths '())
165 (arguments
166 `(#:test-target "test"
167 #:parallel-tests? #f
168 #:phases
169 (alist-cons-before
170 'configure 'replace-bin-sh
171 (lambda _
172 (substitute* '("Makefile.in"
173 "ext/pty/pty.c"
174 "io.c"
175 "lib/mkmf.rb"
176 "process.c")
177 (("/bin/sh") (which "sh"))))
178 %standard-phases)))))
179
bda0c139
DT
180(define-public ruby-hoe
181 (package
182 (name "ruby-hoe")
8e941f20 183 (version "3.16.0")
bda0c139 184 (source (origin
e83c6d00
DT
185 (method url-fetch)
186 (uri (rubygems-uri "hoe" version))
bda0c139
DT
187 (sha256
188 (base32
8e941f20 189 "03r8nsw4n4mnia9iqiqk9kqhvrl96m2i81j4yg8cpnppd8vk7vlb"))))
bda0c139 190 (build-system ruby-build-system)
bda0c139
DT
191 (synopsis "Ruby project management helper")
192 (description
193 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
194maintain, and release projects and includes a dynamic plug-in system allowing
195for easy extensibility. Hoe ships with plug-ins for all the usual project
196tasks including rdoc generation, testing, packaging, deployment, and
197announcement.")
198 (home-page "http://www.zenspider.com/projects/hoe.html")
199 (license license:expat)))
200
022170dc
PP
201(define-public ruby-rake-compiler
202 (package
203 (name "ruby-rake-compiler")
16d8d8b2 204 (version "1.0.1")
022170dc
PP
205 (source (origin
206 (method url-fetch)
e83c6d00 207 (uri (rubygems-uri "rake-compiler" version))
022170dc
PP
208 (sha256
209 (base32
16d8d8b2 210 "1lf91nf1fcnmsh54mxz06wyfmjkwh58vljr35zns5cwbg8fwmi20"))))
022170dc
PP
211 (build-system ruby-build-system)
212 (arguments
e83c6d00 213 '(#:tests? #f)) ; needs cucumber
022170dc 214 (synopsis "Building and packaging helper for Ruby native extensions")
e881752c 215 (description "Rake-compiler provides a framework for building and
022170dc
PP
216packaging native C and Java extensions in Ruby.")
217 (home-page "https://github.com/rake-compiler/rake-compiler")
218 (license license:expat)))
219
acf735f2
DT
220(define-public ruby-i18n
221 (package
222 (name "ruby-i18n")
0bfdfd37 223 (version "0.7.0")
acf735f2
DT
224 (source (origin
225 (method url-fetch)
e83c6d00 226 (uri (rubygems-uri "i18n" version))
acf735f2
DT
227 (sha256
228 (base32
0bfdfd37 229 "1i5z1ykl8zhszsxcs8mzl8d0dxgs3ylz8qlzrw74jb0gplkx6758"))))
acf735f2
DT
230 (build-system ruby-build-system)
231 (arguments
0bfdfd37 232 '(#:tests? #f)) ; no tests
acf735f2
DT
233 (synopsis "Internationalization library for Ruby")
234 (description "Ruby i18n is an internationalization and localization
235solution for Ruby programs. It features translation and localization,
236interpolation of values to translations, pluralization, customizable
237transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
238translation data, custom key/scope separator, custom exception handlers, and
239an extensible architecture with a swappable backend.")
240 (home-page "http://github.com/svenfuchs/i18n")
241 (license license:expat)))
eb0c2dd6
DT
242
243;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
244;; dependencies use RSpec for their test suites! To avoid these circular
245;; dependencies, we disable tests for all of the RSpec-related packages.
246(define ruby-rspec-support
247 (package
248 (name "ruby-rspec-support")
2d9f1c06 249 (version "3.5.0")
eb0c2dd6
DT
250 (source (origin
251 (method url-fetch)
e83c6d00 252 (uri (rubygems-uri "rspec-support" version))
eb0c2dd6
DT
253 (sha256
254 (base32
2d9f1c06 255 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
eb0c2dd6
DT
256 (build-system ruby-build-system)
257 (arguments
258 '(#:tests? #f)) ; avoid dependency cycles
259 (synopsis "RSpec support library")
260 (description "Support utilities for RSpec gems.")
261 (home-page "https://github.com/rspec/rspec-support")
262 (license license:expat)))
263
264(define-public ruby-rspec-core
265 (package
266 (name "ruby-rspec-core")
c5949118 267 (version "3.5.4")
eb0c2dd6
DT
268 (source (origin
269 (method url-fetch)
e83c6d00 270 (uri (rubygems-uri "rspec-core" version))
eb0c2dd6
DT
271 (sha256
272 (base32
c5949118 273 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
eb0c2dd6
DT
274 (build-system ruby-build-system)
275 (arguments
276 '(#:tests? #f)) ; avoid dependency cycles
277 (propagated-inputs
278 `(("ruby-rspec-support" ,ruby-rspec-support)))
279 (synopsis "RSpec core library")
280 (description "Rspec-core provides the RSpec test runner and example
281groups.")
282 (home-page "https://github.com/rspec/rspec-core")
283 (license license:expat)))
e6962009 284
64c318f2
BW
285(define-public ruby-rspec-core-2
286 (package (inherit ruby-rspec-core)
287 (version "2.14.8")
288 (source (origin
289 (method url-fetch)
290 (uri (rubygems-uri "rspec-core" version))
291 (sha256
292 (base32
293 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
294 (propagated-inputs `())))
295
20c05ea9 296(define-public ruby-diff-lcs
e6962009
DT
297 (package
298 (name "ruby-diff-lcs")
299 (version "1.2.5")
300 (source (origin
301 (method url-fetch)
e83c6d00 302 (uri (rubygems-uri "diff-lcs" version))
e6962009
DT
303 (sha256
304 (base32
e83c6d00 305 "1vf9civd41bnqi6brr5d9jifdw73j9khc6fkhfl1f8r9cpkdvlx1"))))
e6962009
DT
306 (build-system ruby-build-system)
307 (arguments
308 '(#:tests? #f)) ; avoid dependency cycles
309 (synopsis "Compute the difference between two Enumerable sequences")
310 (description "Diff::LCS computes the difference between two Enumerable
311sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
312It includes utilities to create a simple HTML diff output format and a
313standard diff-like tool.")
314 (home-page "https://github.com/halostatue/diff-lcs")
315 (license license:expat)))
316
317(define-public ruby-rspec-expectations
318 (package
319 (name "ruby-rspec-expectations")
2d9f1c06 320 (version "3.5.0")
e6962009
DT
321 (source (origin
322 (method url-fetch)
e83c6d00 323 (uri (rubygems-uri "rspec-expectations" version))
e6962009
DT
324 (sha256
325 (base32
2d9f1c06 326 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
e6962009
DT
327 (build-system ruby-build-system)
328 (arguments
329 '(#:tests? #f)) ; avoid dependency cycles
330 (propagated-inputs
331 `(("ruby-rspec-support" ,ruby-rspec-support)
20c05ea9 332 ("ruby-diff-lcs" ,ruby-diff-lcs)))
e881752c 333 (synopsis "RSpec expectations library")
e6962009
DT
334 (description "Rspec-expectations provides a simple API to express expected
335outcomes of a code example.")
336 (home-page "https://github.com/rspec/rspec-expectations")
337 (license license:expat)))
4f2a0cac 338
fb157f25
BW
339(define-public ruby-rspec-expectations-2
340 (package (inherit ruby-rspec-expectations)
341 (version "2.14.5")
342 (source (origin
343 (method url-fetch)
344 (uri (rubygems-uri "rspec-expectations" version))
345 (sha256
346 (base32
347 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
348 (propagated-inputs
349 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
350
4f2a0cac
DT
351(define-public ruby-rspec-mocks
352 (package
353 (name "ruby-rspec-mocks")
2d9f1c06 354 (version "3.5.0")
4f2a0cac
DT
355 (source (origin
356 (method url-fetch)
e83c6d00 357 (uri (rubygems-uri "rspec-mocks" version))
4f2a0cac
DT
358 (sha256
359 (base32
2d9f1c06 360 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
4f2a0cac
DT
361 (build-system ruby-build-system)
362 (arguments
363 '(#:tests? #f)) ; avoid dependency cycles
364 (propagated-inputs
365 `(("ruby-rspec-support" ,ruby-rspec-support)
20c05ea9 366 ("ruby-diff-lcs" ,ruby-diff-lcs)))
4f2a0cac
DT
367 (synopsis "RSpec stubbing and mocking library")
368 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
369support for stubbing and mocking.")
370 (home-page "https://github.com/rspec/rspec-mocks")
371 (license license:expat)))
d4fde1f2 372
6da9adeb
BW
373(define-public ruby-rspec-mocks-2
374 (package (inherit ruby-rspec-mocks)
375 (version "2.14.6")
376 (source (origin
377 (method url-fetch)
378 (uri (rubygems-uri "rspec-mocks" version))
379 (sha256
380 (base32
381 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
382 (propagated-inputs
383 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
384
d4fde1f2
DT
385(define-public ruby-rspec
386 (package
387 (name "ruby-rspec")
2d9f1c06 388 (version "3.5.0")
d4fde1f2
DT
389 (source (origin
390 (method url-fetch)
e83c6d00 391 (uri (rubygems-uri "rspec" version))
d4fde1f2
DT
392 (sha256
393 (base32
2d9f1c06 394 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
d4fde1f2
DT
395 (build-system ruby-build-system)
396 (arguments
397 '(#:tests? #f)) ; avoid dependency cycles
398 (propagated-inputs
399 `(("ruby-rspec-core" ,ruby-rspec-core)
400 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
401 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
402 (synopsis "Behavior-driven development framework for Ruby")
403 (description "RSpec is a behavior-driven development (BDD) framework for
404Ruby. This meta-package includes the RSpec test runner, along with the
405expectations and mocks frameworks.")
406 (home-page "http://rspec.info/")
407 (license license:expat)))
2cbc105b 408
5ac984b3
BW
409(define-public ruby-rspec-2
410 (package (inherit ruby-rspec)
411 (version "2.14.1")
412 (source (origin
413 (method url-fetch)
414 (uri (rubygems-uri "rspec" version))
415 (sha256
416 (base32
417 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
418 (propagated-inputs
419 `(("ruby-rspec-core" ,ruby-rspec-core-2)
420 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
421 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
422
2cbc105b
DT
423;; Bundler is yet another source of circular dependencies, so we must disable
424;; its test suite as well.
425(define-public bundler
426 (package
427 (name "bundler")
bb4bcb02 428 (version "1.13.6")
2cbc105b
DT
429 (source (origin
430 (method url-fetch)
e83c6d00 431 (uri (rubygems-uri "bundler" version))
2cbc105b
DT
432 (sha256
433 (base32
bb4bcb02 434 "1xyhy9cn8w9passp64p6hb3df2fpiqbds6rj7xha1335xpgj5zgs"))))
2cbc105b
DT
435 (build-system ruby-build-system)
436 (arguments
437 '(#:tests? #f)) ; avoid dependency cycles
438 (synopsis "Ruby gem bundler")
439 (description "Bundler automatically downloads and installs a list of gems
440specified in a \"Gemfile\", as well as their dependencies.")
441 (home-page "http://bundler.io/")
442 (license license:expat)))
98b87b82 443
cf36174f
RW
444(define-public ruby-builder
445 (package
446 (name "ruby-builder")
447 (version "3.2.2")
448 (source (origin
449 (method url-fetch)
450 (uri (rubygems-uri "builder" version))
451 (sha256
452 (base32
453 "14fii7ab8qszrvsvhz6z2z3i4dw0h41a62fjr2h1j8m41vbrmyv2"))))
454 (build-system ruby-build-system)
455 (arguments
456 `(#:phases
457 (modify-phases %standard-phases
458 (add-after 'unpack 'do-not-use-rvm
459 (lambda _
460 (substitute* "rakelib/tags.rake"
461 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
462 #t)))))
463 (synopsis "Ruby library to create structured data")
464 (description "Builder provides a number of builder objects that make it
465easy to create structured data. Currently the following builder objects are
466supported: XML Markup and XML Events.")
467 (home-page "https://github.com/jimweirich/builder")
468 (license license:expat)))
469
ad79eb55
RW
470(define-public ruby-rjb
471 (package
472 (name "ruby-rjb")
473 (version "1.5.3")
474 (source (origin
475 (method url-fetch)
476 (uri (rubygems-uri "rjb" version))
477 (sha256
478 (base32
479 "0gzs92dagk981s4vrymnqg0vll783b9k564j0cdgp167nc5a2zg4"))))
480 (build-system ruby-build-system)
481 (arguments
482 `(#:tests? #f ; no rakefile
483 #:phases
484 (modify-phases %standard-phases
485 (add-before 'build 'set-java-home
486 (lambda* (#:key inputs #:allow-other-keys)
487 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
488 #t)))))
489 (native-inputs
d2540f80 490 `(("jdk" ,icedtea "jdk")))
ad79eb55
RW
491 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
492 (description "RJB is a bridge program that connects Ruby and Java via the
493Java Native Interface.")
494 (home-page "http://www.artonx.org/collabo/backyard/?RubyJavaBridge")
495 (license license:lgpl2.1+)))
496
f9ae2c06
PP
497(define-public ruby-log4r
498 (package
499 (name "ruby-log4r")
500 (version "1.1.10")
501 (source
502 (origin
503 (method url-fetch)
504 (uri (rubygems-uri "log4r" version))
505 (sha256
506 (base32
507 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
508 (build-system ruby-build-system)
509 (arguments
510 '(#:tests? #f)) ; no Rakefile in gem
511 (synopsis "Flexible logging library for Ruby")
512 (description "Comprehensive and flexible logging library written
513in Ruby for use in Ruby programs. It features a hierarchical logging
514system of any number of levels, custom level names, logger
515inheritance, multiple output destinations per log event, execution
516tracing, custom formatting, thread safteyness, XML and YAML
517configuration, and more.")
518 (home-page "http://log4r.rubyforge.org/")
519 (license license:bsd-3)))
520
71a03c29
RW
521(define-public ruby-atoulme-antwrap
522 (package
523 (name "ruby-atoulme-antwrap")
524 (version "0.7.5")
525 (source (origin
526 (method url-fetch)
527 (uri (rubygems-uri "atoulme-Antwrap" version))
528 (sha256
529 (base32
530 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
531 (build-system ruby-build-system)
532 ;; Test data required for most of the tests are not included.
533 (arguments `(#:tests? #f))
534 (native-inputs
535 `(("ruby-hoe" ,ruby-hoe)))
536 (inputs
537 `(("ruby-rjb" ,ruby-rjb)))
538 (synopsis "Ruby wrapper for the Ant build tool")
539 (description "Antwrap is a Ruby module that wraps the Apache Ant build
540tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
541script.")
542 (home-page "http://rubyforge.org/projects/antwrap/")
543 (license license:expat)))
544
fe1ddad5
RW
545(define-public ruby-atoulme-saikuro
546 (package
547 (name "ruby-atoulme-saikuro")
548 (version "1.2.1")
549 (source (origin
550 (method url-fetch)
551 (uri (rubygems-uri "atoulme-Saikuro" version))
552 (sha256
553 (base32
554 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
555 (build-system ruby-build-system)
556 ;; FIXME: There are no unit tests. The tests are demonstrations of the
557 ;; "saikuro" tool.
558 (arguments `(#:tests? #f))
559 (synopsis "Cyclomatic complexity analyzer")
560 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
561given Ruby source code Saikuro will generate a report listing the cyclomatic
562complexity of each method found. In addition, Saikuro counts the number of
563lines per method and can generate a listing of the number of tokens on each
564line of code.")
565 (home-page "http://www.github.com/atoulme/Saikuro")
566 ;; File headers contain the BSD-3 license and the README.rdoc says that
567 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
568 ;; of the Expat license.
569 (license license:bsd-3)))
570
2f9e0b68
RW
571(define-public ruby-ci-reporter
572 (package
573 (name "ruby-ci-reporter")
574 (version "2.0.0")
575 (source (origin
576 (method url-fetch)
577 (uri (rubygems-uri "ci_reporter" version))
578 (sha256
579 (base32
580 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
581 (build-system ruby-build-system)
582 (arguments
583 `(#:test-target "rspec"))
584 (propagated-inputs
585 `(("ruby-builder" ,ruby-builder)))
586 (native-inputs
587 `(("bundler" ,bundler)
588 ("ruby-rspec" ,ruby-rspec)))
589 (synopsis "Generate XML reports of runs test")
590 (description
591 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
592you to generate XML reports of your test runs. The resulting files can be
593read by a continuous integration system that understands Ant's JUnit report
594format.")
595 (home-page "https://github.com/nicksieger/ci_reporter")
596 (license license:expat)))
597
b004fb6a
RW
598(define-public ruby-saikuro-treemap
599 (package
600 (name "ruby-saikuro-treemap")
601 (version "0.2.0")
602 (source (origin
603 (method url-fetch)
604 (uri (rubygems-uri "saikuro_treemap" version))
605 (sha256
606 (base32
607 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
608 (build-system ruby-build-system)
609 ;; Some of the tests fail because the generated JSON has keys in a
610 ;; different order. This is a problem with the test suite rather than any
611 ;; of the involved libraries.
612 (arguments `(#:tests? #f))
613 (propagated-inputs
614 `(("ruby-json-pure" ,ruby-json-pure)
615 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
616 (synopsis "Generate complexity treemap based on saikuro analysis")
617 (description
618 "This gem generates a treemap showing the complexity of Ruby code on
619which it is run. It uses Saikuro under the covers to analyze Ruby code
620complexity.")
621 (home-page "http://github.com/ThoughtWorksStudios/saikuro_treemap")
622 (license license:expat)))
623
cc53e630
RW
624(define-public ruby-orderedhash
625 (package
626 (name "ruby-orderedhash")
627 (version "0.0.6")
628 (source (origin
629 (method url-fetch)
630 (uri (rubygems-uri "orderedhash" version))
631 (sha256
632 (base32
633 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
634 (build-system ruby-build-system)
635 (arguments
636 '(#:tests? #f)) ; no test suite
637 (synopsis "Ruby library providing an order-preserving hash")
638 (description "Orderedhash is a Ruby library providing a hash
639implementation that preserves the order of items and features some array-like
640extensions.")
641 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
642 (license license:public-domain)))
643
28c5d42d
PP
644(define-public ruby-libxml
645 (package
646 (name "ruby-libxml")
647 (version "2.8.0")
648 (source
649 (origin
650 (method url-fetch)
651 (uri (rubygems-uri "libxml-ruby" version))
652 (sha256
653 (base32
654 "1dhjqp4r9vkdp00l6h1cj8qfndzxlhlxk6b9g0w4v55gz857ilhb"))))
655 (build-system ruby-build-system)
656 (inputs
657 `(("zlib" ,zlib)
658 ("libxml2" ,libxml2)))
659 (arguments
660 '(#:tests? #f ; test suite hangs for unknown reason
661 #:gem-flags
662 (list "--"
663 (string-append "--with-xml2-include="
664 (assoc-ref %build-inputs "libxml2")
665 "/include/libxml2" ))))
666 (synopsis "Ruby bindings for GNOME Libxml2")
667 (description "The Libxml-Ruby project provides Ruby language bindings for
668the GNOME Libxml2 XML toolkit.")
669 (home-page "http://xml4r.github.com/libxml-ruby")
670 (license license:expat)))
671
8b9bde07
RW
672(define-public ruby-xml-simple
673 (package
674 (name "ruby-xml-simple")
675 (version "1.1.5")
676 (source (origin
677 (method url-fetch)
678 (uri (rubygems-uri "xml-simple" version))
679 (sha256
680 (base32
681 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
682 (build-system ruby-build-system)
683 (arguments
684 '(#:tests? #f)) ; no test suite
685 (synopsis "Simple Ruby library for XML processing")
686 (description "This library provides a simple API for XML processing in
687Ruby.")
688 (home-page "https://github.com/maik/xml-simple")
689 (license license:ruby)))
690
2cb3ab48
RW
691(define-public ruby-thor
692 (package
693 (name "ruby-thor")
694 (version "0.19.1")
695 (source (origin
696 (method url-fetch)
697 (uri (rubygems-uri "thor" version))
698 (sha256
699 (base32
700 "08p5gx18yrbnwc6xc0mxvsfaxzgy2y9i78xq7ds0qmdm67q39y4z"))))
701 (build-system ruby-build-system)
702 (arguments
703 '(#:tests? #f)) ; no test suite
704 (native-inputs
705 `(("bundler" ,bundler)))
706 (synopsis "Ruby toolkit for building command-line interfaces")
707 (description "Thor is a toolkit for building powerful command-line
708interfaces.")
709 (home-page "http://whatisthor.com/")
710 (license license:expat)))
711
ec79018e
RW
712(define-public ruby-lumberjack
713 (package
714 (name "ruby-lumberjack")
8be62d3f 715 (version "1.0.10")
ec79018e
RW
716 (source (origin
717 (method url-fetch)
718 (uri (rubygems-uri "lumberjack" version))
719 (sha256
720 (base32
8be62d3f 721 "0ily8j83q959w19zb7qm6m7y53sdj9afxj4x6mn2adl4i7vpdsv4"))))
ec79018e
RW
722 (build-system ruby-build-system)
723 (native-inputs
8be62d3f
BW
724 `(("ruby-rspec" ,ruby-rspec)
725 ("ruby-timecop" ,ruby-timecop)))
ec79018e
RW
726 (synopsis "Logging utility library for Ruby")
727 (description "Lumberjack is a simple logging utility that can be a drop in
728replacement for Logger or ActiveSupport::BufferedLogger. It provides support
729for automatically rolling log files even with multiple processes writing the
730same log file.")
731 (home-page "http://github.com/bdurand/lumberjack")
732 (license license:expat)))
733
70b4cf38
RW
734(define-public ruby-nenv
735 (package
736 (name "ruby-nenv")
737 (version "0.2.0")
738 (source (origin
739 (method url-fetch)
740 (uri (rubygems-uri "nenv" version))
741 (sha256
742 (base32
743 "152wxwri0afwgnxdf93gi6wjl9rr5z7vwp8ln0gpa3rddbfc27s6"))))
744 (build-system ruby-build-system)
745 (arguments
746 `(#:tests? #f)) ; no tests included
747 (native-inputs
748 `(("ruby-rspec" ,ruby-rspec)
749 ("bundler" ,bundler)))
750 (synopsis "Ruby interface for modifying the environment")
751 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
752and inspect the environment.")
753 (home-page "https://github.com/e2/nenv")
754 (license license:expat)))
755
8d9e9f28
RW
756(define-public ruby-permutation
757 (package
758 (name "ruby-permutation")
759 (version "0.1.8")
760 (source (origin
761 (method url-fetch)
762 (uri (rubygems-uri "permutation" version))
763 (sha256
764 (base32
765 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
766 (build-system ruby-build-system)
767 (arguments
768 `(#:phases
769 (modify-phases %standard-phases
770 (add-after 'unpack 'fix-rakefile
771 (lambda _
772 (substitute* "Rakefile"
773 (("require 'rake/gempackagetask'")
774 "require 'rubygems/package_task'")
775 (("include Config") ""))
776 #t))
777 (replace 'check
778 (lambda _
779 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
780 (synopsis "Library to perform operations with sequence permutations")
781 (description "This package provides a Ruby library to perform different
782operations with permutations of sequences, such as strings and arrays.")
783 (home-page "http://flori.github.io/permutation")
784 (license license:gpl2))) ; GPL 2 only
785
c5d14d42
RW
786(define-public ruby-shellany
787 (package
788 (name "ruby-shellany")
789 (version "0.0.1")
790 (source (origin
791 (method url-fetch)
792 (uri (rubygems-uri "shellany" version))
793 (sha256
794 (base32
795 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
796 (build-system ruby-build-system)
797 (arguments
798 `(#:test-target "default"
799 #:phases
800 (modify-phases %standard-phases
801 (add-after 'unpack 'fix-version-test
802 (lambda _
803 (substitute* "spec/shellany_spec.rb"
804 (("^RSpec") "require \"shellany\"\nRSpec"))
805 #t)))))
806 (native-inputs
807 `(("ruby-rspec" ,ruby-rspec)
808 ("ruby-nenv" ,ruby-nenv)
809 ("bundler" ,bundler)))
810 (synopsis "Capture command output")
811 (description "Shellany is a Ruby library providing functions to capture
812the output produced by running shell commands.")
813 (home-page "https://rubygems.org/gems/shellany")
814 (license license:expat)))
815
d152162f
RW
816(define-public ruby-notiffany
817 (package
818 (name "ruby-notiffany")
819 (version "0.0.7")
820 (source (origin
821 (method url-fetch)
822 (uri (rubygems-uri "notiffany" version))
823 (sha256
824 (base32
825 "1v5x1w59qq85r6dpv3y9ga34dfd7hka1qxyiykaw7gm0i6kggbhi"))))
826 (build-system ruby-build-system)
827 ;; Tests are not included in the gem.
828 (arguments `(#:tests? #f))
829 (propagated-inputs
830 `(("ruby-shellany" ,ruby-shellany)
831 ("ruby-nenv" ,ruby-nenv)))
832 (native-inputs
833 `(("bundler" ,bundler)))
834 (synopsis "Wrapper libray for notification libraries")
835 (description "Notiffany is a Ruby wrapper libray for notification
836libraries such as Libnotify.")
837 (home-page "https://github.com/guard/notiffany")
838 (license license:expat)))
839
8528365b
RW
840(define-public ruby-formatador
841 (package
842 (name "ruby-formatador")
843 (version "0.2.5")
844 (source (origin
845 (method url-fetch)
846 (uri (rubygems-uri "formatador" version))
847 (sha256
848 (base32
849 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
850 (build-system ruby-build-system)
851 ;; Circular dependency: Tests require ruby-shindo, which requires
852 ;; ruby-formatador at runtime.
853 (arguments `(#:tests? #f))
854 (synopsis "Ruby library to format text on stdout")
855 (description "Formatador is a Ruby library to format text printed to the
856standard output stream.")
857 (home-page "http://github.com/geemus/formatador")
858 (license license:expat)))
859
7ac4610f
RW
860(define-public ruby-shindo
861 (package
862 (name "ruby-shindo")
863 (version "0.3.8")
864 (source (origin
865 (method url-fetch)
866 (uri (rubygems-uri "shindo" version))
867 (sha256
868 (base32
869 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
870 (build-system ruby-build-system)
871 (arguments
872 `(#:test-target "shindo_tests"
873 #:phases
874 (modify-phases %standard-phases
875 (add-after 'unpack 'fix-tests
876 (lambda _
877 (substitute* "Rakefile"
878 (("system \"shindo") "system \"./bin/shindo")
879 ;; This test doesn't work, so we disable it.
880 (("fail \"The build_error test should fail") "#"))
881 #t)))))
882 (propagated-inputs
883 `(("ruby-formatador" ,ruby-formatador)))
884 (synopsis "Simple depth first Ruby testing")
885 (description "Shindo is a simple depth first testing library for Ruby.")
886 (home-page "https://github.com/geemus/shindo")
887 (license license:expat)))
888
f13636f2
RW
889(define-public ruby-rubygems-tasks
890 (package
891 (name "ruby-rubygems-tasks")
892 (version "0.2.4")
893 (source (origin
894 (method url-fetch)
895 (uri (rubygems-uri "rubygems-tasks" version))
896 (sha256
897 (base32
898 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
899 (build-system ruby-build-system)
900 ;; Tests need Internet access.
901 (arguments `(#:tests? #f))
902 (native-inputs
903 `(("ruby-rspec" ,ruby-rspec)
904 ("ruby-yard" ,ruby-yard)))
905 (synopsis "Rake tasks for managing and releasing Ruby Gems")
906 (description "Rubygems-task provides Rake tasks for managing and releasing
907Ruby Gems.")
908 (home-page "https://github.com/postmodern/rubygems-tasks")
909 (license license:expat)))
910
2417fce3
RW
911(define-public ruby-ffi
912 (package
913 (name "ruby-ffi")
26af1c8d 914 (version "1.9.14")
2417fce3
RW
915 (source (origin
916 (method url-fetch)
917 (uri (rubygems-uri "ffi" version))
918 (sha256
919 (base32
26af1c8d 920 "1nkcrmxqr0vb1y4rwliclwlj2ajsi4ddpdx2gvzjy0xbkk5iqzfp"))))
2417fce3
RW
921 (build-system ruby-build-system)
922 ;; FIXME: Before running tests the build system attempts to build libffi
923 ;; from sources.
924 (arguments `(#:tests? #f))
925 (native-inputs
926 `(("ruby-rake-compiler" ,ruby-rake-compiler)
927 ("ruby-rspec" ,ruby-rspec)
928 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
929 (inputs
930 `(("libffi" ,libffi)))
931 (synopsis "Ruby foreign function interface library")
932 (description "Ruby-FFI is a Ruby extension for programmatically loading
933dynamic libraries, binding functions within them, and calling those functions
934from Ruby code. Moreover, a Ruby-FFI extension works without changes on Ruby
935and JRuby.")
936 (home-page "http://wiki.github.com/ffi/ffi")
937 (license license:bsd-3)))
938
58b59742
RW
939(define-public ruby-simplecov-html
940 (package
941 (name "ruby-simplecov-html")
942 (version "0.10.0")
943 (source (origin
944 (method url-fetch)
945 (uri (rubygems-uri "simplecov-html" version))
946 (sha256
947 (base32
8b749cf3 948 "1qni8g0xxglkx25w54qcfbi4wjkpvmb28cb7rj5zk3iqynjcdrqf"))))
58b59742 949 (build-system ruby-build-system)
8b749cf3 950 (arguments `(#:tests? #f)) ; there are no tests
58b59742
RW
951 (native-inputs
952 `(("bundler" ,bundler)))
953 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
954 (description "This package provides the default HTML formatter for
955the SimpleCov code coverage tool for Ruby version 1.9 and above.")
956 (home-page "https://github.com/colszowka/simplecov-html")
957 (license license:expat)))
958
a84fa2ad
RW
959(define-public ruby-simplecov
960 (package
961 (name "ruby-simplecov")
1b107245 962 (version "0.12.0")
a84fa2ad
RW
963 (source (origin
964 (method url-fetch)
965 (uri (rubygems-uri "simplecov" version))
966 (sha256
967 (base32
1b107245 968 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
a84fa2ad
RW
969 (build-system ruby-build-system)
970 ;; Simplecov depends on rubocop for code style checking at build time.
971 ;; Rubocop needs simplecov at build time.
972 (arguments `(#:tests? #f))
973 (propagated-inputs
974 `(("ruby-json" ,ruby-json)
975 ("ruby-docile" ,ruby-docile)
976 ("ruby-simplecov-html" ,ruby-simplecov-html)))
977 (native-inputs
978 `(("bundler" ,bundler)))
979 (synopsis "Code coverage framework for Ruby")
980 (description "SimpleCov is a code coverage framework for Ruby with a
981powerful configuration library and automatic merging of coverage across test
982suites.")
983 (home-page "http://github.com/colszowka/simplecov")
984 (license license:expat)))
985
98b87b82
DT
986(define-public ruby-useragent
987 (package
988 (name "ruby-useragent")
989 (version "0.13.3")
990 (source (origin
991 (method url-fetch)
e83c6d00 992 (uri (rubygems-uri "useragent" version))
98b87b82
DT
993 (sha256
994 (base32
e83c6d00 995 "0kz7yyz7528bv4a2kfymvkcm8whqcddhmgaw1ksw1d90n30hhkpc"))))
98b87b82
DT
996 (build-system ruby-build-system)
997 (arguments
e83c6d00 998 '(#:tests? #f)) ; no test suite
98b87b82
DT
999 (synopsis "HTTP user agent parser for Ruby")
1000 (description "UserAgent is a Ruby library that parses and compares HTTP
1001User Agents.")
1002 (home-page "https://github.com/gshutler/useragent")
1003 (license license:expat)))
96086cc5
DT
1004
1005(define-public ruby-bacon
1006 (package
1007 (name "ruby-bacon")
e83c6d00 1008 (version "1.2.0")
96086cc5
DT
1009 (source (origin
1010 (method url-fetch)
e83c6d00 1011 (uri (rubygems-uri "bacon" version))
96086cc5
DT
1012 (sha256
1013 (base32
e83c6d00 1014 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
96086cc5 1015 (build-system ruby-build-system)
96086cc5
DT
1016 (synopsis "Small RSpec clone")
1017 (description "Bacon is a small RSpec clone providing all essential
1018features.")
1019 (home-page "https://github.com/chneukirchen/bacon")
1020 (license license:expat)))
de59d316
DT
1021
1022(define-public ruby-arel
1023 (package
1024 (name "ruby-arel")
1025 (version "6.0.0")
1026 (source (origin
1027 (method url-fetch)
e83c6d00 1028 (uri (rubygems-uri "arel" version))
de59d316
DT
1029 (sha256
1030 (base32
e83c6d00 1031 "18wnfnzr2i5p3fygsddjbi1cimws6823nbk8drxidmnj8jz7h0ar"))))
de59d316 1032 (build-system ruby-build-system)
e83c6d00
DT
1033 (arguments
1034 '(#:tests? #f)) ; no test suite
de59d316
DT
1035 (synopsis "SQL AST manager for Ruby")
1036 (description "Arel is a SQL AST manager for Ruby. It simplifies the
1037generation of complex SQL queries and adapts to various relational database
1038implementations.")
1039 (home-page "https://github.com/rails/arel")
1040 (license license:expat)))
e259bdf0
DT
1041
1042(define-public ruby-connection-pool
1043 (package
1044 (name "ruby-connection-pool")
1045 (version "2.2.0")
1046 (source (origin
1047 (method url-fetch)
e83c6d00 1048 (uri (rubygems-uri "connection_pool" version))
e259bdf0
DT
1049 (sha256
1050 (base32
e83c6d00 1051 "1b2bb3k39ni5mzcnqlv9y4yjkbin20s7dkwzp0jw2jf1rmzcgrmy"))))
e259bdf0
DT
1052 (build-system ruby-build-system)
1053 (native-inputs
1054 `(("bundler" ,bundler)))
1055 (synopsis "Generic connection pool for Ruby")
1056 (description "Connection_pool provides a generic connection pooling
1057interface for Ruby programs.")
1058 (home-page "https://github.com/mperham/connection_pool")
1059 (license license:expat)))
4c0aeb44
DT
1060
1061(define-public ruby-net-http-persistent
1062 (package
1063 (name "ruby-net-http-persistent")
1064 (version "2.9.4")
1065 (source (origin
1066 (method url-fetch)
e83c6d00 1067 (uri (rubygems-uri "net-http-persistent" version))
4c0aeb44
DT
1068 (sha256
1069 (base32
e83c6d00 1070 "1y9fhaax0d9kkslyiqi1zys6cvpaqx9a0y0cywp24rpygwh4s9r4"))))
4c0aeb44 1071 (build-system ruby-build-system)
4c0aeb44
DT
1072 (native-inputs
1073 `(("ruby-connection-pool" ,ruby-connection-pool)
1074 ("ruby-hoe" ,ruby-hoe)))
1075 (synopsis "Persistent HTTP connection manager")
1076 (description "Net::HTTP::Persistent manages persistent HTTP connections
1077using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1078 (home-page "https://github.com/drbrain/net-http-persistent")
1079 (license license:expat)))
afbbdf77 1080
f88bacaf
RW
1081(define-public ruby-power-assert
1082 (package
1083 (name "ruby-power-assert")
3918146b 1084 (version "0.2.7")
f88bacaf
RW
1085 (source (origin
1086 (method url-fetch)
1087 (uri (rubygems-uri "power_assert" version))
1088 (sha256
1089 (base32
3918146b 1090 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
f88bacaf
RW
1091 (build-system ruby-build-system)
1092 (native-inputs
1093 `(("bundler" ,bundler)))
1094 (synopsis "Assert library with descriptive assertion messages")
1095 (description "Power-assert is an assertion library providing descriptive
1096assertion messages for tests.")
1097 (home-page "https://github.com/k-tsj/power_assert")
1098 (license (list license:bsd-2 license:ruby))))
1099
347eb21e
RW
1100(define-public ruby-locale
1101 (package
1102 (name "ruby-locale")
1103 (version "2.1.2")
1104 (source (origin
1105 (method url-fetch)
1106 (uri (rubygems-uri "locale" version))
1107 (sha256
1108 (base32
1109 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1110 (build-system ruby-build-system)
1111 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1112 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1113 ;; dependency cycle we disable tests.
1114 (arguments `(#:tests? #f))
1115 (native-inputs
1116 `(("bundler" ,bundler)
1117 ("ruby-yard" ,ruby-yard)))
1118 (synopsis "Ruby library providing basic localization APIs")
1119 (description
1120 "Ruby-Locale is the pure ruby library which provides basic APIs for
1121localization.")
1122 (home-page "https://github.com/ruby-gettext/locale")
1123 (license (list license:lgpl3+ license:ruby))))
1124
e2333ea3
RW
1125(define-public ruby-text
1126 (package
1127 (name "ruby-text")
1128 (version "1.3.1")
1129 (source (origin
1130 (method url-fetch)
1131 (uri (rubygems-uri "text" version))
1132 (sha256
1133 (base32
1134 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1135 (build-system ruby-build-system)
1136 (synopsis "Collection of text algorithms for Ruby")
1137 (description
1138 "This package provides a collection of text algorithms: Levenshtein,
1139Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1140 (home-page "http://github.com/threedaymonk/text")
1141 (license license:expat)))
1142
c1f52261
RW
1143(define-public ruby-gettext
1144 (package
1145 (name "ruby-gettext")
1146 (version "3.1.7")
1147 (source (origin
1148 (method url-fetch)
1149 (uri (rubygems-uri "gettext" version))
1150 (sha256
1151 (base32
1152 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1153 (build-system ruby-build-system)
1154 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1155 ;; which needs ruby-gettext. To break the dependency cycle we disable
1156 ;; tests.
1157 (arguments `(#:tests? #f))
1158 (propagated-inputs
1159 `(("ruby-locale" ,ruby-locale)
1160 ("ruby-text" ,ruby-text)))
1161 (native-inputs
1162 `(("bundler" ,bundler)
1163 ("ruby-yard" ,ruby-yard)))
1164 (synopsis "GNU gettext-like program for Ruby")
1165 (description
1166 "Gettext is a GNU gettext-like program for Ruby. The catalog
1167file (po-file) used is the same as that used by GNU gettext, allowing you to
1168use GNU gettext tools for maintenance.")
1169 (home-page "http://ruby-gettext.github.com/")
1170 (license (list license:lgpl3+ license:ruby))))
1171
cc5aeb8c
RW
1172(define-public ruby-packnga
1173 (package
1174 (name "ruby-packnga")
1175 (version "1.0.1")
1176 (source (origin
1177 (method url-fetch)
1178 (uri (rubygems-uri "packnga" version))
1179 (sha256
1180 (base32
1181 "1i71yhvlkvi5fp3m8jl9317cnddkbnrcy0syrmiw4y1lrq0cbncj"))))
1182 (build-system ruby-build-system)
1183 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1184 ;; To break the dependency cycle we disable tests.
1185 (arguments `(#:tests? #f))
1186 (propagated-inputs
1187 `(("ruby-gettext" ,ruby-gettext)
1188 ("ruby-yard" ,ruby-yard)))
1189 (native-inputs
1190 `(("bundler" ,bundler)))
1191 (synopsis "Utility library to package internationalized libraries")
1192 (description
1193 "Packnga is a library to translate to many languages using YARD.")
1194 (home-page "http://ranguba.org/packnga/")
1195 (license license:lgpl2.0+)))
1196
3383f5bd
RW
1197(define-public ruby-test-unit
1198 (package
1199 (name "ruby-test-unit")
1200 (version "3.1.5")
1201 (source (origin
1202 (method url-fetch)
1203 (uri (rubygems-uri "test-unit" version))
1204 (sha256
1205 (base32
1206 "0jxznjzwmrlp8wqjxsd06qbiddffn68pdhz6nrqpjbiln1z3af4w"))))
1207 (build-system ruby-build-system)
1208 (propagated-inputs
1209 `(("ruby-power-assert" ,ruby-power-assert)))
1210 (native-inputs
1211 `(("bundler" ,bundler)
1212 ("ruby-packnga" ,ruby-packnga)
1213 ("ruby-yard" ,ruby-yard)))
1214 (synopsis "Unit testing framework for Ruby")
1215 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1216on xUnit principles. These were originally designed by Kent Beck, creator of
1217extreme programming software development methodology, for Smalltalk's SUnit.
1218It allows writing tests, checking results and automated testing in Ruby.")
1219 (home-page "http://test-unit.github.io/")
1220 (license (list license:psfl license:ruby))))
1221
25d6d49b
RW
1222(define-public ruby-metaclass
1223 (package
1224 (name "ruby-metaclass")
1225 (version "0.0.4")
1226 (source (origin
1227 (method url-fetch)
1228 (uri (rubygems-uri "metaclass" version))
1229 (sha256
1230 (base32
1231 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1232 (build-system ruby-build-system)
1233 (arguments
1234 `(#:phases
1235 (modify-phases %standard-phases
1236 (add-after 'unpack 'add-test-unit-to-search-path
761e7042
BW
1237 (lambda* (#:key inputs #:allow-other-keys)
1238 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1239 (test-unit-home (gem-home test-unit
1240 ,(package-version ruby))))
1241 (substitute* "Rakefile"
1242 (("t\\.libs << \"test\"" line)
1243 (string-append line "; t.libs << \""
1244 test-unit-home
1245 "/gems/test-unit-"
1246 ,(package-version ruby-test-unit)
1247 "/lib\""))))
1248 #t)))))
25d6d49b
RW
1249 (native-inputs
1250 `(("bundler" ,bundler)
1251 ("ruby-test-unit" ,ruby-test-unit)))
1252 (synopsis "Ruby library adding metaclass method to all objects")
1253 (description
1254 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1255objects.")
1256 (home-page "http://github.com/floehopper/metaclass")
1257 (license license:expat)))
1258
21f7b7bd
RW
1259(define-public ruby-blankslate
1260 (package
1261 (name "ruby-blankslate")
1262 (version "3.1.3")
1263 (source (origin
1264 (method url-fetch)
1265 (uri (rubygems-uri "blankslate" version))
1266 (sha256
1267 (base32
1268 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1269 (build-system ruby-build-system)
1270 (arguments
1271 `(#:phases
1272 (modify-phases %standard-phases
1273 (replace 'check
1274 (lambda _ (zero? (system* "rspec" "spec/")))))))
1275 (native-inputs
1276 `(("bundler" ,bundler)
1277 ("ruby-rspec" ,ruby-rspec)))
1278 (synopsis "Abstract base class with no predefined methods")
1279 (description
1280 "BlankSlate provides an abstract base class with no predefined
1281methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1282as a base class when writing classes that depend upon
1283@code{method_missing} (e.g. dynamic proxies).")
1284 (home-page "http://github.com/masover/blankslate")
1285 (license license:expat)))
1286
4016ba3f
RW
1287(define-public ruby-instantiator
1288 (package
1289 (name "ruby-instantiator")
1290 (version "0.0.6")
1291 (source (origin
1292 (method url-fetch)
1293 (uri (rubygems-uri "instantiator" version))
1294 (sha256
1295 (base32
1296 "0mfmqhg9xrv9i8i1kmphf15ywddhivyh2z3ccl0xjw8qy54zr21i"))))
1297 (build-system ruby-build-system)
1298 (arguments
1299 `(#:phases
1300 (modify-phases %standard-phases
1301 (add-after 'unpack 'add-test-unit-to-search-path
761e7042
BW
1302 (lambda* (#:key inputs #:allow-other-keys)
1303 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1304 (test-unit-home (gem-home test-unit ,(package-version
1305 ruby))))
1306 (substitute* "Rakefile"
1307 (("t\\.libs << \"test\"" line)
1308 (string-append line "; t.libs << \""
1309 test-unit-home
1310 "/gems/test-unit-"
1311 ,(package-version ruby-test-unit)
1312 "/lib\""))))
1313 #t)))))
4016ba3f
RW
1314 (propagated-inputs
1315 `(("ruby-blankslate" ,ruby-blankslate)))
1316 (native-inputs
1317 `(("bundler" ,bundler)
1318 ("ruby-test-unit" ,ruby-test-unit)))
1319 (synopsis "Instantiate an arbitrary Ruby class")
1320 (description
1321 "Instantiator lets you instantiate an arbitrary Ruby class without
1322knowing anything about the constructor.")
1323 (home-page "https://github.com/floehopper/instantiator")
1324 (license license:expat)))
1325
97aee8d3
RW
1326(define-public ruby-introspection
1327 (package
1328 (name "ruby-introspection")
1329 (version "0.0.3")
1330 (source (origin
1331 (method url-fetch)
1332 (uri (rubygems-uri "introspection" version))
1333 (sha256
1334 (base32
1335 "0g1j71sqfxbqk32wj7d0bkd3dlayfqzprfq3dbr0rq107xbxjcrr"))))
1336 (build-system ruby-build-system)
1337 (arguments
1338 `(#:phases
1339 (modify-phases %standard-phases
1340 (add-after 'unpack 'add-test-unit-to-search-path
1341 (lambda* (#:key inputs #:allow-other-keys)
761e7042
BW
1342 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1343 (test-unit-home (gem-home test-unit ,(package-version
1344 ruby))))
1345 (substitute* "Rakefile"
1346 (("t\\.libs << \"test\"" line)
1347 (string-append line "; t.libs << \""
1348 test-unit-home
1349 "/gems/test-unit-"
1350 ,(package-version ruby-test-unit)
1351 "/lib\""))))
97aee8d3
RW
1352 #t)))))
1353 (propagated-inputs
1354 `(("ruby-instantiator" ,ruby-instantiator)
1355 ("ruby-metaclass" ,ruby-metaclass)))
1356 (native-inputs
1357 `(("bundler" ,bundler)
1358 ("ruby-blankslate" ,ruby-blankslate)
1359 ("ruby-test-unit" ,ruby-test-unit)))
1360 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1361 (description
1362 "Introspection provides tools to inspect the hierarchy of method
1363definitions on a Ruby object.")
1364 (home-page "https://github.com/floehopper/introspection")
1365 (license license:expat)))
1366
d93062fd
RW
1367(define-public ruby-redcarpet
1368 (package
1369 (name "ruby-redcarpet")
1370 (version "3.3.3")
1371 (source (origin
1372 (method url-fetch)
1373 (uri (rubygems-uri "redcarpet" version))
1374 (sha256
1375 (base32
1376 "14i3wypp97bpk20679d1csy88q4hsgfqbnqw6mryl77m2g0d09pk"))))
1377 (build-system ruby-build-system)
1378 (arguments
1379 `(#:phases
1380 (modify-phases %standard-phases
1381 ;; The gem archive does not include the conformance tests.
1382 (add-after 'unpack 'disable-conformance-tests
1383 (lambda _
1384 (substitute* "Rakefile"
1385 (("task :test => %w\\[test:unit test:conformance\\]")
1386 "task :test => %w[test:unit]"))
1387 #t)))))
1388 (native-inputs
1389 `(("bundler" ,bundler)
1390 ("ruby-test-unit" ,ruby-test-unit)
1391 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1392 (synopsis "Extensible Markdown to (X)HTML converter")
1393 (description
1394 "Redcarpet is an extensible Ruby library for Markdown processing and
1395conversion to (X)HTML.")
1396 (home-page "http://github.com/vmg/redcarpet")
1397 (license license:expat)))
1398
4f2a52ae
RW
1399(define-public ruby-mocha
1400 (package
1401 (name "ruby-mocha")
1402 (version "1.1.0")
1403 (source (origin
1404 (method url-fetch)
1405 (uri (rubygems-uri "mocha" version))
1406 (sha256
1407 (base32
1408 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1409 (build-system ruby-build-system)
1410 (arguments
1411 `(#:phases
1412 (modify-phases %standard-phases
1413 (add-after 'unpack 'add-test-unit-to-search-path
1414 (lambda* (#:key inputs #:allow-other-keys)
761e7042
BW
1415 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1416 (test-unit-home (gem-home test-unit
1417 ,(package-version ruby))))
1418 (substitute* "Rakefile"
1419 (("t\\.libs << 'test'" line)
1420 (string-append line "; t.libs << \""
1421 test-unit-home
1422 "/gems/test-unit-"
1423 ,(package-version ruby-test-unit)
1424 "/lib\""))))
4f2a52ae
RW
1425 #t))
1426 (add-before 'check 'use-latest-redcarpet
1427 (lambda _
1428 (substitute* "mocha.gemspec"
71596c3c
BW
1429 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1430 "<redcarpet>.freeze, [\">= 3\"]"))
4f2a52ae
RW
1431 #t))
1432 (add-before 'check 'hardcode-version
1433 (lambda _
1434 ;; Mocha is undefined at build time
1435 (substitute* "Rakefile"
1436 (("#\\{Mocha::VERSION\\}") ,version))
1437 #t))
1438 (add-before 'check 'remove-failing-test
1439 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1440 (lambda _
1441 (delete-file "test/acceptance/stubbing_nil_test.rb")
1442 #t)))))
1443 (propagated-inputs
1444 `(("ruby-metaclass" ,ruby-metaclass)))
1445 (native-inputs
1446 `(("bundler" ,bundler)
1447 ("ruby-yard" ,ruby-yard)
1448 ("ruby-introspection" ,ruby-introspection)
1449 ("ruby-test-unit" ,ruby-test-unit)
1450 ("ruby-redcarpet" ,ruby-redcarpet)))
1451 (synopsis "Mocking and stubbing library for Ruby")
1452 (description
1453 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1454allows mocking and stubbing of methods on real (non-mock) classes.")
1455 (home-page "http://gofreerange.com/mocha/docs")
1456 (license license:expat)))
1457
2c84ba7e
RW
1458(define-public ruby-net-ssh
1459 (package
1460 (name "ruby-net-ssh")
1461 (version "3.0.1")
1462 (source (origin
1463 (method url-fetch)
1464 (uri (rubygems-uri "net-ssh" version))
1465 (sha256
1466 (base32
1467 "1dzqkgwi9xm6mbfk1rkk17rzmz8m5xakqi21w1b97ybng6kkw0hf"))))
1468 (build-system ruby-build-system)
1469 (native-inputs
1470 `(("ruby-mocha" ,ruby-mocha)
1471 ("ruby-test-unit" ,ruby-test-unit)))
1472 (synopsis "Ruby implementation of the SSH2 client protocol")
1473 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1474client protocol. It allows you to write programs that invoke and interact
1475with processes on remote servers, via SSH2.")
1476 (home-page "https://github.com/net-ssh/net-ssh")
1477 (license license:expat)))
1478
2206e948
DT
1479(define-public ruby-minitest
1480 (package
1481 (name "ruby-minitest")
f1775db6 1482 (version "5.10.1")
2206e948 1483 (source (origin
e83c6d00
DT
1484 (method url-fetch)
1485 (uri (rubygems-uri "minitest" version))
2206e948
DT
1486 (sha256
1487 (base32
f1775db6 1488 "1yk2m8sp0p5m1niawa3ncg157a4i0594cg7z91rzjxv963rzrwab"))))
2206e948 1489 (build-system ruby-build-system)
2206e948
DT
1490 (native-inputs
1491 `(("ruby-hoe" ,ruby-hoe)))
1492 (synopsis "Small test suite library for Ruby")
1493 (description "Minitest provides a complete suite of Ruby testing
1494facilities supporting TDD, BDD, mocking, and benchmarking.")
1495 (home-page "https://github.com/seattlerb/minitest")
1496 (license license:expat)))
1497
1db6e09f
RW
1498;; This is the last release of Minitest 4, which is used by some packages.
1499(define-public ruby-minitest-4
1500 (package (inherit ruby-minitest)
1501 (version "4.7.5")
1502 (source (origin
1503 (method url-fetch)
1504 (uri (rubygems-uri "minitest" version))
1505 (sha256
1506 (base32
1507 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1508 (arguments
1509 `(#:phases
1510 (modify-phases %standard-phases
1511 (add-after 'unpack 'remove-unsupported-method
1512 (lambda _
1513 (substitute* "Rakefile"
1514 (("self\\.rubyforge_name = .*") ""))
1515 #t)))))))
1516
35130835
DT
1517(define-public ruby-minitest-sprint
1518 (package
1519 (name "ruby-minitest-sprint")
1520 (version "1.1.0")
1521 (source (origin
e83c6d00
DT
1522 (method url-fetch)
1523 (uri (rubygems-uri "minitest-sprint" version))
35130835
DT
1524 (sha256
1525 (base32
e83c6d00 1526 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
35130835 1527 (build-system ruby-build-system)
35130835
DT
1528 (native-inputs
1529 `(("ruby-hoe" ,ruby-hoe)
1530 ("ruby-minitest" ,ruby-minitest)))
1531 (synopsis "Fast test suite runner for minitest")
1532 (description "Minitest-sprint is a test runner for minitest that makes it
1533easier to re-run individual failing tests.")
1534 (home-page "https://github.com/seattlerb/minitest-sprint")
1535 (license license:expat)))
1536
0808e361
DT
1537(define-public ruby-minitest-bacon
1538 (package
1539 (name "ruby-minitest-bacon")
1540 (version "1.0.2")
1541 (source (origin
e83c6d00
DT
1542 (method url-fetch)
1543 (uri (rubygems-uri "minitest-bacon" version))
0808e361
DT
1544 (sha256
1545 (base32
e83c6d00 1546 "0cm7r68422743i3b6fm4rrm0r6cnnjmglq5gcmmgl1f0rk5hnf6r"))))
0808e361 1547 (build-system ruby-build-system)
0808e361
DT
1548 (native-inputs
1549 `(("ruby-hoe" ,ruby-hoe)))
1550 (inputs
1551 `(("ruby-minitest" ,ruby-minitest)))
1552 (synopsis "Bacon compatibility library for minitest")
1553 (description "Minitest-bacon extends minitest with bacon-like
1554functionality, making it easier to migrate test suites from bacon to minitest.")
1555 (home-page "https://github.com/seattlerb/minitest-bacon")
1556 (license license:expat)))
1557
39dc0eb5
BW
1558(define-public ruby-minitest-focus
1559 (package
1560 (name "ruby-minitest-focus")
1561 (version "1.1.2")
1562 (source
1563 (origin
1564 (method url-fetch)
1565 (uri (rubygems-uri "minitest-focus" version))
1566 (sha256
1567 (base32
1568 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1569 (build-system ruby-build-system)
1570 (propagated-inputs
1571 `(("ruby-minitest" ,ruby-minitest)))
1572 (native-inputs
1573 `(("ruby-hoe" ,ruby-hoe)))
1574 (synopsis "Allows a few specific tests to be focused on")
1575 (description
1576 "@code{minitest-focus} gives the ability focus on a few tests with ease
1577without having to use command-line arguments. It introduces a @code{focus}
1578class method for use in testing classes, specifying that the next defined test
1579is to be run.")
1580 (home-page "https://github.com/seattlerb/minitest-focus")
1581 (license license:expat)))
1582
99fc5cd5
BW
1583(define-public ruby-minitest-pretty-diff
1584 ;; Use git reference because gem is out of date and does not contain testing
1585 ;; script. There are no releases on GitHub.
1586 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
1587 (package
1588 (name "ruby-minitest-pretty-diff")
1589 (version (string-append "0.1-1." (string-take commit 8)))
1590 (source (origin
1591 (method git-fetch)
1592 (uri (git-reference
1593 (url "https://github.com/adammck/minitest-pretty_diff.git")
1594 (commit commit)))
1595 (file-name (string-append name "-" version "-checkout"))
1596 (sha256
1597 (base32
1598 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
1599 (build-system ruby-build-system)
1600 (arguments
1601 `(#:phases
1602 (modify-phases %standard-phases
1603 (replace 'check
1604 (lambda _
1605 (zero? (system* "script/test")))))))
1606 (native-inputs
1607 `(("bundler" ,bundler)
1608 ("ruby-turn" ,ruby-turn)))
1609 (synopsis "Pretty-print hashes and arrays in MiniTest")
1610 (description
1611 "@code{minitest-pretty_diff} monkey-patches
1612@code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
1613diffing them. This makes it easier to spot differences between nested
1614structures when tests fail.")
1615 (home-page "https://github.com/adammck/minitest-pretty_diff")
1616 (license license:expat))))
1617
685d0d2f
BW
1618(define-public ruby-minitest-moar
1619 (package
1620 (name "ruby-minitest-moar")
1621 (version "0.0.4")
1622 (source
1623 (origin
1624 (method url-fetch)
1625 (uri (rubygems-uri "minitest-moar" version))
1626 (sha256
1627 (base32
1628 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
1629 (build-system ruby-build-system)
1630 (arguments
1631 `(#:phases
1632 (modify-phases %standard-phases
1633 (add-before 'check 'clean-dependencies
1634 (lambda _
1635 ;; Remove all gems defined in the Gemfile because these are not
1636 ;; truly needed.
1637 (substitute* "Gemfile"
1638 (("gem .*") ""))
1639 ;; Remove byebug as not needed to run tests.
1640 (substitute* "test/test_helper.rb"
1641 (("require 'byebug'") ""))
1642 #t)))))
1643 (native-inputs
1644 `(("bundler" ,bundler)
1645 ("ruby-minitest" ,ruby-minitest)))
1646 (synopsis "Extra features and changes to MiniTest")
1647 (description "@code{MiniTest Moar} add some additional features and
1648changes some default behaviours in MiniTest. For instance, Moar replaces the
1649MiniTest @code{Object#stub} with a global @code{stub} method.")
1650 (home-page "https://github.com/dockyard/minitest-moar")
1651 (license license:expat)))
1652
e07ef1d6
BW
1653(define-public ruby-minitest-bonus-assertions
1654 (package
1655 (name "ruby-minitest-bonus-assertions")
1656 (version "2.0")
1657 (source
1658 (origin
1659 (method url-fetch)
1660 (uri (rubygems-uri "minitest-bonus-assertions" version))
1661 (sha256
1662 (base32
1663 "11nrd32kwy61ndg9csk7l1ifya79ghrrv3vsrxj57k50m7na6jkm"))))
1664 (build-system ruby-build-system)
1665 (arguments
1666 `(#:phases
1667 (modify-phases %standard-phases
1668 (add-before 'check 'clean-dependencies
1669 (lambda _
1670 ;; Remove unneeded require statement that would entail another
1671 ;; dependency.
1672 (substitute* "test/minitest_config.rb"
1673 (("require 'minitest/bisect'") ""))
1674 #t)))))
1675 (native-inputs
1676 `(("ruby-hoe" ,ruby-hoe)
1677 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
1678 ("ruby-minitest-focus" ,ruby-minitest-focus)
1679 ("ruby-minitest-moar" ,ruby-minitest-moar)))
1680 (synopsis "Bonus assertions for @code{Minitest}")
1681 (description
1682 "Minitest bonus assertions provides extra MiniTest assertions. For
1683instance, it provides @code{assert_true}, @code{assert_false} and
1684@code{assert_set_equal}.")
1685 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
1686 (license license:expat)))
1687
e582fa93
BW
1688(define-public ruby-minitest-rg
1689 (package
1690 (name "ruby-minitest-rg")
1691 (version "5.2.0")
1692 (source
1693 (origin
1694 (method url-fetch)
1695 (uri (rubygems-uri "minitest-rg" version))
1696 (sha256
1697 (base32
1698 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
1699 (build-system ruby-build-system)
1700 (arguments
1701 ;; Some tests fail even outside Guix, so disable tests.
1702 ;; https://github.com/blowmage/minitest-rg/issues/12
1703 ;; https://github.com/blowmage/minitest-rg/pull/13
1704 `(#:tests? #f))
1705 (propagated-inputs
1706 `(("ruby-minitest" ,ruby-minitest)))
1707 (synopsis "Coloured output for Minitest")
1708 (description
1709 "@code{minitest-rg} changes the colour of the output from Minitest.")
1710 (home-page "http://blowmage.com/minitest-rg")
1711 (license license:expat)))
1712
2a96dbe6
BW
1713(define-public ruby-minitest-hooks
1714 (package
1715 (name "ruby-minitest-hooks")
1716 (version "1.4.0")
1717 (source
1718 (origin
1719 (method url-fetch)
1720 (uri (rubygems-uri "minitest-hooks" version))
1721 (sha256
1722 (base32
1723 "092fymh0c09v3a585qw3hc15b0zf159s74rxx1ga87drk5jr958z"))))
1724 (build-system ruby-build-system)
1725 (arguments
1726 '(#:test-target "spec"))
1727 (native-inputs
1728 `(("ruby-sequel" ,ruby-sequel)
1729 ("ruby-sqlite3" ,ruby-sqlite3)))
1730 (synopsis "Hooks for the minitest framework")
1731 (description
1732 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
1733@code{around_all} hooks for Minitest. This allows, for instance, running each
1734suite of specs inside a database transaction, running each spec inside its own
1735savepoint inside that transaction. This can significantly speed up testing
1736for specs that share expensive database setup code.")
1737 (home-page "http://github.com/jeremyevans/minitest-hooks")
1738 (license license:expat)))
1739
afbbdf77
DT
1740(define-public ruby-daemons
1741 (package
1742 (name "ruby-daemons")
1743 (version "1.2.2")
1744 (source (origin
1745 (method url-fetch)
e83c6d00 1746 (uri (rubygems-uri "daemons" version))
afbbdf77
DT
1747 (sha256
1748 (base32
e83c6d00 1749 "121c7vkimg3baxga69xvdkwxiq8wkmxqvdbyqi5i82vhih5d3cn3"))))
afbbdf77
DT
1750 (build-system ruby-build-system)
1751 (arguments
1752 `(#:tests? #f)) ; no test suite
1753 (synopsis "Daemonize Ruby programs")
1754 (description "Daemons provides a way to wrap existing Ruby scripts to be
1755run as a daemon and to be controlled by simple start/stop/restart commands.")
1756 (home-page "https://github.com/thuehlinger/daemons")
1757 (license license:expat)))
66e20863
DT
1758
1759(define-public ruby-git
1760 (package
1761 (name "ruby-git")
1762 (version "1.2.9.1")
1763 (source (origin
1764 (method url-fetch)
e83c6d00 1765 (uri (rubygems-uri "git" version))
66e20863
DT
1766 (sha256
1767 (base32
e83c6d00 1768 "1sqfj8lmhl7c5zamcckkpik4izfph2zkv6krw0i8mzj5pdws5acs"))))
66e20863
DT
1769 (build-system ruby-build-system)
1770 (arguments
e83c6d00
DT
1771 `(#:tests? #f ; no tests
1772 #:phases (modify-phases %standard-phases
1773 (add-after 'install 'patch-git-binary
1774 (lambda* (#:key inputs outputs #:allow-other-keys)
66e20863
DT
1775 ;; Make the default git binary an absolute path to the
1776 ;; store.
e83c6d00
DT
1777 (let ((git (string-append (assoc-ref inputs "git")
1778 "/bin/git"))
1779 (config (string-append (getenv "GEM_HOME")
1780 "/gems/git-" ,version
1781 "/lib/git/config.rb")))
1782 (substitute* (list config)
66e20863
DT
1783 (("'git'")
1784 (string-append "'" git "'")))
e83c6d00 1785 #t))))))
66e20863
DT
1786 (inputs
1787 `(("git" ,git)))
1788 (synopsis "Ruby wrappers for Git")
1789 (description "Ruby/Git is a Ruby library that can be used to create, read
1790and manipulate Git repositories by wrapping system calls to the git binary.")
1791 (home-page "https://github.com/schacon/ruby-git")
1792 (license license:expat)))
71d3e2c2
DT
1793
1794(define-public ruby-slop
1795 (package
1796 (name "ruby-slop")
1797 (version "4.1.0")
1798 (source (origin
1799 (method url-fetch)
e83c6d00 1800 (uri (rubygems-uri "slop" version))
71d3e2c2
DT
1801 (sha256
1802 (base32
e83c6d00 1803 "0dj0ps6v1mqd02k84mgwd7hp578n2bzl7c51h3grdhxfl3jkfsj5"))))
71d3e2c2
DT
1804 (build-system ruby-build-system)
1805 (native-inputs
1806 `(("ruby-minitest" ,ruby-minitest)))
1807 (synopsis "Ruby command line option parser")
1808 (description "Slop provides a Ruby domain specific language for gathering
1809options and parsing command line flags.")
1810 (home-page "https://github.com/leejarvis/slop")
1811 (license license:expat)))
e778a549 1812
5337f8b9
DT
1813(define-public ruby-slop-3
1814 (package (inherit ruby-slop)
1815 (version "3.6.0")
1816 (source (origin
1817 (method url-fetch)
1818 (uri (rubygems-uri "slop" version))
1819 (sha256
1820 (base32
1821 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
1822
e778a549
DT
1823(define-public ruby-multipart-post
1824 (package
1825 (name "ruby-multipart-post")
1826 (version "2.0.0")
1827 (source (origin
1828 (method url-fetch)
e83c6d00 1829 (uri (rubygems-uri "multipart-post" version))
e778a549
DT
1830 (sha256
1831 (base32
e83c6d00 1832 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
e778a549
DT
1833 (build-system ruby-build-system)
1834 (native-inputs
1835 `(("bundler" ,bundler)))
1836 (synopsis "Multipart POST library for Ruby")
1837 (description "Multipart-Post Adds multipart POST capability to Ruby's
1838net/http library.")
1839 (home-page "https://github.com/nicksieger/multipart-post")
1840 (license license:expat)))
f8da3af0
DT
1841
1842(define-public ruby-arel
1843 (package
1844 (name "ruby-arel")
e87dfdee 1845 (version "7.1.4")
f8da3af0
DT
1846 (source (origin
1847 (method url-fetch)
1848 (uri (rubygems-uri "arel" version))
1849 (sha256
1850 (base32
e87dfdee 1851 "0l757dkkaxk5fq3368l79jpyzq9a9driricjamhiwhwvh0h7xcyx"))))
f8da3af0
DT
1852 (build-system ruby-build-system)
1853 (arguments '(#:tests? #f)) ; no tests
1854 (home-page "https://github.com/rails/arel")
1855 (synopsis "SQL AST manager for Ruby")
1856 (description "Arel is a SQL AST manager for Ruby. It simplifies the
1857generation of complex SQL queries and is compatible with various RDBMSes.")
1858 (license license:expat)))
616eaead
DT
1859
1860(define-public ruby-minitar
1861 (package
1862 (name "ruby-minitar")
1863 (version "0.5.4")
1864 (source
1865 (origin
1866 (method url-fetch)
1867 (uri (rubygems-uri "minitar" version))
1868 (sha256
1869 (base32
1870 "1vpdjfmdq1yc4i620frfp9af02ia435dnpj8ybsd7dc3rypkvbka"))))
1871 (build-system ruby-build-system)
1872 (arguments
1873 '(#:tests? #f)) ; missing a gemspec
1874 (synopsis "Ruby library and utility for handling tar archives")
1875 (description
1876 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
1877that provides the ability to deal with POSIX tar archive files.")
1878 (home-page "http://www.github.com/atoulme/minitar")
1879 (license (list license:gpl2+ license:ruby))))
bea1c0e2
DT
1880
1881(define-public ruby-mini-portile
1882 (package
1883 (name "ruby-mini-portile")
1884 (version "0.6.2")
1885 (source
1886 (origin
1887 (method url-fetch)
1888 (uri (rubygems-uri "mini_portile" version))
1889 (sha256
1890 (base32
1891 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
1892 (build-system ruby-build-system)
1893 (arguments
1894 '(#:tests? #f)) ; tests require network access
1895 (synopsis "Ports system for Ruby developers")
1896 (description "Mini-portile is a port/recipe system for Ruby developers.
1897It provides a standard way to compile against specific versions of libraries
1898to reproduce user environments.")
1899 (home-page "http://github.com/flavorjones/mini_portile")
1900 (license license:expat)))
e920bfca 1901
d000fc92
BW
1902(define-public ruby-mini-portile-2
1903 (package (inherit ruby-mini-portile)
59884b71 1904 (version "2.1.0")
d000fc92
BW
1905 (source (origin
1906 (method url-fetch)
1907 (uri (rubygems-uri "mini_portile2" version))
1908 (sha256
1909 (base32
59884b71 1910 "1y25adxb1hgg1wb2rn20g3vl07qziq6fz364jc5694611zz863hb"))))))
d000fc92 1911
e920bfca
DT
1912(define-public ruby-nokogiri
1913 (package
1914 (name "ruby-nokogiri")
19e5fb60 1915 (version "1.7.0.1")
e920bfca
DT
1916 (source (origin
1917 (method url-fetch)
1918 (uri (rubygems-uri "nokogiri" version))
1919 (sha256
1920 (base32
19e5fb60 1921 "10xahg0fwydh27psm8bv429mdja2ks6x83vxizq26ib8wvs05mv3"))))
e920bfca
DT
1922 (build-system ruby-build-system)
1923 (arguments
1924 ;; Tests fail because Nokogiri can only test with an installed extension,
1925 ;; and also because many test framework dependencies are missing.
7b01f250 1926 `(#:tests? #f
e920bfca
DT
1927 #:gem-flags (list "--" "--use-system-libraries"
1928 (string-append "--with-xml2-include="
1929 (assoc-ref %build-inputs "libxml2")
5e7f1b0b
BW
1930 "/include/libxml2" ))
1931 #:phases
1932 (modify-phases %standard-phases
7b01f250
BW
1933 (add-before 'build 'patch-extconf
1934 ;; 'pkg-config' is not included in the GEM_PATH during
1935 ;; installation, so we add it directly to the load path.
1936 (lambda* (#:key inputs #:allow-other-keys)
1937 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))
1938 (pkg-config-home (gem-home pkg-config
1939 ,(package-version ruby))))
1940 (substitute* "ext/nokogiri/extconf.rb"
1941 (("gem 'pkg-config'.*")
1942 (string-append "$:.unshift '"
1943 pkg-config-home
1944 "/gems/pkg-config-"
1945 ,(package-version ruby-pkg-config)
1946 "/lib'\n"))))
5e7f1b0b 1947 #t)))))
e920bfca 1948 (native-inputs
7b01f250 1949 `(("ruby-hoe" ,ruby-hoe)))
e920bfca
DT
1950 (inputs
1951 `(("zlib" ,zlib)
1952 ("libxml2" ,libxml2)
1953 ("libxslt" ,libxslt)))
1954 (propagated-inputs
7b01f250
BW
1955 `(("ruby-mini-portile" ,ruby-mini-portile-2)
1956 ("ruby-pkg-config" ,ruby-pkg-config)))
e920bfca
DT
1957 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
1958 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
1959both CSS3 selector and XPath 1.0 support.")
1960 (home-page "http://www.nokogiri.org/")
1961 (license license:expat)))
30b0b725
DT
1962
1963(define-public ruby-method-source
1964 (package
1965 (name "ruby-method-source")
1966 (version "0.8.2")
1967 (source
1968 (origin
1969 (method url-fetch)
1970 (uri (rubygems-uri "method_source" version))
1971 (sha256
1972 (base32
1973 "1g5i4w0dmlhzd18dijlqw5gk27bv6dj2kziqzrzb7mpgxgsd1sf2"))))
1974 (build-system ruby-build-system)
1975 (native-inputs
1976 `(("ruby-bacon" ,ruby-bacon)
1977 ("git" ,git)))
1978 (synopsis "Retrieve the source code for Ruby methods")
1979 (description "Method_source retrieves the source code for Ruby methods.
1980Additionally, it can extract source code from Proc and Lambda objects or just
1981extract comments.")
1982 (home-page "https://github.com/banister/method_source")
1983 (license license:expat)))
2e3fdea4
DT
1984
1985(define-public ruby-coderay
1986 (package
1987 (name "ruby-coderay")
1988 (version "1.1.0")
1989 (source
1990 (origin
1991 (method url-fetch)
1992 (uri (rubygems-uri "coderay" version))
1993 (sha256
1994 (base32
1995 "059wkzlap2jlkhg460pkwc1ay4v4clsmg1bp4vfzjzkgwdckr52s"))))
1996 (build-system ruby-build-system)
1997 (arguments
1998 '(#:tests? #f)) ; missing test files
1999 (synopsis "Ruby syntax highlighting library")
2000 (description "Coderay is a Ruby library that provides syntax highlighting
2001for select languages.")
2002 (home-page "http://coderay.rubychan.de")
2003 (license license:expat)))
96e76083
DT
2004
2005(define-public ruby-pry
2006 (package
2007 (name "ruby-pry")
2008 (version "0.10.1")
2009 (source
2010 (origin
2011 (method url-fetch)
2012 (uri (rubygems-uri "pry" version))
2013 (sha256
2014 (base32
2015 "1j0r5fm0wvdwzbh6d6apnp7c0n150hpm9zxpm5xvcgfqr36jaj8z"))))
2016 (build-system ruby-build-system)
2017 (arguments
2018 '(#:tests? #f)) ; no tests
2019 (propagated-inputs
2020 `(("ruby-coderay" ,ruby-coderay)
2021 ("ruby-method-source" ,ruby-method-source)
2022 ("ruby-slop" ,ruby-slop-3)))
2023 (synopsis "Ruby REPL")
2024 (description "Pry is an IRB alternative and runtime developer console for
2025Ruby. It features syntax highlighting, a plugin architecture, runtime
2026invocation, and source and documentation browsing.")
2027 (home-page "http://pryrepl.org")
2028 (license license:expat)))
1415792a 2029
051deeb7
RW
2030(define-public ruby-guard
2031 (package
2032 (name "ruby-guard")
2033 (version "2.13.0")
2034 (source (origin
2035 (method url-fetch)
2036 ;; The gem does not include a Rakefile, nor does it contain a
2037 ;; gemspec file, nor does it come with the tests. This is why
2038 ;; we fetch the tarball from Github.
2039 (uri (string-append "https://github.com/guard/guard/archive/v"
2040 version ".tar.gz"))
2041 (file-name (string-append name "-" version ".tar.gz"))
2042 (sha256
2043 (base32
2044 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2045 (build-system ruby-build-system)
2046 (arguments
2047 `(#:tests? #f ; tests require cucumber
2048 #:phases
2049 (modify-phases %standard-phases
2050 (add-after 'unpack 'remove-git-ls-files
2051 (lambda* (#:key outputs #:allow-other-keys)
2052 (substitute* "guard.gemspec"
2053 (("git ls-files -z") "find . -type f -print0"))
2054 #t))
2055 (replace 'build
2056 (lambda _
2057 (zero? (system* "gem" "build" "guard.gemspec")))))))
2058 (propagated-inputs
2059 `(("ruby-formatador" ,ruby-formatador)
2060 ("ruby-listen" ,ruby-listen)
2061 ("ruby-lumberjack" ,ruby-lumberjack)
2062 ("ruby-nenv" ,ruby-nenv)
2063 ("ruby-notiffany" ,ruby-notiffany)
2064 ("ruby-pry" ,ruby-pry)
2065 ("ruby-shellany" ,ruby-shellany)
2066 ("ruby-thor" ,ruby-thor)))
2067 (native-inputs
2068 `(("bundler" ,bundler)
2069 ("ruby-rspec" ,ruby-rspec)))
2070 (synopsis "Tool to handle events on file system modifications")
2071 (description
2072 "Guard is a command line tool to easily handle events on file system
2073modifications. Guard automates various tasks by running custom rules whenever
2074file or directories are modified.")
2075 (home-page "http://guardgem.org/")
2076 (license license:expat)))
2077
1415792a
DT
2078(define-public ruby-thread-safe
2079 (package
2080 (name "ruby-thread-safe")
2081 (version "0.3.5")
2082 (source
2083 (origin
2084 (method url-fetch)
2085 (uri (rubygems-uri "thread_safe" version))
2086 (sha256
2087 (base32
2088 "1hq46wqsyylx5afkp6jmcihdpv4ynzzq9ygb6z2pb1cbz5js0gcr"))))
2089 (build-system ruby-build-system)
2090 (arguments
2091 '(#:tests? #f)) ; needs simplecov, among others
2092 (synopsis "Thread-safe utilities for Ruby")
2093 (description "The thread_safe library provides thread-safe collections and
2094utilities for Ruby.")
2095 (home-page "https://github.com/ruby-concurrency/thread_safe")
2096 (license license:asl2.0)))
08a1b701
DT
2097
2098(define-public ruby-tzinfo
2099 (package
2100 (name "ruby-tzinfo")
2101 (version "1.2.2")
2102 (source
2103 (origin
2104 (method url-fetch)
2105 (uri (rubygems-uri "tzinfo" version))
2106 (sha256
2107 (base32
2108 "1c01p3kg6xvy1cgjnzdfq45fggbwish8krd0h864jvbpybyx7cgx"))))
2109 (build-system ruby-build-system)
2110 (propagated-inputs
2111 `(("ruby-thread-safe" ,ruby-thread-safe)))
2112 (synopsis "Time zone library for Ruby")
2113 (description "TZInfo is a Ruby library that provides daylight savings
2114aware transformations between times in different time zones.")
2115 (home-page "http://tzinfo.github.io")
1e12924a
BW
2116 (license license:expat)))
2117
2118(define-public ruby-tzinfo-data
2119 (package
2120 (name "ruby-tzinfo-data")
06028aed 2121 (version "1.2016.9")
1e12924a
BW
2122 (source
2123 (origin
2124 (method url-fetch)
2125 ;; Download from GitHub because the rubygems version does not contain
2126 ;; Rakefile or tests.
2127 (uri (string-append
2128 "https://github.com/tzinfo/tzinfo-data/archive/v"
2129 version
2130 ".tar.gz"))
2131 (file-name (string-append name "-" version ".tar.gz"))
2132 (sha256
2133 (base32
06028aed 2134 "0i8vz2j7wmcpr4pd066qvlg4if5blscjrgxk2imavfa49nq5lp06"))
1e12924a
BW
2135 ;; Remove the known test failure.
2136 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2137 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2138 (patches (search-patches
2139 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2140 (build-system ruby-build-system)
2141 (propagated-inputs
2142 `(("ruby-tzinfo" ,ruby-tzinfo)))
2143 (synopsis "Data from the IANA Time Zone database")
2144 (description
2145 "This library provides @code{TZInfo::Data}, which contains data from the
2146IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2147 (home-page "http://tzinfo.github.io")
08a1b701 2148 (license license:expat)))
c99e2247 2149
48e6851f
RW
2150(define-public ruby-rb-inotify
2151 (package
2152 (name "ruby-rb-inotify")
2153 (version "0.9.5")
2154 (source
2155 (origin
2156 (method url-fetch)
2157 (uri (rubygems-uri "rb-inotify" version))
2158 (sha256
2159 (base32
2160 "0kddx2ia0qylw3r52nhg83irkaclvrncgy2m1ywpbhlhsz1rymb9"))))
2161 (build-system ruby-build-system)
2162 (arguments
2163 '(#:tests? #f ; there are no tests
2164 #:phases
2165 (modify-phases %standard-phases
2166 ;; Building the gemspec with rake is not working here since it is
2167 ;; generated with Jeweler. It is also unnecessary because the
2168 ;; existing gemspec does not use any development tools to generate a
2169 ;; list of files.
2170 (replace 'build
2171 (lambda _
2172 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2173 (propagated-inputs
2174 `(("ruby-ffi" ,ruby-ffi)))
2175 (native-inputs
2176 `(("ruby-yard" ,ruby-yard)))
2177 (synopsis "Ruby wrapper for Linux's inotify")
2178 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2179kernel subsystem for monitoring changes to files and directories.")
2180 (home-page "https://github.com/nex3/rb-inotify")
2181 (license license:expat)))
2182
a75bdfce
RW
2183(define-public ruby-pry-editline
2184 (package
2185 (name "ruby-pry-editline")
2186 (version "1.1.2")
2187 (source (origin
2188 (method url-fetch)
2189 (uri (rubygems-uri "pry-editline" version))
2190 (sha256
2191 (base32
2192 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2193 (build-system ruby-build-system)
2194 (arguments `(#:tests? #f)) ; no tests included
2195 (native-inputs
2196 `(("bundler" ,bundler)))
2197 (synopsis "Open the current REPL line in an editor")
2198 (description
2199 "This gem provides a plugin for the Ruby REPL to enable opening the
2200current line in an external editor.")
2201 (home-page "https://github.com/tpope/pry-editline")
2202 (license license:expat)))
2203
d3b20a02
RW
2204(define-public ruby-sdoc
2205 (package
2206 (name "ruby-sdoc")
fdf3a68d 2207 (version "0.4.2")
d3b20a02
RW
2208 (source (origin
2209 (method url-fetch)
2210 (uri (rubygems-uri "sdoc" version))
2211 (sha256
2212 (base32
fdf3a68d 2213 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
d3b20a02
RW
2214 (build-system ruby-build-system)
2215 (arguments
2216 `(#:phases
2217 (modify-phases %standard-phases
fdf3a68d 2218 (add-before 'check 'set-rubylib
d3b20a02 2219 (lambda _
fdf3a68d 2220 (setenv "RUBYLIB" "lib")
d3b20a02
RW
2221 #t)))))
2222 (propagated-inputs
2223 `(("ruby-json" ,ruby-json)))
2224 (native-inputs
2225 `(("bundler" ,bundler)
fdf3a68d
BW
2226 ("ruby-minitest" ,ruby-minitest)
2227 ("ruby-hoe" ,ruby-hoe)))
d3b20a02
RW
2228 (synopsis "Generate searchable RDoc documentation")
2229 (description
2230 "SDoc is an RDoc documentation generator to build searchable HTML
2231documentation for Ruby code.")
2232 (home-page "http://github.com/voloko/sdoc")
2233 (license license:expat)))
2234
70b002aa
RW
2235(define-public ruby-tins
2236 (package
2237 (name "ruby-tins")
2238 (version "1.7.0")
2239 (source (origin
2240 (method url-fetch)
2241 (uri (rubygems-uri "tins" version))
2242 (sha256
2243 (base32
2244 "1060h8dgnjl9az0sv1b74yrni8d4mh3x858wq6yfbfdf5dxrfl0a"))))
2245 (build-system ruby-build-system)
2246 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2247 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2248 ;; the gemspec.
2249 (arguments
2250 `(#:tests? #f ; there are no tests
2251 #:phases
2252 (modify-phases %standard-phases
2253 (replace 'build
2254 (lambda _
2255 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2256 ;; causes an error.
2257 (substitute* "tins.gemspec"
2258 (("\"lib/spruz\", ") ""))
2259 (zero? (system* "gem" "build" "tins.gemspec")))))))
2260 (synopsis "Assorted tools for Ruby")
2261 (description "Tins is a Ruby library providing assorted tools.")
2262 (home-page "https://github.com/flori/tins")
2263 (license license:expat)))
2264
bc8277e4
RW
2265(define-public ruby-gem-hadar
2266 (package
2267 (name "ruby-gem-hadar")
2268 (version "1.3.1")
2269 (source (origin
2270 (method url-fetch)
2271 (uri (rubygems-uri "gem_hadar" version))
2272 (sha256
2273 (base32
2274 "1j8qri4m9wf8nbfv0kakrgsv2x8vg10914xgm6f69nw8zi3i39ws"))))
2275 (build-system ruby-build-system)
2276 ;; This gem needs itself at development time. We disable rebuilding of the
2277 ;; gemspec to avoid this loop.
2278 (arguments
2279 `(#:tests? #f ; there are no tests
2280 #:phases
2281 (modify-phases %standard-phases
2282 (replace 'build
2283 (lambda _
2284 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2285 (propagated-inputs
2286 `(("git" ,git)
2287 ("ruby-tins" ,ruby-tins)
2288 ("ruby-sdoc" ,ruby-sdoc)))
2289 (native-inputs
2290 `(("bundler" ,bundler)))
2291 (synopsis "Library for the development of Ruby gems")
2292 (description
2293 "This library contains some useful functionality to support the
2294development of Ruby gems.")
2295 (home-page "https://github.com/flori/gem_hadar")
2296 (license license:expat)))
2297
d8cafe29
RW
2298(define-public ruby-minitest-tu-shim
2299 (package
2300 (name "ruby-minitest-tu-shim")
2301 (version "1.3.3")
2302 (source (origin
2303 (method url-fetch)
2304 (uri (rubygems-uri "minitest_tu_shim" version))
2305 (sha256
2306 (base32
2307 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2308 (build-system ruby-build-system)
2309 (arguments
2310 `(#:phases
2311 (modify-phases %standard-phases
2312 (add-after 'unpack 'fix-test-include-path
2313 (lambda* (#:key inputs #:allow-other-keys)
761e7042
BW
2314 (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))
2315 (minitest-home (gem-home minitest
2316 ,(package-version ruby))))
2317 (substitute* "Rakefile"
2318 (("Hoe\\.add_include_dirs .*")
2319 (string-append "Hoe.add_include_dirs \""
2320 minitest-home
2321 "/gems/minitest-"
2322 ,(package-version ruby-minitest-4)
2323 "/lib" "\""))))
2324 #t))
d8cafe29
RW
2325 (add-before 'check 'fix-test-assumptions
2326 (lambda _
2327 ;; The test output includes the file name, so a couple of tests
2328 ;; fail. Changing the regular expressions slightly fixes this
2329 ;; problem.
2330 (substitute* "test/test_mini_test.rb"
2331 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2332 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2333 (("gsub\\(/.*, 'FILE:LINE'\\)")
2334 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2335 #t)))))
2336 (propagated-inputs
2337 `(("ruby-minitest-4" ,ruby-minitest-4)))
2338 (native-inputs
2339 `(("ruby-hoe" ,ruby-hoe)))
2340 (synopsis "Adapter library between minitest and test/unit")
2341 (description
2342 "This library bridges the gap between the small and fast minitest and
2343Ruby's large and slower test/unit.")
2344 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2345 (license license:expat)))
2346
fd83a212
RW
2347(define-public ruby-term-ansicolor
2348 (package
2349 (name "ruby-term-ansicolor")
2350 (version "1.3.2")
2351 (source (origin
2352 (method url-fetch)
2353 (uri (rubygems-uri "term-ansicolor" version))
2354 (sha256
2355 (base32
2356 "0ydbbyjmk5p7fsi55ffnkq79jnfqx65c3nj8d9rpgl6sw85ahyys"))))
2357 (build-system ruby-build-system)
2358 ;; Rebuilding the gemspec seems to require git, even though this is not a
2359 ;; git repository, so we just build the gem from the existing gemspec.
2360 (arguments
2361 `(#:phases
2362 (modify-phases %standard-phases
2363 (replace 'build
2364 (lambda _
2365 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2366 (propagated-inputs
2367 `(("ruby-tins" ,ruby-tins)))
2368 (native-inputs
2369 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2370 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2371 (synopsis "Ruby library to control the attributes of terminal output")
2372 (description
2373 "This Ruby library uses ANSI escape sequences to control the attributes
2374of terminal output.")
2375 (home-page "http://flori.github.io/term-ansicolor/")
2376 ;; There is no mention of the "or later" clause.
2377 (license license:gpl2)))
2378
6e376ca4
RW
2379(define-public ruby-pstree
2380 (package
2381 (name "ruby-pstree")
2382 (version "0.1.0")
2383 (source (origin
2384 (method url-fetch)
2385 (uri (rubygems-uri "pstree" version))
2386 (sha256
2387 (base32
2388 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2389 (build-system ruby-build-system)
2390 (native-inputs
2391 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2392 ("bundler" ,bundler)))
2393 (synopsis "Create a process tree data structure")
2394 (description
2395 "This library uses the output of the @code{ps} command to create a
2396process tree data structure for the current host.")
2397 (home-page "http://flori.github.com/pstree")
2398 ;; There is no mention of the "or later" clause.
2399 (license license:gpl2)))
2400
53239b5f
RW
2401(define-public ruby-utils
2402 (package
2403 (name "ruby-utils")
2404 (version "0.2.4")
2405 (source (origin
2406 (method url-fetch)
2407 (uri (rubygems-uri "utils" version))
2408 (sha256
2409 (base32
2410 "0vycgscxf3s1xn4yyfsq54zlh082581ga8azybmqgc4pij6iz2cd"))))
2411 (build-system ruby-build-system)
2412 (propagated-inputs
2413 `(("ruby-tins" ,ruby-tins)
2414 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2415 ("ruby-pstree" ,ruby-pstree)
2416 ("ruby-pry-editline" ,ruby-pry-editline)))
2417 (native-inputs
2418 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2419 ("bundler" ,bundler)))
2420 (synopsis "Command line tools for working with Ruby")
2421 (description
2422 "This package provides assorted command line tools that may be useful
2423when working with Ruby code.")
2424 (home-page "https://github.com/flori/utils")
2425 ;; There is no mention of the "or later" clause.
2426 (license license:gpl2)))
2427
c99e2247
DT
2428(define-public ruby-json
2429 (package
2430 (name "ruby-json")
2431 (version "1.8.3")
2432 (source
2433 (origin
2434 (method url-fetch)
2435 (uri (rubygems-uri "json" version))
2436 (sha256
2437 (base32
2438 "1nsby6ry8l9xg3yw4adlhk2pnc7i0h0rznvcss4vk3v74qg0k8lc"))))
2439 (build-system ruby-build-system)
2440 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2441 (synopsis "JSON library for Ruby")
2442 (description "This Ruby library provides a JSON implementation written as
2443a native C extension.")
2444 (home-page "http://json-jruby.rubyforge.org/")
2445 (license (list license:ruby license:gpl2)))) ; GPL2 only
5ff89a1b 2446
763624f5
RW
2447(define-public ruby-json-pure
2448 (package
2449 (name "ruby-json-pure")
2450 (version "1.8.3")
2451 (source (origin
2452 (method url-fetch)
2453 (uri (rubygems-uri "json_pure" version))
2454 (sha256
2455 (base32
2456 "025aykr360x6dr1jmg8pmsrx7gr30pws4p1q686vnb48zyw1sc94"))))
2457 (build-system ruby-build-system)
2458 (arguments
2459 `(#:modules ((srfi srfi-1)
2460 (ice-9 regex)
2461 (rnrs io ports)
2462 (guix build ruby-build-system)
2463 (guix build utils))
2464 #:phases
2465 (modify-phases %standard-phases
2466 (add-after 'unpack 'replace-git-ls-files
2467 (lambda _
2468 ;; The existing gemspec file already contains a nice list of
2469 ;; files that belong to the gem. We extract the list from the
2470 ;; gemspec file and then replace the file list in the Rakefile to
2471 ;; get rid of the call to "git ls-files".
2472 (let* ((contents (call-with-input-file "json.gemspec" get-string-all))
2473 ;; Guile is unhappy about the #\nul characters in comments.
2474 (filtered (string-filter (lambda (char)
2475 (not (equal? #\nul char)))
2476 contents))
2477 (files (match:substring
2478 (string-match " s\\.files = ([^]]+\\])" filtered) 1)))
2479 (substitute* "Rakefile"
2480 (("FileList\\[`git ls-files`\\.split\\(/\\\\n/\\)\\]")
2481 (string-append "FileList" files))))
a8de0d1e
BW
2482 (substitute* "Gemfile"
2483 ((".*json-java.*") "\n"))
763624f5
RW
2484 #t)))))
2485 (native-inputs
2486 `(("ruby-permutation" ,ruby-permutation)
2487 ("ruby-utils" ,ruby-utils)
2488 ("ragel" ,ragel)
2489 ("bundler" ,bundler)))
2490 (synopsis "JSON implementation in pure Ruby")
2491 (description
2492 "This package provides a JSON implementation written in pure Ruby.")
2493 (home-page "http://flori.github.com/json")
2494 (license license:ruby)))
2495
16b324cd
RW
2496;; Even though this package only provides bindings for a Mac OSX API it is
2497;; required by "ruby-listen" at runtime.
2498(define-public ruby-rb-fsevent
2499 (package
2500 (name "ruby-rb-fsevent")
2501 (version "0.9.6")
2502 (source (origin
2503 (method url-fetch)
2504 (uri (rubygems-uri "rb-fsevent" version))
2505 (sha256
2506 (base32
2507 "1hq57by28iv0ijz8pk9ynih0xdg7vnl1010xjcijfklrcv89a1j2"))))
2508 (build-system ruby-build-system)
2509 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
2510 ;; "listen", which needs "rb-fsevent" at runtime.
2511 (arguments `(#:tests? #f))
2512 (synopsis "FSEvents API with signals catching")
2513 (description
2514 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
2515 (home-page "https://rubygems.org/gems/rb-fsevent")
2516 (license license:expat)))
2517
b86be2ad
RW
2518(define-public ruby-listen
2519 (package
2520 (name "ruby-listen")
2521 (version "3.0.3")
2522 (source
2523 (origin
2524 (method url-fetch)
2525 (uri (rubygems-uri "listen" version))
2526 (sha256
2527 (base32
2528 "10lhshjklxlrkw7999j0xl6sdxd4x32kiy8rp88jwr68kis5vq2b"))))
2529 (build-system ruby-build-system)
2530 (arguments '(#:tests? #f)) ; no tests
2531 (propagated-inputs
cf1a01f4
RW
2532 `(("ruby-rb-inotify" ,ruby-rb-inotify)
2533 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
b86be2ad
RW
2534 (synopsis "Listen to file modifications")
2535 (description "The Listen gem listens to file modifications and notifies
2536you about the changes.")
2537 (home-page "https://github.com/guard/listen")
2538 (license license:expat)))
2539
5ff89a1b
DT
2540(define-public ruby-activesupport
2541 (package
2542 (name "ruby-activesupport")
2af45e50 2543 (version "5.0.0")
5ff89a1b
DT
2544 (source
2545 (origin
2546 (method url-fetch)
2547 (uri (rubygems-uri "activesupport" version))
2548 (sha256
2549 (base32
2af45e50 2550 "0k7zhnz0aw1ym8phs10r85f91ja45vsd058fm9v0h2k0igw12cpf"))))
5ff89a1b
DT
2551 (build-system ruby-build-system)
2552 (arguments
2af45e50
BW
2553 `(#:phases
2554 (modify-phases %standard-phases
2555 (replace 'check
2556 (lambda _
2557 ;; There is no tests, instead attempt to load the library.
2558 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
5ff89a1b 2559 (propagated-inputs
2af45e50
BW
2560 `(("ruby-concurrent" ,ruby-concurrent)
2561 ("ruby-i18n" ,ruby-i18n)
5ff89a1b 2562 ("ruby-minitest" ,ruby-minitest)
606ee9a1
BW
2563 ("ruby-tzinfo" ,ruby-tzinfo)
2564 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
5ff89a1b
DT
2565 (synopsis "Ruby on Rails utility library")
2566 (description "ActiveSupport is a toolkit of support libraries and Ruby
2567core extensions extracted from the Rails framework. It includes support for
2568multibyte strings, internationalization, time zones, and testing.")
2569 (home-page "http://www.rubyonrails.org")
2570 (license license:expat)))
f847ad7b 2571
3996f0aa
RW
2572(define-public ruby-crass
2573 (package
2574 (name "ruby-crass")
2575 (version "1.0.2")
2576 (source (origin
2577 (method url-fetch)
2578 (uri (rubygems-uri "crass" version))
2579 (sha256
2580 (base32
2581 "1c377r8g7m58y22803iyjgqkkvnnii0pymskda1pardxrzaighj9"))))
2582 (build-system ruby-build-system)
2583 (native-inputs
2584 `(("bundler" ,bundler)
2585 ("ruby-minitest" ,ruby-minitest)))
2586 (synopsis "Pure Ruby CSS parser")
2587 (description
2588 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
2589 (home-page "https://github.com/rgrove/crass/")
2590 (license license:expat)))
2591
c2c4e5b2 2592(define-public ruby-nokogumbo
f1ae7c62
BW
2593 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
2594 (package
2595 (name "ruby-nokogumbo")
2596 (version (string-append "1.4.7-1." (string-take commit 8)))
2597 (source (origin
2598 ;; We use the git reference, because there's no Rakefile in the
2599 ;; published gem and the tarball on Github is outdated.
2600 (method git-fetch)
2601 (uri (git-reference
2602 (url "https://github.com/rubys/nokogumbo.git")
2603 (commit "d56f954d20a")))
2604 (file-name (string-append name "-" version "-checkout"))
2605 (sha256
2606 (base32
2607 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
2608 (build-system ruby-build-system)
2609 (arguments
2610 `(#:modules ((guix build ruby-build-system)
2611 (guix build utils)
2612 (ice-9 rdelim))
2613 #:phases
2614 (modify-phases %standard-phases
5c31e981 2615 (add-after 'unpack 'build-gemspec
f1ae7c62
BW
2616 (lambda _
2617 (substitute* "Rakefile"
2618 ;; Build Makefile even without a copy of gumbo-parser sources
2619 (("'gumbo-parser/src',") "")
2620 ;; We don't bundle gumbo-parser sources
2621 (("'gumbo-parser/src/\\*',") "")
2622 (("'gumbo-parser/visualc/include/\\*',") "")
2623 ;; The definition of SOURCES will be cut in gemspec, and
2624 ;; "FileList" will be undefined.
2625 (("SOURCES \\+ FileList\\[")
2626 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
2627
2628 ;; Copy the Rakefile and cut out the gemspec.
2629 (copy-file "Rakefile" ".gemspec")
2630 (with-atomic-file-replacement ".gemspec"
2631 (lambda (in out)
2632 (let loop ((line (read-line in 'concat))
2633 (skipping? #t))
2634 (if (eof-object? line)
2635 #t
2636 (let ((skip-next? (if skipping?
2637 (not (string-prefix? "SPEC =" line))
2638 (string-prefix? "end" line))))
2639 (when (or (not skipping?)
2640 (and skipping? (not skip-next?)))
2641 (format #t "~a" line)
2642 (display line out))
2643 (loop (read-line in 'concat) skip-next?))))))
2644 #t)))))
2645 (inputs
2646 `(("gumbo-parser" ,gumbo-parser)))
2647 (propagated-inputs
2648 `(("ruby-nokogiri" ,ruby-nokogiri)))
2649 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
2650 (description
2651 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
c2c4e5b2 2652access the result as a Nokogiri parsed document.")
f1ae7c62
BW
2653 (home-page "https://github.com/rubys/nokogumbo/")
2654 (license license:asl2.0))))
c2c4e5b2 2655
d56ff88b
RW
2656(define-public ruby-sanitize
2657 (package
2658 (name "ruby-sanitize")
2659 (version "4.0.0")
2660 (source (origin
2661 (method url-fetch)
2662 ;; The gem does not include the Rakefile, so we download the
2663 ;; release tarball from Github.
2664 (uri (string-append "https://github.com/rgrove/"
2665 "sanitize/archive/v" version ".tar.gz"))
2666 (file-name (string-append name "-" version ".tar.gz"))
2667 (sha256
2668 (base32
2669 "055xnj38l60gxnnng76kpy2l2jbrp0byjdyq17jw79w7l4b40znr"))))
2670 (build-system ruby-build-system)
2671 (propagated-inputs
2672 `(("ruby-crass" ,ruby-crass)
2673 ("ruby-nokogiri" ,ruby-nokogiri)
2674 ("ruby-nokogumbo" ,ruby-nokogumbo)))
2675 (native-inputs
2676 `(("bundler" ,bundler)
2677 ("ruby-minitest" ,ruby-minitest)
2678 ("ruby-redcarpet" ,ruby-redcarpet)
2679 ("ruby-yard" ,ruby-yard)))
2680 (synopsis "Whitelist-based HTML and CSS sanitizer")
2681 (description
2682 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
2683acceptable elements, attributes, and CSS properties, Sanitize will remove all
2684unacceptable HTML and/or CSS from a string.")
2685 (home-page "https://github.com/rgrove/sanitize/")
2686 (license license:expat)))
2687
f847ad7b
DT
2688(define-public ruby-ox
2689 (package
2690 (name "ruby-ox")
2691 (version "2.2.1")
2692 (source
2693 (origin
2694 (method url-fetch)
2695 (uri (rubygems-uri "ox" version))
2696 (sha256
2697 (base32
2698 "00i11xd4ayh7349rhgskajfxn0qzkb74ab01217zix9qcapssxax"))))
2699 (build-system ruby-build-system)
2700 (arguments
2701 '(#:tests? #f)) ; no tests
2702 (synopsis "Optimized XML library for Ruby")
2703 (description
2704 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
2705written as a native C extension. It was designed to be an alternative to
2706Nokogiri and other Ruby XML parsers for generic XML parsing and as an
2707alternative to Marshal for Object serialization. ")
2708 (home-page "http://www.ohler.com/ox")
2709 (license license:expat)))
4a9e0585 2710
0c4e7625
RW
2711(define-public ruby-redcloth
2712 (package
2713 (name "ruby-redcloth")
2714 (version "4.2.9")
2715 (source (origin
2716 (method url-fetch)
2717 (uri (rubygems-uri "RedCloth" version))
2718 (sha256
2719 (base32
2720 "06pahxyrckhgb7alsxwhhlx1ib2xsx33793finj01jk8i054bkxl"))))
2721 (build-system ruby-build-system)
2722 (arguments
2723 `(#:tests? #f ; no tests
2724 #:phases
2725 (modify-phases %standard-phases
2726 ;; Redcloth has complicated rake tasks to build various versions for
2727 ;; multiple targets using RVM. We don't want this so we just use the
2728 ;; existing gemspec.
2729 (replace 'build
2730 (lambda _
2731 (zero? (system* "gem" "build" "redcloth.gemspec"))))
2732 ;; Make sure that the "redcloth" executable finds required Ruby
2733 ;; libraries.
2734 (add-after 'install 'wrap-bin-redcloth
2735 (lambda* (#:key outputs #:allow-other-keys)
2736 (wrap-program (string-append (assoc-ref outputs "out")
2737 "/bin/redcloth")
2738 `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
2739 #t)))))
2740 (native-inputs
2741 `(("bundler" ,bundler)
2742 ("ruby-diff-lcs" ,ruby-diff-lcs)
2743 ("ruby-rspec-2" ,ruby-rspec-2)))
2744 (synopsis "Textile markup language parser for Ruby")
2745 (description
2746 "RedCloth is a Ruby parser for the Textile markup language.")
2747 (home-page "http://redcloth.org")
2748 (license license:expat)))
2749
4a9e0585
DT
2750(define-public ruby-pg
2751 (package
2752 (name "ruby-pg")
2753 (version "0.18.2")
2754 (source
2755 (origin
2756 (method url-fetch)
2757 (uri (rubygems-uri "pg" version))
2758 (sha256
2759 (base32
2760 "1axxbf6ij1iqi3i1r3asvjc80b0py5bz0m2wy5kdi5xkrpr82kpf"))))
2761 (build-system ruby-build-system)
2762 (arguments
2763 '(#:test-target "spec"))
2764 (native-inputs
2765 `(("ruby-rake-compiler" ,ruby-rake-compiler)
2766 ("ruby-hoe" ,ruby-hoe)
2767 ("ruby-rspec" ,ruby-rspec)))
2768 (inputs
2769 `(("postgresql" ,postgresql)))
2770 (synopsis "Ruby interface to PostgreSQL")
2771 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
2772with PostgreSQL 8.4 and later.")
2773 (home-page "https://bitbucket.org/ged/ruby-pg")
2774 (license license:ruby)))
468e5657
DT
2775
2776(define-public ruby-byebug
2777 (package
2778 (name "ruby-byebug")
2779 (version "6.0.2")
2780 (source
2781 (origin
2782 (method url-fetch)
2783 (uri (rubygems-uri "byebug" version))
2784 (sha256
2785 (base32
2786 "0537h9qbhr6csahmzyn4lk1g5b2lcligbzd21gfy93nx9lbfdnzc"))))
2787 (build-system ruby-build-system)
2788 (arguments
2789 '(#:tests? #f)) ; no tests
2790 (synopsis "Debugger for Ruby 2")
2791 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
2792TracePoint C API for execution control and the Debug Inspector C API for call
2793stack navigation. The core component provides support that front-ends can
2794build on. It provides breakpoint handling and bindings for stack frames among
2795other things and it comes with a command line interface.")
2796 (home-page "http://github.com/deivid-rodriguez/byebug")
2797 (license license:bsd-2)))
64b6ccc3 2798
5799bc2b
RW
2799(define-public ruby-netrc
2800 (package
2801 (name "ruby-netrc")
2802 (version "0.11.0")
2803 (source (origin
2804 (method url-fetch)
2805 (uri (rubygems-uri "netrc" version))
2806 (sha256
2807 (base32
2808 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
2809 (build-system ruby-build-system)
2810 (arguments
2811 `(#:phases
2812 (modify-phases %standard-phases
2813 (replace 'check
2814 ;; There is no Rakefile and minitest can only run one file at once,
2815 ;; so we have to iterate over all test files.
2816 (lambda _
2817 (and (map (lambda (file)
2818 (zero? (system* "ruby" "-Itest" file)))
2819 (find-files "./test" "test_.*\\.rb"))))))))
2820 (native-inputs
2821 `(("ruby-minitest" ,ruby-minitest)))
2822 (synopsis "Library to read and update netrc files")
2823 (description
2824 "This library can read and update netrc files, preserving formatting
2825including comments and whitespace.")
2826 (home-page "https://github.com/geemus/netrc")
2827 (license license:expat)))
2828
3a6989ce
RW
2829(define-public ruby-unf-ext
2830 (package
2831 (name "ruby-unf-ext")
2832 (version "0.0.7.1")
2833 (source (origin
2834 (method url-fetch)
2835 (uri (rubygems-uri "unf_ext" version))
2836 (sha256
2837 (base32
2838 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
2839 (build-system ruby-build-system)
b809cc9a
RW
2840 (arguments
2841 `(#:phases
2842 (modify-phases %standard-phases
2843 (add-after 'build 'build-ext
2844 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
3a6989ce
RW
2845 (native-inputs
2846 `(("bundler" ,bundler)
2847 ("ruby-rake-compiler" ,ruby-rake-compiler)
2848 ("ruby-test-unit" ,ruby-test-unit)))
2849 (synopsis "Unicode normalization form support library")
2850 (description
2851 "This package provides unicode normalization form support for Ruby.")
2852 (home-page "https://github.com/knu/ruby-unf_ext")
2853 (license license:expat)))
2854
2632a067
RW
2855(define-public ruby-tdiff
2856 (package
2857 (name "ruby-tdiff")
2858 (version "0.3.3")
2859 (source (origin
2860 (method url-fetch)
2861 (uri (rubygems-uri "tdiff" version))
2862 (sha256
2863 (base32
2864 "0k41jbvn8qq4mgrixnhlk742b971d136i8wpbcv2cczvi22xpc86"))))
2865 (build-system ruby-build-system)
2866 (native-inputs
2867 `(("ruby-rspec-2" ,ruby-rspec-2)
2868 ("ruby-yard" ,ruby-yard)
2869 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2870 (synopsis "Calculate the differences between two tree-like structures")
2871 (description
2872 "This library provides functions to calculate the differences between two
2873tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
2874 (home-page "https://github.com/postmodern/tdiff")
2875 (license license:expat)))
2876
f60f5002
RW
2877(define-public ruby-nokogiri-diff
2878 (package
2879 (name "ruby-nokogiri-diff")
2880 (version "0.2.0")
2881 (source (origin
2882 (method url-fetch)
2883 (uri (rubygems-uri "nokogiri-diff" version))
2884 (sha256
2885 (base32
2886 "0njr1s42war0bj1axb2psjvk49l74a8wzr799wckqqdcb6n51lc1"))))
2887 (build-system ruby-build-system)
2888 (propagated-inputs
2889 `(("ruby-tdiff" ,ruby-tdiff)
2890 ("ruby-nokogiri" ,ruby-nokogiri)))
2891 (native-inputs
2892 `(("ruby-rspec-2" ,ruby-rspec-2)
2893 ("ruby-yard" ,ruby-yard)
2894 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2895 (synopsis "Calculate the differences between two XML/HTML documents")
2896 (description
2897 "@code{Nokogiri::Diff} adds the ability to calculate the
2898differences (added or removed nodes) between two XML/HTML documents.")
2899 (home-page "https://github.com/postmodern/nokogiri-diff")
2900 (license license:expat)))
2901
64b6ccc3
DT
2902(define-public ruby-rack
2903 (package
2904 (name "ruby-rack")
1db791d5 2905 (version "2.0.1")
64b6ccc3
DT
2906 (source
2907 (origin
2908 (method url-fetch)
1db791d5
BW
2909 ;; Download from GitHub so that the patch can be applied.
2910 (uri (string-append
2911 "https://github.com/rack/rack/archive/"
2912 version
2913 ".tar.gz"))
2914 (file-name (string-append name "-" version ".tar.gz"))
64b6ccc3
DT
2915 (sha256
2916 (base32
1db791d5
BW
2917 "00k62v8lpyjzghkn0h0awrnqj1jmlcs2wp57py27m43y65v89cp3"))
2918 ;; Ignore test which fails inside the build environment but works
2919 ;; outside.
2920 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
64b6ccc3
DT
2921 (build-system ruby-build-system)
2922 (arguments
2923 '(#:phases
2924 (modify-phases %standard-phases
2925 (add-before 'check 'fix-tests
2926 (lambda _
2927 ;; A few of the tests use the length of a file on disk for
2928 ;; Content-Length and Content-Range headers. However, this file
2929 ;; has a shebang in it which an earlier phase patches, growing
2930 ;; the file size from 193 to 239 bytes when the store prefix is
2931 ;; "/gnu/store".
2932 (let ((size-diff (- (string-length (which "ruby"))
2933 (string-length "/usr/bin/env ruby"))))
2934 (substitute* '("test/spec_file.rb")
2935 (("193")
2936 (number->string (+ 193 size-diff)))
2937 (("bytes(.)22-33" all delimiter)
2938 (string-append "bytes"
2939 delimiter
2940 (number->string (+ 22 size-diff))
2941 "-"
2942 (number->string (+ 33 size-diff))))))
2943 #t)))))
2944 (native-inputs
1db791d5
BW
2945 `(("ruby-minitest" ,ruby-minitest)
2946 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
2947 ("which" ,which)))
2948 (propagated-inputs
2949 `(("ruby-concurrent" ,ruby-concurrent)))
64b6ccc3
DT
2950 (synopsis "Unified web application interface for Ruby")
2951 (description "Rack provides a minimal, modular and adaptable interface for
2952developing web applications in Ruby. By wrapping HTTP requests and responses,
2953it unifies the API for web servers, web frameworks, and software in between
2954into a single method call.")
2955 (home-page "http://rack.github.io/")
2956 (license license:expat)))
62e4cc5a 2957
6aaa815e
PP
2958(define-public ruby-docile
2959 (package
2960 (name "ruby-docile")
2961 (version "1.1.5")
2962 (source
2963 (origin
2964 (method url-fetch)
2965 (uri (rubygems-uri "docile" version))
2966 (sha256
2967 (base32
2968 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
2969 (build-system ruby-build-system)
2970 (arguments
2971 '(#:tests? #f)) ; needs github-markup, among others
2972 (synopsis "Ruby EDSL helper library")
2973 (description "Docile is a Ruby library that provides an interface for
2974creating embedded domain specific languages (EDSLs) that manipulate existing
2975Ruby classes.")
2976 (home-page "https://ms-ati.github.io/docile/")
2977 (license license:expat)))
2978
44514637 2979(define-public ruby-gherkin
62e4cc5a 2980 (package
44514637
BW
2981 (name "ruby-gherkin")
2982 (version "4.0.0")
62e4cc5a
PP
2983 (source
2984 (origin
2985 (method url-fetch)
44514637 2986 (uri (rubygems-uri "gherkin" version))
62e4cc5a
PP
2987 (sha256
2988 (base32
44514637 2989 "1ripjv97hg746xszx9isal8z8vrlb98asc2rdxl291b3hr6pj0pr"))))
62e4cc5a
PP
2990 (build-system ruby-build-system)
2991 (native-inputs
2992 `(("bundler" ,bundler)))
2993 (arguments
2994 '(#:tests? #f)) ; needs simplecov, among others
2995 (synopsis "Gherkin parser for Ruby")
44514637
BW
2996 (description "Gherkin is a parser and compiler for the Gherkin language.
2997It is intended be used by all Cucumber implementations to parse '.feature'
2998files.")
62e4cc5a
PP
2999 (home-page "https://github.com/cucumber/gherkin3")
3000 (license license:expat)))
cd89fecb
PP
3001
3002(define-public ruby-cucumber-core
3003 (package
3004 (name "ruby-cucumber-core")
1817d30a 3005 (version "1.5.0")
cd89fecb
PP
3006 (source
3007 (origin
3008 (method url-fetch)
3009 (uri (rubygems-uri "cucumber-core" version))
3010 (sha256
3011 (base32
1817d30a 3012 "0qj2fsqvp94nggnikbnrfvnmzr1pl6ifmdsxj69kdw1kkab30jjr"))))
cd89fecb
PP
3013 (build-system ruby-build-system)
3014 (propagated-inputs
44514637 3015 `(("ruby-gherkin" ,ruby-gherkin)))
cd89fecb
PP
3016 (native-inputs
3017 `(("bundler" ,bundler)))
3018 (arguments
3019 '(#:tests? #f)) ; needs simplecov, among others
3020 (synopsis "Core library for the Cucumber BDD app")
3021 (description "Cucumber is a tool for running automated tests
3022written in plain language. Because they're written in plain language,
3023they can be read by anyone on your team. Because they can be read by
3024anyone, you can use them to help improve communication, collaboration
3025and trust on your team.")
3026 (home-page "https://cucumber.io/")
3027 (license license:expat)))
212d563d
PP
3028
3029(define-public ruby-bio-logger
3030 (package
3031 (name "ruby-bio-logger")
3032 (version "1.0.1")
3033 (source
3034 (origin
3035 (method url-fetch)
3036 (uri (rubygems-uri "bio-logger" version))
3037 (sha256
3038 (base32
3039 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3040 (build-system ruby-build-system)
3041 (arguments
3042 `(#:tests? #f)) ; rake errors, missing shoulda
3043 (propagated-inputs
3044 `(("ruby-log4r" ,ruby-log4r)))
3045 (synopsis "Log4r wrapper for Ruby")
3046 (description "Bio-logger is a wrapper around Log4r adding extra logging
3047features such as filtering and fine grained logging.")
3048 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3049 (license license:expat)))
07f61cb2
BW
3050
3051(define-public ruby-yard
6499893e
BW
3052 (package
3053 (name "ruby-yard")
3054 (version "0.9.6")
3055 (source
3056 (origin
3057 (method url-fetch)
3058 ;; Tests do not pass if we build from the distributed gem.
3059 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3a3e3099 3060 version ".tar.gz"))
6499893e
BW
3061 (file-name (string-append name "-" version ".tar.gz"))
3062 (sha256
3063 (base32
3064 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3065 (build-system ruby-build-system)
3066 (arguments
3067 `(#:phases
3068 (modify-phases %standard-phases
3069 (replace 'check
3070 (lambda _
3071 ;; $HOME needs to be set to somewhere writeable for tests to run
3072 (setenv "HOME" "/tmp")
3073 ;; Run tests without using 'rake' to avoid dependencies.
3074 (zero? (system* "rspec")))))))
3075 (native-inputs
3076 `(("ruby-rspec" ,ruby-rspec)
3077 ("ruby-rack" ,ruby-rack)))
3078 (synopsis "Documentation generation tool for Ruby")
3079 (description
3080 "YARD is a documentation generation tool for the Ruby programming
07f61cb2
BW
3081language. It enables the user to generate consistent, usable documentation
3082that can be exported to a number of formats very easily, and also supports
3083extending for custom Ruby constructs such as custom class level definitions.")
6499893e
BW
3084 (home-page "http://yardoc.org")
3085 (license license:expat)))
2cbcd23a 3086
ad686ef3
RW
3087(define-public ruby-clap
3088 (package
3089 (name "ruby-clap")
3090 (version "1.0.0")
3091 (source (origin
3092 (method url-fetch)
3093 (uri (rubygems-uri "clap" version))
3094 (sha256
3095 (base32
3096 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3097 (build-system ruby-build-system)
3098 ;; Clap needs cutest for running tests, but cutest needs clap.
3099 (arguments `(#:tests? #f))
3100 (synopsis "Command line argument parsing for simple applications")
3101 (description
3102 "Clap provides command line argument parsing features. It covers the
3103simple case of executing code based on the flags or parameters passed.")
3104 (home-page "https://github.com/djanowski/cutest")
0c80451e
RW
3105 (license license:expat)))
3106
3107(define-public ruby-cutest
3108 (package
3109 (name "ruby-cutest")
3110 (version "1.2.2")
3111 (source (origin
3112 (method url-fetch)
3113 (uri (rubygems-uri "cutest" version))
3114 (sha256
3115 (base32
3116 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3117 (build-system ruby-build-system)
3118 (propagated-inputs
3119 `(("ruby-clap" ,ruby-clap)))
3120 (synopsis "Run tests in separate processes")
3121 (description
3122 "Cutest runs tests in separate processes to avoid shared state.")
3123 (home-page "https://github.com/djanowski/cutest")
ad686ef3
RW
3124 (license license:expat)))
3125
ac09beba
RW
3126(define-public ruby-pygmentize
3127 (package
3128 (name "ruby-pygmentize")
3129 (version "0.0.3")
3130 (source (origin
3131 (method url-fetch)
3132 (uri (rubygems-uri "pygmentize" version))
3133 (sha256
3134 (base32
3135 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3136 (build-system ruby-build-system)
3137 (arguments
3138 `(#:phases
3139 (modify-phases %standard-phases
3140 (add-after 'unpack 'fix-pygmentize-path
3141 (lambda _
3142 (substitute* "lib/pygmentize.rb"
3143 (("\"/usr/bin/env python.*")
3144 (string-append "\"" (which "pygmentize") "\"\n")))
3145 #t))
3146 (add-after 'build 'do-not-use-vendor-directory
3147 (lambda _
3148 ;; Remove bundled pygments sources
3149 ;; FIXME: ruby-build-system does not support snippets.
3150 (delete-file-recursively "vendor")
3151 (substitute* "pygmentize.gemspec"
3152 (("\"vendor/\\*\\*/\\*\",") ""))
3153 #t)))))
3154 (inputs
3155 `(("pygments" ,python-pygments)))
3156 (native-inputs
3157 `(("ruby-cutest" ,ruby-cutest)
3158 ("ruby-nokogiri" ,ruby-nokogiri)))
3159 (synopsis "Thin Ruby wrapper around pygmentize")
3160 (description
3161 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3162application.")
3163 (home-page "https://github.com/djanowski/pygmentize")
3164 (license license:expat)))
3165
2cbcd23a
DT
3166(define-public ruby-eventmachine
3167 (package
3168 (name "ruby-eventmachine")
3169 (version "1.0.8")
3170 (source
3171 (origin
3172 (method url-fetch)
3173 (uri (rubygems-uri "eventmachine" version))
3174 (sha256
3175 (base32
3176 "1frvpk3p73xc64qkn0ymll3flvn4xcycq5yx8a43zd3gyzc1ifjp"))))
3177 (build-system ruby-build-system)
3178 (arguments
3179 '(#:tests? #f)) ; test suite tries to connect to google.com
3180 (native-inputs
3181 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3182 (synopsis "Single-threaded network event framework for Ruby")
3183 (description
3184 "EventMachine implements a single-threaded engine for arbitrary network
3185communications. EventMachine wraps all interactions with sockets, allowing
3186programs to concentrate on the implementation of network protocols. It can be
3187used to create both network servers and clients.")
3188 (home-page "http://rubyeventmachine.com")
3189 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
7d3a1a2d 3190
8092e333
BW
3191(define-public ruby-turn
3192 (package
3193 (name "ruby-turn")
3194 (version "0.9.7")
3195 (source
3196 (origin
3197 (method url-fetch)
3198 (uri (rubygems-uri "turn" version))
3199 (sha256
3200 (base32
3201 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3202 (build-system ruby-build-system)
3203 (arguments
3204 `(#:phases
3205 (modify-phases %standard-phases
3206 ;; Tests fail because turn changes its environment so can no longer
3207 ;; find test/unit. Instead simply test if the executable runs
3208 ;; without issue.
3209 (replace 'check
3210 (lambda _
3211 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3212 (propagated-inputs
3213 `(("ruby-ansi" ,ruby-ansi)
3214 ("ruby-minitest" ,ruby-minitest-4)))
3215 (synopsis "Alternate set of alternative runners for MiniTest")
3216 (description
3217 "TURN provides a set of alternative runners for MiniTest which are both
3218colorful and informative. TURN displays each test on a separate line with
3219failures being displayed immediately instead of at the end of the tests. Note
3220that TURN is no longer being maintained.")
3221 (home-page "http://rubygems.org/gems/turn")
3222 (license license:expat)))
3223
32d1c06f
BW
3224(define-public ruby-mime-types-data
3225 (package
3226 (name "ruby-mime-types-data")
f49511db 3227 (version "3.2016.0521")
32d1c06f
BW
3228 (source
3229 (origin
3230 (method url-fetch)
3231 (uri (rubygems-uri "mime-types-data" version))
3232 (sha256
3233 (base32
f49511db 3234 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
32d1c06f
BW
3235 (build-system ruby-build-system)
3236 (native-inputs
3237 `(("ruby-hoe" ,ruby-hoe)))
3238 (synopsis "Registry for information about MIME media type definitions")
3239 (description
3240 "@code{mime-types-data} provides a registry for information about
3241Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3242be used with the Ruby mime-types library or other software to determine
3243defined filename extensions for MIME types, or to use filename extensions to
3244look up the likely MIME type definitions.")
3245 (home-page "https://github.com/mime-types/mime-types-data/")
3246 (license license:expat)))
3247
d39b606c
BW
3248(define-public ruby-mime-types
3249 (package
3250 (name "ruby-mime-types")
803bcc81 3251 (version "3.1")
d39b606c
BW
3252 (source
3253 (origin
3254 (method url-fetch)
3255 (uri (rubygems-uri "mime-types" version))
3256 (sha256
3257 (base32
803bcc81 3258 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
d39b606c
BW
3259 (build-system ruby-build-system)
3260 (propagated-inputs
3261 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3262 (native-inputs
3263 `(("ruby-hoe" ,ruby-hoe)
3264 ("ruby-fivemat" ,ruby-fivemat)
3265 ("ruby-minitest-focus" ,ruby-minitest-focus)
3266 ("ruby-minitest-rg" ,ruby-minitest-rg)
803bcc81
BW
3267 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3268 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
d39b606c
BW
3269 (synopsis "Library and registry for MIME content type definitions")
3270 (description "The mime-types library provides a library and registry for
3271information about Multipurpose Internet Mail Extensions (MIME) content type
3272definitions. It can be used to determine defined filename extensions for MIME
3273types, or to use filename extensions to look up the likely MIME type
3274definitions.")
3275 (home-page "https://github.com/mime-types/ruby-mime-types")
3276 (license license:expat)))
3277
eb5e0bd9
BW
3278(define-public ruby-fivemat
3279 (package
3280 (name "ruby-fivemat")
3281 (version "1.3.2")
3282 (source
3283 (origin
3284 (method url-fetch)
3285 (uri (rubygems-uri "fivemat" version))
3286 (sha256
3287 (base32
3288 "1gvw6g4yc96l2pcyvigahyfsjxpdjx21iiwzvf965zippchdh6gk"))))
3289 (build-system ruby-build-system)
3290 (arguments
3291 `(#:tests? #f)) ; no tests
3292 (synopsis "Each test file given its own line of dots")
3293 (description
3294 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3295its own line of dots during testing. It aims to provide test output that is
3296neither too verbose nor too minimal.")
3297 (home-page "https://github.com/tpope/fivemat")
3298 (license license:expat)))
3299
4fea500b
BW
3300(define-public ruby-sqlite3
3301 (package
3302 (name "ruby-sqlite3")
17ba688c 3303 (version "1.3.12")
4fea500b
BW
3304 (source
3305 (origin
3306 (method url-fetch)
3307 (uri (rubygems-uri "sqlite3" version))
3308 (sha256
3309 (base32
17ba688c 3310 "0hld87rvwyy31xsxzhicv2lj3g3kmvmwfxj09kw13g6lacdjz4bx"))))
4fea500b
BW
3311 (build-system ruby-build-system)
3312 (arguments
3313 `(#:phases
3314 (modify-phases %standard-phases
3315 (add-before 'check 'add-gemtest-file
3316 ;; This file exists in the repository but is not distributed.
3317 (lambda _ (zero? (system* "touch" ".gemtest")))))))
3318 (inputs
3319 `(("sqlite" ,sqlite)))
3320 (native-inputs
3321 `(("ruby-hoe" ,ruby-hoe)
3322 ("ruby-rake-compiler" ,ruby-rake-compiler)
3323 ("ruby-mini-portile" ,ruby-mini-portile)))
3324 (synopsis "Interface with SQLite3 databases")
3325 (description
3326 "This module allows Ruby programs to interface with the SQLite3 database
3327engine.")
3328 (home-page
3329 "https://github.com/sparklemotion/sqlite3-ruby")
3330 (license license:bsd-3)))
3331
4dfa39cc
BW
3332(define-public ruby-shoulda-context
3333 (package
3334 (name "ruby-shoulda-context")
e7d1d472 3335 (version "1.2.2")
4dfa39cc
BW
3336 (source
3337 (origin
3338 (method url-fetch)
3339 (uri (rubygems-uri "shoulda-context" version))
3340 (sha256
3341 (base32
e7d1d472 3342 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
4dfa39cc
BW
3343 (build-system ruby-build-system)
3344 (arguments
3345 `(#:phases
3346 (modify-phases %standard-phases
3347 (replace 'check
3348 (lambda _
3349 ;; Do not run tests to avoid circular dependence with rails.
3350 ;; Instead just import the library to test.
3351 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
3352 (synopsis "Test::Unit context framework extracted from Shoulda")
3353 (description
3354 "@code{shoulda-context} is the context framework extracted from Shoulda.
3355Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
3356context, setup, and should blocks combine to produce natural test method
3357names.")
3358 (home-page "https://github.com/thoughtbot/shoulda-context")
3359 (license license:expat)))
3360
e4fea008
BW
3361(define-public ruby-shoulda-matchers
3362 (package
3363 (name "ruby-shoulda-matchers")
80756fa6 3364 (version "3.1.1")
e4fea008
BW
3365 (source
3366 (origin
3367 (method url-fetch)
3368 (uri (rubygems-uri "shoulda-matchers" version))
3369 (sha256
3370 (base32
80756fa6 3371 "1cf6d2d9br82vylr9p362yk9cfrd14jz8v77n0yb0lbcxdbk7xzq"))))
e4fea008
BW
3372 (build-system ruby-build-system)
3373 (arguments
3374 `(#:phases
3375 (modify-phases %standard-phases
e4fea008
BW
3376 (replace 'check
3377 (lambda _
3378 ;; Do not run tests to avoid circular dependence with rails. Instead
3379 ;; just import the library to test.
3380 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
3381 (propagated-inputs
3382 `(("ruby-activesupport" ,ruby-activesupport)))
3383 (synopsis "Collection of testing matchers extracted from Shoulda")
3384 (description
3385 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
3386test common Rails functionality. These tests would otherwise be much longer,
3387more complex, and error-prone.")
3388 (home-page "https://github.com/thoughtbot/shoulda-matchers")
3389 (license license:expat)))
3390
3885c58b
BW
3391(define-public ruby-shoulda-matchers-2
3392 (package
3393 (inherit ruby-shoulda-matchers)
3394 (version "2.8.0")
3395 (source (origin
3396 (method url-fetch)
3397 (uri (rubygems-uri "shoulda-matchers" version))
3398 (sha256
3399 (base32
3400 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
3401
6f390716
BW
3402(define-public ruby-shoulda
3403 (package
3404 (name "ruby-shoulda")
3405 (version "3.5.0")
3406 (source
3407 (origin
3408 (method url-fetch)
3409 (uri (rubygems-uri "shoulda" version))
3410 (sha256
3411 (base32
3412 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
3413 (build-system ruby-build-system)
3414 (arguments
3415 `(#:phases
3416 (modify-phases %standard-phases
3417 (replace 'check
3418 ;; Don't run tests to avoid circular dependence with rails. Instead
3419 ;; just import the library to test.
3420 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
3421 (propagated-inputs
3422 `(("ruby-shoulda-context" ,ruby-shoulda-context)
3423 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
3424 (synopsis "Context framework and matchers for testing")
3425 (description
3426 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
3427@code{shoulda-matchers} providing tools for writing tests.")
3428 (home-page "https://github.com/thoughtbot/shoulda")
3429 (license license:expat)))
3430
3b44bcdf
BW
3431(define-public ruby-unf
3432 (package
3433 (name "ruby-unf")
3434 (version "0.1.4")
3435 (source
3436 (origin
3437 (method url-fetch)
3438 (uri (rubygems-uri "unf" version))
3439 (sha256
3440 (base32
3441 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
3442 (build-system ruby-build-system)
3443 (arguments
3444 `(#:phases
3445 (modify-phases %standard-phases
3446 (add-before 'check 'add-dependency-to-bundler
3447 (lambda _
3448 ;; test-unit is required but not provided by the bundler
3449 ;; environment. This is fixed in the upstream repository but fix
3450 ;; has not been released.
3451 (substitute* "Gemfile"
3452 (("^gemspec") "gem 'test-unit'\ngemspec"))
3453 #t)))))
3454 (propagated-inputs
3455 `(("ruby-unf-ext" ,ruby-unf-ext)))
3456 (native-inputs
3457 `(("ruby-shoulda" ,ruby-shoulda)
3458 ("bundler" ,bundler)
3459 ("ruby-test-unit" ,ruby-test-unit)))
3460 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
3461 (description
3462 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
3463support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
3464@code{java.text.Normalizer} on JRuby.")
3465 (home-page "https://github.com/knu/ruby-unf")
3466 (license license:bsd-2)))
3467
5799aadd
BW
3468(define-public ruby-domain-name
3469 (package
3470 (name "ruby-domain-name")
ca083914 3471 (version "0.5.20161021")
5799aadd
BW
3472 (source
3473 (origin
3474 (method url-fetch)
3475 (uri (rubygems-uri "domain_name" version))
3476 (sha256
3477 (base32
ca083914 3478 "1y5c96gzyh6z4nrnkisljqngfvljdba36dww657ka0x7khzvx7jl"))))
5799aadd
BW
3479 (build-system ruby-build-system)
3480 (arguments
3481 `(#:phases
3482 (modify-phases %standard-phases
3483 (add-before 'check 'fix-versions
3484 (lambda _
3485 ;; Fix NameError that appears to already be fixed upstream.
3486 (substitute* "Rakefile"
3487 (("DomainName::VERSION")
3488 "Bundler::GemHelper.gemspec.version"))
3489 ;; Loosen unnecessarily strict test-unit version specification.
3490 (substitute* "domain_name.gemspec"
71596c3c 3491 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
5799aadd
BW
3492 #t)))))
3493 (propagated-inputs
3494 `(("ruby-unf" ,ruby-unf)))
3495 (native-inputs
3496 `(("ruby-shoulda" ,ruby-shoulda)
3497 ("bundler" ,bundler)
3498 ("ruby-test-unit" ,ruby-test-unit)))
3499 (synopsis "Domain name manipulation library")
3500 (description
3501 "@code{domain_name} is a Domain name manipulation library. It parses a
3502domain name ready for extracting the registered domain and TLD (Top Level
3503Domain). It can also be used for cookie domain validation based on the Public
3504Suffix List.")
3505 (home-page "https://github.com/knu/ruby-domain_name")
3506 (license license:bsd-2)))
3507
d114ceeb
BW
3508(define-public ruby-http-cookie
3509 (package
3510 (name "ruby-http-cookie")
2a2eb07d 3511 (version "1.0.3")
d114ceeb
BW
3512 (source
3513 (origin
3514 (method url-fetch)
3515 (uri (rubygems-uri "http-cookie" version))
3516 (sha256
3517 (base32
2a2eb07d 3518 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
d114ceeb
BW
3519 (build-system ruby-build-system)
3520 (arguments
3521 `(#:phases
3522 (modify-phases %standard-phases
3523 (add-before 'check 'add-dependency-to-bundler
3524 (lambda _
3525 ;; Fix NameError
3526 (substitute* "Rakefile"
3527 (("HTTP::Cookie::VERSION")
3528 "Bundler::GemHelper.gemspec.version"))
3529 #t)))))
3530 (propagated-inputs
3531 `(("ruby-domain-name" ,ruby-domain-name)))
3532 (native-inputs
3533 `(("rubysimplecov" ,ruby-simplecov)
3534 ("bundler" ,bundler)
3535 ("ruby-sqlite3" ,ruby-sqlite3)
3536 ("ruby-test-unit" ,ruby-test-unit)))
3537 (synopsis "Handle HTTP Cookies based on RFC 6265")
3538 (description
3539 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
3540RFC 6265. It has been designed with security, standards compliance and
3541compatibility in mind, to behave just the same as today's major web browsers.
3542It has built-in support for the legacy @code{cookies.txt} and
3543@code{cookies.sqlite} formats of Mozilla Firefox.")
3544 (home-page "https://github.com/sparklemotion/http-cookie")
3545 (license license:expat)))
3546
7d3a1a2d
BW
3547(define-public ruby-ansi
3548 (package
3549 (name "ruby-ansi")
3550 (version "1.5.0")
3551 (source
3552 (origin
3553 (method url-fetch)
3554 ;; Fetch from GitHub as the gem does not contain testing code.
3555 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
3556 version ".tar.gz"))
3557 (file-name (string-append name "-" version ".tar.gz"))
3558 (sha256
3559 (base32
3560 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
3561 (build-system ruby-build-system)
3562 (arguments
3563 `(#:phases
3564 (modify-phases %standard-phases
3565 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
3566 ;; cycle ansi, qed, ansi. Instead simply test that the library can
3567 ;; be require'd.
3568 (replace 'check
3569 (lambda _
3570 (zero? (system* "ruby" "-Ilib" "-r" "ansi")))))))
3571 (synopsis "ANSI escape code related libraries")
3572 (description
3573 "This package is a collection of ANSI escape code related libraries
3574enabling ANSI colorization and stylization of console output. Included in the
3575library are the @code{Code} module, which defines ANSI codes as constants and
3576methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
3577@code{ProgressBar}, and a @code{String} subclass. The library also includes a
3578@code{Terminal} module which provides information about the current output
3579device.")
3580 (home-page "http://rubyworks.github.io/ansi")
3581 (license license:bsd-2)))
7c033c46
BW
3582
3583(define-public ruby-systemu
3584 (package
3585 (name "ruby-systemu")
3586 (version "2.6.5")
3587 (source
3588 (origin
3589 (method url-fetch)
3590 (uri (rubygems-uri "systemu" version))
3591 (sha256
3592 (base32
3593 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
3594 (build-system ruby-build-system)
3595 (arguments
3596 `(#:phases
3597 (modify-phases %standard-phases
3598 (add-before 'check 'set-version
3599 (lambda _
3600 (setenv "VERSION" ,version)
3601 #t)))))
3602 (synopsis "Capture of stdout/stderr and handling of child processes")
3603 (description
3604 "Systemu can be used on any platform to return status, stdout, and stderr
3605of any command. Unlike other methods like @code{open3} and @code{popen4}
3606there is no danger of full pipes or threading issues hanging your process or
3607subprocess.")
3608 (home-page "https://github.com/ahoward/systemu")
3609 (license license:ruby)))
3d84a99e
BW
3610
3611(define-public ruby-bio-commandeer
3612 (package
3613 (name "ruby-bio-commandeer")
9bb46c15 3614 (version "0.1.3")
3d84a99e
BW
3615 (source
3616 (origin
3617 (method url-fetch)
3618 (uri (rubygems-uri "bio-commandeer" version))
3619 (sha256
3620 (base32
9bb46c15 3621 "0lin6l99ldqqjc90l9ihcrv882c4xgbgqm16jqkdy6jf955jd9a8"))))
3d84a99e
BW
3622 (build-system ruby-build-system)
3623 (arguments
3624 `(#:phases
3625 (modify-phases %standard-phases
3626 (replace 'check
3627 ;; Run test without calling 'rake' so that jeweler is
3628 ;; not required as an input.
3629 (lambda _
3630 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
3631 (propagated-inputs
3632 `(("ruby-bio-logger" ,ruby-bio-logger)
3633 ("ruby-systemu" ,ruby-systemu)))
3634 (native-inputs
3635 `(("bundler" ,bundler)
3636 ("ruby-rspec" ,ruby-rspec)))
3637 (synopsis "Simplified running of shell commands from within Ruby")
3638 (description
3639 "Bio-commandeer provides an opinionated method of running shell commands
3640from within Ruby. The advantage of bio-commandeer over other methods of
3641running external commands is that when something goes wrong, messages printed
3642to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
3643detail to ease debugging.")
3644 (home-page "http://github.com/wwood/bioruby-commandeer")
3645 (license license:expat)))
7c8131c7
BW
3646
3647(define-public ruby-rubytest
3648 (package
3649 (name "ruby-rubytest")
3650 (version "0.8.1")
3651 (source
3652 (origin
3653 (method url-fetch)
3654 (uri (rubygems-uri "rubytest" version))
3655 (sha256
3656 (base32
3657 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
3658 (build-system ruby-build-system)
3659 (arguments
3660 ;; Disable regular testing to break the cycle rubytest, qed, brass,
3661 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
3662 ;; simply test that the library can be require'd.
3663 `(#:phases
3664 (modify-phases %standard-phases
3665 (replace 'check
3666 (lambda _
3667 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
3668 (propagated-inputs
3669 `(("ruby-ansi" ,ruby-ansi)))
3670 (synopsis "Universal test harness for Ruby")
3671 (description
3672 "Rubytest is a testing meta-framework for Ruby. It can handle any
3673compliant test framework and can run tests from multiple frameworks in a
3674single pass.")
3675 (home-page "http://rubyworks.github.io/rubytest")
3676 (license license:bsd-2)))
90fcedf2
BW
3677
3678(define-public ruby-brass
3679 (package
3680 (name "ruby-brass")
3681 (version "1.2.1")
3682 (source
3683 (origin
3684 (method url-fetch)
3685 (uri (rubygems-uri "brass" version))
3686 (sha256
3687 (base32
3688 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
3689 (build-system ruby-build-system)
3690 (arguments
3691 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
3692 ;; Instead simply test that the library can be require'd.
3693 `(#:phases
3694 (modify-phases %standard-phases
3695 (replace 'check
3696 (lambda _
3697 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
3698 (synopsis "Basic foundational assertions framework")
3699 (description
3700 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
3701foundational assertions framework for other assertion and test frameworks to
3702make use of.")
3703 (home-page "http://rubyworks.github.io/brass")
3704 (license license:bsd-2)))
120fc74b
BW
3705
3706(define-public ruby-qed
3707 (package
3708 (name "ruby-qed")
3709 (version "2.9.2")
3710 (source
3711 (origin
3712 (method url-fetch)
3713 (uri (rubygems-uri "qed" version))
3714 (sha256
3715 (base32
3716 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
3717 (build-system ruby-build-system)
3718 (arguments
3719 ;; Disable testing to break the cycle qed, ansi, qed, among others.
3720 ;; Instead simply test that the executable runs using --copyright.
3721 `(#:phases
3722 (modify-phases %standard-phases
3723 (replace 'check
3724 (lambda _
3725 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
3726 (propagated-inputs
3727 `(("ruby-ansi" ,ruby-ansi)
3728 ("ruby-brass" ,ruby-brass)))
3729 (synopsis "Test framework utilizing literate programming techniques")
3730 (description
3731 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
3732@dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
3733Development} (BDD) utilizing Literate Programming techniques. QED sits
3734somewhere between lower-level testing tools like @code{Test::Unit} and
3735requirement specifications systems like Cucumber.")
3736 (home-page "http://rubyworks.github.io/qed")
3737 (license license:bsd-2)))
9273ee8f
BW
3738
3739(define-public ruby-ae
3740 (package
3741 (name "ruby-ae")
3742 (version "1.8.2")
3743 (source
3744 (origin
3745 (method url-fetch)
3746 ;; Fetch from github so tests are included.
3747 (uri (string-append
3748 "https://github.com/rubyworks/ae/archive/"
3749 version ".tar.gz"))
3750 (file-name (string-append name "-" version ".tar.gz"))
3751 (sha256
3752 (base32
3753 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
3754 (build-system ruby-build-system)
3755 (arguments
3756 `(#:phases
3757 (modify-phases %standard-phases
3758 (replace 'check
3759 (lambda _ (zero? (system* "qed")))))))
3760 (propagated-inputs
3761 `(("ruby-ansi" ,ruby-ansi)))
3762 (native-inputs
3763 `(("ruby-qed" ,ruby-qed)))
3764 (synopsis "Assertions library")
3765 (description
3766 "Assertive Expressive (AE) is an assertions library specifically designed
3767for reuse by other test frameworks.")
3768 (home-page "http://rubyworks.github.io/ae")
3769 (license license:bsd-2)))
78bb471f
BW
3770
3771(define-public ruby-lemon
3772 (package
3773 (name "ruby-lemon")
3774 (version "0.9.1")
3775 (source
3776 (origin
3777 (method url-fetch)
3778 (uri (rubygems-uri "lemon" version))
3779 (sha256
3780 (base32
3781 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
3782 (build-system ruby-build-system)
3783 (arguments
3784 `(#:phases
3785 (modify-phases %standard-phases
3786 (replace 'check (lambda _ (zero? (system* "qed")))))))
3787 (propagated-inputs
3788 `(("ruby-ae" ,ruby-ae)
3789 ("ruby-ansi" ,ruby-ansi)
3790 ("ruby-rubytest" ,ruby-rubytest)))
3791 (native-inputs
3792 `(("ruby-qed" ,ruby-qed)))
3793 (synopsis "Test framework correlating code structure and test unit")
3794 (description
3795 "Lemon is a unit testing framework that enforces highly formal
3796case-to-class and unit-to-method test construction. This enforcement can help
3797focus concern on individual units of behavior.")
3798 (home-page "http://rubyworks.github.io/lemon")
3799 (license license:bsd-2)))
0832804e
BW
3800
3801(define-public ruby-rubytest-cli
3802 (package
3803 (name "ruby-rubytest-cli")
3804 (version "0.2.0")
3805 (source
3806 (origin
3807 (method url-fetch)
3808 (uri (rubygems-uri "rubytest-cli" version))
3809 (sha256
3810 (base32
3811 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
3812 (build-system ruby-build-system)
3813 (arguments
3814 `(#:tests? #f)) ; no tests
3815 (propagated-inputs
3816 `(("ruby-ansi" ,ruby-ansi)
3817 ("ruby-rubytest" ,ruby-rubytest)))
3818 (synopsis "Command-line interface for rubytest")
3819 (description
3820 "Rubytest CLI is a command-line interface for running tests for
3821Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
3822 (home-page "http://rubyworks.github.io/rubytest-cli")
3823 (license license:bsd-2)))
72ccbfe3
BW
3824
3825(define-public ruby-hashery
3826 (package
3827 (name "ruby-hashery")
cba96208 3828 (version "2.1.2")
72ccbfe3
BW
3829 (source
3830 (origin
3831 (method url-fetch)
3832 (uri (rubygems-uri "hashery" version))
3833 (sha256
3834 (base32
cba96208 3835 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
72ccbfe3
BW
3836 (build-system ruby-build-system)
3837 (arguments
3838 `(#:phases
3839 (modify-phases %standard-phases
3840 (replace 'check
3841 (lambda _
3842 (and (zero? (system* "qed"))
3843 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
3844 (native-inputs
3845 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
3846 ("ruby-qed" ,ruby-qed)
3847 ("ruby-lemon" ,ruby-lemon)))
3848 (synopsis "Hash-like classes with extra features")
3849 (description
3850 "The Hashery is a tight collection of @code{Hash}-like classes.
3851Included are the auto-sorting @code{Dictionary} class, the efficient
3852@code{LRUHash}, the flexible @code{OpenHash} and the convenient
3853@code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
3854defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
3855standard @code{Hash} making it possible to subclass and augment to fit any
3856specific use case.")
3857 (home-page "http://rubyworks.github.io/hashery")
3858 (license license:bsd-2)))
1f1d71e0
BW
3859
3860(define-public ruby-rc4
3861 (package
3862 (name "ruby-rc4")
3863 (version "0.1.5")
3864 (source
3865 (origin
3866 (method url-fetch)
3867 (uri (rubygems-uri "ruby-rc4" version))
3868 (sha256
3869 (base32
3870 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
3871 (build-system ruby-build-system)
3872 (arguments
3873 `(#:phases
3874 (modify-phases %standard-phases
3875 (replace 'check
3876 (lambda _
3877 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
3878 (native-inputs
3879 `(("ruby-rspec" ,ruby-rspec-2)))
3880 (synopsis "Implementation of the RC4 algorithm")
3881 (description
3882 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
3883 (home-page "https://github.com/caiges/Ruby-RC4")
3884 (license license:expat)))
f3e085a8
BW
3885
3886(define-public ruby-afm
3887 (package
3888 (name "ruby-afm")
3889 (version "0.2.2")
3890 (source
3891 (origin
3892 (method url-fetch)
3893 (uri (rubygems-uri "afm" version))
3894 (sha256
3895 (base32
3896 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
3897 (build-system ruby-build-system)
3898 (native-inputs
3899 `(("bundler" ,bundler)))
3900 (synopsis "Read Adobe Font Metrics (afm) files")
3901 (description
3902 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
3903files and use the data therein.")
3904 (home-page "http://github.com/halfbyte/afm")
3905 (license license:expat)))
acb6be42
BW
3906
3907(define-public ruby-ascii85
3908 (package
3909 (name "ruby-ascii85")
3910 (version "1.0.2")
3911 (source
3912 (origin
3913 (method url-fetch)
3914 (uri (rubygems-uri "Ascii85" version))
3915 (sha256
3916 (base32
3917 "0j95sbxd18kc8rhcnvl1w37kflqpax1r12h1x47gh4xxn3mz4m7q"))))
3918 (build-system ruby-build-system)
3919 (native-inputs
3920 `(("bundler" ,bundler)))
3921 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
3922 (description
3923 "This library provides methods to encode and decode Ascii85
3924binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
3925@dfn{Portable Document Format} (PDF) file formats.")
3926 (home-page "https://github.com/datawraith/ascii85gem")
3927 (license license:expat)))
edf8caae
BW
3928
3929(define-public ruby-ttfunk
3930 (package
3931 (name "ruby-ttfunk")
3932 (version "1.4.0")
3933 (source
3934 (origin
3935 (method url-fetch)
3936 ;; fetch from github as the gem does not contain testing code
3937 (uri (string-append
3938 "https://github.com/prawnpdf/ttfunk/archive/"
3939 version ".tar.gz"))
3940 (file-name (string-append name "-" version ".tar.gz"))
3941 (sha256
3942 (base32
3943 "1izq84pnm9niyvkzp8k0vl232q9zj41hwmp9na9fzycfh1pbnsl6"))))
3944 (build-system ruby-build-system)
3945 (arguments
3946 `(#:test-target "spec"
3947 #:phases
3948 (modify-phases %standard-phases
3949 (add-before 'check 'remove-rubocop
3950 (lambda _
3951 ;; remove rubocop as a dependency as not needed for testing
3952 (substitute* "ttfunk.gemspec"
3953 (("spec.add_development_dependency\\('rubocop'.*") ""))
3954 (substitute* "Rakefile"
3955 (("require 'rubocop/rake_task'") "")
3956 (("Rubocop::RakeTask.new") ""))
3957 #t)))))
3958 (native-inputs
3959 `(("ruby-rspec" ,ruby-rspec)
3960 ("bundler" ,bundler)))
3961 (synopsis "Font metrics parser for the Prawn PDF generator")
3962 (description
3963 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
3964part of the Prawn PDF generator.")
3965 (home-page "https://github.com/prawnpdf/ttfunk")
3966 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
3967 ;; for details."
3968 (license (list license:gpl2 license:gpl3 license:ruby))))
cbdd428c 3969
9270298f
BW
3970(define-public ruby-puma
3971 (package
3972 (name "ruby-puma")
3840373b 3973 (version "3.6.0")
9270298f
BW
3974 (source
3975 (origin
3976 (method url-fetch)
3977 ;; Fetch from GitHub because distributed gem does not contain tests.
3978 (uri (string-append "https://github.com/puma/puma/archive/v"
3979 version ".tar.gz"))
3980 (file-name (string-append name "-" version ".tar.gz"))
3981 (sha256
3982 (base32
3840373b
BW
3983 "08aws79n9slcr50d9lwm011cp1pxvr1409c2jmyjxywvrc0a30v1"))
3984 ;; Ignore broken tests reported upstream.
9270298f 3985 ;; https://github.com/puma/puma/issues/995
3840373b 3986 ;; https://github.com/puma/puma/issues/1044
9270298f
BW
3987 (patches (search-patches "ruby-puma-ignore-broken-test.patch"))))
3988 (build-system ruby-build-system)
3989 (arguments
3990 `(#:phases
3991 (modify-phases %standard-phases
3840373b
BW
3992 (add-after 'unpack 'delete-integration-tests
3993 (lambda _
3994 ;; One broken test in this file cannot be easily removed in
3995 ;; isolation, it probably causes race conditions. So we delete
3996 ;; the entire file.
3997 (delete-file "test/test_integration.rb")
3998 #t))
9270298f
BW
3999 (add-before 'build 'fix-gemspec
4000 (lambda _
4001 (substitute* "puma.gemspec"
4002 (("git ls-files") "find * |sort"))
4003 #t)))))
4004 (native-inputs
4005 `(("ruby-hoe" ,ruby-hoe)
4006 ("ruby-rake-compiler" ,ruby-rake-compiler)
4007 ("ruby-hoe-git" ,ruby-hoe-git)
4008 ("ruby-rack" ,ruby-rack)))
4009 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4010 (description
4011 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4012for Ruby/Rack applications. Puma is intended for use in both development and
4013production environments. In order to get the best throughput, it is highly
4014recommended that you use a Ruby implementation with real threads like Rubinius
4015or JRuby.")
4016 (home-page "http://puma.io")
4017 (license license:expat)))
4018
b0813490
BW
4019(define-public ruby-hoe-git
4020 (package
4021 (name "ruby-hoe-git")
4022 (version "1.6.0")
4023 (source
4024 (origin
4025 (method url-fetch)
4026 (uri (rubygems-uri "hoe-git" version))
4027 (sha256
4028 (base32
4029 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4030 (build-system ruby-build-system)
4031 (propagated-inputs
4032 `(("ruby-hoe" ,ruby-hoe)
4033 ("git" ,git)))
4034 (synopsis "Hoe plugins for tighter Git integration")
4035 (description
4036 "This package provides a set of Hoe plugins for tighter Git integration.
4037It provides tasks to automate release tagging and pushing and changelog
4038generation.")
4039 (home-page "http://github.com/jbarnette/hoe-git")
4040 (license license:expat)))
4041
cbdd428c
BW
4042(define-public ruby-sequel
4043 (package
4044 (name "ruby-sequel")
420fdfef 4045 (version "4.40.0")
cbdd428c
BW
4046 (source
4047 (origin
4048 (method url-fetch)
4049 (uri (rubygems-uri "sequel" version))
4050 (sha256
4051 (base32
420fdfef 4052 "0r39dv3yprai0cy7hslfxswjr4fg783xwxskmbih8ry24f18lbk0"))))
cbdd428c
BW
4053 (build-system ruby-build-system)
4054 (arguments
4055 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4056 (synopsis "Database toolkit for Ruby")
4057 (description "Sequel provides thread safety, connection pooling and a
4058concise DSL for constructing SQL queries and table schemas. It includes a
4059comprehensive ORM layer for mapping records to Ruby objects and handling
4060associated records.")
4061 (home-page "http://sequel.jeremyevans.net")
4062 (license license:expat)))
3cc78097
BW
4063
4064(define-public ruby-timecop
4065 (package
4066 (name "ruby-timecop")
4067 (version "0.8.1")
4068 (source
4069 (origin
4070 (method url-fetch)
4071 (uri (rubygems-uri "timecop" version))
4072 (sha256
4073 (base32
4074 "0vwbkwqyxhavzvr1820hqwz43ylnfcf6w4x6sag0nghi44sr9kmx"))))
4075 (build-system ruby-build-system)
4076 (arguments
4077 `(#:phases
4078 (modify-phases %standard-phases
4079 (add-before 'check 'set-check-rubylib
4080 (lambda _
4081 ;; Set RUBYLIB so timecop tests finds its own lib.
4082 (setenv "RUBYLIB" "lib")
4083 #t)))))
4084 (native-inputs
4085 `(("bundler" ,bundler)
4086 ("ruby-minitest-rg" ,ruby-minitest-rg)
4087 ("ruby-mocha" ,ruby-mocha)
4088 ("ruby-activesupport" ,ruby-activesupport)))
66e07664 4089 (synopsis "Test mocks for time-dependent functions")
3cc78097
BW
4090 (description
4091 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4092making it easier to test time-dependent code. It provides a unified method to
4093mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4094call.")
4095 (home-page "https://github.com/travisjeffery/timecop")
4096 (license license:expat)))
4097
dae620b8
BW
4098(define-public ruby-concurrent
4099 (package
4100 (name "ruby-concurrent")
4101 (version "1.0.2")
4102 (source
4103 (origin
4104 (method url-fetch)
4105 ;; Download from GitHub because the rubygems version does not contain
4106 ;; Rakefile.
4107 (uri (string-append
4108 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4109 version
4110 ".tar.gz"))
4111 (file-name (string-append name "-" version ".tar.gz"))
4112 (sha256
4113 (base32
4114 "1x3g2admp14ykwfxidsicqbhlfsnxh9wyc806np4i15hws4if1d8"))
4115 ;; Exclude failing test reported at
4116 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4117 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"))))
4118 (build-system ruby-build-system)
4119 (arguments
4120 `(#:test-target "spec"
4121 #:phases
4122 (modify-phases %standard-phases
520e89eb 4123 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
dae620b8
BW
4124 (lambda _
4125 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4126 ;; correct one.
4127 (delete-file "concurrent-ruby-edge.gemspec")
4128 (delete-file "concurrent-ruby-ext.gemspec")
4129 #t))
520e89eb
BW
4130 (add-before 'build 'replace-git-ls-files2
4131 (lambda _
4132 (substitute* "support/file_map.rb"
4133 (("git ls-files") "find * |sort"))
4134 #t))
dae620b8
BW
4135 (add-before 'check 'rake-compile
4136 ;; Fix the test error described at
4137 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
9019b37f
BW
4138 (lambda _ (zero? (system* "rake" "compile"))))
4139 (add-before 'check 'remove-timecop-dependency
4140 ;; Remove timecop-dependent tests as having timecop as a depedency
4141 ;; causes circular depedencies.
4142 (lambda _
4143 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4144 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4145 #t)))))
dae620b8
BW
4146 (native-inputs
4147 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9019b37f 4148 ("ruby-rspec" ,ruby-rspec)))
dae620b8
BW
4149 (synopsis "Concurrency tools for Ruby")
4150 (description
4151 "This library provides modern concurrency tools including agents,
4152futures, promises, thread pools, actors, supervisors, and more. It is
4153inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4154patterns.")
4155 (home-page "http://www.concurrent-ruby.com")
4156 (license license:expat)))
2de61e34
BW
4157
4158(define-public ruby-pkg-config
4159 (package
4160 (name "ruby-pkg-config")
4161 (version "1.1.7")
4162 (source
4163 (origin
4164 (method url-fetch)
4165 (uri (rubygems-uri "pkg-config" version))
4166 (sha256
4167 (base32
4168 "0lljiqnm0b4z6iy87lzapwrdfa6ps63x2z5zbs038iig8dqx2g0z"))))
4169 (build-system ruby-build-system)
4170 (arguments
4171 ;; Tests require extra files not included in the gem.
4172 `(#:tests? #f))
4173 (synopsis "Detect libraries for compiling Ruby native extensions")
4174 (description
4175 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4176libraries for compiling Ruby native extensions.")
4177 (home-page "https://github.com/ruby-gnome2/pkg-config")
4178 (license license:lgpl2.0+)))
6689c636
MFM
4179
4180(define-public ruby-net-http-digest-auth
4181 (package
4182 (name "ruby-net-http-digest-auth")
4183 (version "1.4")
4184 (source
4185 (origin
4186 (method url-fetch)
4187 (uri (rubygems-uri "net-http-digest_auth" version))
4188 (sha256
4189 (base32
4190 "14801gr34g0rmqz9pv4rkfa3crfdbyfk6r48vpg5a5407v0sixqi"))))
4191 (build-system ruby-build-system)
4192 (native-inputs
4193 `(("ruby-hoe" ,ruby-hoe)))
4194 (synopsis "RFC 2617 HTTP digest authentication library")
4195 (description
4196 "This library implements HTTP's digest authentication scheme based on
4197RFC 2617. This enables the use of the digest authentication scheme instead
4198of the more insecure basic authentication scheme.")
4199 (home-page "http://github.com/drbrain/net-http-digest_auth")
4200 (license license:expat)))