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