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