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