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> |
6742c6f6 | 6 | ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net> |
cba53c60 | 7 | ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com> |
3c986a7d | 8 | ;;; Copyright © 2017 Nikita <nikita@n0.is> |
3cc8e029 | 9 | ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com> |
b872b47b | 10 | ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
a7b7817d | 11 | ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
6a9d2266 | 12 | ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> |
433e3154 | 13 | ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net> |
4db80f8b | 14 | ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com> |
8ef06557 | 15 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
3355e49c | 16 | ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz> |
fc4f7c45 | 17 | ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com> |
369faa59 | 18 | ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org> |
9e065a8a | 19 | ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com> |
9c4cb1ef | 20 | ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca> |
0c558aa9 | 21 | ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de> |
fd248cb8 | 22 | ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de> |
6ef8c59a PP |
23 | ;;; |
24 | ;;; This file is part of GNU Guix. | |
25 | ;;; | |
26 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
27 | ;;; under the terms of the GNU General Public License as published by | |
28 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
29 | ;;; your option) any later version. | |
30 | ;;; | |
31 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
32 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
33 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
34 | ;;; GNU General Public License for more details. | |
35 | ;;; | |
36 | ;;; You should have received a copy of the GNU General Public License | |
37 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
38 | ||
39 | (define-module (gnu packages ruby) | |
40 | #:use-module ((guix licenses) #:prefix license:) | |
41 | #:use-module (gnu packages) | |
1db791d5 | 42 | #:use-module (gnu packages base) |
933dad91 | 43 | #:use-module (gnu packages bison) |
15b16c2c | 44 | #:use-module (gnu packages check) |
6ef8c59a | 45 | #:use-module (gnu packages compression) |
2a9ce5cb | 46 | #:use-module (gnu packages crypto) |
4a9e0585 | 47 | #:use-module (gnu packages databases) |
255d1bbe | 48 | #:use-module (gnu packages dbm) |
c41fba01 | 49 | #:use-module (gnu packages rails) |
6ef8c59a | 50 | #:use-module (gnu packages readline) |
6ef8c59a | 51 | #:use-module (gnu packages autotools) |
ad79eb55 | 52 | #:use-module (gnu packages java) |
6ef8c59a | 53 | #:use-module (gnu packages libffi) |
f3d7bb93 | 54 | #:use-module (gnu packages libidn) |
c41fba01 CB |
55 | #:use-module (gnu packages linux) |
56 | #:use-module (gnu packages lsof) | |
34138e42 | 57 | #:use-module (gnu packages maths) |
0c8eedc1 | 58 | #:use-module (gnu packages ncurses) |
fe5dd5f4 | 59 | #:use-module (gnu packages networking) |
3ca43524 | 60 | #:use-module (gnu packages node) |
ac09beba | 61 | #:use-module (gnu packages python) |
44d10b1f | 62 | #:use-module (gnu packages python-xyz) |
763624f5 | 63 | #:use-module (gnu packages ragel) |
30f08487 | 64 | #:use-module (gnu packages rsync) |
cd0322a3 | 65 | #:use-module (gnu packages sqlite) |
cc2b77df | 66 | #:use-module (gnu packages tls) |
66e20863 | 67 | #:use-module (gnu packages version-control) |
6ef8c59a PP |
68 | #:use-module (guix packages) |
69 | #:use-module (guix download) | |
bda0c139 | 70 | #:use-module (guix git-download) |
6ef8c59a | 71 | #:use-module (guix utils) |
acf735f2 | 72 | #:use-module (guix build-system gnu) |
e920bfca | 73 | #:use-module (gnu packages xml) |
c2c4e5b2 | 74 | #:use-module (gnu packages web) |
15b16c2c CB |
75 | #:use-module (guix build-system ruby) |
76 | #:use-module ((srfi srfi-1) #:select (alist-delete))) | |
6ef8c59a PP |
77 | |
78 | (define-public ruby | |
79 | (package | |
80 | (name "ruby") | |
4914c157 | 81 | (version "2.6.5") |
6ef8c59a PP |
82 | (source |
83 | (origin | |
84 | (method url-fetch) | |
6becfdff MW |
85 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" |
86 | (version-major+minor version) | |
12d39eb5 | 87 | "/ruby-" version ".tar.xz")) |
6ef8c59a PP |
88 | (sha256 |
89 | (base32 | |
4914c157 | 90 | "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm")) |
65e84e31 BW |
91 | (modules '((guix build utils))) |
92 | (snippet `(begin | |
93 | ;; Remove bundled libffi | |
c033c195 | 94 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") |
65e84e31 | 95 | #t)))) |
6ef8c59a PP |
96 | (build-system gnu-build-system) |
97 | (arguments | |
98 | `(#:test-target "test" | |
fd248cb8 | 99 | #:configure-flags '("--enable-shared") ; dynamic linking |
6ef8c59a | 100 | #:phases |
9656b8be | 101 | (modify-phases %standard-phases |
65e84e31 | 102 | (add-before 'configure 'replace-bin-sh-and-remove-libffi |
9656b8be BW |
103 | (lambda _ |
104 | (substitute* '("Makefile.in" | |
105 | "ext/pty/pty.c" | |
106 | "io.c" | |
107 | "lib/mkmf.rb" | |
108 | "process.c" | |
109 | "test/rubygems/test_gem_ext_configure_builder.rb" | |
110 | "test/rdoc/test_rdoc_parser.rb" | |
111 | "test/ruby/test_rubyoptions.rb" | |
112 | "test/ruby/test_process.rb" | |
113 | "test/ruby/test_system.rb" | |
114 | "tool/rbinstall.rb") | |
115 | (("/bin/sh") (which "sh"))) | |
116 | #t))))) | |
6ef8c59a PP |
117 | (inputs |
118 | `(("readline" ,readline) | |
6ef8c59a PP |
119 | ("openssl" ,openssl) |
120 | ("libffi" ,libffi) | |
4914c157 CB |
121 | ("gdbm" ,gdbm))) |
122 | (propagated-inputs | |
123 | `(("zlib" ,zlib))) | |
6ef8c59a PP |
124 | (native-search-paths |
125 | (list (search-path-specification | |
126 | (variable "GEM_PATH") | |
3cb3fa67 | 127 | (files (list (string-append "lib/ruby/vendor_ruby")))))) |
6becfdff | 128 | (synopsis "Programming language interpreter") |
6ef8c59a PP |
129 | (description "Ruby is a dynamic object-oriented programming language with |
130 | a focus on simplicity and productivity.") | |
bf3be6a5 | 131 | (home-page "https://www.ruby-lang.org") |
6ef8c59a PP |
132 | (license license:ruby))) |
133 | ||
227fab3e CB |
134 | (define-public ruby-2.5 |
135 | (package | |
136 | (inherit ruby) | |
a09ff632 | 137 | (version "2.5.8") |
227fab3e CB |
138 | (source |
139 | (origin | |
140 | (method url-fetch) | |
141 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
142 | (version-major+minor version) | |
143 | "/ruby-" version ".tar.xz")) | |
144 | (sha256 | |
145 | (base32 | |
a09ff632 | 146 | "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483")) |
227fab3e CB |
147 | (modules '((guix build utils))) |
148 | (snippet `(begin | |
149 | ;; Remove bundled libffi | |
150 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
151 | #t)))))) | |
152 | ||
93cae02f CB |
153 | (define-public ruby-2.4 |
154 | (package | |
155 | (inherit ruby) | |
dfe211f9 | 156 | (version "2.4.10") |
93cae02f CB |
157 | (source |
158 | (origin | |
159 | (method url-fetch) | |
160 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
161 | (version-major+minor version) | |
162 | "/ruby-" version ".tar.xz")) | |
163 | (sha256 | |
164 | (base32 | |
dfe211f9 | 165 | "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm")) |
93cae02f CB |
166 | (modules '((guix build utils))) |
167 | (snippet `(begin | |
168 | ;; Remove bundled libffi | |
169 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
170 | #t)))))) | |
171 | ||
933dad91 RW |
172 | (define-public mruby |
173 | (package | |
174 | (name "mruby") | |
175 | (version "2.0.0") | |
176 | (source | |
177 | (origin | |
178 | (method git-fetch) | |
179 | (uri (git-reference | |
180 | (url "https://github.com/mruby/mruby.git") | |
181 | (commit version))) | |
182 | (file-name (git-file-name name version)) | |
183 | (sha256 | |
184 | (base32 | |
185 | "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5")))) | |
186 | (build-system gnu-build-system) | |
187 | (arguments | |
188 | `(#:test-target "test" | |
189 | #:phases | |
190 | (modify-phases %standard-phases | |
191 | (delete 'configure) | |
192 | (add-after 'unpack 'enable-verbose-tests | |
193 | (lambda _ | |
194 | (substitute* "Makefile" | |
195 | (("ruby ./minirake" m) | |
196 | (string-append m " --verbose"))) | |
197 | #t)) | |
198 | (add-after 'unpack 'disable-broken-tests | |
199 | (lambda _ | |
200 | (substitute* "mrbgems/mruby-io/test/io.rb" | |
201 | (("assert\\('IO.popen.+$" m) | |
202 | (string-append m "skip \"Hangs in the Guix build environment\"\n")) | |
203 | (("assert\\('IO#isatty.+$" m) | |
204 | (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n")) | |
205 | ;; This one is really weird. The *expected* output is all wrong. | |
206 | (("assert\\('`cmd`.*" m) | |
207 | (string-append m "skip \"Disable for Guix\"\n")) | |
208 | (("echo foo") | |
209 | (string-append (which "echo") " foo"))) | |
210 | #t)) | |
211 | ;; There is no install target | |
212 | (replace 'install | |
213 | (lambda* (#:key outputs #:allow-other-keys) | |
214 | (let* ((out (assoc-ref outputs "out")) | |
215 | (bin (string-append out "/bin")) | |
216 | (lib (string-append out "/lib"))) | |
217 | (mkdir-p bin) | |
218 | (copy-recursively "build/host/bin" bin) | |
219 | (mkdir-p lib) | |
220 | (copy-recursively "build/host/lib" lib)) | |
221 | #t))))) | |
222 | (native-inputs | |
223 | `(("ruby" ,ruby) | |
224 | ("bison" ,bison))) | |
225 | (home-page "https://github.com/mruby/mruby") | |
226 | (synopsis "Lightweight Ruby") | |
227 | (description "mruby is the lightweight implementation of the Ruby | |
228 | language. Its syntax is Ruby 1.9 compatible. mruby can be linked and | |
229 | embedded within your application.") | |
230 | (license license:expat))) | |
231 | ||
34372d39 RW |
232 | (define-public ruby-commander |
233 | (package | |
234 | (name "ruby-commander") | |
235 | (version "4.4.7") | |
236 | (source | |
237 | (origin | |
238 | (method url-fetch) | |
239 | (uri (rubygems-uri "commander" version)) | |
240 | (sha256 | |
241 | (base32 | |
242 | "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg")))) | |
243 | (build-system ruby-build-system) | |
244 | (arguments | |
245 | `(#:test-target "spec" | |
246 | #:phases | |
247 | (modify-phases %standard-phases | |
248 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
249 | ;; bit unnecessary. | |
250 | (add-after 'unpack 'dont-run-rubocop | |
251 | (lambda _ | |
252 | (substitute* "Rakefile" | |
253 | ((".*rubocop.*") "") | |
254 | ((".*RuboCop.*") "")) | |
255 | #t))))) | |
256 | (propagated-inputs | |
257 | `(("ruby-highline" ,ruby-highline))) | |
258 | (native-inputs | |
259 | `(("bundler" ,bundler) | |
260 | ("ruby-rspec-core" ,ruby-rspec-core) | |
261 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
262 | ("ruby-rspec-mocks" ,ruby-rspec-mocks) | |
263 | ("ruby-simplecov" ,ruby-simplecov))) | |
264 | (home-page "https://github.com/commander-rb/commander") | |
265 | (synopsis "Library for building Ruby command-line executables") | |
266 | (description | |
267 | "Commander aims to be a complete solution for Ruby command-line | |
268 | executables. Commander bridges the gap between other terminal related | |
269 | libraries (OptionParser, HighLine), while providing many new features, and an | |
270 | elegant API.") | |
271 | (license license:expat))) | |
272 | ||
823ed097 CB |
273 | (define-public ruby-highline |
274 | (package | |
275 | (name "ruby-highline") | |
6742c6f6 | 276 | (version "2.0.1") |
823ed097 CB |
277 | (source |
278 | (origin | |
279 | (method url-fetch) | |
280 | (uri (rubygems-uri "highline" version)) | |
281 | (sha256 | |
282 | (base32 | |
6742c6f6 | 283 | "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc")))) |
823ed097 CB |
284 | (build-system ruby-build-system) |
285 | (arguments | |
286 | `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC | |
287 | (native-inputs | |
288 | `(("bundler" ,bundler) | |
289 | ("ruby-code-statistics" ,ruby-code-statistics))) | |
290 | (synopsis | |
291 | "HighLine helps you build command-line interfaces") | |
292 | (description | |
293 | "HighLine provides a high-level IO library that provides validation, | |
294 | type conversion, and more for command-line interfaces. HighLine also includes | |
295 | a menu system for providing multiple options to the user.") | |
296 | (home-page "https://github.com/JEG2/highline") | |
297 | (license (list license:gpl2 license:ruby)))) | |
298 | ||
bda0c139 DT |
299 | (define-public ruby-hoe |
300 | (package | |
301 | (name "ruby-hoe") | |
d0d2dd24 | 302 | (version "3.21.0") |
bda0c139 | 303 | (source (origin |
e83c6d00 DT |
304 | (method url-fetch) |
305 | (uri (rubygems-uri "hoe" version)) | |
bda0c139 DT |
306 | (sha256 |
307 | (base32 | |
d0d2dd24 | 308 | "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4")))) |
bda0c139 | 309 | (build-system ruby-build-system) |
d0d2dd24 CB |
310 | (arguments |
311 | '(#:phases | |
312 | (modify-phases %standard-phases | |
313 | ;; One of the tests fails if the SOURCE_DATE_EPOCH environment | |
314 | ;; variable is set, so unset it for the duration of the tests. | |
315 | ;; | |
316 | ;; TestHoe#test_possibly_better | |
317 | ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]: | |
318 | ;; Expected: 2019-11-12 00:00:00 UTC | |
319 | ;; Actual: 1970-01-01 00:00:00 UTC | |
320 | (add-before 'check 'unset-SOURCE-DATE-EPOCH | |
321 | (lambda _ | |
322 | (unsetenv "SOURCE_DATE_EPOCH") | |
323 | #t)) | |
324 | (add-after 'check 'set-SOURCE-DATE-EPOCH-again | |
325 | (lambda _ | |
326 | (setenv "SOURCE_DATE_EPOCH" "1") | |
327 | #t))))) | |
bda0c139 DT |
328 | (synopsis "Ruby project management helper") |
329 | (description | |
330 | "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage, | |
331 | maintain, and release projects and includes a dynamic plug-in system allowing | |
332 | for easy extensibility. Hoe ships with plug-ins for all the usual project | |
333 | tasks including rdoc generation, testing, packaging, deployment, and | |
334 | announcement.") | |
2f3800e5 | 335 | (home-page "https://www.zenspider.com/projects/hoe.html") |
bda0c139 DT |
336 | (license license:expat))) |
337 | ||
022170dc PP |
338 | (define-public ruby-rake-compiler |
339 | (package | |
340 | (name "ruby-rake-compiler") | |
0cd7b816 | 341 | (version "1.0.4") |
022170dc PP |
342 | (source (origin |
343 | (method url-fetch) | |
e83c6d00 | 344 | (uri (rubygems-uri "rake-compiler" version)) |
022170dc PP |
345 | (sha256 |
346 | (base32 | |
0cd7b816 | 347 | "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip")))) |
022170dc PP |
348 | (build-system ruby-build-system) |
349 | (arguments | |
e83c6d00 | 350 | '(#:tests? #f)) ; needs cucumber |
022170dc | 351 | (synopsis "Building and packaging helper for Ruby native extensions") |
e881752c | 352 | (description "Rake-compiler provides a framework for building and |
022170dc PP |
353 | packaging native C and Java extensions in Ruby.") |
354 | (home-page "https://github.com/rake-compiler/rake-compiler") | |
355 | (license license:expat))) | |
356 | ||
30f08487 RW |
357 | (define-public ruby-rsync |
358 | (package | |
359 | (name "ruby-rsync") | |
360 | (version "1.0.9") | |
361 | (source | |
362 | (origin | |
363 | (method url-fetch) | |
364 | (uri (rubygems-uri "rsync" version)) | |
365 | (sha256 | |
366 | (base32 | |
367 | "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv")))) | |
368 | (build-system ruby-build-system) | |
369 | (arguments | |
370 | '(#:test-target "spec" | |
371 | #:phases | |
372 | (modify-phases %standard-phases | |
373 | (add-after 'unpack 'remove-coveralls-requirement | |
374 | (lambda _ | |
375 | (substitute* "spec/spec_helper.rb" | |
376 | (("require 'coveralls'") "") | |
377 | (("Coveralls.wear!") "")) | |
378 | #t))))) | |
379 | (native-inputs | |
380 | `(("bundler" ,bundler) | |
381 | ("rsync" ,rsync) | |
382 | ("ruby-rspec-core" ,ruby-rspec-core) | |
383 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
384 | ("ruby-rspec-mocks" ,ruby-rspec-mocks))) | |
385 | (home-page "https://github.com/jbussdieker/ruby-rsync") | |
386 | (synopsis "Ruby wrapper around rsync") | |
387 | (description | |
388 | "Ruby Rsync is a Ruby library that can synchronize files between remote | |
389 | hosts by wrapping the @file{rsync} binary.") | |
390 | (license license:expat))) | |
391 | ||
acf735f2 DT |
392 | (define-public ruby-i18n |
393 | (package | |
394 | (name "ruby-i18n") | |
92dddf6b | 395 | (version "1.7.0") |
acf735f2 DT |
396 | (source (origin |
397 | (method url-fetch) | |
e83c6d00 | 398 | (uri (rubygems-uri "i18n" version)) |
acf735f2 DT |
399 | (sha256 |
400 | (base32 | |
92dddf6b | 401 | "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl")))) |
acf735f2 DT |
402 | (build-system ruby-build-system) |
403 | (arguments | |
0bfdfd37 | 404 | '(#:tests? #f)) ; no tests |
cbb50182 | 405 | (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent))) |
acf735f2 DT |
406 | (synopsis "Internationalization library for Ruby") |
407 | (description "Ruby i18n is an internationalization and localization | |
408 | solution for Ruby programs. It features translation and localization, | |
409 | interpolation of values to translations, pluralization, customizable | |
410 | transliteration to ASCII, flexible defaults, bulk lookup, lambdas as | |
411 | translation data, custom key/scope separator, custom exception handlers, and | |
412 | an extensible architecture with a swappable backend.") | |
92dddf6b | 413 | (home-page "https://github.com/ruby-i18n/i18n") |
acf735f2 | 414 | (license license:expat))) |
eb0c2dd6 | 415 | |
62b138ca CB |
416 | (define-public ruby-iruby |
417 | (package | |
418 | (name "ruby-iruby") | |
419 | (version "0.3") | |
420 | (source | |
421 | (origin | |
422 | (method url-fetch) | |
423 | (uri (rubygems-uri "iruby" version)) | |
424 | (sha256 | |
425 | (base32 | |
426 | "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn")))) | |
427 | (build-system ruby-build-system) | |
428 | (arguments | |
429 | ;; TODO: Tests currently fail. | |
430 | ;; | |
431 | ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s. | |
432 | ;; | |
433 | ;; 1) Failure: | |
434 | ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]: | |
435 | ;; In [ expected | |
436 | ;; | |
437 | ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips | |
438 | '(#:tests? #f | |
439 | #:phases | |
440 | (modify-phases %standard-phases | |
441 | (add-after 'unpack 'patch-ipython | |
442 | (lambda* (#:key inputs #:allow-other-keys) | |
443 | (substitute* "lib/iruby/command.rb" | |
444 | (("version = `") | |
445 | (string-append | |
446 | "version = `" | |
447 | (assoc-ref inputs "python-ipython") | |
448 | "/bin/")) | |
449 | (("Kernel\\.exec\\('") | |
450 | (string-append | |
451 | "Kernel.exec('" | |
452 | (assoc-ref inputs "python-ipython") | |
453 | "/bin/"))) | |
454 | #t))))) | |
455 | (inputs | |
456 | `(("python-ipython" ,python-ipython))) | |
457 | (propagated-inputs | |
458 | `(("ruby-bond" ,ruby-bond) | |
459 | ("ruby-data_uri" ,ruby-data_uri) | |
460 | ("ruby-mimemagic" ,ruby-mimemagic) | |
461 | ("ruby-multi-json" ,ruby-multi-json) | |
462 | ("ruby-cztop" ,ruby-cztop) | |
463 | ;; Optional inputs | |
464 | ("ruby-pry" ,ruby-pry))) | |
465 | (synopsis "Ruby kernel for Jupyter/IPython") | |
466 | (description | |
467 | "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g. | |
468 | notebook).") | |
469 | (home-page "https://github.com/SciRuby/iruby") | |
470 | (license license:expat))) | |
471 | ||
eb0c2dd6 DT |
472 | ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's |
473 | ;; dependencies use RSpec for their test suites! To avoid these circular | |
474 | ;; dependencies, we disable tests for all of the RSpec-related packages. | |
87688ff3 | 475 | (define-public ruby-rspec-support |
eb0c2dd6 DT |
476 | (package |
477 | (name "ruby-rspec-support") | |
bee67d18 | 478 | (version "3.8.0") |
eb0c2dd6 DT |
479 | (source (origin |
480 | (method url-fetch) | |
e83c6d00 | 481 | (uri (rubygems-uri "rspec-support" version)) |
eb0c2dd6 DT |
482 | (sha256 |
483 | (base32 | |
bee67d18 | 484 | "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609")))) |
eb0c2dd6 DT |
485 | (build-system ruby-build-system) |
486 | (arguments | |
487 | '(#:tests? #f)) ; avoid dependency cycles | |
488 | (synopsis "RSpec support library") | |
489 | (description "Support utilities for RSpec gems.") | |
490 | (home-page "https://github.com/rspec/rspec-support") | |
491 | (license license:expat))) | |
492 | ||
493 | (define-public ruby-rspec-core | |
494 | (package | |
495 | (name "ruby-rspec-core") | |
bee67d18 | 496 | (version "3.8.0") |
eb0c2dd6 DT |
497 | (source (origin |
498 | (method url-fetch) | |
e83c6d00 | 499 | (uri (rubygems-uri "rspec-core" version)) |
eb0c2dd6 DT |
500 | (sha256 |
501 | (base32 | |
bee67d18 | 502 | "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p")))) |
eb0c2dd6 DT |
503 | (build-system ruby-build-system) |
504 | (arguments | |
505 | '(#:tests? #f)) ; avoid dependency cycles | |
506 | (propagated-inputs | |
507 | `(("ruby-rspec-support" ,ruby-rspec-support))) | |
508 | (synopsis "RSpec core library") | |
509 | (description "Rspec-core provides the RSpec test runner and example | |
510 | groups.") | |
511 | (home-page "https://github.com/rspec/rspec-core") | |
512 | (license license:expat))) | |
e6962009 | 513 | |
64c318f2 BW |
514 | (define-public ruby-rspec-core-2 |
515 | (package (inherit ruby-rspec-core) | |
516 | (version "2.14.8") | |
517 | (source (origin | |
518 | (method url-fetch) | |
519 | (uri (rubygems-uri "rspec-core" version)) | |
520 | (sha256 | |
521 | (base32 | |
522 | "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc")))) | |
523 | (propagated-inputs `()))) | |
524 | ||
20c05ea9 | 525 | (define-public ruby-diff-lcs |
e6962009 DT |
526 | (package |
527 | (name "ruby-diff-lcs") | |
e2fcef39 | 528 | (version "1.3") |
e6962009 DT |
529 | (source (origin |
530 | (method url-fetch) | |
e83c6d00 | 531 | (uri (rubygems-uri "diff-lcs" version)) |
e6962009 DT |
532 | (sha256 |
533 | (base32 | |
e2fcef39 | 534 | "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza")))) |
e6962009 DT |
535 | (build-system ruby-build-system) |
536 | (arguments | |
537 | '(#:tests? #f)) ; avoid dependency cycles | |
538 | (synopsis "Compute the difference between two Enumerable sequences") | |
539 | (description "Diff::LCS computes the difference between two Enumerable | |
540 | sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm. | |
541 | It includes utilities to create a simple HTML diff output format and a | |
542 | standard diff-like tool.") | |
543 | (home-page "https://github.com/halostatue/diff-lcs") | |
544 | (license license:expat))) | |
545 | ||
546 | (define-public ruby-rspec-expectations | |
547 | (package | |
548 | (name "ruby-rspec-expectations") | |
bee67d18 | 549 | (version "3.8.2") |
e6962009 DT |
550 | (source (origin |
551 | (method url-fetch) | |
e83c6d00 | 552 | (uri (rubygems-uri "rspec-expectations" version)) |
e6962009 DT |
553 | (sha256 |
554 | (base32 | |
bee67d18 | 555 | "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm")))) |
e6962009 DT |
556 | (build-system ruby-build-system) |
557 | (arguments | |
558 | '(#:tests? #f)) ; avoid dependency cycles | |
559 | (propagated-inputs | |
560 | `(("ruby-rspec-support" ,ruby-rspec-support) | |
20c05ea9 | 561 | ("ruby-diff-lcs" ,ruby-diff-lcs))) |
e881752c | 562 | (synopsis "RSpec expectations library") |
e6962009 DT |
563 | (description "Rspec-expectations provides a simple API to express expected |
564 | outcomes of a code example.") | |
565 | (home-page "https://github.com/rspec/rspec-expectations") | |
566 | (license license:expat))) | |
4f2a0cac | 567 | |
fb157f25 BW |
568 | (define-public ruby-rspec-expectations-2 |
569 | (package (inherit ruby-rspec-expectations) | |
570 | (version "2.14.5") | |
571 | (source (origin | |
572 | (method url-fetch) | |
573 | (uri (rubygems-uri "rspec-expectations" version)) | |
574 | (sha256 | |
575 | (base32 | |
576 | "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9")))) | |
577 | (propagated-inputs | |
578 | `(("ruby-diff-lcs" ,ruby-diff-lcs))))) | |
579 | ||
999ffb26 DM |
580 | (define-public ruby-rspec-its |
581 | (package | |
582 | (name "ruby-rspec-its") | |
b2244c68 | 583 | (version "1.3.0") |
999ffb26 DM |
584 | (source |
585 | (origin | |
3306f02a CB |
586 | (method git-fetch) |
587 | (uri (git-reference | |
588 | (url "https://github.com/rspec/rspec-its.git") | |
589 | (commit (string-append "v" version)))) | |
590 | (file-name (git-file-name name version)) | |
999ffb26 DM |
591 | (sha256 |
592 | (base32 | |
b2244c68 | 593 | "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p")))) |
999ffb26 DM |
594 | (build-system ruby-build-system) |
595 | (arguments | |
3306f02a CB |
596 | `(#:test-target "spec" |
597 | #:phases | |
598 | (modify-phases %standard-phases | |
599 | (add-after 'unpack 'dont-install-gems-from-gemfile | |
600 | (lambda _ | |
601 | (substitute* "Gemfile" | |
602 | (("rspec rspec-core rspec-expectations rspec-mocks rspec-support") | |
603 | "")) | |
604 | #t)) | |
b2244c68 BH |
605 | (add-before 'build 'update-ffi-in-gemfile |
606 | (lambda _ | |
607 | (substitute* "Gemfile" | |
608 | ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'")) | |
609 | #t)) | |
3306f02a CB |
610 | (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile |
611 | (lambda _ | |
612 | (substitute* "rspec-its.gemspec" | |
613 | (("rake.*") "rake'\n") | |
b2244c68 BH |
614 | (("spec.add_development_dependency 'cucumber'.*") |
615 | "spec.add_development_dependency 'cucumber'\n") | |
3306f02a | 616 | (("bundler.*") "bundler'\n") |
b2244c68 | 617 | (("\"aruba.*") "'aruba'\n")) |
3306f02a | 618 | #t))))) |
999ffb26 DM |
619 | (propagated-inputs |
620 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
621 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
3306f02a CB |
622 | (native-inputs |
623 | `(("bundler" ,bundler) | |
624 | ("ruby-cucumber" ,ruby-cucumber) | |
b2244c68 | 625 | ("ruby-ffi" ,ruby-ffi) |
3306f02a CB |
626 | ("ruby-aruba" ,ruby-aruba))) |
627 | (synopsis "RSpec extension that provides the @code{its} method") | |
628 | (description | |
629 | "RSpec::Its provides the its method as a short-hand to specify the expected | |
630 | value of an attribute. For example, one can use @code{its(:size)\\{should | |
631 | eq(1)\\}}.") | |
999ffb26 DM |
632 | (home-page "https://github.com/rspec/rspec-its") |
633 | (license license:expat))) | |
634 | ||
4f2a0cac DT |
635 | (define-public ruby-rspec-mocks |
636 | (package | |
637 | (name "ruby-rspec-mocks") | |
bee67d18 | 638 | (version "3.8.0") |
4f2a0cac DT |
639 | (source (origin |
640 | (method url-fetch) | |
e83c6d00 | 641 | (uri (rubygems-uri "rspec-mocks" version)) |
4f2a0cac DT |
642 | (sha256 |
643 | (base32 | |
bee67d18 | 644 | "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp")))) |
4f2a0cac DT |
645 | (build-system ruby-build-system) |
646 | (arguments | |
647 | '(#:tests? #f)) ; avoid dependency cycles | |
648 | (propagated-inputs | |
649 | `(("ruby-rspec-support" ,ruby-rspec-support) | |
20c05ea9 | 650 | ("ruby-diff-lcs" ,ruby-diff-lcs))) |
4f2a0cac DT |
651 | (synopsis "RSpec stubbing and mocking library") |
652 | (description "Rspec-mocks provides RSpec's \"test double\" framework, with | |
653 | support for stubbing and mocking.") | |
654 | (home-page "https://github.com/rspec/rspec-mocks") | |
655 | (license license:expat))) | |
d4fde1f2 | 656 | |
6da9adeb BW |
657 | (define-public ruby-rspec-mocks-2 |
658 | (package (inherit ruby-rspec-mocks) | |
659 | (version "2.14.6") | |
660 | (source (origin | |
661 | (method url-fetch) | |
662 | (uri (rubygems-uri "rspec-mocks" version)) | |
663 | (sha256 | |
664 | (base32 | |
665 | "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30")))) | |
666 | (propagated-inputs | |
667 | `(("ruby-diff-lcs" ,ruby-diff-lcs))))) | |
668 | ||
198bc648 CB |
669 | (define-public ruby-rspec-rerun |
670 | (package | |
671 | (name "ruby-rspec-rerun") | |
672 | (version "1.1.0") | |
673 | (source | |
674 | (origin | |
675 | (method url-fetch) | |
676 | (uri (rubygems-uri "rspec-rerun" version)) | |
677 | (sha256 | |
678 | (base32 | |
679 | "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj")))) | |
680 | (build-system ruby-build-system) | |
681 | (arguments | |
682 | '(;; No included tests | |
683 | #:tests? #f)) | |
684 | (propagated-inputs `(("ruby-rspec" ,ruby-rspec))) | |
685 | (synopsis "Track failed RSpec tests to re-run them") | |
686 | (description | |
687 | "This package provides an automated way to track, and then re-run failed | |
688 | RSpec tests.") | |
689 | (home-page "https://github.com/dblock/rspec-rerun") | |
690 | (license license:expat))) | |
691 | ||
9c4cb1ef CD |
692 | (define-public ruby-rspec-wait |
693 | (package | |
694 | (name "ruby-rspec-wait") | |
695 | (version "0.0.9") | |
696 | (source | |
697 | (origin | |
698 | (method url-fetch) | |
699 | (uri (rubygems-uri "rspec-wait" version)) | |
700 | (sha256 | |
701 | (base32 | |
702 | "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww")))) | |
703 | (build-system ruby-build-system) | |
704 | (arguments | |
705 | '(#:phases | |
706 | (modify-phases %standard-phases | |
707 | (replace 'check | |
708 | (lambda _ | |
709 | (invoke "rake" "spec")))))) | |
710 | (native-inputs | |
711 | `(("bundler" ,bundler))) | |
712 | (propagated-inputs | |
713 | `(("ruby-rspec" ,ruby-rspec))) | |
714 | (home-page "https://github.com/laserlemon/rspec-wait") | |
715 | (synopsis "Wait for conditions in RSpec") | |
716 | (description | |
717 | "RSpec::Wait strives to make it easier to test asynchronous or slow | |
718 | interactions.") | |
719 | (license license:expat))) | |
720 | ||
d4fde1f2 DT |
721 | (define-public ruby-rspec |
722 | (package | |
723 | (name "ruby-rspec") | |
bee67d18 | 724 | (version "3.8.0") |
d4fde1f2 DT |
725 | (source (origin |
726 | (method url-fetch) | |
e83c6d00 | 727 | (uri (rubygems-uri "rspec" version)) |
d4fde1f2 DT |
728 | (sha256 |
729 | (base32 | |
bee67d18 | 730 | "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3")))) |
d4fde1f2 DT |
731 | (build-system ruby-build-system) |
732 | (arguments | |
733 | '(#:tests? #f)) ; avoid dependency cycles | |
734 | (propagated-inputs | |
735 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
736 | ("ruby-rspec-mocks" ,ruby-rspec-mocks) | |
737 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
738 | (synopsis "Behavior-driven development framework for Ruby") | |
739 | (description "RSpec is a behavior-driven development (BDD) framework for | |
740 | Ruby. This meta-package includes the RSpec test runner, along with the | |
741 | expectations and mocks frameworks.") | |
35739712 | 742 | (home-page "https://rspec.info/") |
d4fde1f2 | 743 | (license license:expat))) |
2cbc105b | 744 | |
5ac984b3 BW |
745 | (define-public ruby-rspec-2 |
746 | (package (inherit ruby-rspec) | |
747 | (version "2.14.1") | |
748 | (source (origin | |
749 | (method url-fetch) | |
750 | (uri (rubygems-uri "rspec" version)) | |
751 | (sha256 | |
752 | (base32 | |
753 | "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg")))) | |
754 | (propagated-inputs | |
755 | `(("ruby-rspec-core" ,ruby-rspec-core-2) | |
756 | ("ruby-rspec-mocks" ,ruby-rspec-mocks-2) | |
757 | ("ruby-rspec-expectations" ,ruby-rspec-expectations-2))))) | |
758 | ||
2cbc105b DT |
759 | ;; Bundler is yet another source of circular dependencies, so we must disable |
760 | ;; its test suite as well. | |
761 | (define-public bundler | |
762 | (package | |
763 | (name "bundler") | |
4fdd4d33 | 764 | (version "1.17.3") |
2cbc105b DT |
765 | (source (origin |
766 | (method url-fetch) | |
e83c6d00 | 767 | (uri (rubygems-uri "bundler" version)) |
2cbc105b DT |
768 | (sha256 |
769 | (base32 | |
4fdd4d33 | 770 | "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw")))) |
2cbc105b DT |
771 | (build-system ruby-build-system) |
772 | (arguments | |
773 | '(#:tests? #f)) ; avoid dependency cycles | |
774 | (synopsis "Ruby gem bundler") | |
775 | (description "Bundler automatically downloads and installs a list of gems | |
776 | specified in a \"Gemfile\", as well as their dependencies.") | |
2f3800e5 | 777 | (home-page "https://bundler.io/") |
2cbc105b | 778 | (license license:expat))) |
98b87b82 | 779 | |
cf36174f RW |
780 | (define-public ruby-builder |
781 | (package | |
782 | (name "ruby-builder") | |
42b48db2 | 783 | (version "3.2.3") |
cf36174f RW |
784 | (source (origin |
785 | (method url-fetch) | |
786 | (uri (rubygems-uri "builder" version)) | |
787 | (sha256 | |
788 | (base32 | |
42b48db2 | 789 | "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1")))) |
cf36174f RW |
790 | (build-system ruby-build-system) |
791 | (arguments | |
792 | `(#:phases | |
793 | (modify-phases %standard-phases | |
794 | (add-after 'unpack 'do-not-use-rvm | |
795 | (lambda _ | |
796 | (substitute* "rakelib/tags.rake" | |
797 | (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n")) | |
798 | #t))))) | |
799 | (synopsis "Ruby library to create structured data") | |
800 | (description "Builder provides a number of builder objects that make it | |
801 | easy to create structured data. Currently the following builder objects are | |
802 | supported: XML Markup and XML Events.") | |
803 | (home-page "https://github.com/jimweirich/builder") | |
804 | (license license:expat))) | |
805 | ||
566f71f8 CB |
806 | (define-public ruby-bump |
807 | (package | |
808 | (name "ruby-bump") | |
809 | (version "0.7.0") | |
810 | (source | |
811 | (origin | |
812 | (method url-fetch) | |
813 | (uri (rubygems-uri "bump" version)) | |
814 | (sha256 | |
815 | (base32 | |
816 | "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym")))) | |
817 | (build-system ruby-build-system) | |
818 | (arguments | |
819 | '(;; No included tests | |
820 | #:tests? #f)) | |
821 | (synopsis "Tool for working with Rubygems") | |
822 | (description | |
823 | "Bump provides commands to manage Rubygem versioning, updating to the | |
824 | next patch version for example.") | |
825 | (home-page "https://github.com/gregorym/bump") | |
826 | (license license:expat))) | |
827 | ||
ad79eb55 RW |
828 | (define-public ruby-rjb |
829 | (package | |
830 | (name "ruby-rjb") | |
aeb4e61e | 831 | (version "1.5.5") |
ad79eb55 RW |
832 | (source (origin |
833 | (method url-fetch) | |
834 | (uri (rubygems-uri "rjb" version)) | |
835 | (sha256 | |
836 | (base32 | |
aeb4e61e | 837 | "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca")))) |
ad79eb55 RW |
838 | (build-system ruby-build-system) |
839 | (arguments | |
840 | `(#:tests? #f ; no rakefile | |
841 | #:phases | |
842 | (modify-phases %standard-phases | |
843 | (add-before 'build 'set-java-home | |
844 | (lambda* (#:key inputs #:allow-other-keys) | |
845 | (setenv "JAVA_HOME" (assoc-ref inputs "jdk")) | |
846 | #t))))) | |
847 | (native-inputs | |
d2540f80 | 848 | `(("jdk" ,icedtea "jdk"))) |
ad79eb55 RW |
849 | (synopsis "Ruby-to-Java bridge using the Java Native Interface") |
850 | (description "RJB is a bridge program that connects Ruby and Java via the | |
851 | Java Native Interface.") | |
2f3800e5 | 852 | (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge") |
ad79eb55 RW |
853 | (license license:lgpl2.1+))) |
854 | ||
f9ae2c06 PP |
855 | (define-public ruby-log4r |
856 | (package | |
857 | (name "ruby-log4r") | |
858 | (version "1.1.10") | |
859 | (source | |
860 | (origin | |
861 | (method url-fetch) | |
862 | (uri (rubygems-uri "log4r" version)) | |
863 | (sha256 | |
864 | (base32 | |
865 | "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv")))) | |
866 | (build-system ruby-build-system) | |
867 | (arguments | |
868 | '(#:tests? #f)) ; no Rakefile in gem | |
869 | (synopsis "Flexible logging library for Ruby") | |
870 | (description "Comprehensive and flexible logging library written | |
871 | in Ruby for use in Ruby programs. It features a hierarchical logging | |
872 | system of any number of levels, custom level names, logger | |
873 | inheritance, multiple output destinations per log event, execution | |
874 | tracing, custom formatting, thread safteyness, XML and YAML | |
875 | configuration, and more.") | |
876 | (home-page "http://log4r.rubyforge.org/") | |
877 | (license license:bsd-3))) | |
878 | ||
71a03c29 RW |
879 | (define-public ruby-atoulme-antwrap |
880 | (package | |
881 | (name "ruby-atoulme-antwrap") | |
882 | (version "0.7.5") | |
883 | (source (origin | |
884 | (method url-fetch) | |
885 | (uri (rubygems-uri "atoulme-Antwrap" version)) | |
886 | (sha256 | |
887 | (base32 | |
888 | "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz")))) | |
889 | (build-system ruby-build-system) | |
890 | ;; Test data required for most of the tests are not included. | |
891 | (arguments `(#:tests? #f)) | |
892 | (native-inputs | |
893 | `(("ruby-hoe" ,ruby-hoe))) | |
894 | (inputs | |
895 | `(("ruby-rjb" ,ruby-rjb))) | |
896 | (synopsis "Ruby wrapper for the Ant build tool") | |
897 | (description "Antwrap is a Ruby module that wraps the Apache Ant build | |
898 | tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby | |
899 | script.") | |
900 | (home-page "http://rubyforge.org/projects/antwrap/") | |
901 | (license license:expat))) | |
902 | ||
fe1ddad5 RW |
903 | (define-public ruby-atoulme-saikuro |
904 | (package | |
905 | (name "ruby-atoulme-saikuro") | |
906 | (version "1.2.1") | |
907 | (source (origin | |
908 | (method url-fetch) | |
909 | (uri (rubygems-uri "atoulme-Saikuro" version)) | |
910 | (sha256 | |
911 | (base32 | |
912 | "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19")))) | |
913 | (build-system ruby-build-system) | |
914 | ;; FIXME: There are no unit tests. The tests are demonstrations of the | |
915 | ;; "saikuro" tool. | |
916 | (arguments `(#:tests? #f)) | |
917 | (synopsis "Cyclomatic complexity analyzer") | |
918 | (description "Saikuro is a Ruby cyclomatic complexity analyzer. When | |
919 | given Ruby source code Saikuro will generate a report listing the cyclomatic | |
920 | complexity of each method found. In addition, Saikuro counts the number of | |
921 | lines per method and can generate a listing of the number of tokens on each | |
922 | line of code.") | |
923 | (home-page "http://www.github.com/atoulme/Saikuro") | |
924 | ;; File headers contain the BSD-3 license and the README.rdoc says that | |
925 | ;; "Saikuro uses the BSD license", but the LICENSE file contains the text | |
926 | ;; of the Expat license. | |
927 | (license license:bsd-3))) | |
928 | ||
34138e42 BW |
929 | (define-public ruby-asciidoctor |
930 | (package | |
931 | (name "ruby-asciidoctor") | |
9933a8e7 | 932 | (version "1.5.7.1") |
34138e42 BW |
933 | (source |
934 | (origin | |
935 | (method url-fetch) | |
936 | (uri (rubygems-uri "asciidoctor" version)) | |
937 | (sha256 | |
938 | (base32 | |
9933a8e7 | 939 | "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w")))) |
34138e42 BW |
940 | (build-system ruby-build-system) |
941 | (arguments | |
942 | `(#:test-target "test:all" | |
943 | #:phases | |
944 | (modify-phases %standard-phases | |
945 | (add-before 'check 'remove-circular-tests | |
946 | (lambda _ | |
947 | ;; Remove tests that require circular dependencies to load or pass. | |
948 | (delete-file "test/invoker_test.rb") | |
949 | (delete-file "test/converter_test.rb") | |
950 | (delete-file "test/options_test.rb") | |
951 | #t))))) | |
952 | (native-inputs | |
953 | `(("ruby-minitest" ,ruby-minitest) | |
954 | ("ruby-nokogiri" ,ruby-nokogiri) | |
955 | ("ruby-asciimath" ,ruby-asciimath) | |
956 | ("ruby-coderay" ,ruby-coderay))) | |
957 | (synopsis "Converter from AsciiDoc content to other formats") | |
958 | (description | |
959 | "Asciidoctor is a text processor and publishing toolchain for converting | |
20860819 | 960 | AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.") |
bba082a1 | 961 | (home-page "https://asciidoctor.org") |
34138e42 BW |
962 | (license license:expat))) |
963 | ||
d5840f77 CB |
964 | (define-public ruby-ast |
965 | (package | |
966 | (name "ruby-ast") | |
967 | (version "2.4.0") | |
968 | (source | |
969 | (origin | |
970 | (method url-fetch) | |
971 | (uri (rubygems-uri "ast" version)) | |
972 | (sha256 | |
973 | (base32 | |
974 | "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7")))) | |
975 | (build-system ruby-build-system) | |
976 | (arguments | |
977 | '(#:phases | |
978 | (modify-phases %standard-phases | |
979 | (add-after 'unpack 'remove-coveralls-requirement | |
980 | (lambda _ | |
981 | (substitute* "test/helper.rb" | |
982 | (("require 'coveralls'") "") | |
983 | (("Coveralls::SimpleCov::Formatter") "")) | |
984 | #t)) | |
985 | (add-after 'extract-gemspec 'remove-unnecessary-requirements | |
986 | (lambda _ | |
987 | (substitute* "ast.gemspec" | |
988 | ((".*coveralls.*") "\n") | |
989 | (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n") | |
990 | (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n") | |
991 | (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n")) | |
992 | #t))))) | |
993 | (native-inputs | |
994 | `(("bundler" ,bundler) | |
995 | ("ruby-simplecov" ,ruby-simplecov) | |
996 | ("ruby-json-pure" ,ruby-json-pure) | |
997 | ("ruby-mime-times" ,ruby-mime-types) | |
998 | ("ruby-yard" ,ruby-yard) | |
999 | ("ruby-kramdown" ,ruby-kramdown) | |
1000 | ("ruby-rest-client" ,ruby-rest-client) | |
1001 | ("ruby-bacon" ,ruby-bacon) | |
1002 | ("ruby-bacon-colored-output" ,ruby-bacon-colored-output) | |
1003 | ("ruby-racc" ,ruby-racc))) | |
1004 | (synopsis "Library for working with Abstract Syntax Trees") | |
1005 | (description | |
1006 | "@code{ast} is a Ruby library for working with Abstract Syntax Trees. | |
1007 | It does this through immutable data structures.") | |
1008 | (home-page "https://whitequark.github.io/ast/") | |
1009 | (license license:expat))) | |
1010 | ||
b88502c9 BW |
1011 | (define-public ruby-sporkmonger-rack-mount |
1012 | ;; Testing the addressable gem requires a newer commit than that released, so | |
1013 | ;; use an up to date version. | |
1014 | (let ((revision "1") | |
1015 | (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3")) | |
1016 | (package | |
1017 | (name "ruby-sporkmonger-rack-mount") | |
1018 | (version (git-version "0.8.3" revision commit)) | |
1019 | (source (origin | |
1020 | (method git-fetch) | |
1021 | (uri (git-reference | |
1022 | (url "https://github.com/sporkmonger/rack-mount.git") | |
1023 | (commit commit))) | |
1024 | (file-name (git-file-name name version)) | |
1025 | (sha256 | |
1026 | (base32 | |
1027 | "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq")))) | |
1028 | (build-system ruby-build-system) | |
1029 | (arguments | |
1030 | ;; Tests currently fail so disable them. | |
1031 | ;; https://github.com/sporkmonger/rack-mount/pull/1 | |
1032 | `(#:tests? #f)) | |
1033 | (propagated-inputs `(("ruby-rack" ,ruby-rack))) | |
1034 | (synopsis "Stackable dynamic tree based Rack router") | |
1035 | (description | |
1036 | "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to | |
1037 | continue trying routes if the response returns pass. This allows multiple | |
1038 | routes to be nested or stacked on top of each other.") | |
1039 | (home-page "https://github.com/sporkmonger/rack-mount") | |
1040 | (license license:expat)))) | |
1041 | ||
2f9e0b68 RW |
1042 | (define-public ruby-ci-reporter |
1043 | (package | |
1044 | (name "ruby-ci-reporter") | |
1045 | (version "2.0.0") | |
1046 | (source (origin | |
1047 | (method url-fetch) | |
1048 | (uri (rubygems-uri "ci_reporter" version)) | |
1049 | (sha256 | |
1050 | (base32 | |
1051 | "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg")))) | |
1052 | (build-system ruby-build-system) | |
1053 | (arguments | |
1054 | `(#:test-target "rspec")) | |
1055 | (propagated-inputs | |
1056 | `(("ruby-builder" ,ruby-builder))) | |
1057 | (native-inputs | |
1058 | `(("bundler" ,bundler) | |
1059 | ("ruby-rspec" ,ruby-rspec))) | |
1060 | (synopsis "Generate XML reports of runs test") | |
1061 | (description | |
1062 | "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows | |
1063 | you to generate XML reports of your test runs. The resulting files can be | |
1064 | read by a continuous integration system that understands Ant's JUnit report | |
1065 | format.") | |
1066 | (home-page "https://github.com/nicksieger/ci_reporter") | |
1067 | (license license:expat))) | |
1068 | ||
2ed201c1 CB |
1069 | (define-public ruby-contracts |
1070 | (package | |
1071 | (name "ruby-contracts") | |
1072 | (version "0.16.0") | |
1073 | (source | |
1074 | (origin | |
1075 | (method url-fetch) | |
1076 | (uri (rubygems-uri "contracts" version)) | |
1077 | (sha256 | |
1078 | (base32 | |
1079 | "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a")))) | |
1080 | (build-system ruby-build-system) | |
1081 | (arguments | |
1082 | '(#:test-target "spec" | |
1083 | #:phases | |
1084 | (modify-phases %standard-phases | |
1085 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
1086 | ;; bit unnecessary. | |
1087 | (add-after 'unpack 'dont-run-rubocop | |
1088 | (lambda _ | |
1089 | (substitute* "Rakefile" | |
1090 | ((".*rubocop.*") "") | |
1091 | ((".*RuboCop.*") "")) | |
1092 | #t))))) | |
1093 | (native-inputs | |
1094 | `(("ruby-rspec" ,ruby-rspec))) | |
1095 | (synopsis "Method contracts for Ruby") | |
1096 | (description | |
1097 | "This library provides contracts for Ruby. A contract describes the | |
1098 | correct inputs and output for a method, and will raise an error if a incorrect | |
1099 | value is found.") | |
1100 | (home-page "https://github.com/egonSchiele/contracts.ruby") | |
1101 | (license license:bsd-2))) | |
1102 | ||
6f8bf0eb CB |
1103 | (define-public ruby-crack |
1104 | (package | |
1105 | (name "ruby-crack") | |
1106 | (version "0.4.3") | |
1107 | (source | |
1108 | (origin | |
1109 | (method url-fetch) | |
1110 | (uri (rubygems-uri "crack" version)) | |
1111 | (sha256 | |
1112 | (base32 | |
1113 | "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k")))) | |
1114 | (build-system ruby-build-system) | |
1115 | (arguments | |
1116 | `(#:phases | |
1117 | (modify-phases %standard-phases | |
1118 | (replace 'check | |
1119 | (lambda* (#:key tests? #:allow-other-keys) | |
1120 | (when tests? | |
1121 | (for-each (lambda (file) | |
1122 | (display file)(display "\n") | |
1123 | (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file)) | |
1124 | (find-files "test" ".*rb$"))) | |
1125 | #t))))) | |
1126 | (propagated-inputs | |
1127 | `(("ruby-safe-yaml" ,ruby-safe-yaml))) | |
1128 | (synopsis "Simple JSON and XML parsing for Ruby") | |
1129 | (description | |
1130 | "@code{crack} provides really simple JSON and XML parsing, extracted from | |
1131 | code in Merb and Rails.") | |
1132 | (home-page "https://github.com/jnunemaker/crack") | |
1133 | (license license:expat))) | |
1134 | ||
bef3506e CB |
1135 | (define-public ruby-cliver |
1136 | (package | |
1137 | (name "ruby-cliver") | |
1138 | (version "0.3.2") | |
1139 | (source | |
1140 | (origin | |
1141 | (method url-fetch) | |
1142 | (uri (rubygems-uri "cliver" version)) | |
1143 | (sha256 | |
1144 | (base32 | |
1145 | "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7")))) | |
1146 | (build-system ruby-build-system) | |
1147 | (arguments | |
1148 | '(#:phases | |
1149 | (modify-phases %standard-phases | |
1150 | ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3 | |
1151 | ;; would be nice, but the tests look to be incompatible: | |
1152 | ;; | |
1153 | ;; NoMethodError: undefined method `last_comment' | |
1154 | (replace 'check | |
1155 | (lambda* (#:key tests? #:allow-other-keys) | |
1156 | (when tests? | |
1157 | (invoke "rspec")) | |
1158 | #t))))) | |
1159 | (native-inputs | |
1160 | `(("bundler" ,bundler) | |
1161 | ("ruby-rspec" ,ruby-rspec-2))) | |
1162 | (synopsis "Assertions for command-line dependencies in Ruby") | |
1163 | (description | |
1164 | "@code{cliver} provides a way to detect missing command-line | |
1165 | dependencies, including versions.") | |
1166 | (home-page "https://github.com/yaauie/cliver") | |
1167 | (license license:expat))) | |
1168 | ||
fe5dd5f4 CB |
1169 | (define-public ruby-czmq-ffi-gen |
1170 | (package | |
1171 | (name "ruby-czmq-ffi-gen") | |
1172 | (version "0.13.0") | |
1173 | (source | |
1174 | (origin | |
1175 | (method url-fetch) | |
1176 | (uri (rubygems-uri "czmq-ffi-gen" version)) | |
1177 | (sha256 | |
1178 | (base32 | |
1179 | "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3")))) | |
1180 | (build-system ruby-build-system) | |
1181 | (arguments | |
1182 | '(#:tests? #f ;; Tests are not included in the release on rubygems.org | |
1183 | #:phases | |
1184 | (modify-phases %standard-phases | |
1185 | (add-after 'unpack 'patch-lib_dirs | |
1186 | (lambda* (#:key inputs #:allow-other-keys) | |
1187 | (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb" | |
1188 | (("lib\\_dirs = \\[.*\\]") | |
1189 | (string-append "lib_dirs = ['" | |
1190 | (assoc-ref inputs "czmq") "/lib" | |
1191 | "']"))) | |
1192 | (substitute* "lib/czmq-ffi-gen/libzmq.rb" | |
1193 | (("lib\\_dirs = \\[.*\\]") | |
1194 | (string-append "lib_dirs = ['" | |
1195 | (assoc-ref inputs "zeromq") "/lib" | |
1196 | "']")))))))) | |
1197 | (inputs | |
1198 | `(("zeromq" ,zeromq) | |
1199 | ("czmq" ,czmq))) | |
1200 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
1201 | (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)") | |
1202 | (description | |
1203 | "These Ruby bindings are not intended to be directly used, but rather | |
1204 | used by higher level bindings like those provided by CZTop.") | |
1205 | (home-page | |
1206 | "https://github.com/paddor/czmq-ffi-gen") | |
1207 | (license license:isc))) | |
1208 | ||
d0afff26 CB |
1209 | (define-public ruby-cztop |
1210 | (package | |
1211 | (name "ruby-cztop") | |
1212 | (version "0.12.2") | |
1213 | (source | |
1214 | (origin | |
1215 | (method url-fetch) | |
1216 | (uri (rubygems-uri "cztop" version)) | |
1217 | (sha256 | |
1218 | (base32 | |
1219 | "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa")))) | |
1220 | (build-system ruby-build-system) | |
1221 | (arguments | |
1222 | '(#:test-target "spec" | |
1223 | #:phases | |
1224 | (modify-phases %standard-phases | |
1225 | (add-after 'unpack 'patch-lib_paths | |
1226 | (lambda* (#:key inputs #:allow-other-keys) | |
1227 | (substitute* "lib/cztop/poller/zmq.rb" | |
1228 | (("lib\\_paths = \\[.*\\]") | |
1229 | (string-append "lib_paths = ['" | |
1230 | (assoc-ref inputs "zeromq") "/lib" | |
1231 | "']")))))))) | |
1232 | (native-inputs | |
1233 | `(("bundler" ,bundler) | |
1234 | ("ruby-rspec" ,ruby-rspec))) | |
1235 | (inputs | |
1236 | `(("zeromq" ,zeromq))) | |
1237 | (propagated-inputs | |
1238 | `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen))) | |
1239 | (synopsis "CZMQ Ruby bindings") | |
1240 | (description | |
1241 | "CZMQ Ruby bindings, based on the generated low-level FFI bindings of | |
1242 | CZMQ. The focus of of CZTop is on being easy to use and providing first class | |
1243 | support for security mechanisms.") | |
1244 | (home-page "https://github.com/paddor/cztop") | |
1245 | (license license:isc))) | |
1246 | ||
b004fb6a RW |
1247 | (define-public ruby-saikuro-treemap |
1248 | (package | |
1249 | (name "ruby-saikuro-treemap") | |
1250 | (version "0.2.0") | |
1251 | (source (origin | |
1252 | (method url-fetch) | |
1253 | (uri (rubygems-uri "saikuro_treemap" version)) | |
1254 | (sha256 | |
1255 | (base32 | |
1256 | "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950")))) | |
1257 | (build-system ruby-build-system) | |
1258 | ;; Some of the tests fail because the generated JSON has keys in a | |
1259 | ;; different order. This is a problem with the test suite rather than any | |
1260 | ;; of the involved libraries. | |
1261 | (arguments `(#:tests? #f)) | |
1262 | (propagated-inputs | |
1263 | `(("ruby-json-pure" ,ruby-json-pure) | |
1264 | ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro))) | |
1265 | (synopsis "Generate complexity treemap based on saikuro analysis") | |
1266 | (description | |
1267 | "This gem generates a treemap showing the complexity of Ruby code on | |
1268 | which it is run. It uses Saikuro under the covers to analyze Ruby code | |
1269 | complexity.") | |
7bf837fd | 1270 | (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap") |
b004fb6a RW |
1271 | (license license:expat))) |
1272 | ||
92b37500 CB |
1273 | (define-public ruby-oauth2 |
1274 | (package | |
1275 | (name "ruby-oauth2") | |
5dd10be5 | 1276 | (version "1.4.2") |
92b37500 CB |
1277 | (source |
1278 | (origin | |
1279 | (method url-fetch) | |
1280 | (uri (rubygems-uri "oauth2" version)) | |
1281 | (sha256 | |
5dd10be5 | 1282 | (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036")))) |
92b37500 CB |
1283 | (build-system ruby-build-system) |
1284 | (arguments | |
5dd10be5 | 1285 | '(#:tests? #f)) ; no included tests |
92b37500 CB |
1286 | (propagated-inputs |
1287 | `(("ruby-faraday" ,ruby-faraday) | |
1288 | ("ruby-jwt" ,ruby-jwt) | |
1289 | ("ruby-multi-json" ,ruby-multi-json) | |
1290 | ("ruby-multi-xml" ,ruby-multi-xml) | |
1291 | ("ruby-rack" ,ruby-rack))) | |
1292 | (synopsis "Ruby wrapper for the OAuth 2.0") | |
1293 | (description | |
1294 | "This package provides a Ruby wrapper for the OAuth 2.0 protocol built | |
1295 | with a similar style to the original OAuth spec.") | |
1296 | (home-page "https://github.com/oauth-xx/oauth2") | |
1297 | (license license:expat))) | |
1298 | ||
29dc4823 CB |
1299 | (define-public ruby-omniauth |
1300 | (package | |
1301 | (name "ruby-omniauth") | |
a7b7817d | 1302 | (version "1.9.1") |
29dc4823 CB |
1303 | (source |
1304 | (origin | |
1305 | (method url-fetch) | |
1306 | (uri (rubygems-uri "omniauth" version)) | |
1307 | (sha256 | |
a7b7817d | 1308 | (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz")))) |
29dc4823 CB |
1309 | (build-system ruby-build-system) |
1310 | (arguments | |
1311 | '(#:tests? #f)) ; No included tests | |
1312 | (propagated-inputs | |
1313 | `(("ruby-hashie" ,ruby-hashie) | |
1314 | ("ruby-rack" ,ruby-rack))) | |
1315 | (synopsis "Generalized Rack framework for multiple-provider authentication") | |
1316 | (description | |
1317 | "This package provides a generalized Rack framework for multiple-provider | |
1318 | authentication.") | |
1319 | (home-page "https://github.com/omniauth/omniauth") | |
1320 | (license license:expat))) | |
1321 | ||
d6084cdb CB |
1322 | (define-public ruby-omniauth-oauth2 |
1323 | (package | |
1324 | (name "ruby-omniauth-oauth2") | |
1325 | (version "1.6.0") | |
1326 | (source | |
1327 | (origin | |
1328 | (method url-fetch) | |
1329 | (uri (rubygems-uri "omniauth-oauth2" version)) | |
1330 | (sha256 | |
1331 | (base32 | |
1332 | "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79")))) | |
1333 | (build-system ruby-build-system) | |
1334 | (arguments | |
1335 | '(#:phases | |
1336 | (modify-phases %standard-phases | |
1337 | (add-after 'unpack 'remove-unnecessary-dependencies | |
1338 | (lambda _ | |
1339 | ;; The coveralls gem submits coverage information to an online | |
1340 | ;; service, and is unnecessary when running the tests | |
1341 | (substitute* "Gemfile" | |
1342 | ((".*coveralls\"") "")) | |
1343 | (substitute* "spec/helper.rb" | |
1344 | (("require \"coveralls\"") "") | |
1345 | (("Coveralls::SimpleCov::Formatter") "")) | |
1346 | #t))))) | |
1347 | (propagated-inputs | |
1348 | `(("ruby-oauth2" ,ruby-oauth2) | |
1349 | ("ruby-omniauth" ,ruby-omniauth))) | |
1350 | (native-inputs | |
1351 | `(("bundler" ,bundler) | |
1352 | ("ruby-rspec" ,ruby-rspec) | |
1353 | ("ruby-simplecov" ,ruby-simplecov) | |
1354 | ("ruby-rack-test" ,ruby-rack-test) | |
1355 | ("ruby-webmock" ,ruby-webmock-2))) | |
1356 | (synopsis "Abstract OAuth2 strategy for OmniAuth") | |
1357 | (description | |
1358 | "This library provides a generic OAuth2 strategy for OmniAuth. It | |
1359 | doesn't provide a way to gather user information, so should be used as a | |
1360 | building block for authentication strategies.") | |
1361 | (home-page "https://github.com/omniauth/omniauth-oauth2") | |
1362 | (license license:expat))) | |
1363 | ||
433e3154 CB |
1364 | (define-public ruby-open4 |
1365 | (package | |
1366 | (name "ruby-open4") | |
1367 | (version "1.3.4") | |
1368 | (source | |
1369 | (origin | |
1370 | (method url-fetch) | |
1371 | (uri (rubygems-uri "open4" version)) | |
1372 | (sha256 | |
1373 | (base32 | |
1374 | "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1")))) | |
1375 | (build-system ruby-build-system) | |
1376 | (arguments | |
1377 | '(#:phases | |
1378 | (modify-phases %standard-phases | |
1379 | (add-after 'unpack 'patch | |
1380 | (lambda _ | |
1381 | (substitute* "rakefile" | |
1382 | ;; Update the Rakefile so it works | |
1383 | (("-rubygems") "-rrubygems") | |
1384 | (("Config") "RbConfig")) | |
1385 | #t)) | |
1386 | (add-before 'check 'set-LIB | |
1387 | (lambda _ | |
1388 | ;; This is used in the rakefile when running the tests | |
1389 | (setenv "LIB" "open4") | |
1390 | #t))))) | |
1391 | (synopsis "Open child processes from Ruby and manage them easily") | |
1392 | (description | |
1393 | "@code{Open4} is a Ruby library to run child processes and manage their | |
1394 | input and output.") | |
1395 | (home-page "https://github.com/ahoward/open4") | |
1396 | (license license:ruby))) | |
1397 | ||
cef87ed6 CB |
1398 | (define-public ruby-options |
1399 | (package | |
1400 | (name "ruby-options") | |
1401 | (version "2.3.2") | |
1402 | (source | |
1403 | (origin | |
1404 | (method url-fetch) | |
1405 | (uri (rubygems-uri "options" version)) | |
1406 | (sha256 | |
1407 | (base32 | |
1408 | "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j")))) | |
1409 | (build-system ruby-build-system) | |
1410 | (arguments | |
1411 | '(#:tests? #f ;; TODO: NameError: uninitialized constant Config | |
1412 | #:phases | |
1413 | (modify-phases %standard-phases | |
1414 | (add-before 'check 'set-LIB | |
1415 | (lambda _ | |
1416 | ;; This is used in the Rakefile, and setting it avoids an issue | |
1417 | ;; with running the tests. | |
fe27238c CB |
1418 | (setenv "LIB" "options") |
1419 | #t))))) | |
cef87ed6 CB |
1420 | (synopsis "Ruby library to parse options from *args cleanly") |
1421 | (description | |
1422 | "The @code{options} library helps with parsing keyword options in Ruby | |
1423 | functions.") | |
1424 | (home-page "https://github.com/ahoward/options") | |
1425 | (license license:ruby))) | |
1426 | ||
d15dbe83 CB |
1427 | (define-public ruby-erubi |
1428 | (package | |
1429 | (name "ruby-erubi") | |
1430 | (version "1.8.0") | |
1431 | (source | |
1432 | (origin | |
1433 | (method url-fetch) | |
1434 | (uri (rubygems-uri "erubi" version)) | |
1435 | (sha256 | |
1436 | (base32 | |
1437 | "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1")))) | |
1438 | (build-system ruby-build-system) | |
1439 | (synopsis "ERB template engine for Ruby") | |
1440 | (description | |
1441 | "Erubi is a ERB template engine for Ruby. It is a simplified fork of | |
1442 | Erubis") | |
1443 | (home-page "https://github.com/jeremyevans/erubi") | |
1444 | (license license:expat))) | |
1445 | ||
d64ebebd BW |
1446 | (define-public ruby-erubis |
1447 | (package | |
1448 | (name "ruby-erubis") | |
1449 | (version "2.7.0") | |
1450 | (source | |
1451 | (origin | |
1452 | (method url-fetch) | |
1453 | (uri (rubygems-uri "erubis" version)) | |
1454 | (sha256 | |
1455 | (base32 | |
1456 | "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3")))) | |
1457 | (build-system ruby-build-system) | |
1458 | (arguments | |
1459 | '(#:tests? #f)) ; tests do not run properly with Ruby 2.0 | |
1460 | (synopsis "Implementation of embedded Ruby (eRuby)") | |
1461 | (description | |
1462 | "Erubis is a fast implementation of embedded Ruby (eRuby) with several | |
1463 | features such as multi-language support, auto escaping, auto trimming spaces | |
1464 | around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails | |
1465 | support.") | |
1466 | (home-page "http://www.kuwata-lab.com/erubis/") | |
1467 | (license license:expat))) | |
1468 | ||
3ca43524 CB |
1469 | (define-public ruby-execjs |
1470 | (package | |
1471 | (name "ruby-execjs") | |
1472 | (version "2.7.0") | |
1473 | (source | |
1474 | (origin | |
1475 | ;; fetch from github as the gem does not contain testing code | |
1476 | (method git-fetch) | |
1477 | (uri (git-reference | |
1478 | (url "https://github.com/rails/execjs.git") | |
1479 | (commit (string-append "v" version)))) | |
1480 | (file-name (git-file-name name version)) | |
1481 | (sha256 | |
1482 | (base32 | |
1483 | "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6")))) | |
1484 | (build-system ruby-build-system) | |
1485 | (native-inputs | |
1486 | `(("bundler" ,bundler) | |
1487 | ;; The test suite tests all the available backends. Currenly, this just | |
1488 | ;; means the node backend. | |
1489 | ;; | |
1490 | ;; PASSED: test:node | |
1491 | ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript, | |
1492 | ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8 | |
1493 | ("node" ,node))) | |
1494 | (synopsis "Run JavaScript code from Ruby") | |
1495 | (description | |
1496 | "ExecJS lets you run JavaScript code from Ruby. It automatically picks a | |
1497 | runtime to evaluate your JavaScript program, then returns the result to you as | |
1498 | a Ruby object.") | |
1499 | (home-page "https://github.com/rails/execjs") | |
1500 | (license license:expat))) | |
1501 | ||
cc53e630 RW |
1502 | (define-public ruby-orderedhash |
1503 | (package | |
1504 | (name "ruby-orderedhash") | |
1505 | (version "0.0.6") | |
1506 | (source (origin | |
1507 | (method url-fetch) | |
1508 | (uri (rubygems-uri "orderedhash" version)) | |
1509 | (sha256 | |
1510 | (base32 | |
1511 | "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7")))) | |
1512 | (build-system ruby-build-system) | |
1513 | (arguments | |
1514 | '(#:tests? #f)) ; no test suite | |
1515 | (synopsis "Ruby library providing an order-preserving hash") | |
1516 | (description "Orderedhash is a Ruby library providing a hash | |
1517 | implementation that preserves the order of items and features some array-like | |
1518 | extensions.") | |
1519 | (home-page "http://codeforpeople.com/lib/ruby/orderedhash/") | |
1520 | (license license:public-domain))) | |
1521 | ||
28c5d42d PP |
1522 | (define-public ruby-libxml |
1523 | (package | |
1524 | (name "ruby-libxml") | |
acbc5062 | 1525 | (version "3.0.0") |
28c5d42d PP |
1526 | (source |
1527 | (origin | |
1528 | (method url-fetch) | |
1529 | (uri (rubygems-uri "libxml-ruby" version)) | |
1530 | (sha256 | |
1531 | (base32 | |
acbc5062 | 1532 | "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54")))) |
28c5d42d PP |
1533 | (build-system ruby-build-system) |
1534 | (inputs | |
1535 | `(("zlib" ,zlib) | |
1536 | ("libxml2" ,libxml2))) | |
1537 | (arguments | |
1538 | '(#:tests? #f ; test suite hangs for unknown reason | |
1539 | #:gem-flags | |
1540 | (list "--" | |
1541 | (string-append "--with-xml2-include=" | |
1542 | (assoc-ref %build-inputs "libxml2") | |
1543 | "/include/libxml2" )))) | |
1544 | (synopsis "Ruby bindings for GNOME Libxml2") | |
1545 | (description "The Libxml-Ruby project provides Ruby language bindings for | |
1546 | the GNOME Libxml2 XML toolkit.") | |
2f3800e5 | 1547 | (home-page "https://xml4r.github.com/libxml-ruby") |
28c5d42d PP |
1548 | (license license:expat))) |
1549 | ||
b3222518 CB |
1550 | (define-public ruby-lino |
1551 | (package | |
1552 | (name "ruby-lino") | |
1553 | (version "1.1.0") | |
1554 | (source | |
1555 | (origin | |
1556 | (method url-fetch) | |
1557 | (uri (rubygems-uri "lino" version)) | |
1558 | (sha256 | |
1559 | (base32 | |
1560 | "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3")))) | |
1561 | (build-system ruby-build-system) | |
1562 | (arguments | |
1563 | '(#:tests? #f)) ; No included tests | |
1564 | (propagated-inputs | |
1565 | `(("ruby-hamster" ,ruby-hamster) | |
1566 | ("ruby-open4" ,ruby-open4))) | |
1567 | (synopsis "Build and execute commands in Ruby") | |
1568 | (description | |
1569 | "@code{Lino} provides an interface to run external commands. It provides | |
1570 | an interface to add options as well as managing the standard input, output and | |
1571 | error streams.") | |
1572 | (home-page "https://github.com/tobyclemson/lino") | |
1573 | (license license:expat))) | |
1574 | ||
8b9bde07 RW |
1575 | (define-public ruby-xml-simple |
1576 | (package | |
1577 | (name "ruby-xml-simple") | |
1578 | (version "1.1.5") | |
1579 | (source (origin | |
1580 | (method url-fetch) | |
1581 | (uri (rubygems-uri "xml-simple" version)) | |
1582 | (sha256 | |
1583 | (base32 | |
1584 | "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8")))) | |
1585 | (build-system ruby-build-system) | |
1586 | (arguments | |
1587 | '(#:tests? #f)) ; no test suite | |
1588 | (synopsis "Simple Ruby library for XML processing") | |
1589 | (description "This library provides a simple API for XML processing in | |
1590 | Ruby.") | |
1591 | (home-page "https://github.com/maik/xml-simple") | |
1592 | (license license:ruby))) | |
1593 | ||
2cb3ab48 RW |
1594 | (define-public ruby-thor |
1595 | (package | |
1596 | (name "ruby-thor") | |
2e8cd862 | 1597 | (version "0.19.4") |
2cb3ab48 RW |
1598 | (source (origin |
1599 | (method url-fetch) | |
1600 | (uri (rubygems-uri "thor" version)) | |
1601 | (sha256 | |
1602 | (base32 | |
2e8cd862 | 1603 | "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns")))) |
2cb3ab48 RW |
1604 | (build-system ruby-build-system) |
1605 | (arguments | |
1606 | '(#:tests? #f)) ; no test suite | |
1607 | (native-inputs | |
1608 | `(("bundler" ,bundler))) | |
1609 | (synopsis "Ruby toolkit for building command-line interfaces") | |
1610 | (description "Thor is a toolkit for building powerful command-line | |
1611 | interfaces.") | |
1612 | (home-page "http://whatisthor.com/") | |
1613 | (license license:expat))) | |
1614 | ||
ec79018e RW |
1615 | (define-public ruby-lumberjack |
1616 | (package | |
1617 | (name "ruby-lumberjack") | |
41700efa | 1618 | (version "1.0.13") |
ec79018e RW |
1619 | (source (origin |
1620 | (method url-fetch) | |
1621 | (uri (rubygems-uri "lumberjack" version)) | |
1622 | (sha256 | |
1623 | (base32 | |
41700efa | 1624 | "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n")))) |
ec79018e RW |
1625 | (build-system ruby-build-system) |
1626 | (native-inputs | |
8be62d3f BW |
1627 | `(("ruby-rspec" ,ruby-rspec) |
1628 | ("ruby-timecop" ,ruby-timecop))) | |
ec79018e RW |
1629 | (synopsis "Logging utility library for Ruby") |
1630 | (description "Lumberjack is a simple logging utility that can be a drop in | |
1631 | replacement for Logger or ActiveSupport::BufferedLogger. It provides support | |
1632 | for automatically rolling log files even with multiple processes writing the | |
1633 | same log file.") | |
7bf837fd | 1634 | (home-page "https://github.com/bdurand/lumberjack") |
ec79018e RW |
1635 | (license license:expat))) |
1636 | ||
2a9ce5cb CB |
1637 | (define-public ruby-rbnacl |
1638 | (package | |
1639 | (name "ruby-rbnacl") | |
1640 | (version "6.0.1") | |
1641 | (source | |
1642 | (origin | |
1643 | (method url-fetch) | |
1644 | (uri (rubygems-uri "rbnacl" version)) | |
1645 | (sha256 | |
1646 | (base32 | |
1647 | "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn")))) | |
1648 | (build-system ruby-build-system) | |
1649 | (arguments | |
1650 | `(#:phases | |
1651 | (modify-phases %standard-phases | |
1652 | (add-after 'unpack 'remove-unnecessary-dependencies | |
1653 | (lambda _ | |
1654 | ;; Coveralls relates to a network service, and Rubocop to code | |
1655 | ;; linting and both are unnecessary to run the tests | |
1656 | (substitute* "Gemfile" | |
1657 | ((".*rubocop.*") "\n") | |
1658 | ((".*guard-rspec.*") "\n") | |
1659 | ((".*coveralls.*") "\n")) | |
1660 | (substitute* "spec/spec_helper.rb" | |
1661 | (("require \"coveralls\"") "") | |
1662 | (("Coveralls.wear!") "")) | |
1663 | #t)) | |
1664 | (add-after 'unpack 'use-libsodium-from-store | |
1665 | (lambda* (#:key inputs #:allow-other-keys) | |
1666 | (substitute* '("lib/rbnacl/init.rb" | |
1667 | "lib/rbnacl/sodium.rb") | |
1668 | (("ffi_lib \\[.+\\]") | |
1669 | (string-append "ffi_lib [\"" | |
1670 | (assoc-ref inputs "libsodium") "/lib/libsodium.so" | |
1671 | "\"]"))) | |
1672 | #t)) | |
1673 | ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile | |
1674 | (replace 'check | |
1675 | (lambda* (#:key tests? #:allow-other-keys) | |
1676 | (when tests? | |
1677 | (invoke "rspec")) | |
1678 | #t))))) | |
1679 | (propagated-inputs | |
1680 | `(("ruby-ffi" ,ruby-ffi))) | |
1681 | (inputs | |
1682 | `(("libsodium" ,libsodium))) | |
1683 | (native-inputs | |
1684 | `(("bundler" ,bundler) | |
1685 | ("ruby-rspec" ,ruby-rspec))) | |
1686 | (synopsis "Ruby FFI binding to libsodium") | |
1687 | (description | |
1688 | "This package provides Ruby FFI bindings to the Networking and | |
1689 | Cryptography (NaCl) library, also known as libsodium. This provides a | |
1690 | high-level toolkit for building cryptographic systems and protocols.") | |
1691 | (home-page "https://github.com/crypto-rb/rbnacl") | |
1692 | (license license:expat))) | |
1693 | ||
70b4cf38 RW |
1694 | (define-public ruby-nenv |
1695 | (package | |
1696 | (name "ruby-nenv") | |
12313cd0 | 1697 | (version "0.3.0") |
70b4cf38 RW |
1698 | (source (origin |
1699 | (method url-fetch) | |
1700 | (uri (rubygems-uri "nenv" version)) | |
1701 | (sha256 | |
1702 | (base32 | |
12313cd0 | 1703 | "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr")))) |
70b4cf38 RW |
1704 | (build-system ruby-build-system) |
1705 | (arguments | |
1706 | `(#:tests? #f)) ; no tests included | |
1707 | (native-inputs | |
1708 | `(("ruby-rspec" ,ruby-rspec) | |
1709 | ("bundler" ,bundler))) | |
1710 | (synopsis "Ruby interface for modifying the environment") | |
1711 | (description "Nenv provides a convenient wrapper for Ruby's ENV to modify | |
1712 | and inspect the environment.") | |
1713 | (home-page "https://github.com/e2/nenv") | |
1714 | (license license:expat))) | |
1715 | ||
8d9e9f28 RW |
1716 | (define-public ruby-permutation |
1717 | (package | |
1718 | (name "ruby-permutation") | |
1719 | (version "0.1.8") | |
1720 | (source (origin | |
1721 | (method url-fetch) | |
1722 | (uri (rubygems-uri "permutation" version)) | |
1723 | (sha256 | |
1724 | (base32 | |
1725 | "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8")))) | |
1726 | (build-system ruby-build-system) | |
1727 | (arguments | |
1728 | `(#:phases | |
1729 | (modify-phases %standard-phases | |
1730 | (add-after 'unpack 'fix-rakefile | |
1731 | (lambda _ | |
1732 | (substitute* "Rakefile" | |
1733 | (("require 'rake/gempackagetask'") | |
1734 | "require 'rubygems/package_task'") | |
1735 | (("include Config") "")) | |
1736 | #t)) | |
1737 | (replace 'check | |
1738 | (lambda _ | |
9923d5a4 | 1739 | (invoke "ruby" "-Ilib" "test/test.rb")))))) |
8d9e9f28 RW |
1740 | (synopsis "Library to perform operations with sequence permutations") |
1741 | (description "This package provides a Ruby library to perform different | |
1742 | operations with permutations of sequences, such as strings and arrays.") | |
2f3800e5 | 1743 | (home-page "https://flori.github.io/permutation") |
8d9e9f28 RW |
1744 | (license license:gpl2))) ; GPL 2 only |
1745 | ||
c5d14d42 RW |
1746 | (define-public ruby-shellany |
1747 | (package | |
1748 | (name "ruby-shellany") | |
1749 | (version "0.0.1") | |
1750 | (source (origin | |
1751 | (method url-fetch) | |
1752 | (uri (rubygems-uri "shellany" version)) | |
1753 | (sha256 | |
1754 | (base32 | |
1755 | "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf")))) | |
1756 | (build-system ruby-build-system) | |
1757 | (arguments | |
1758 | `(#:test-target "default" | |
1759 | #:phases | |
1760 | (modify-phases %standard-phases | |
1761 | (add-after 'unpack 'fix-version-test | |
1762 | (lambda _ | |
1763 | (substitute* "spec/shellany_spec.rb" | |
1764 | (("^RSpec") "require \"shellany\"\nRSpec")) | |
1765 | #t))))) | |
1766 | (native-inputs | |
1767 | `(("ruby-rspec" ,ruby-rspec) | |
1768 | ("ruby-nenv" ,ruby-nenv) | |
1769 | ("bundler" ,bundler))) | |
1770 | (synopsis "Capture command output") | |
1771 | (description "Shellany is a Ruby library providing functions to capture | |
1772 | the output produced by running shell commands.") | |
1773 | (home-page "https://rubygems.org/gems/shellany") | |
1774 | (license license:expat))) | |
1775 | ||
d152162f RW |
1776 | (define-public ruby-notiffany |
1777 | (package | |
1778 | (name "ruby-notiffany") | |
8c1e4a4f | 1779 | (version "0.1.3") |
d152162f RW |
1780 | (source (origin |
1781 | (method url-fetch) | |
1782 | (uri (rubygems-uri "notiffany" version)) | |
1783 | (sha256 | |
1784 | (base32 | |
8c1e4a4f | 1785 | "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk")))) |
d152162f RW |
1786 | (build-system ruby-build-system) |
1787 | ;; Tests are not included in the gem. | |
1788 | (arguments `(#:tests? #f)) | |
1789 | (propagated-inputs | |
1790 | `(("ruby-shellany" ,ruby-shellany) | |
1791 | ("ruby-nenv" ,ruby-nenv))) | |
1792 | (native-inputs | |
1793 | `(("bundler" ,bundler))) | |
01eb17de VC |
1794 | (synopsis "Wrapper library for notification libraries") |
1795 | (description "Notiffany is a Ruby wrapper library for notification | |
d152162f RW |
1796 | libraries such as Libnotify.") |
1797 | (home-page "https://github.com/guard/notiffany") | |
1798 | (license license:expat))) | |
1799 | ||
8528365b RW |
1800 | (define-public ruby-formatador |
1801 | (package | |
1802 | (name "ruby-formatador") | |
1803 | (version "0.2.5") | |
1804 | (source (origin | |
1805 | (method url-fetch) | |
1806 | (uri (rubygems-uri "formatador" version)) | |
1807 | (sha256 | |
1808 | (base32 | |
1809 | "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0")))) | |
1810 | (build-system ruby-build-system) | |
1811 | ;; Circular dependency: Tests require ruby-shindo, which requires | |
1812 | ;; ruby-formatador at runtime. | |
1813 | (arguments `(#:tests? #f)) | |
1814 | (synopsis "Ruby library to format text on stdout") | |
1815 | (description "Formatador is a Ruby library to format text printed to the | |
1816 | standard output stream.") | |
7bf837fd | 1817 | (home-page "https://github.com/geemus/formatador") |
8528365b RW |
1818 | (license license:expat))) |
1819 | ||
5437c741 CB |
1820 | (define-public ruby-fuubar |
1821 | (package | |
1822 | (name "ruby-fuubar") | |
1823 | (version "2.3.2") | |
1824 | (source | |
1825 | (origin | |
1826 | ;; Fetch from the git repository, as the gem package doesn't include | |
1827 | ;; the tests. | |
1828 | (method git-fetch) | |
1829 | (uri (git-reference | |
1830 | (url "https://github.com/thekompanee/fuubar.git") | |
1831 | (commit (string-append "releases/v" version)))) | |
1832 | (file-name (git-file-name name version)) | |
1833 | (sha256 | |
1834 | (base32 | |
1835 | "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259")))) | |
1836 | (build-system ruby-build-system) | |
1837 | (arguments | |
1838 | '(;; TODO: Some tests fail, unsure why. | |
1839 | ;; 21 examples, 7 failures | |
1840 | #:tests? #f | |
1841 | #:phases | |
1842 | (modify-phases %standard-phases | |
1843 | (add-before 'build 'delete-certificate | |
1844 | (lambda _ | |
1845 | ;; Remove 's.cert_chain' as we do not build with a private key | |
1846 | (substitute* "fuubar.gemspec" | |
1847 | ((".*cert_chain.*") "") | |
1848 | ((".*signing_key.*") "")) | |
1849 | #t)) | |
1850 | (replace 'check | |
1851 | (lambda* (#:key tests? #:allow-other-keys) | |
1852 | (when tests? | |
1853 | (invoke "rspec")) | |
1854 | #t))))) | |
1855 | (native-inputs | |
1856 | `(("bundler" ,bundler))) | |
1857 | (propagated-inputs | |
1858 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
1859 | ("ruby-progressbar" ,ruby-progressbar))) | |
1860 | (synopsis "Fuubar is an RSpec formatter that uses a progress bar") | |
1861 | (description | |
1862 | "Fuubar is an RSpec formatter that uses a progress bar instead of a | |
1863 | string of letters and dots as feedback. It also stops on the first test | |
1864 | failure.") | |
1865 | (home-page "https://github.com/thekompanee/fuubar") | |
1866 | (license license:expat))) | |
1867 | ||
8ea991e3 CB |
1868 | (define-public ruby-haml |
1869 | (package | |
1870 | (name "ruby-haml") | |
1871 | (version "5.0.4") | |
1872 | (source | |
1873 | (origin | |
1874 | (method url-fetch) | |
1875 | (uri (rubygems-uri "haml" version)) | |
1876 | (sha256 | |
1877 | (base32 | |
1878 | "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac")))) | |
1879 | (build-system ruby-build-system) | |
1880 | (arguments | |
1881 | '(#:tests? #f)) ; No included tests | |
1882 | (propagated-inputs | |
1883 | `(("ruby-tilt" ,ruby-tilt) | |
1884 | ("ruby-temple" ,ruby-temple))) | |
1885 | (synopsis "Haml is a Ruby library to generate HTML documents") | |
1886 | (description | |
1887 | "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of | |
1888 | HTML or XML that is designed to express the structure of documents using | |
1889 | indentation rather than closing tags. It was originally envisioned as a | |
1890 | plugin for Ruby on Rails, but it can function as a stand-alone templating | |
1891 | engine.") | |
1892 | (home-page "http://haml.info/") | |
1893 | (license license:expat))) | |
1894 | ||
353b7eb8 CB |
1895 | (define-public ruby-hamster |
1896 | (package | |
1897 | (name "ruby-hamster") | |
1898 | (version "3.0.0") | |
1899 | (source | |
1900 | (origin | |
1901 | (method url-fetch) | |
1902 | (uri (rubygems-uri "hamster" version)) | |
1903 | (sha256 | |
1904 | (base32 | |
1905 | "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar")))) | |
1906 | (build-system ruby-build-system) | |
1907 | (arguments | |
1908 | '(#:phases | |
1909 | (modify-phases %standard-phases | |
1910 | (add-after 'unpack 'remove-unnecessary-dependencies | |
1911 | (lambda _ | |
1912 | ;; pry is a debugging tool, and is unnecessary when running the | |
1913 | ;; tests | |
1914 | (substitute* "spec/lib/hamster/vector/insert_spec.rb" | |
1915 | (("require 'pry'") "")) | |
1916 | (substitute* "spec/spec_helper.rb" | |
1917 | (("require \"pry\"") "") | |
1918 | ;; CodeClimate is an online service, and is unnecessary for | |
1919 | ;; running the tests | |
1920 | (("require \"codeclimate-test-reporter\"") "") | |
1921 | (("CodeClimate.*\n") "")) | |
1922 | #t)) | |
1923 | ;; No Rakefile is included, so run rspec directly. | |
1924 | (replace 'check | |
1925 | (lambda* (#:key tests? #:allow-other-keys) | |
1926 | (when tests? | |
1927 | (invoke "rspec")) | |
1928 | #t))))) | |
1929 | (propagated-inputs | |
1930 | `(("ruby-concurrent" ,ruby-concurrent))) | |
1931 | (native-inputs | |
1932 | `(("ruby-rspec" ,ruby-rspec))) | |
1933 | (synopsis "Efficient, immutable, thread-safe collection classes for Ruby") | |
1934 | (description | |
1935 | "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector}, | |
1936 | @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an | |
1937 | immutable queue or stack).") | |
1938 | (home-page "https://github.com/hamstergem/hamster") | |
1939 | (license license:expat))) | |
1940 | ||
21781436 CB |
1941 | (define-public ruby-hashdiff |
1942 | (package | |
1943 | (name "ruby-hashdiff") | |
1944 | (version "0.3.8") | |
1945 | (source | |
1946 | (origin | |
1947 | (method url-fetch) | |
1948 | (uri (rubygems-uri "hashdiff" version)) | |
1949 | (sha256 | |
1950 | (base32 | |
1951 | "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask")))) | |
1952 | (build-system ruby-build-system) | |
1953 | (arguments | |
1954 | '(#:phases | |
1955 | (modify-phases %standard-phases | |
1956 | ;; Run tests directly via rspec to avoid Rake issue: | |
1957 | ;; NoMethodError: undefined method `last_comment' | |
1958 | (replace 'check | |
1959 | (lambda* (#:key tests? #:allow-other-keys) | |
1960 | (when tests? | |
1961 | (invoke "rspec")) | |
1962 | #t))))) | |
1963 | (native-inputs | |
1964 | `(("bundler" ,bundler) | |
1965 | ("ruby-rspec" ,ruby-rspec-2))) | |
1966 | (synopsis "HashDiff computes the smallest difference between two hashes") | |
1967 | (description | |
1968 | "HashDiff is a Ruby library to compute the smallest difference between | |
1969 | two hashes.") | |
1970 | (home-page "https://github.com/liufengyun/hashdiff") | |
1971 | (license license:expat))) | |
1972 | ||
3cc8e029 MB |
1973 | (define-public ruby-hydra |
1974 | ;; No releases yet. | |
1975 | (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525") | |
1976 | (revision "0")) | |
1977 | (package | |
1978 | (name "ruby-hydra") | |
1979 | (version (git-version "0.0" revision commit)) | |
1980 | (home-page "https://github.com/hyphenation/hydra") | |
1981 | (source (origin | |
1982 | (method git-fetch) | |
1983 | (uri (git-reference (url home-page) (commit commit))) | |
1984 | (file-name (git-file-name name version)) | |
1985 | (sha256 | |
1986 | (base32 | |
1987 | "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f")))) | |
1988 | (build-system ruby-build-system) | |
1989 | (arguments | |
1990 | '(#:phases (modify-phases %standard-phases | |
1991 | (add-after 'unpack 'make-files-writable | |
1992 | (lambda _ | |
1993 | (for-each make-file-writable (find-files ".")) | |
1994 | #t)) | |
1995 | (replace 'check | |
1996 | (lambda _ | |
1997 | (invoke "rspec")))))) | |
1998 | (native-inputs | |
1999 | `(("ruby-rspec" ,ruby-rspec))) | |
2000 | (propagated-inputs | |
2001 | `(("ruby-byebug" ,ruby-byebug))) | |
2002 | (synopsis "Ruby hyphenation patterns") | |
2003 | (description | |
2004 | "ruby-hydra is a Ruby library for working with hyphenation patterns.") | |
2005 | (license license:expat)))) | |
2006 | ||
7ac4610f RW |
2007 | (define-public ruby-shindo |
2008 | (package | |
2009 | (name "ruby-shindo") | |
2010 | (version "0.3.8") | |
2011 | (source (origin | |
2012 | (method url-fetch) | |
2013 | (uri (rubygems-uri "shindo" version)) | |
2014 | (sha256 | |
2015 | (base32 | |
2016 | "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq")))) | |
2017 | (build-system ruby-build-system) | |
2018 | (arguments | |
2019 | `(#:test-target "shindo_tests" | |
2020 | #:phases | |
2021 | (modify-phases %standard-phases | |
2022 | (add-after 'unpack 'fix-tests | |
0b060e34 CB |
2023 | (lambda _ |
2024 | (substitute* "tests/tests_helper.rb" | |
2025 | (("-rubygems") "")) | |
2026 | (substitute* "Rakefile" | |
2027 | (("system \"shindo") "system \"./bin/shindo") | |
2028 | ;; This test doesn't work, so we disable it. | |
2029 | (("fail \"The build_error test should fail") "#") | |
2030 | ((" -rubygems") "")) | |
2031 | #t))))) | |
7ac4610f RW |
2032 | (propagated-inputs |
2033 | `(("ruby-formatador" ,ruby-formatador))) | |
2034 | (synopsis "Simple depth first Ruby testing") | |
2035 | (description "Shindo is a simple depth first testing library for Ruby.") | |
2036 | (home-page "https://github.com/geemus/shindo") | |
2037 | (license license:expat))) | |
2038 | ||
f13636f2 RW |
2039 | (define-public ruby-rubygems-tasks |
2040 | (package | |
2041 | (name "ruby-rubygems-tasks") | |
2042 | (version "0.2.4") | |
2043 | (source (origin | |
2044 | (method url-fetch) | |
2045 | (uri (rubygems-uri "rubygems-tasks" version)) | |
2046 | (sha256 | |
2047 | (base32 | |
2048 | "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j")))) | |
2049 | (build-system ruby-build-system) | |
2050 | ;; Tests need Internet access. | |
2051 | (arguments `(#:tests? #f)) | |
2052 | (native-inputs | |
2053 | `(("ruby-rspec" ,ruby-rspec) | |
2054 | ("ruby-yard" ,ruby-yard))) | |
2055 | (synopsis "Rake tasks for managing and releasing Ruby Gems") | |
2056 | (description "Rubygems-task provides Rake tasks for managing and releasing | |
2057 | Ruby Gems.") | |
2058 | (home-page "https://github.com/postmodern/rubygems-tasks") | |
2059 | (license license:expat))) | |
2060 | ||
cb6bc5df CB |
2061 | (define-public ruby-rubyzip |
2062 | (package | |
2063 | (name "ruby-rubyzip") | |
2064 | (version "1.2.1") | |
2065 | (source | |
2066 | (origin | |
2067 | (method url-fetch) | |
2068 | (uri (rubygems-uri "rubyzip" version)) | |
2069 | (sha256 | |
2070 | (base32 | |
2071 | "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz")))) | |
2072 | (build-system ruby-build-system) | |
2073 | (arguments | |
2074 | '(#:phases | |
2075 | (modify-phases %standard-phases | |
2076 | (add-before 'check 'patch-tests | |
2077 | (lambda* (#:key inputs #:allow-other-keys) | |
2078 | (substitute* "test/gentestfiles.rb" | |
2079 | (("/usr/bin/zip") | |
2080 | (string-append | |
2081 | (assoc-ref inputs "zip") "/bin/zip"))) | |
2082 | (substitute* "test/input_stream_test.rb" | |
2083 | (("/usr/bin/env ruby") (which "ruby"))) | |
2084 | #t))))) | |
2085 | (native-inputs | |
2086 | `(("bundler" ,bundler) | |
2087 | ("ruby-simplecov" ,ruby-simplecov) | |
2088 | ("zip" ,zip) | |
2089 | ("unzip" ,unzip))) | |
2090 | (synopsis "Ruby module is for reading and writing zip files") | |
2091 | (description | |
2092 | "The rubyzip module provides ways to read from and create zip files.") | |
2093 | (home-page "http://github.com/rubyzip/rubyzip") | |
2094 | (license license:bsd-2))) | |
2095 | ||
58b59742 RW |
2096 | (define-public ruby-simplecov-html |
2097 | (package | |
2098 | (name "ruby-simplecov-html") | |
53fd476f | 2099 | (version "0.10.2") |
58b59742 RW |
2100 | (source (origin |
2101 | (method url-fetch) | |
2102 | (uri (rubygems-uri "simplecov-html" version)) | |
2103 | (sha256 | |
2104 | (base32 | |
53fd476f | 2105 | "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn")))) |
58b59742 | 2106 | (build-system ruby-build-system) |
8b749cf3 | 2107 | (arguments `(#:tests? #f)) ; there are no tests |
58b59742 RW |
2108 | (native-inputs |
2109 | `(("bundler" ,bundler))) | |
2110 | (synopsis "Default HTML formatter for SimpleCov code coverage tool") | |
2111 | (description "This package provides the default HTML formatter for | |
2112 | the SimpleCov code coverage tool for Ruby version 1.9 and above.") | |
2113 | (home-page "https://github.com/colszowka/simplecov-html") | |
2114 | (license license:expat))) | |
2115 | ||
a84fa2ad RW |
2116 | (define-public ruby-simplecov |
2117 | (package | |
2118 | (name "ruby-simplecov") | |
d432682b | 2119 | (version "0.17.1") |
a84fa2ad RW |
2120 | (source (origin |
2121 | (method url-fetch) | |
2122 | (uri (rubygems-uri "simplecov" version)) | |
2123 | (sha256 | |
2124 | (base32 | |
d432682b | 2125 | "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw")))) |
a84fa2ad RW |
2126 | (build-system ruby-build-system) |
2127 | ;; Simplecov depends on rubocop for code style checking at build time. | |
2128 | ;; Rubocop needs simplecov at build time. | |
2129 | (arguments `(#:tests? #f)) | |
2130 | (propagated-inputs | |
2131 | `(("ruby-json" ,ruby-json) | |
2132 | ("ruby-docile" ,ruby-docile) | |
2133 | ("ruby-simplecov-html" ,ruby-simplecov-html))) | |
2134 | (native-inputs | |
2135 | `(("bundler" ,bundler))) | |
2136 | (synopsis "Code coverage framework for Ruby") | |
2137 | (description "SimpleCov is a code coverage framework for Ruby with a | |
2138 | powerful configuration library and automatic merging of coverage across test | |
2139 | suites.") | |
7bf837fd | 2140 | (home-page "https://github.com/colszowka/simplecov") |
a84fa2ad RW |
2141 | (license license:expat))) |
2142 | ||
98b87b82 DT |
2143 | (define-public ruby-useragent |
2144 | (package | |
2145 | (name "ruby-useragent") | |
959d908d | 2146 | (version "0.16.10") |
98b87b82 DT |
2147 | (source (origin |
2148 | (method url-fetch) | |
e83c6d00 | 2149 | (uri (rubygems-uri "useragent" version)) |
98b87b82 DT |
2150 | (sha256 |
2151 | (base32 | |
959d908d | 2152 | "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p")))) |
98b87b82 DT |
2153 | (build-system ruby-build-system) |
2154 | (arguments | |
e83c6d00 | 2155 | '(#:tests? #f)) ; no test suite |
98b87b82 DT |
2156 | (synopsis "HTTP user agent parser for Ruby") |
2157 | (description "UserAgent is a Ruby library that parses and compares HTTP | |
2158 | User Agents.") | |
2159 | (home-page "https://github.com/gshutler/useragent") | |
2160 | (license license:expat))) | |
96086cc5 | 2161 | |
f7e9b2f3 CB |
2162 | (define-public ruby-backports |
2163 | (package | |
2164 | (name "ruby-backports") | |
2165 | (version "3.11.4") | |
2166 | (source | |
2167 | (origin | |
2168 | (method url-fetch) | |
2169 | (uri (rubygems-uri "backports" version)) | |
2170 | (sha256 | |
2171 | (base32 | |
2172 | "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g")))) | |
2173 | (build-system ruby-build-system) | |
2174 | (arguments | |
2175 | '(;; TODO: This should be default, but there is one test failure | |
2176 | #:test-target "all_spec")) | |
2177 | (native-inputs | |
2178 | `(("ruby-mspec" ,ruby-mspec) | |
2179 | ("ruby-activesupport" ,ruby-activesupport))) | |
2180 | (synopsis "Backports of the features in newer Ruby versions") | |
2181 | (description | |
2182 | "Backports enables more compatibility across Ruby versions by providing | |
2183 | backports of some features.") | |
2184 | (home-page "https://github.com/marcandre/backports") | |
2185 | (license license:expat))) | |
2186 | ||
96086cc5 DT |
2187 | (define-public ruby-bacon |
2188 | (package | |
2189 | (name "ruby-bacon") | |
e83c6d00 | 2190 | (version "1.2.0") |
96086cc5 DT |
2191 | (source (origin |
2192 | (method url-fetch) | |
e83c6d00 | 2193 | (uri (rubygems-uri "bacon" version)) |
96086cc5 DT |
2194 | (sha256 |
2195 | (base32 | |
e83c6d00 | 2196 | "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai")))) |
96086cc5 | 2197 | (build-system ruby-build-system) |
96086cc5 DT |
2198 | (synopsis "Small RSpec clone") |
2199 | (description "Bacon is a small RSpec clone providing all essential | |
2200 | features.") | |
2201 | (home-page "https://github.com/chneukirchen/bacon") | |
2202 | (license license:expat))) | |
de59d316 | 2203 | |
a8d2bf3c CB |
2204 | (define-public ruby-bacon-bits |
2205 | (package | |
2206 | (name "ruby-bacon-bits") | |
2207 | (version "0.1.0") | |
2208 | (source | |
2209 | (origin | |
2210 | (method url-fetch) | |
2211 | (uri (rubygems-uri "bacon-bits" version)) | |
2212 | (sha256 | |
2213 | (base32 | |
2214 | "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx")))) | |
2215 | (build-system ruby-build-system) | |
2216 | (arguments | |
2217 | ;; No tests | |
2218 | '(#:tests? #f)) | |
2219 | (propagated-inputs `(("ruby-bacon" ,ruby-bacon))) | |
2220 | (synopsis "Extensions to Bacon, for disabling tests, before and after | |
2221 | blocks and more") | |
2222 | (description | |
2223 | "This extends the bacon testing framework with useful extensions to | |
2224 | disable tests, have before and after blocks that run once and more.") | |
2225 | (home-page "https://github.com/cldwalker/bacon-bits") | |
2226 | (license license:expat))) | |
2227 | ||
65f65889 CB |
2228 | (define-public ruby-bacon-colored-output |
2229 | (package | |
2230 | (name "ruby-bacon-colored-output") | |
2231 | (version "1.1.1") | |
2232 | (source | |
2233 | (origin | |
2234 | (method url-fetch) | |
2235 | (uri (rubygems-uri "bacon-colored_output" version)) | |
2236 | (sha256 | |
2237 | (base32 | |
2238 | "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx")))) | |
2239 | (build-system ruby-build-system) | |
2240 | (arguments | |
2241 | '(;; No included tests | |
2242 | #:tests? #f)) | |
2243 | (propagated-inputs | |
2244 | `(("ruby-bacon" ,ruby-bacon))) | |
2245 | (synopsis "Colored output for Bacon test framework") | |
2246 | (description | |
2247 | "This package adds color through ANSI escape codes to Bacon test | |
2248 | output.") | |
2249 | (home-page "https://github.com/whitequark/bacon-colored_output") | |
2250 | (license license:expat))) | |
2251 | ||
e259bdf0 DT |
2252 | (define-public ruby-connection-pool |
2253 | (package | |
2254 | (name "ruby-connection-pool") | |
58021db4 | 2255 | (version "2.2.2") |
e259bdf0 DT |
2256 | (source (origin |
2257 | (method url-fetch) | |
e83c6d00 | 2258 | (uri (rubygems-uri "connection_pool" version)) |
e259bdf0 DT |
2259 | (sha256 |
2260 | (base32 | |
58021db4 | 2261 | "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68")))) |
e259bdf0 DT |
2262 | (build-system ruby-build-system) |
2263 | (native-inputs | |
2264 | `(("bundler" ,bundler))) | |
2265 | (synopsis "Generic connection pool for Ruby") | |
2266 | (description "Connection_pool provides a generic connection pooling | |
2267 | interface for Ruby programs.") | |
2268 | (home-page "https://github.com/mperham/connection_pool") | |
2269 | (license license:expat))) | |
4c0aeb44 DT |
2270 | |
2271 | (define-public ruby-net-http-persistent | |
2272 | (package | |
2273 | (name "ruby-net-http-persistent") | |
185ea446 | 2274 | (version "3.0.0") |
4c0aeb44 DT |
2275 | (source (origin |
2276 | (method url-fetch) | |
e83c6d00 | 2277 | (uri (rubygems-uri "net-http-persistent" version)) |
4c0aeb44 DT |
2278 | (sha256 |
2279 | (base32 | |
185ea446 | 2280 | "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18")))) |
4c0aeb44 | 2281 | (build-system ruby-build-system) |
4c0aeb44 DT |
2282 | (native-inputs |
2283 | `(("ruby-connection-pool" ,ruby-connection-pool) | |
2284 | ("ruby-hoe" ,ruby-hoe))) | |
2285 | (synopsis "Persistent HTTP connection manager") | |
2286 | (description "Net::HTTP::Persistent manages persistent HTTP connections | |
2287 | using Net::HTTP, supporting reconnection and retry according to RFC 2616.") | |
2288 | (home-page "https://github.com/drbrain/net-http-persistent") | |
2289 | (license license:expat))) | |
afbbdf77 | 2290 | |
f88bacaf RW |
2291 | (define-public ruby-power-assert |
2292 | (package | |
2293 | (name "ruby-power-assert") | |
6754323b | 2294 | (version "1.1.5") |
f88bacaf RW |
2295 | (source (origin |
2296 | (method url-fetch) | |
2297 | (uri (rubygems-uri "power_assert" version)) | |
2298 | (sha256 | |
2299 | (base32 | |
6754323b | 2300 | "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s")))) |
f88bacaf | 2301 | (build-system ruby-build-system) |
6754323b CB |
2302 | (arguments |
2303 | '(#:tests? #f)) ; No included tests | |
f88bacaf RW |
2304 | (native-inputs |
2305 | `(("bundler" ,bundler))) | |
2306 | (synopsis "Assert library with descriptive assertion messages") | |
2307 | (description "Power-assert is an assertion library providing descriptive | |
2308 | assertion messages for tests.") | |
2309 | (home-page "https://github.com/k-tsj/power_assert") | |
2310 | (license (list license:bsd-2 license:ruby)))) | |
2311 | ||
e42e3bfa CB |
2312 | (define-public ruby-powerpack |
2313 | (package | |
2314 | (name "ruby-powerpack") | |
2315 | (version "0.1.2") | |
2316 | (source | |
2317 | (origin | |
2318 | (method url-fetch) | |
2319 | (uri (rubygems-uri "powerpack" version)) | |
2320 | (sha256 | |
2321 | (base32 | |
2322 | "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv")))) | |
2323 | (build-system ruby-build-system) | |
2324 | (arguments | |
2325 | '(#:test-target "spec")) | |
2326 | (native-inputs | |
2327 | `(("bundler" ,bundler) | |
2328 | ("ruby-rspec" ,ruby-rspec) | |
2329 | ("ruby-yard" ,ruby-yard))) | |
2330 | (synopsis "Useful extensions to core Ruby classes") | |
2331 | (description | |
2332 | "This package provides a few useful extensions to core Ruby classes, | |
2333 | including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and | |
2334 | @code{String}.") | |
2335 | (home-page "https://github.com/bbatsov/powerpack") | |
2336 | (license license:expat))) | |
2337 | ||
347eb21e RW |
2338 | (define-public ruby-locale |
2339 | (package | |
2340 | (name "ruby-locale") | |
2341 | (version "2.1.2") | |
2342 | (source (origin | |
2343 | (method url-fetch) | |
2344 | (uri (rubygems-uri "locale" version)) | |
2345 | (sha256 | |
2346 | (base32 | |
2347 | "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x")))) | |
2348 | (build-system ruby-build-system) | |
2349 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga, | |
2350 | ;; which needs ruby-gettext, which needs ruby-locale. To break the | |
2351 | ;; dependency cycle we disable tests. | |
2352 | (arguments `(#:tests? #f)) | |
2353 | (native-inputs | |
2354 | `(("bundler" ,bundler) | |
2355 | ("ruby-yard" ,ruby-yard))) | |
2356 | (synopsis "Ruby library providing basic localization APIs") | |
2357 | (description | |
2358 | "Ruby-Locale is the pure ruby library which provides basic APIs for | |
2359 | localization.") | |
2360 | (home-page "https://github.com/ruby-gettext/locale") | |
2361 | (license (list license:lgpl3+ license:ruby)))) | |
2362 | ||
09e2b0af CB |
2363 | (define-public ruby-temple |
2364 | (package | |
2365 | (name "ruby-temple") | |
2366 | (version "0.8.1") | |
2367 | (source | |
2368 | (origin | |
2369 | (method url-fetch) | |
2370 | (uri (rubygems-uri "temple" version)) | |
2371 | (sha256 | |
2372 | (base32 | |
2373 | "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09")))) | |
2374 | (build-system ruby-build-system) | |
2375 | (native-inputs | |
2376 | `(("ruby-tilt" ,ruby-tilt) | |
2377 | ("ruby-bacon" ,ruby-bacon) | |
2378 | ("ruby-erubis" ,ruby-erubis))) | |
2379 | (synopsis "Template compilation framework in Ruby") | |
2380 | (description | |
2381 | "Temple is an abstraction and framework for compiling templates to pure | |
2382 | Ruby.") | |
2383 | (home-page "https://github.com/judofyr/temple") | |
2384 | (license license:expat))) | |
2385 | ||
e2333ea3 RW |
2386 | (define-public ruby-text |
2387 | (package | |
2388 | (name "ruby-text") | |
2389 | (version "1.3.1") | |
2390 | (source (origin | |
2391 | (method url-fetch) | |
2392 | (uri (rubygems-uri "text" version)) | |
2393 | (sha256 | |
2394 | (base32 | |
2395 | "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg")))) | |
2396 | (build-system ruby-build-system) | |
2397 | (synopsis "Collection of text algorithms for Ruby") | |
2398 | (description | |
2399 | "This package provides a collection of text algorithms: Levenshtein, | |
2400 | Soundex, Metaphone, Double Metaphone, Porter Stemming.") | |
7bf837fd | 2401 | (home-page "https://github.com/threedaymonk/text") |
e2333ea3 RW |
2402 | (license license:expat))) |
2403 | ||
c1f52261 RW |
2404 | (define-public ruby-gettext |
2405 | (package | |
2406 | (name "ruby-gettext") | |
2407 | (version "3.1.7") | |
2408 | (source (origin | |
2409 | (method url-fetch) | |
2410 | (uri (rubygems-uri "gettext" version)) | |
2411 | (sha256 | |
2412 | (base32 | |
2413 | "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq")))) | |
2414 | (build-system ruby-build-system) | |
2415 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga, | |
2416 | ;; which needs ruby-gettext. To break the dependency cycle we disable | |
2417 | ;; tests. | |
2418 | (arguments `(#:tests? #f)) | |
2419 | (propagated-inputs | |
2420 | `(("ruby-locale" ,ruby-locale) | |
2421 | ("ruby-text" ,ruby-text))) | |
2422 | (native-inputs | |
2423 | `(("bundler" ,bundler) | |
2424 | ("ruby-yard" ,ruby-yard))) | |
2425 | (synopsis "GNU gettext-like program for Ruby") | |
2426 | (description | |
2427 | "Gettext is a GNU gettext-like program for Ruby. The catalog | |
2428 | file (po-file) used is the same as that used by GNU gettext, allowing you to | |
2429 | use GNU gettext tools for maintenance.") | |
2f3800e5 | 2430 | (home-page "https://ruby-gettext.github.com/") |
c1f52261 RW |
2431 | (license (list license:lgpl3+ license:ruby)))) |
2432 | ||
cc5aeb8c RW |
2433 | (define-public ruby-packnga |
2434 | (package | |
2435 | (name "ruby-packnga") | |
1d60c436 | 2436 | (version "1.0.4") |
cc5aeb8c RW |
2437 | (source (origin |
2438 | (method url-fetch) | |
2439 | (uri (rubygems-uri "packnga" version)) | |
2440 | (sha256 | |
2441 | (base32 | |
1d60c436 | 2442 | "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4")))) |
cc5aeb8c RW |
2443 | (build-system ruby-build-system) |
2444 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga. | |
2445 | ;; To break the dependency cycle we disable tests. | |
2446 | (arguments `(#:tests? #f)) | |
2447 | (propagated-inputs | |
2448 | `(("ruby-gettext" ,ruby-gettext) | |
2449 | ("ruby-yard" ,ruby-yard))) | |
2450 | (native-inputs | |
2451 | `(("bundler" ,bundler))) | |
2452 | (synopsis "Utility library to package internationalized libraries") | |
2453 | (description | |
2454 | "Packnga is a library to translate to many languages using YARD.") | |
2455 | (home-page "http://ranguba.org/packnga/") | |
2456 | (license license:lgpl2.0+))) | |
2457 | ||
93dc8684 CB |
2458 | (define-public ruby-test-construct |
2459 | (package | |
2460 | (name "ruby-test-construct") | |
2461 | (version "2.0.1") | |
2462 | (source | |
2463 | (origin | |
2464 | (method url-fetch) | |
2465 | (uri (rubygems-uri "test_construct" version)) | |
2466 | (sha256 | |
2467 | (base32 | |
2468 | "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj")))) | |
2469 | (build-system ruby-build-system) | |
2470 | (native-inputs | |
2471 | `(("bundler" ,bundler) | |
2472 | ("ruby-mocha" ,ruby-mocha) | |
2473 | ("ruby-rspec" ,ruby-rspec))) | |
2474 | (synopsis "Creates temporary files and directories for testing") | |
2475 | (description | |
2476 | "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating | |
2477 | temporary files and directories during tests.") | |
2478 | (home-page "https://github.com/bhb/test_construct") | |
2479 | (license license:expat))) | |
2480 | ||
3383f5bd RW |
2481 | (define-public ruby-test-unit |
2482 | (package | |
2483 | (name "ruby-test-unit") | |
d74d96e4 | 2484 | (version "3.2.5") |
3383f5bd RW |
2485 | (source (origin |
2486 | (method url-fetch) | |
2487 | (uri (rubygems-uri "test-unit" version)) | |
2488 | (sha256 | |
2489 | (base32 | |
d74d96e4 | 2490 | "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52")))) |
3383f5bd RW |
2491 | (build-system ruby-build-system) |
2492 | (propagated-inputs | |
2493 | `(("ruby-power-assert" ,ruby-power-assert))) | |
2494 | (native-inputs | |
2495 | `(("bundler" ,bundler) | |
2496 | ("ruby-packnga" ,ruby-packnga) | |
2497 | ("ruby-yard" ,ruby-yard))) | |
2498 | (synopsis "Unit testing framework for Ruby") | |
2499 | (description "@code{Test::Unit} is unit testing framework for Ruby, based | |
2500 | on xUnit principles. These were originally designed by Kent Beck, creator of | |
2501 | extreme programming software development methodology, for Smalltalk's SUnit. | |
2502 | It allows writing tests, checking results and automated testing in Ruby.") | |
2f3800e5 | 2503 | (home-page "https://test-unit.github.io/") |
3383f5bd RW |
2504 | (license (list license:psfl license:ruby)))) |
2505 | ||
76b732fb CB |
2506 | (define-public ruby-markaby |
2507 | (package | |
2508 | (name "ruby-markaby") | |
2509 | (version "0.9.0") | |
2510 | (source | |
2511 | (origin | |
2512 | (method url-fetch) | |
2513 | (uri (rubygems-uri "markaby" version)) | |
2514 | (sha256 | |
2515 | (base32 | |
2516 | "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i")))) | |
2517 | (build-system ruby-build-system) | |
2518 | (arguments | |
2519 | '(#:phases | |
2520 | (modify-phases %standard-phases | |
2521 | ;; Run rspec manually without using the Rakefile, as the versions of | |
2522 | ;; Rake and RSpec 2 are incompatible: | |
2523 | ;; | |
2524 | ;; NoMethodError: undefined method `last_comment' | |
2525 | (replace 'check | |
2526 | (lambda* (#:key tests? #:allow-other-keys) | |
2527 | (when tests? | |
2528 | (invoke "rspec")) | |
2529 | #t))))) | |
2530 | (propagated-inputs | |
2531 | `(("ruby-builder" ,ruby-builder))) | |
2532 | (native-inputs | |
2533 | `(("bundler" ,bundler) | |
2534 | ("ruby-rspec" ,ruby-rspec-2))) | |
2535 | (synopsis "Write HTML pages in pure Ruby") | |
2536 | (description | |
2537 | "Markaby allows writing HTML packages in pure Ruby. This is similar to | |
e54af322 | 2538 | the functionality provided by @acronym{ERB, Embedded Ruby}, but without the |
76b732fb | 2539 | mixture of HTML and additional ERB syntax.") |
41181b76 | 2540 | (home-page "https://markaby.github.io/") |
76b732fb CB |
2541 | (license license:expat))) |
2542 | ||
b9511aa9 CB |
2543 | (define-public ruby-maruku |
2544 | (package | |
2545 | (name "ruby-maruku") | |
2546 | (version "0.7.3") | |
2547 | (source | |
2548 | (origin | |
2549 | (method url-fetch) | |
2550 | (uri (rubygems-uri "maruku" version)) | |
2551 | (sha256 | |
2552 | (base32 | |
2553 | "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x")))) | |
2554 | (build-system ruby-build-system) | |
2555 | (arguments | |
2556 | '(;; TODO: 3 tests seem to fail due to HTML encoding issues | |
2557 | #:tests? #f | |
2558 | #:phases | |
2559 | (modify-phases %standard-phases | |
2560 | (replace 'check | |
2561 | (lambda* (#:key tests? #:allow-other-keys) | |
2562 | (when tests? | |
2563 | (invoke "rspec")) | |
2564 | #t))))) | |
2565 | (native-inputs | |
2566 | `(("ruby-rspec" ,ruby-rspec) | |
2567 | ("ruby-simplecov" ,ruby-simplecov) | |
2568 | ("ruby-nokogiri-diff" ,ruby-nokogiri-diff))) | |
2569 | (synopsis "Markdown interpreter in Ruby") | |
2570 | (description | |
2571 | "Maruku is a Markdown interpreter in Ruby. It can export Markdown to | |
2572 | HTML, and PDF through LaTeX.") | |
2573 | (home-page "https://github.com/bhollis/maruku") | |
2574 | (license license:expat))) | |
2575 | ||
25d6d49b RW |
2576 | (define-public ruby-metaclass |
2577 | (package | |
2578 | (name "ruby-metaclass") | |
2579 | (version "0.0.4") | |
2580 | (source (origin | |
2581 | (method url-fetch) | |
2582 | (uri (rubygems-uri "metaclass" version)) | |
2583 | (sha256 | |
2584 | (base32 | |
2585 | "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5")))) | |
2586 | (build-system ruby-build-system) | |
2587 | (arguments | |
2588 | `(#:phases | |
2589 | (modify-phases %standard-phases | |
2590 | (add-after 'unpack 'add-test-unit-to-search-path | |
761e7042 | 2591 | (lambda* (#:key inputs #:allow-other-keys) |
3cb3fa67 | 2592 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
2593 | (substitute* "Rakefile" |
2594 | (("t\\.libs << \"test\"" line) | |
2595 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 2596 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
2597 | "/gems/test-unit-" |
2598 | ,(package-version ruby-test-unit) | |
2599 | "/lib\"")))) | |
2600 | #t))))) | |
25d6d49b RW |
2601 | (native-inputs |
2602 | `(("bundler" ,bundler) | |
2603 | ("ruby-test-unit" ,ruby-test-unit))) | |
2604 | (synopsis "Ruby library adding metaclass method to all objects") | |
2605 | (description | |
2606 | "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby | |
2607 | objects.") | |
7bf837fd | 2608 | (home-page "https://github.com/floehopper/metaclass") |
25d6d49b RW |
2609 | (license license:expat))) |
2610 | ||
1d1d20b0 CB |
2611 | (define-public ruby-mspec |
2612 | (package | |
2613 | (name "ruby-mspec") | |
2614 | (version "1.9.1") | |
2615 | (source | |
2616 | (origin | |
2617 | (method url-fetch) | |
2618 | (uri (rubygems-uri "mspec" version)) | |
2619 | (sha256 | |
2620 | (base32 | |
2621 | "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd")))) | |
2622 | (build-system ruby-build-system) | |
2623 | (arguments | |
2624 | '(;; TODO: 3 test failures | |
2625 | ;; ./spec/mocks/mock_spec.rb:82 | |
2626 | ;; ./spec/utils/name_map_spec.rb:151 | |
2627 | ;; ./spec/utils/name_map_spec.rb:155 | |
2628 | #:tests? #f | |
2629 | #:phases | |
2630 | (modify-phases %standard-phases | |
2631 | (add-after 'extract-gemspec 'change-dependency-constraints | |
2632 | (lambda _ | |
2633 | (substitute* "mspec.gemspec" | |
2634 | (("rake.*") "rake>)\n") | |
2635 | (("rspec.*") "rspec>)\n")) | |
2636 | #t)) | |
2637 | (replace 'check | |
2638 | (lambda* (#:key tests? #:allow-other-keys) | |
2639 | (when tests? | |
2640 | (invoke "rspec" "spec")) | |
2641 | #t))))) | |
2642 | (native-inputs | |
2643 | `(("bundler" ,bundler) | |
2644 | ("ruby-rake" ,ruby-rake) | |
2645 | ("ruby-rspec" ,ruby-rspec))) | |
2646 | (synopsis "MSpec is a specialized framework for RubySpec") | |
2647 | (description | |
2648 | "MSpec is a specialized framework that is syntax-compatible with RSpec 2 | |
2649 | for basic features. MSpec contains additional features that assist in writing | |
2650 | specs for Ruby implementations in ruby/spec.") | |
2651 | (home-page "http://rubyspec.org") | |
2652 | (license license:expat))) | |
2653 | ||
b8aecc31 CB |
2654 | (define-public ruby-mysql2 |
2655 | (package | |
2656 | (name "ruby-mysql2") | |
2657 | (version "0.5.2") | |
2658 | (source | |
2659 | (origin | |
2660 | (method git-fetch) | |
2661 | (uri (git-reference | |
2662 | (url "https://github.com/brianmario/mysql2.git") | |
2663 | (commit version))) | |
2664 | (file-name (git-file-name name version)) | |
2665 | (sha256 | |
2666 | (base32 | |
2667 | "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv")))) | |
2668 | (build-system ruby-build-system) | |
2669 | (arguments | |
2670 | '(;; TODO: Tests require a running MySQL/MariaDB service | |
2671 | #:tests? #f | |
2672 | #:phases | |
2673 | (modify-phases %standard-phases | |
2674 | (replace 'replace-git-ls-files | |
2675 | (lambda _ | |
2676 | (substitute* "mysql2.gemspec" | |
2677 | (("git ls-files .*`") "find . -type f |sort`")) | |
2678 | #t)) | |
2679 | (add-before 'install 'set-MAKEFLAGS | |
2680 | (lambda* (#:key outputs #:allow-other-keys) | |
2681 | (setenv "MAKEFLAGS" | |
2682 | (string-append | |
2683 | "V=1 " | |
2684 | "prefix=" (assoc-ref outputs "out"))) | |
2685 | #t)) | |
2686 | ;; Move the 'check phase to after 'install, as then you can test | |
2687 | ;; using the installed mysql2 gem in the store. | |
2688 | (delete 'check) | |
2689 | (add-after 'install 'check | |
2690 | (lambda* (#:key outputs tests? #:allow-other-keys) | |
2691 | (setenv "GEM_PATH" | |
2692 | (string-append | |
2693 | (getenv "GEM_PATH") | |
2694 | ":" | |
2695 | (assoc-ref outputs "out") "/lib/ruby/vendor_ruby")) | |
2696 | (when tests? | |
2697 | (invoke "rspec")) | |
2698 | #t))))) | |
2699 | (inputs | |
2b8491fb JL |
2700 | `(("mariadb" ,mariadb "lib") |
2701 | ("mariadb-dev" ,mariadb "dev") | |
b8aecc31 CB |
2702 | ("zlib" ,zlib))) |
2703 | (native-inputs | |
2704 | `(("ruby-rspec" ,ruby-rspec) | |
2705 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
2706 | (synopsis "MySQL library for Ruby, binding to libmysql") | |
2707 | (description | |
2708 | "This package provides a simple, fast MySQL library for Ruby, binding to | |
2709 | libmysql.") | |
2710 | (home-page "https://github.com/brianmario/mysql2") | |
2711 | (license license:expat))) | |
2712 | ||
21f7b7bd RW |
2713 | (define-public ruby-blankslate |
2714 | (package | |
2715 | (name "ruby-blankslate") | |
2716 | (version "3.1.3") | |
2717 | (source (origin | |
2718 | (method url-fetch) | |
2719 | (uri (rubygems-uri "blankslate" version)) | |
2720 | (sha256 | |
2721 | (base32 | |
2722 | "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx")))) | |
2723 | (build-system ruby-build-system) | |
2724 | (arguments | |
2725 | `(#:phases | |
2726 | (modify-phases %standard-phases | |
2727 | (replace 'check | |
9923d5a4 | 2728 | (lambda _ (invoke "rspec" "spec/")))))) |
21f7b7bd RW |
2729 | (native-inputs |
2730 | `(("bundler" ,bundler) | |
2731 | ("ruby-rspec" ,ruby-rspec))) | |
2732 | (synopsis "Abstract base class with no predefined methods") | |
2733 | (description | |
2734 | "BlankSlate provides an abstract base class with no predefined | |
2735 | methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful | |
2736 | as a base class when writing classes that depend upon | |
2737 | @code{method_missing} (e.g. dynamic proxies).") | |
7bf837fd | 2738 | (home-page "https://github.com/masover/blankslate") |
21f7b7bd RW |
2739 | (license license:expat))) |
2740 | ||
afdb437c CB |
2741 | (define-public ruby-bond |
2742 | (package | |
2743 | (name "ruby-bond") | |
2744 | (version "0.5.1") | |
2745 | (source | |
2746 | (origin | |
2747 | (method url-fetch) | |
2748 | (uri (rubygems-uri "bond" version)) | |
2749 | (sha256 | |
2750 | (base32 | |
2751 | "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90")))) | |
2752 | (build-system ruby-build-system) | |
2753 | (native-inputs | |
2754 | `(("ruby-bacon" ,ruby-bacon) | |
2755 | ("ruby-bacon-bits" ,ruby-bacon-bits) | |
2756 | ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon))) | |
2757 | (synopsis "Bond can provide custom autocompletion for arguments, methods | |
2758 | and more") | |
2759 | (description | |
2760 | "Bond can autocomplete argument(s) to methods, uniquely completing per | |
2761 | module, per method and per argument. Bond provides a configuration system and | |
2762 | a DSL for creating custom completions and completion rules. Bond can also | |
2763 | load completions that ship with gems. Bond is able to offer more than irb's | |
2764 | completion since it uses the full line of input when completing as opposed to | |
2765 | irb's last-word approach.") | |
2766 | (home-page "http://tagaholic.me/bond/") | |
2767 | (license license:expat))) | |
2768 | ||
f3d7bb93 CB |
2769 | (define-public ruby-idn-ruby |
2770 | (package | |
2771 | (name "ruby-idn-ruby") | |
2772 | (version "0.1.0") | |
2773 | (source | |
2774 | (origin | |
2775 | (method url-fetch) | |
2776 | (uri (rubygems-uri "idn-ruby" version)) | |
2777 | (sha256 | |
2778 | (base32 | |
2779 | "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr")))) | |
2780 | (build-system ruby-build-system) | |
2781 | (arguments | |
2782 | '(#:phases | |
2783 | (modify-phases %standard-phases | |
2784 | (delete 'check) | |
2785 | (add-after 'install 'check | |
2786 | (lambda* (#:key tests? outputs #:allow-other-keys) | |
2787 | (when tests? | |
2788 | (let* ((gem-file (cadr (find-files "." "\\.gem"))) | |
2789 | (name-and-version (basename gem-file ".gem"))) | |
2790 | (apply invoke | |
2791 | "ruby" "--verbose" | |
2792 | (string-append "-I" | |
2793 | (assoc-ref outputs "out") | |
2794 | "/lib/ruby/vendor_ruby/gems/" | |
2795 | name-and-version | |
2796 | "/lib") | |
2797 | (find-files "./test" ".*\\.rb")))) | |
2798 | #t))))) | |
2799 | (inputs | |
2800 | `(("libidn" ,libidn))) | |
2801 | (synopsis "Ruby Bindings for the GNU LibIDN library") | |
2802 | (description | |
2803 | "Ruby Bindings for the GNU LibIDN library, an implementation of the | |
2804 | Stringprep, Punycode and IDNA specifications. These are used to encode and | |
2805 | decode internationalized domain + names according to the IDNA2003 | |
2806 | specifications. | |
2807 | ||
2808 | Included are the most important parts of the Stringprep, Punycode and IDNA | |
2809 | APIs like performing Stringprep processings, encoding to and decoding from | |
2810 | Punycode strings and converting entire domain names to and from the ACE | |
2811 | encoded form.") | |
2812 | (home-page "https://github.com/deepfryed/idn-ruby") | |
2813 | (license license:asl2.0))) | |
2814 | ||
4016ba3f RW |
2815 | (define-public ruby-instantiator |
2816 | (package | |
2817 | (name "ruby-instantiator") | |
688c9076 | 2818 | (version "0.0.7") |
4016ba3f RW |
2819 | (source (origin |
2820 | (method url-fetch) | |
2821 | (uri (rubygems-uri "instantiator" version)) | |
2822 | (sha256 | |
2823 | (base32 | |
688c9076 | 2824 | "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr")))) |
4016ba3f RW |
2825 | (build-system ruby-build-system) |
2826 | (arguments | |
2827 | `(#:phases | |
2828 | (modify-phases %standard-phases | |
2829 | (add-after 'unpack 'add-test-unit-to-search-path | |
761e7042 | 2830 | (lambda* (#:key inputs #:allow-other-keys) |
3cb3fa67 | 2831 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
2832 | (substitute* "Rakefile" |
2833 | (("t\\.libs << \"test\"" line) | |
2834 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 2835 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
2836 | "/gems/test-unit-" |
2837 | ,(package-version ruby-test-unit) | |
2838 | "/lib\"")))) | |
2839 | #t))))) | |
4016ba3f RW |
2840 | (propagated-inputs |
2841 | `(("ruby-blankslate" ,ruby-blankslate))) | |
2842 | (native-inputs | |
2843 | `(("bundler" ,bundler) | |
2844 | ("ruby-test-unit" ,ruby-test-unit))) | |
2845 | (synopsis "Instantiate an arbitrary Ruby class") | |
2846 | (description | |
2847 | "Instantiator lets you instantiate an arbitrary Ruby class without | |
2848 | knowing anything about the constructor.") | |
2849 | (home-page "https://github.com/floehopper/instantiator") | |
2850 | (license license:expat))) | |
2851 | ||
97aee8d3 RW |
2852 | (define-public ruby-introspection |
2853 | (package | |
2854 | (name "ruby-introspection") | |
98ff58a5 | 2855 | (version "0.0.4") |
97aee8d3 RW |
2856 | (source (origin |
2857 | (method url-fetch) | |
2858 | (uri (rubygems-uri "introspection" version)) | |
2859 | (sha256 | |
2860 | (base32 | |
98ff58a5 | 2861 | "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca")))) |
97aee8d3 RW |
2862 | (build-system ruby-build-system) |
2863 | (arguments | |
2864 | `(#:phases | |
2865 | (modify-phases %standard-phases | |
2866 | (add-after 'unpack 'add-test-unit-to-search-path | |
2867 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 2868 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
2869 | (substitute* "Rakefile" |
2870 | (("t\\.libs << \"test\"" line) | |
2871 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 2872 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
2873 | "/gems/test-unit-" |
2874 | ,(package-version ruby-test-unit) | |
2875 | "/lib\"")))) | |
97aee8d3 RW |
2876 | #t))))) |
2877 | (propagated-inputs | |
2878 | `(("ruby-instantiator" ,ruby-instantiator) | |
2879 | ("ruby-metaclass" ,ruby-metaclass))) | |
2880 | (native-inputs | |
2881 | `(("bundler" ,bundler) | |
2882 | ("ruby-blankslate" ,ruby-blankslate) | |
2883 | ("ruby-test-unit" ,ruby-test-unit))) | |
2884 | (synopsis "Dynamic inspection of the method hierarchy on a Ruby object") | |
2885 | (description | |
2886 | "Introspection provides tools to inspect the hierarchy of method | |
2887 | definitions on a Ruby object.") | |
2888 | (home-page "https://github.com/floehopper/introspection") | |
2889 | (license license:expat))) | |
2890 | ||
d93062fd RW |
2891 | (define-public ruby-redcarpet |
2892 | (package | |
2893 | (name "ruby-redcarpet") | |
ba4084bb | 2894 | (version "3.5.0") |
d93062fd RW |
2895 | (source (origin |
2896 | (method url-fetch) | |
2897 | (uri (rubygems-uri "redcarpet" version)) | |
2898 | (sha256 | |
2899 | (base32 | |
ba4084bb | 2900 | "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k")))) |
d93062fd RW |
2901 | (build-system ruby-build-system) |
2902 | (arguments | |
2903 | `(#:phases | |
2904 | (modify-phases %standard-phases | |
2905 | ;; The gem archive does not include the conformance tests. | |
2906 | (add-after 'unpack 'disable-conformance-tests | |
2907 | (lambda _ | |
2908 | (substitute* "Rakefile" | |
2909 | (("task :test => %w\\[test:unit test:conformance\\]") | |
2910 | "task :test => %w[test:unit]")) | |
2911 | #t))))) | |
2912 | (native-inputs | |
2913 | `(("bundler" ,bundler) | |
2914 | ("ruby-test-unit" ,ruby-test-unit) | |
2915 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
2916 | (synopsis "Extensible Markdown to (X)HTML converter") | |
2917 | (description | |
2918 | "Redcarpet is an extensible Ruby library for Markdown processing and | |
2919 | conversion to (X)HTML.") | |
7bf837fd | 2920 | (home-page "https://github.com/vmg/redcarpet") |
d93062fd RW |
2921 | (license license:expat))) |
2922 | ||
09924294 CB |
2923 | (define-public ruby-rerun |
2924 | (package | |
2925 | (name "ruby-rerun") | |
2926 | (version "0.13.0") | |
2927 | (source | |
2928 | (origin | |
2929 | (method url-fetch) | |
2930 | (uri (rubygems-uri "rerun" version)) | |
2931 | (sha256 | |
2932 | (base32 | |
2933 | "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz")))) | |
2934 | (build-system ruby-build-system) | |
2935 | (arguments | |
2936 | '(#:tests? #f)) ; No included tests | |
2937 | (propagated-inputs | |
2938 | `(("ruby-listen" ,ruby-listen))) | |
2939 | (synopsis "Run a process, and restart when some monitored files change") | |
2940 | (description | |
52beae7b | 2941 | "Rerun is a tool to launch programs, then monitor the file system, and |
09924294 CB |
2942 | restart the program when any of the monitored files change. It's written in |
2943 | Ruby, but can be used for all programs.") | |
2944 | (home-page "https://github.com/alexch/rerun/") | |
2945 | (license license:expat))) | |
2946 | ||
4f2a52ae RW |
2947 | (define-public ruby-mocha |
2948 | (package | |
2949 | (name "ruby-mocha") | |
2950 | (version "1.1.0") | |
2951 | (source (origin | |
2952 | (method url-fetch) | |
2953 | (uri (rubygems-uri "mocha" version)) | |
2954 | (sha256 | |
2955 | (base32 | |
2956 | "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi")))) | |
2957 | (build-system ruby-build-system) | |
2958 | (arguments | |
2959 | `(#:phases | |
2960 | (modify-phases %standard-phases | |
2961 | (add-after 'unpack 'add-test-unit-to-search-path | |
2962 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 2963 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
2964 | (substitute* "Rakefile" |
2965 | (("t\\.libs << 'test'" line) | |
2966 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 2967 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
2968 | "/gems/test-unit-" |
2969 | ,(package-version ruby-test-unit) | |
2970 | "/lib\"")))) | |
4f2a52ae RW |
2971 | #t)) |
2972 | (add-before 'check 'use-latest-redcarpet | |
2973 | (lambda _ | |
2974 | (substitute* "mocha.gemspec" | |
71596c3c BW |
2975 | (("<redcarpet>.freeze, \\[\"~> 1\"\\]") |
2976 | "<redcarpet>.freeze, [\">= 3\"]")) | |
4f2a52ae RW |
2977 | #t)) |
2978 | (add-before 'check 'hardcode-version | |
2979 | (lambda _ | |
2980 | ;; Mocha is undefined at build time | |
2981 | (substitute* "Rakefile" | |
2982 | (("#\\{Mocha::VERSION\\}") ,version)) | |
2983 | #t)) | |
2984 | (add-before 'check 'remove-failing-test | |
2985 | ;; FIXME: This test fails for reasons unrelated to Guix packaging. | |
2986 | (lambda _ | |
2987 | (delete-file "test/acceptance/stubbing_nil_test.rb") | |
2988 | #t))))) | |
2989 | (propagated-inputs | |
2990 | `(("ruby-metaclass" ,ruby-metaclass))) | |
2991 | (native-inputs | |
2992 | `(("bundler" ,bundler) | |
2993 | ("ruby-yard" ,ruby-yard) | |
2994 | ("ruby-introspection" ,ruby-introspection) | |
2995 | ("ruby-test-unit" ,ruby-test-unit) | |
2996 | ("ruby-redcarpet" ,ruby-redcarpet))) | |
2997 | (synopsis "Mocking and stubbing library for Ruby") | |
2998 | (description | |
2999 | "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which | |
3000 | allows mocking and stubbing of methods on real (non-mock) classes.") | |
3001 | (home-page "http://gofreerange.com/mocha/docs") | |
3002 | (license license:expat))) | |
3003 | ||
cf646acf CB |
3004 | (define-public ruby-mocha-on-bacon |
3005 | (package | |
3006 | (name "ruby-mocha-on-bacon") | |
3007 | (version "0.2.3") | |
3008 | (source | |
3009 | (origin | |
3010 | (method url-fetch) | |
3011 | (uri (rubygems-uri "mocha-on-bacon" version)) | |
3012 | (sha256 | |
3013 | (base32 | |
3014 | "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp")))) | |
3015 | (build-system ruby-build-system) | |
3016 | (arguments | |
3017 | ;; rubygems.org release missing tests | |
3018 | '(#:tests? #f)) | |
3019 | (propagated-inputs `(("ruby-mocha" ,ruby-mocha))) | |
3020 | (synopsis "Mocha adapter for Bacon") | |
3021 | (description | |
3022 | "This package provides a Mocha adapter for Bacon, allowing you to use the | |
3023 | Mocha stubbing and mocking library with Bacon, a small RSpec clone.") | |
3024 | (home-page | |
3025 | "https://github.com/alloy/mocha-on-bacon") | |
3026 | (license license:expat))) | |
3027 | ||
2c84ba7e RW |
3028 | (define-public ruby-net-ssh |
3029 | (package | |
3030 | (name "ruby-net-ssh") | |
5803f872 | 3031 | (version "4.2.0") |
2c84ba7e RW |
3032 | (source (origin |
3033 | (method url-fetch) | |
3034 | (uri (rubygems-uri "net-ssh" version)) | |
3035 | (sha256 | |
3036 | (base32 | |
5803f872 | 3037 | "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx")))) |
2c84ba7e RW |
3038 | (build-system ruby-build-system) |
3039 | (native-inputs | |
a7938625 MB |
3040 | `(("bundler" ,bundler) |
3041 | ("ruby-mocha" ,ruby-mocha) | |
2c84ba7e RW |
3042 | ("ruby-test-unit" ,ruby-test-unit))) |
3043 | (synopsis "Ruby implementation of the SSH2 client protocol") | |
3044 | (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2 | |
3045 | client protocol. It allows you to write programs that invoke and interact | |
3046 | with processes on remote servers, via SSH2.") | |
3047 | (home-page "https://github.com/net-ssh/net-ssh") | |
3048 | (license license:expat))) | |
3049 | ||
d38755cb DM |
3050 | (define-public ruby-net-scp |
3051 | (package | |
3052 | (name "ruby-net-scp") | |
3053 | ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4. | |
3054 | (version "1.2.2.rc2") | |
3055 | (source | |
3056 | (origin | |
e405f996 TGR |
3057 | (method git-fetch) |
3058 | (uri (git-reference | |
3059 | (url "https://github.com/net-ssh/net-scp.git") | |
3060 | (commit (string-append "v" version)))) | |
3061 | (file-name (git-file-name name version)) | |
d38755cb | 3062 | (sha256 |
e405f996 | 3063 | (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx")))) |
d38755cb DM |
3064 | (build-system ruby-build-system) |
3065 | (native-inputs | |
3066 | `(("bundler" ,bundler) | |
3067 | ("ruby-test-unit" ,ruby-test-unit) | |
3068 | ("ruby-mocha" ,ruby-mocha))) | |
3069 | (propagated-inputs | |
3070 | `(("ruby-net-ssh" ,ruby-net-ssh))) | |
3071 | (synopsis "Pure-Ruby SCP client library") | |
3072 | (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP | |
3073 | client protocol.") | |
3074 | (home-page "https://github.com/net-ssh/net-scp") | |
3075 | (license license:expat))) | |
3076 | ||
2206e948 DT |
3077 | (define-public ruby-minitest |
3078 | (package | |
3079 | (name "ruby-minitest") | |
88a105c1 | 3080 | (version "5.11.3") |
2206e948 | 3081 | (source (origin |
e83c6d00 DT |
3082 | (method url-fetch) |
3083 | (uri (rubygems-uri "minitest" version)) | |
2206e948 DT |
3084 | (sha256 |
3085 | (base32 | |
88a105c1 | 3086 | "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq")))) |
2206e948 | 3087 | (build-system ruby-build-system) |
2206e948 DT |
3088 | (native-inputs |
3089 | `(("ruby-hoe" ,ruby-hoe))) | |
3090 | (synopsis "Small test suite library for Ruby") | |
3091 | (description "Minitest provides a complete suite of Ruby testing | |
3092 | facilities supporting TDD, BDD, mocking, and benchmarking.") | |
3093 | (home-page "https://github.com/seattlerb/minitest") | |
3094 | (license license:expat))) | |
3095 | ||
1db6e09f RW |
3096 | ;; This is the last release of Minitest 4, which is used by some packages. |
3097 | (define-public ruby-minitest-4 | |
3098 | (package (inherit ruby-minitest) | |
3099 | (version "4.7.5") | |
3100 | (source (origin | |
3101 | (method url-fetch) | |
3102 | (uri (rubygems-uri "minitest" version)) | |
3103 | (sha256 | |
3104 | (base32 | |
3105 | "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy")))) | |
3106 | (arguments | |
3107 | `(#:phases | |
3108 | (modify-phases %standard-phases | |
3109 | (add-after 'unpack 'remove-unsupported-method | |
3110 | (lambda _ | |
3111 | (substitute* "Rakefile" | |
3112 | (("self\\.rubyforge_name = .*") "")) | |
9a7017eb BW |
3113 | #t)) |
3114 | (add-after 'build 'exclude-failing-tests | |
3115 | (lambda _ | |
3116 | ;; Some tests are failing on Ruby 2.4 due to the deprecation of | |
3117 | ;; Fixnum. | |
3118 | (delete-file "test/minitest/test_minitest_spec.rb") | |
3119 | #t))))))) | |
1db6e09f | 3120 | |
450a3f7f CB |
3121 | (define-public ruby-minitest-around |
3122 | (package | |
3123 | (name "ruby-minitest-around") | |
3124 | (version "0.5.0") | |
3125 | (source | |
3126 | (origin | |
3127 | (method url-fetch) | |
3128 | (uri (rubygems-uri "minitest-around" version)) | |
3129 | (sha256 | |
3130 | (base32 | |
3131 | "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr")))) | |
3132 | (build-system ruby-build-system) | |
3133 | (arguments | |
3134 | '(#:phases | |
3135 | (modify-phases %standard-phases | |
3136 | (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions | |
3137 | (lambda _ | |
3138 | (substitute* "minitest-around.gemspec" | |
3139 | (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n")) | |
3140 | #t))))) | |
3141 | (propagated-inputs | |
3142 | `(("ruby-minitest" ,ruby-minitest))) | |
3143 | (native-inputs | |
3144 | `(("bundler" ,bundler) | |
3145 | ("ruby-cucumber" ,ruby-cucumber) | |
3146 | ("ruby-bump" ,ruby-bump) | |
3147 | ("ruby-test-construct" ,ruby-test-construct))) | |
3148 | (synopsis "Run code around tests in Minitest") | |
3149 | (description | |
3150 | "This library provides a way to run code around tests in Minitest, | |
3151 | written using either the unit test or spec style.") | |
3152 | (home-page "https://github.com/splattael/minitest-around") | |
3153 | (license license:expat))) | |
3154 | ||
35130835 DT |
3155 | (define-public ruby-minitest-sprint |
3156 | (package | |
3157 | (name "ruby-minitest-sprint") | |
3158 | (version "1.1.0") | |
3159 | (source (origin | |
e83c6d00 DT |
3160 | (method url-fetch) |
3161 | (uri (rubygems-uri "minitest-sprint" version)) | |
35130835 DT |
3162 | (sha256 |
3163 | (base32 | |
e83c6d00 | 3164 | "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1")))) |
35130835 | 3165 | (build-system ruby-build-system) |
35130835 DT |
3166 | (native-inputs |
3167 | `(("ruby-hoe" ,ruby-hoe) | |
3168 | ("ruby-minitest" ,ruby-minitest))) | |
3169 | (synopsis "Fast test suite runner for minitest") | |
3170 | (description "Minitest-sprint is a test runner for minitest that makes it | |
3171 | easier to re-run individual failing tests.") | |
3172 | (home-page "https://github.com/seattlerb/minitest-sprint") | |
3173 | (license license:expat))) | |
3174 | ||
0808e361 DT |
3175 | (define-public ruby-minitest-bacon |
3176 | (package | |
3177 | (name "ruby-minitest-bacon") | |
6f9652b0 | 3178 | (version "1.0.3") |
0808e361 | 3179 | (source (origin |
e83c6d00 DT |
3180 | (method url-fetch) |
3181 | (uri (rubygems-uri "minitest-bacon" version)) | |
0808e361 DT |
3182 | (sha256 |
3183 | (base32 | |
6f9652b0 | 3184 | "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj")))) |
0808e361 | 3185 | (build-system ruby-build-system) |
0808e361 DT |
3186 | (native-inputs |
3187 | `(("ruby-hoe" ,ruby-hoe))) | |
3188 | (inputs | |
3189 | `(("ruby-minitest" ,ruby-minitest))) | |
3190 | (synopsis "Bacon compatibility library for minitest") | |
3191 | (description "Minitest-bacon extends minitest with bacon-like | |
3192 | functionality, making it easier to migrate test suites from bacon to minitest.") | |
3193 | (home-page "https://github.com/seattlerb/minitest-bacon") | |
3194 | (license license:expat))) | |
3195 | ||
39dc0eb5 BW |
3196 | (define-public ruby-minitest-focus |
3197 | (package | |
3198 | (name "ruby-minitest-focus") | |
3199 | (version "1.1.2") | |
3200 | (source | |
3201 | (origin | |
3202 | (method url-fetch) | |
3203 | (uri (rubygems-uri "minitest-focus" version)) | |
3204 | (sha256 | |
3205 | (base32 | |
3206 | "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0")))) | |
3207 | (build-system ruby-build-system) | |
3208 | (propagated-inputs | |
3209 | `(("ruby-minitest" ,ruby-minitest))) | |
3210 | (native-inputs | |
3211 | `(("ruby-hoe" ,ruby-hoe))) | |
3212 | (synopsis "Allows a few specific tests to be focused on") | |
3213 | (description | |
3214 | "@code{minitest-focus} gives the ability focus on a few tests with ease | |
3215 | without having to use command-line arguments. It introduces a @code{focus} | |
3216 | class method for use in testing classes, specifying that the next defined test | |
3217 | is to be run.") | |
3218 | (home-page "https://github.com/seattlerb/minitest-focus") | |
3219 | (license license:expat))) | |
3220 | ||
99fc5cd5 BW |
3221 | (define-public ruby-minitest-pretty-diff |
3222 | ;; Use git reference because gem is out of date and does not contain testing | |
3223 | ;; script. There are no releases on GitHub. | |
3224 | (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572")) | |
3225 | (package | |
3226 | (name "ruby-minitest-pretty-diff") | |
3227 | (version (string-append "0.1-1." (string-take commit 8))) | |
3228 | (source (origin | |
3229 | (method git-fetch) | |
3230 | (uri (git-reference | |
3231 | (url "https://github.com/adammck/minitest-pretty_diff.git") | |
3232 | (commit commit))) | |
3233 | (file-name (string-append name "-" version "-checkout")) | |
3234 | (sha256 | |
3235 | (base32 | |
3236 | "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r")))) | |
3237 | (build-system ruby-build-system) | |
3238 | (arguments | |
3239 | `(#:phases | |
3240 | (modify-phases %standard-phases | |
3241 | (replace 'check | |
3242 | (lambda _ | |
9923d5a4 | 3243 | (invoke "script/test")))))) |
99fc5cd5 BW |
3244 | (native-inputs |
3245 | `(("bundler" ,bundler) | |
3246 | ("ruby-turn" ,ruby-turn))) | |
3247 | (synopsis "Pretty-print hashes and arrays in MiniTest") | |
3248 | (description | |
3249 | "@code{minitest-pretty_diff} monkey-patches | |
3250 | @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before | |
3251 | diffing them. This makes it easier to spot differences between nested | |
3252 | structures when tests fail.") | |
3253 | (home-page "https://github.com/adammck/minitest-pretty_diff") | |
3254 | (license license:expat)))) | |
3255 | ||
685d0d2f BW |
3256 | (define-public ruby-minitest-moar |
3257 | (package | |
3258 | (name "ruby-minitest-moar") | |
3259 | (version "0.0.4") | |
3260 | (source | |
3261 | (origin | |
3262 | (method url-fetch) | |
3263 | (uri (rubygems-uri "minitest-moar" version)) | |
3264 | (sha256 | |
3265 | (base32 | |
3266 | "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x")))) | |
3267 | (build-system ruby-build-system) | |
3268 | (arguments | |
3269 | `(#:phases | |
3270 | (modify-phases %standard-phases | |
3271 | (add-before 'check 'clean-dependencies | |
3272 | (lambda _ | |
3273 | ;; Remove all gems defined in the Gemfile because these are not | |
3274 | ;; truly needed. | |
3275 | (substitute* "Gemfile" | |
3276 | (("gem .*") "")) | |
3277 | ;; Remove byebug as not needed to run tests. | |
3278 | (substitute* "test/test_helper.rb" | |
3279 | (("require 'byebug'") "")) | |
3280 | #t))))) | |
3281 | (native-inputs | |
3282 | `(("bundler" ,bundler) | |
3283 | ("ruby-minitest" ,ruby-minitest))) | |
3284 | (synopsis "Extra features and changes to MiniTest") | |
3285 | (description "@code{MiniTest Moar} add some additional features and | |
3286 | changes some default behaviours in MiniTest. For instance, Moar replaces the | |
3287 | MiniTest @code{Object#stub} with a global @code{stub} method.") | |
3288 | (home-page "https://github.com/dockyard/minitest-moar") | |
3289 | (license license:expat))) | |
3290 | ||
e07ef1d6 BW |
3291 | (define-public ruby-minitest-bonus-assertions |
3292 | (package | |
3293 | (name "ruby-minitest-bonus-assertions") | |
c9e261b7 | 3294 | (version "3.0") |
e07ef1d6 BW |
3295 | (source |
3296 | (origin | |
3297 | (method url-fetch) | |
3298 | (uri (rubygems-uri "minitest-bonus-assertions" version)) | |
3299 | (sha256 | |
3300 | (base32 | |
c9e261b7 | 3301 | "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a")))) |
e07ef1d6 BW |
3302 | (build-system ruby-build-system) |
3303 | (arguments | |
3304 | `(#:phases | |
3305 | (modify-phases %standard-phases | |
3306 | (add-before 'check 'clean-dependencies | |
3307 | (lambda _ | |
3308 | ;; Remove unneeded require statement that would entail another | |
3309 | ;; dependency. | |
3310 | (substitute* "test/minitest_config.rb" | |
3311 | (("require 'minitest/bisect'") "")) | |
3312 | #t))))) | |
3313 | (native-inputs | |
3314 | `(("ruby-hoe" ,ruby-hoe) | |
3315 | ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff) | |
3316 | ("ruby-minitest-focus" ,ruby-minitest-focus) | |
3317 | ("ruby-minitest-moar" ,ruby-minitest-moar))) | |
3318 | (synopsis "Bonus assertions for @code{Minitest}") | |
3319 | (description | |
3320 | "Minitest bonus assertions provides extra MiniTest assertions. For | |
3321 | instance, it provides @code{assert_true}, @code{assert_false} and | |
3322 | @code{assert_set_equal}.") | |
3323 | (home-page "https://github.com/halostatue/minitest-bonus-assertions") | |
3324 | (license license:expat))) | |
3325 | ||
e2c9a9cc CB |
3326 | (define-public ruby-minitest-reporters |
3327 | (package | |
3328 | (name "ruby-minitest-reporters") | |
3329 | (version "1.3.6") | |
3330 | (source | |
3331 | (origin | |
3332 | (method url-fetch) | |
3333 | (uri (rubygems-uri "minitest-reporters" version)) | |
3334 | (sha256 | |
3335 | (base32 | |
3336 | "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay")))) | |
3337 | (build-system ruby-build-system) | |
3338 | (arguments | |
3339 | '(#:phases | |
3340 | (modify-phases %standard-phases | |
3341 | ;; Remove the requirement on Rubocop, as it isn't useful to run, and | |
3342 | ;; including it as an input can lead to circular dependencies. | |
3343 | (add-after 'unpack 'remove-rubocop-from-Rakefile | |
3344 | (lambda _ | |
3345 | (substitute* "Rakefile" | |
3346 | (("require 'rubocop/rake\\_task'") "") | |
3347 | (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each")) | |
3348 | #t)) | |
3349 | (add-after 'extract-gemspec 'remove-rubocop-from-gemspec | |
3350 | (lambda _ | |
3351 | (substitute* "minitest-reporters.gemspec" | |
3352 | ((".*%q<rubocop>.*") "\n")) | |
3353 | #t))))) | |
3354 | (propagated-inputs | |
3355 | `(("ruby-ansi" ,ruby-ansi) | |
3356 | ("ruby-builder" ,ruby-builder) | |
3357 | ("ruby-minitest" ,ruby-minitest) | |
3358 | ("ruby-progressbar" ,ruby-progressbar))) | |
3359 | (native-inputs | |
3360 | `(("bundler" ,bundler) | |
3361 | ("ruby-maruku" ,ruby-maruku))) | |
3362 | (synopsis "Enhanced reporting for Minitest tests") | |
3363 | (description | |
3364 | "@code{minitest/reporters} provides a custom Minitest runner to improve | |
3365 | how the test state is reported. A number of different reporters are | |
3366 | available, including a spec reporter, progress bar reporter, a HTML | |
3367 | reporter.") | |
3368 | (home-page "https://github.com/kern/minitest-reporters") | |
3369 | (license license:expat))) | |
3370 | ||
e582fa93 BW |
3371 | (define-public ruby-minitest-rg |
3372 | (package | |
3373 | (name "ruby-minitest-rg") | |
3374 | (version "5.2.0") | |
3375 | (source | |
3376 | (origin | |
3377 | (method url-fetch) | |
3378 | (uri (rubygems-uri "minitest-rg" version)) | |
3379 | (sha256 | |
3380 | (base32 | |
3381 | "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354")))) | |
3382 | (build-system ruby-build-system) | |
3383 | (arguments | |
3384 | ;; Some tests fail even outside Guix, so disable tests. | |
3385 | ;; https://github.com/blowmage/minitest-rg/issues/12 | |
3386 | ;; https://github.com/blowmage/minitest-rg/pull/13 | |
3387 | `(#:tests? #f)) | |
3388 | (propagated-inputs | |
3389 | `(("ruby-minitest" ,ruby-minitest))) | |
3390 | (synopsis "Coloured output for Minitest") | |
3391 | (description | |
3392 | "@code{minitest-rg} changes the colour of the output from Minitest.") | |
8e486e80 | 3393 | (home-page "https://blowmage.com/minitest-rg/") |
e582fa93 BW |
3394 | (license license:expat))) |
3395 | ||
2a96dbe6 BW |
3396 | (define-public ruby-minitest-hooks |
3397 | (package | |
3398 | (name "ruby-minitest-hooks") | |
eaaf8b12 | 3399 | (version "1.4.2") |
2a96dbe6 BW |
3400 | (source |
3401 | (origin | |
3402 | (method url-fetch) | |
3403 | (uri (rubygems-uri "minitest-hooks" version)) | |
3404 | (sha256 | |
3405 | (base32 | |
eaaf8b12 | 3406 | "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc")))) |
2a96dbe6 BW |
3407 | (build-system ruby-build-system) |
3408 | (arguments | |
3409 | '(#:test-target "spec")) | |
3410 | (native-inputs | |
3411 | `(("ruby-sequel" ,ruby-sequel) | |
3412 | ("ruby-sqlite3" ,ruby-sqlite3))) | |
3413 | (synopsis "Hooks for the minitest framework") | |
3414 | (description | |
3415 | "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all}, | |
3416 | @code{around_all} hooks for Minitest. This allows, for instance, running each | |
3417 | suite of specs inside a database transaction, running each spec inside its own | |
3418 | savepoint inside that transaction. This can significantly speed up testing | |
3419 | for specs that share expensive database setup code.") | |
7bf837fd | 3420 | (home-page "https://github.com/jeremyevans/minitest-hooks") |
2a96dbe6 BW |
3421 | (license license:expat))) |
3422 | ||
afbbdf77 DT |
3423 | (define-public ruby-daemons |
3424 | (package | |
3425 | (name "ruby-daemons") | |
f03153db | 3426 | (version "1.2.5") |
afbbdf77 DT |
3427 | (source (origin |
3428 | (method url-fetch) | |
e83c6d00 | 3429 | (uri (rubygems-uri "daemons" version)) |
afbbdf77 DT |
3430 | (sha256 |
3431 | (base32 | |
f03153db | 3432 | "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring")))) |
afbbdf77 DT |
3433 | (build-system ruby-build-system) |
3434 | (arguments | |
3435 | `(#:tests? #f)) ; no test suite | |
3436 | (synopsis "Daemonize Ruby programs") | |
3437 | (description "Daemons provides a way to wrap existing Ruby scripts to be | |
3438 | run as a daemon and to be controlled by simple start/stop/restart commands.") | |
3439 | (home-page "https://github.com/thuehlinger/daemons") | |
3440 | (license license:expat))) | |
b03eb6ac CB |
3441 | |
3442 | (define-public ruby-data_uri | |
3443 | (package | |
3444 | (name "ruby-data_uri") | |
3445 | (version "0.1.0") | |
3446 | (source | |
3447 | (origin | |
3448 | (method url-fetch) | |
3449 | (uri (rubygems-uri "data_uri" version)) | |
3450 | (sha256 | |
3451 | (base32 | |
3452 | "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky")))) | |
3453 | (build-system ruby-build-system) | |
3454 | (synopsis "URI class for parsing data URIs") | |
3455 | (description | |
3456 | "Data @acronym{URI, universal resource idenfitier}s allow resources to be | |
3457 | embedded inside a URI. The URI::Data class provides support for parsing these | |
3458 | URIs using the normal URI.parse method.") | |
3459 | (home-page "https://github.com/dball/data_uri") | |
3460 | (license license:expat))) | |
66e20863 DT |
3461 | |
3462 | (define-public ruby-git | |
3463 | (package | |
3464 | (name "ruby-git") | |
ceaff59e | 3465 | (version "1.3.0") |
66e20863 DT |
3466 | (source (origin |
3467 | (method url-fetch) | |
e83c6d00 | 3468 | (uri (rubygems-uri "git" version)) |
66e20863 DT |
3469 | (sha256 |
3470 | (base32 | |
ceaff59e | 3471 | "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3")))) |
66e20863 DT |
3472 | (build-system ruby-build-system) |
3473 | (arguments | |
e83c6d00 DT |
3474 | `(#:tests? #f ; no tests |
3475 | #:phases (modify-phases %standard-phases | |
3476 | (add-after 'install 'patch-git-binary | |
3477 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
66e20863 DT |
3478 | ;; Make the default git binary an absolute path to the |
3479 | ;; store. | |
e83c6d00 DT |
3480 | (let ((git (string-append (assoc-ref inputs "git") |
3481 | "/bin/git")) | |
3cb3fa67 CB |
3482 | (config (string-append |
3483 | (assoc-ref outputs "out") | |
3484 | "/lib/ruby/vendor_ruby/gems/git-" | |
3485 | ,version "/lib/git/config.rb"))) | |
e83c6d00 | 3486 | (substitute* (list config) |
66e20863 DT |
3487 | (("'git'") |
3488 | (string-append "'" git "'"))) | |
e83c6d00 | 3489 | #t)))))) |
66e20863 DT |
3490 | (inputs |
3491 | `(("git" ,git))) | |
3492 | (synopsis "Ruby wrappers for Git") | |
3493 | (description "Ruby/Git is a Ruby library that can be used to create, read | |
3494 | and manipulate Git repositories by wrapping system calls to the git binary.") | |
3495 | (home-page "https://github.com/schacon/ruby-git") | |
3496 | (license license:expat))) | |
71d3e2c2 DT |
3497 | |
3498 | (define-public ruby-slop | |
3499 | (package | |
3500 | (name "ruby-slop") | |
d14e5eaa | 3501 | (version "4.5.0") |
71d3e2c2 DT |
3502 | (source (origin |
3503 | (method url-fetch) | |
e83c6d00 | 3504 | (uri (rubygems-uri "slop" version)) |
71d3e2c2 DT |
3505 | (sha256 |
3506 | (base32 | |
d14e5eaa | 3507 | "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p")))) |
71d3e2c2 DT |
3508 | (build-system ruby-build-system) |
3509 | (native-inputs | |
3510 | `(("ruby-minitest" ,ruby-minitest))) | |
3511 | (synopsis "Ruby command line option parser") | |
3512 | (description "Slop provides a Ruby domain specific language for gathering | |
3513 | options and parsing command line flags.") | |
3514 | (home-page "https://github.com/leejarvis/slop") | |
3515 | (license license:expat))) | |
e778a549 | 3516 | |
5337f8b9 DT |
3517 | (define-public ruby-slop-3 |
3518 | (package (inherit ruby-slop) | |
3519 | (version "3.6.0") | |
3520 | (source (origin | |
3521 | (method url-fetch) | |
3522 | (uri (rubygems-uri "slop" version)) | |
3523 | (sha256 | |
3524 | (base32 | |
3525 | "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n")))))) | |
3526 | ||
ca914b5b CB |
3527 | (define-public ruby-multi-xml |
3528 | (package | |
3529 | (name "ruby-multi-xml") | |
3530 | (version "0.6.0") | |
3531 | (source | |
3532 | (origin | |
3533 | (method url-fetch) | |
3534 | (uri (rubygems-uri "multi_xml" version)) | |
3535 | (sha256 | |
3536 | (base32 | |
3537 | "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj")))) | |
3538 | (build-system ruby-build-system) | |
3539 | (arguments | |
3540 | '(#:tests? #f)) ; No included tests | |
3541 | (synopsis "Swappable XML backends for Ruby") | |
3542 | (description | |
3543 | "@code{MultiXml} provides swappable XML backends utilizing either LibXML, | |
3544 | Nokogiri, Ox, or REXML.") | |
3545 | (home-page "https://github.com/sferik/multi_xml") | |
3546 | (license license:expat))) | |
3547 | ||
e778a549 DT |
3548 | (define-public ruby-multipart-post |
3549 | (package | |
3550 | (name "ruby-multipart-post") | |
3551 | (version "2.0.0") | |
3552 | (source (origin | |
3553 | (method url-fetch) | |
e83c6d00 | 3554 | (uri (rubygems-uri "multipart-post" version)) |
e778a549 DT |
3555 | (sha256 |
3556 | (base32 | |
e83c6d00 | 3557 | "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x")))) |
e778a549 DT |
3558 | (build-system ruby-build-system) |
3559 | (native-inputs | |
3560 | `(("bundler" ,bundler))) | |
3561 | (synopsis "Multipart POST library for Ruby") | |
3562 | (description "Multipart-Post Adds multipart POST capability to Ruby's | |
3563 | net/http library.") | |
3564 | (home-page "https://github.com/nicksieger/multipart-post") | |
3565 | (license license:expat))) | |
f8da3af0 | 3566 | |
9a97e7ce CB |
3567 | (define-public ruby-multi-json |
3568 | (package | |
3569 | (name "ruby-multi-json") | |
1b6f5475 | 3570 | (version "1.13.1") |
9a97e7ce CB |
3571 | (source |
3572 | (origin | |
b872b47b | 3573 | (method git-fetch) |
1b6f5475 BW |
3574 | ;; Tests are not distributed at rubygems.org so download from GitHub |
3575 | ;; instead. | |
b872b47b EF |
3576 | (uri (git-reference |
3577 | (url "https://github.com/intridea/multi_json") | |
3578 | (commit (string-append "v" version)))) | |
3579 | (file-name (git-file-name name version)) | |
9a97e7ce CB |
3580 | (sha256 |
3581 | (base32 | |
b872b47b | 3582 | "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4")))) |
9a97e7ce CB |
3583 | (build-system ruby-build-system) |
3584 | (arguments | |
1b6f5475 BW |
3585 | `(#:phases |
3586 | (modify-phases %standard-phases | |
3587 | (add-after 'unpack 'remove-signing-key-reference | |
3588 | (lambda _ | |
3589 | (substitute* "multi_json.gemspec" | |
3590 | ((".*spec.signing_key.*") "")) | |
3591 | #t))))) | |
3592 | (native-inputs | |
3593 | `(("bundler" ,bundler) | |
3594 | ("ruby-rspec" ,ruby-rspec) | |
3595 | ("ruby-yard" ,ruby-yard) | |
3596 | ("ruby-json-pure" ,ruby-json-pure) | |
3597 | ("ruby-oj" ,ruby-oj) | |
3598 | ("ruby-yajl-ruby" ,ruby-yajl-ruby))) | |
9a97e7ce CB |
3599 | (synopsis "Common interface to multiple JSON libraries for Ruby") |
3600 | (description | |
3601 | "This package provides a common interface to multiple JSON libraries, | |
3602 | including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem, | |
3603 | NSJSONSerialization, gson.rb, JrJackson, and OkJson.") | |
1b6f5475 | 3604 | (home-page "https://github.com/intridea/multi_json") |
9a97e7ce CB |
3605 | (license license:expat))) |
3606 | ||
5edef88b BW |
3607 | (define-public ruby-multi-test |
3608 | (package | |
3609 | (name "ruby-multi-test") | |
3610 | (version "0.1.2") | |
3611 | (source | |
3612 | (origin | |
3613 | (method url-fetch) | |
3614 | (uri (rubygems-uri "multi_test" version)) | |
3615 | (sha256 | |
3616 | (base32 | |
3617 | "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd")))) | |
3618 | (build-system ruby-build-system) | |
3619 | (arguments | |
3620 | '(;; Tests require different sets of specific gem versions to be available, | |
3621 | ;; and there is no gemfile that specifies the newest versions of | |
3622 | ;; dependencies to be tested. | |
3623 | #:tests? #f)) | |
3624 | (synopsis | |
3625 | "Interface to testing libraries loaded into a running Ruby process") | |
3626 | (description | |
3627 | "@code{multi_test} provides a uniform interface onto whatever testing | |
3628 | libraries that have been loaded into a running Ruby process to help control | |
3629 | rogue test/unit/autorun requires.") | |
3630 | (home-page "https://github.com/cucumber/multi_test") | |
9a97e7ce CB |
3631 | (license license:expat))) |
3632 | ||
f8da3af0 DT |
3633 | (define-public ruby-arel |
3634 | (package | |
3635 | (name "ruby-arel") | |
aecd533d | 3636 | (version "9.0.0") |
f8da3af0 DT |
3637 | (source (origin |
3638 | (method url-fetch) | |
3639 | (uri (rubygems-uri "arel" version)) | |
3640 | (sha256 | |
3641 | (base32 | |
aecd533d | 3642 | "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0")))) |
f8da3af0 DT |
3643 | (build-system ruby-build-system) |
3644 | (arguments '(#:tests? #f)) ; no tests | |
3645 | (home-page "https://github.com/rails/arel") | |
3646 | (synopsis "SQL AST manager for Ruby") | |
6f23e2fb TGR |
3647 | (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for |
3648 | Ruby. It simplifies the generation of complex SQL queries and adapts to | |
3649 | various relational database implementations.") | |
f8da3af0 | 3650 | (license license:expat))) |
616eaead | 3651 | |
554bf4f6 CB |
3652 | (define-public ruby-marcel |
3653 | (package | |
3654 | (name "ruby-marcel") | |
3655 | (version "0.3.3") | |
3656 | (source | |
3657 | (origin | |
3658 | (method url-fetch) | |
3659 | (uri (rubygems-uri "marcel" version)) | |
3660 | (sha256 | |
3661 | (base32 | |
3662 | "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx")))) | |
3663 | (build-system ruby-build-system) | |
3664 | (arguments | |
3665 | '(;; No included tests | |
3666 | #:tests? #f)) | |
3667 | (propagated-inputs | |
3668 | `(("ruby-mimemagic" ,ruby-mimemagic))) | |
3669 | (synopsis "MIME type detection using magic numbers, filenames and extensions") | |
3670 | (description | |
3671 | "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail | |
3672 | Extensions} type detection using magic numbers, filenames, and extensions") | |
3673 | (home-page "https://github.com/basecamp/marcel") | |
3674 | (license license:expat))) | |
3675 | ||
616eaead | 3676 | (define-public ruby-minitar |
bfaf8efd BW |
3677 | ;; We package from the GitHub source to fix the security issue reported at |
3678 | ;; https://github.com/halostatue/minitar/issues/16. | |
3679 | (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4")) | |
3680 | (package | |
3681 | (name "ruby-minitar") | |
3682 | (version (string-append "0.5.4-1." (string-take commit 8))) | |
3683 | (source | |
3684 | (origin | |
3685 | (method git-fetch) | |
3686 | (uri (git-reference | |
3687 | (url "https://github.com/halostatue/minitar.git") | |
3688 | (commit commit))) | |
3689 | (file-name (string-append name "-" version "-checkout")) | |
3690 | (sha256 | |
3691 | (base32 | |
3692 | "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv")))) | |
3693 | (build-system ruby-build-system) | |
3694 | (arguments | |
3695 | '(#:tests? #f)) ; missing a gemspec | |
3696 | (synopsis "Ruby library and utility for handling tar archives") | |
3697 | (description | |
3698 | "Archive::Tar::Minitar is a pure-Ruby library and command-line utility | |
616eaead | 3699 | that provides the ability to deal with POSIX tar archive files.") |
bfaf8efd BW |
3700 | (home-page "http://www.github.com/atoulme/minitar") |
3701 | (license (list license:gpl2+ license:ruby))))) | |
bea1c0e2 DT |
3702 | |
3703 | (define-public ruby-mini-portile | |
3704 | (package | |
3705 | (name "ruby-mini-portile") | |
3706 | (version "0.6.2") | |
3707 | (source | |
3708 | (origin | |
3709 | (method url-fetch) | |
3710 | (uri (rubygems-uri "mini_portile" version)) | |
3711 | (sha256 | |
3712 | (base32 | |
3713 | "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w")))) | |
3714 | (build-system ruby-build-system) | |
3715 | (arguments | |
3716 | '(#:tests? #f)) ; tests require network access | |
3717 | (synopsis "Ports system for Ruby developers") | |
3718 | (description "Mini-portile is a port/recipe system for Ruby developers. | |
3719 | It provides a standard way to compile against specific versions of libraries | |
3720 | to reproduce user environments.") | |
7bf837fd | 3721 | (home-page "https://github.com/flavorjones/mini_portile") |
bea1c0e2 | 3722 | (license license:expat))) |
e920bfca | 3723 | |
d000fc92 BW |
3724 | (define-public ruby-mini-portile-2 |
3725 | (package (inherit ruby-mini-portile) | |
a88ac044 | 3726 | (version "2.4.0") |
d000fc92 BW |
3727 | (source (origin |
3728 | (method url-fetch) | |
3729 | (uri (rubygems-uri "mini_portile2" version)) | |
3730 | (sha256 | |
3731 | (base32 | |
a88ac044 | 3732 | "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy")))))) |
d000fc92 | 3733 | |
e920bfca DT |
3734 | (define-public ruby-nokogiri |
3735 | (package | |
3736 | (name "ruby-nokogiri") | |
36ccf59e | 3737 | (version "1.10.5") |
e920bfca DT |
3738 | (source (origin |
3739 | (method url-fetch) | |
3740 | (uri (rubygems-uri "nokogiri" version)) | |
3741 | (sha256 | |
3742 | (base32 | |
36ccf59e | 3743 | "185g3dwba73jqxjr94bd2zk6fil6n9hmcfnfyzh3p1w47vm296r7")))) |
e920bfca DT |
3744 | (build-system ruby-build-system) |
3745 | (arguments | |
3746 | ;; Tests fail because Nokogiri can only test with an installed extension, | |
3747 | ;; and also because many test framework dependencies are missing. | |
7b01f250 | 3748 | `(#:tests? #f |
e920bfca DT |
3749 | #:gem-flags (list "--" "--use-system-libraries" |
3750 | (string-append "--with-xml2-include=" | |
3751 | (assoc-ref %build-inputs "libxml2") | |
5e7f1b0b BW |
3752 | "/include/libxml2" )) |
3753 | #:phases | |
3754 | (modify-phases %standard-phases | |
7b01f250 BW |
3755 | (add-before 'build 'patch-extconf |
3756 | ;; 'pkg-config' is not included in the GEM_PATH during | |
3757 | ;; installation, so we add it directly to the load path. | |
3758 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 3759 | (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))) |
7b01f250 BW |
3760 | (substitute* "ext/nokogiri/extconf.rb" |
3761 | (("gem 'pkg-config'.*") | |
3762 | (string-append "$:.unshift '" | |
3cb3fa67 | 3763 | pkg-config "/lib/ruby/vendor_ruby" |
7b01f250 BW |
3764 | "/gems/pkg-config-" |
3765 | ,(package-version ruby-pkg-config) | |
3766 | "/lib'\n")))) | |
5e7f1b0b | 3767 | #t))))) |
e920bfca | 3768 | (native-inputs |
7b01f250 | 3769 | `(("ruby-hoe" ,ruby-hoe))) |
e920bfca DT |
3770 | (inputs |
3771 | `(("zlib" ,zlib) | |
3772 | ("libxml2" ,libxml2) | |
3773 | ("libxslt" ,libxslt))) | |
3774 | (propagated-inputs | |
7b01f250 BW |
3775 | `(("ruby-mini-portile" ,ruby-mini-portile-2) |
3776 | ("ruby-pkg-config" ,ruby-pkg-config))) | |
e920bfca DT |
3777 | (synopsis "HTML, XML, SAX, and Reader parser for Ruby") |
3778 | (description "Nokogiri (鋸) parses and searches XML/HTML, and features | |
3779 | both CSS3 selector and XPath 1.0 support.") | |
3780 | (home-page "http://www.nokogiri.org/") | |
3781 | (license license:expat))) | |
30b0b725 DT |
3782 | |
3783 | (define-public ruby-method-source | |
3784 | (package | |
3785 | (name "ruby-method-source") | |
c8355037 | 3786 | (version "0.9.0") |
30b0b725 DT |
3787 | (source |
3788 | (origin | |
3789 | (method url-fetch) | |
3790 | (uri (rubygems-uri "method_source" version)) | |
3791 | (sha256 | |
3792 | (base32 | |
c8355037 | 3793 | "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn")))) |
30b0b725 | 3794 | (build-system ruby-build-system) |
c8355037 BW |
3795 | (arguments |
3796 | `(#:test-target "spec")) | |
30b0b725 | 3797 | (native-inputs |
c8355037 | 3798 | `(("ruby-rspec" ,ruby-rspec) |
30b0b725 DT |
3799 | ("git" ,git))) |
3800 | (synopsis "Retrieve the source code for Ruby methods") | |
3801 | (description "Method_source retrieves the source code for Ruby methods. | |
3802 | Additionally, it can extract source code from Proc and Lambda objects or just | |
3803 | extract comments.") | |
3804 | (home-page "https://github.com/banister/method_source") | |
3805 | (license license:expat))) | |
2e3fdea4 DT |
3806 | |
3807 | (define-public ruby-coderay | |
3808 | (package | |
3809 | (name "ruby-coderay") | |
5cf0997a | 3810 | (version "1.1.2") |
2e3fdea4 DT |
3811 | (source |
3812 | (origin | |
3813 | (method url-fetch) | |
3814 | (uri (rubygems-uri "coderay" version)) | |
3815 | (sha256 | |
3816 | (base32 | |
5cf0997a | 3817 | "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y")))) |
2e3fdea4 DT |
3818 | (build-system ruby-build-system) |
3819 | (arguments | |
3820 | '(#:tests? #f)) ; missing test files | |
3821 | (synopsis "Ruby syntax highlighting library") | |
3822 | (description "Coderay is a Ruby library that provides syntax highlighting | |
3823 | for select languages.") | |
3824 | (home-page "http://coderay.rubychan.de") | |
3825 | (license license:expat))) | |
96e76083 | 3826 | |
54993457 CB |
3827 | (define-public ruby-parser |
3828 | (package | |
3829 | (name "ruby-parser") | |
3830 | (version "2.6.0.0") | |
3831 | (source | |
3832 | (origin | |
3833 | (method url-fetch) | |
3834 | (uri (rubygems-uri "parser" version)) | |
3835 | (sha256 | |
3836 | (base32 | |
3837 | "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm")))) | |
3838 | (build-system ruby-build-system) | |
3839 | (native-inputs | |
3840 | `(("bundler" ,bundler) | |
3841 | ("ruby-cliver" ,ruby-cliver) | |
3842 | ("ruby-simplecov" ,ruby-simplecov) | |
3843 | ("ruby-racc" ,ruby-racc))) | |
3844 | (inputs | |
3845 | `(("ragel" ,ragel))) | |
3846 | (propagated-inputs | |
3847 | `(("ruby-ast" ,ruby-ast))) | |
3848 | (synopsis "Ruby parser written in pure Ruby") | |
3849 | (description | |
3850 | "This package provides a Ruby parser written in pure Ruby.") | |
3851 | (home-page "https://github.com/whitequark/parser") | |
3852 | (license license:expat))) | |
3853 | ||
16f423cb CB |
3854 | (define-public ruby-prawn-manual-builder |
3855 | (package | |
3856 | (name "ruby-prawn-manual-builder") | |
1d4f0019 | 3857 | (version "0.3.1") |
16f423cb CB |
3858 | (source |
3859 | (origin | |
3860 | (method url-fetch) | |
3861 | (uri (rubygems-uri "prawn-manual_builder" version)) | |
3862 | (sha256 | |
1d4f0019 | 3863 | (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs")))) |
16f423cb CB |
3864 | (build-system ruby-build-system) |
3865 | (arguments | |
1d4f0019 | 3866 | '(#:tests? #f ; no included tests |
16f423cb CB |
3867 | #:phases |
3868 | (modify-phases %standard-phases | |
3869 | (add-after 'extract-gemspec 'patch-gemspec | |
3870 | (lambda _ | |
3871 | (substitute* ".gemspec" | |
3872 | ;; Loosen the requirement for pdf-inspector | |
3873 | (("~> 1\\.0\\.7") ">= 0"))))))) | |
3874 | (propagated-inputs | |
3875 | `(("ruby-coderay" ,ruby-coderay))) | |
3876 | (synopsis "Tool for writing manuals for Prawn and Prawn accessories") | |
3877 | (description | |
3878 | "This package provides a tool for writing manuals for Prawn and Prawn | |
3879 | accessories") | |
3880 | (home-page "https://github.com/prawnpdf/prawn-manual_builder") | |
3881 | (license (list | |
3882 | ;; GPLv2 or GPLv3 or custom license described in LICENSE file | |
3883 | license:gpl2 | |
3884 | license:gpl3)))) | |
3885 | ||
268643b9 CB |
3886 | (define-public ruby-progress_bar |
3887 | (package | |
3888 | (name "ruby-progress_bar") | |
3889 | (version "1.1.0") | |
3890 | (source | |
3891 | (origin | |
3892 | (method url-fetch) | |
3893 | (uri (rubygems-uri "progress_bar" version)) | |
3894 | (sha256 | |
3895 | (base32 | |
3896 | "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48")))) | |
3897 | (build-system ruby-build-system) | |
3898 | (arguments | |
3899 | '(#:test-target "spec")) | |
3900 | (propagated-inputs | |
3901 | `(("ruby-highline" ,ruby-highline) | |
3902 | ("ruby-options" ,ruby-options))) | |
3903 | (native-inputs | |
3904 | `(("bundler" ,bundler) | |
3905 | ("ruby-rspec" ,ruby-rspec) | |
3906 | ("ruby-timecop" ,ruby-timecop))) | |
3907 | (synopsis | |
3908 | "Ruby library for displaying progress bars") | |
3909 | (description | |
3910 | "ProgressBar is a simple library for displaying progress bars. The | |
3911 | maximum value is configurable, and additional information can be displayed | |
3912 | like the percentage completion, estimated time remaining, elapsed time and | |
3913 | rate.") | |
3914 | (home-page "https://github.com/paul/progress_bar") | |
3915 | (license license:wtfpl2))) | |
3916 | ||
95f85d44 CB |
3917 | (define-public ruby-dep |
3918 | (package | |
3919 | (name "ruby-dep") | |
3920 | (version "1.5.0") | |
3921 | (source | |
3922 | (origin | |
3923 | (method url-fetch) | |
3924 | (uri (rubygems-uri "ruby_dep" version)) | |
3925 | (sha256 | |
3926 | (base32 | |
3927 | "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5")))) | |
3928 | (build-system ruby-build-system) | |
3929 | (arguments | |
3930 | '(#:tests? #f)) ; No included tests | |
3931 | (synopsis "Creates a version constraint of supported Rubies") | |
3932 | (description | |
3933 | "This package helps create a version constraint of supported Rubies, | |
3934 | suitable for a gemspec file.") | |
3935 | (home-page "https://github.com/e2/ruby_dep") | |
3936 | (license license:expat))) | |
3937 | ||
158a9253 CB |
3938 | (define-public ruby-progressbar |
3939 | (package | |
3940 | (name "ruby-progressbar") | |
2d2a2363 | 3941 | (version "1.10.1") |
158a9253 CB |
3942 | (source |
3943 | (origin | |
3944 | (method url-fetch) | |
3945 | (uri (rubygems-uri "ruby-progressbar" version)) | |
3946 | (sha256 | |
2d2a2363 | 3947 | (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf")))) |
158a9253 CB |
3948 | (build-system ruby-build-system) |
3949 | (arguments | |
3950 | '(;; TODO: There looks to be a circular dependency with ruby-fuubar. | |
3951 | #:tests? #f)) | |
3952 | (synopsis "Text progress bar library for Ruby") | |
3953 | (description | |
3954 | "Ruby/ProgressBar is an flexible text progress bar library for Ruby. | |
3955 | The output can be customized with a formatting system.") | |
3956 | (home-page "https://github.com/jfelchner/ruby-progressbar") | |
3957 | (license license:expat))) | |
3958 | ||
96e76083 DT |
3959 | (define-public ruby-pry |
3960 | (package | |
3961 | (name "ruby-pry") | |
1bf02b20 | 3962 | (version "0.11.3") |
96e76083 DT |
3963 | (source |
3964 | (origin | |
3965 | (method url-fetch) | |
3966 | (uri (rubygems-uri "pry" version)) | |
3967 | (sha256 | |
3968 | (base32 | |
1bf02b20 | 3969 | "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g")))) |
96e76083 DT |
3970 | (build-system ruby-build-system) |
3971 | (arguments | |
3972 | '(#:tests? #f)) ; no tests | |
3973 | (propagated-inputs | |
3974 | `(("ruby-coderay" ,ruby-coderay) | |
1960d4fd | 3975 | ("ruby-method-source" ,ruby-method-source))) |
96e76083 DT |
3976 | (synopsis "Ruby REPL") |
3977 | (description "Pry is an IRB alternative and runtime developer console for | |
3978 | Ruby. It features syntax highlighting, a plugin architecture, runtime | |
3979 | invocation, and source and documentation browsing.") | |
2f3800e5 | 3980 | (home-page "https://pryrepl.org") |
96e76083 | 3981 | (license license:expat))) |
1415792a | 3982 | |
051deeb7 RW |
3983 | (define-public ruby-guard |
3984 | (package | |
3985 | (name "ruby-guard") | |
3986 | (version "2.13.0") | |
3987 | (source (origin | |
3c6128f6 | 3988 | (method git-fetch) |
051deeb7 RW |
3989 | ;; The gem does not include a Rakefile, nor does it contain a |
3990 | ;; gemspec file, nor does it come with the tests. This is why | |
3991 | ;; we fetch the tarball from Github. | |
3c6128f6 EF |
3992 | (uri (git-reference |
3993 | (url "https://github.com/guard/guard") | |
3994 | (commit (string-append "v" version)))) | |
3995 | (file-name (git-file-name name version)) | |
051deeb7 RW |
3996 | (sha256 |
3997 | (base32 | |
3c6128f6 | 3998 | "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs")))) |
051deeb7 RW |
3999 | (build-system ruby-build-system) |
4000 | (arguments | |
4001 | `(#:tests? #f ; tests require cucumber | |
4002 | #:phases | |
4003 | (modify-phases %standard-phases | |
4004 | (add-after 'unpack 'remove-git-ls-files | |
4005 | (lambda* (#:key outputs #:allow-other-keys) | |
4006 | (substitute* "guard.gemspec" | |
4007 | (("git ls-files -z") "find . -type f -print0")) | |
4008 | #t)) | |
4009 | (replace 'build | |
4010 | (lambda _ | |
9923d5a4 | 4011 | (invoke "gem" "build" "guard.gemspec")))))) |
051deeb7 RW |
4012 | (propagated-inputs |
4013 | `(("ruby-formatador" ,ruby-formatador) | |
4014 | ("ruby-listen" ,ruby-listen) | |
4015 | ("ruby-lumberjack" ,ruby-lumberjack) | |
4016 | ("ruby-nenv" ,ruby-nenv) | |
4017 | ("ruby-notiffany" ,ruby-notiffany) | |
4018 | ("ruby-pry" ,ruby-pry) | |
4019 | ("ruby-shellany" ,ruby-shellany) | |
4020 | ("ruby-thor" ,ruby-thor))) | |
4021 | (native-inputs | |
4022 | `(("bundler" ,bundler) | |
4023 | ("ruby-rspec" ,ruby-rspec))) | |
4024 | (synopsis "Tool to handle events on file system modifications") | |
4025 | (description | |
4026 | "Guard is a command line tool to easily handle events on file system | |
4027 | modifications. Guard automates various tasks by running custom rules whenever | |
4028 | file or directories are modified.") | |
3c6128f6 | 4029 | (home-page "https://guardgem.org/") |
051deeb7 RW |
4030 | (license license:expat))) |
4031 | ||
bcbb3cc9 CB |
4032 | (define-public ruby-tilt |
4033 | (package | |
4034 | (name "ruby-tilt") | |
4035 | (version "2.0.9") | |
4036 | (source | |
4037 | (origin | |
4038 | (method url-fetch) | |
4039 | (uri (rubygems-uri "tilt" version)) | |
4040 | (sha256 | |
4041 | (base32 | |
4042 | "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz")))) | |
4043 | (build-system ruby-build-system) | |
4044 | (arguments | |
4045 | '(#:phases | |
4046 | (modify-phases %standard-phases | |
4047 | (add-after 'unpack 'remove-some-dependencies | |
4048 | (lambda _ | |
4049 | (substitute* "Gemfile" | |
4050 | ;; TODO ronn is used for generating the manual | |
4051 | (("gem 'ronn'.*") "\n") | |
4052 | ;; ruby-haml has a runtime dependency on ruby-tilt, so don't | |
4053 | ;; pass it in as a native-input | |
4054 | (("gem 'haml'.*") "\n") | |
4055 | ;; TODO Not all of these gems are packaged for Guix yet: | |
4056 | ;; less, coffee-script, livescript, babel-transpiler, | |
4057 | ;; typescript-node | |
4058 | (("if can_execjs") "if false") | |
4059 | ;; Disable the secondary group to reduce the number of | |
4060 | ;; dependencies. None of the normal approaches work, so patch | |
4061 | ;; the Gemfile instead. | |
4062 | (("group :secondary") "[].each")) | |
4063 | #t))))) | |
4064 | (native-inputs | |
4065 | `(("bundler" ,bundler) | |
4066 | ("ruby-yard" ,ruby-yard) | |
4067 | ("ruby-builder" ,ruby-builder) | |
4068 | ("ruby-erubis" ,ruby-erubis) | |
4069 | ("ruby-markaby" ,ruby-markaby) | |
4070 | ("ruby-sassc" ,ruby-sassc))) | |
4071 | (synopsis "Generic interface to multiple Ruby template engines") | |
4072 | (description | |
4073 | "Tilt is a thin interface over a number of different Ruby template | |
4074 | engines in an attempt to make their usage as generic as possible.") | |
4075 | (home-page "https://github.com/rtomayko/tilt/") | |
4076 | (license license:expat))) | |
4077 | ||
1415792a DT |
4078 | (define-public ruby-thread-safe |
4079 | (package | |
4080 | (name "ruby-thread-safe") | |
313dd5dd | 4081 | (version "0.3.6") |
1415792a DT |
4082 | (source |
4083 | (origin | |
4084 | (method url-fetch) | |
4085 | (uri (rubygems-uri "thread_safe" version)) | |
4086 | (sha256 | |
4087 | (base32 | |
313dd5dd | 4088 | "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy")))) |
1415792a DT |
4089 | (build-system ruby-build-system) |
4090 | (arguments | |
4091 | '(#:tests? #f)) ; needs simplecov, among others | |
4092 | (synopsis "Thread-safe utilities for Ruby") | |
4093 | (description "The thread_safe library provides thread-safe collections and | |
4094 | utilities for Ruby.") | |
4095 | (home-page "https://github.com/ruby-concurrency/thread_safe") | |
4096 | (license license:asl2.0))) | |
08a1b701 DT |
4097 | |
4098 | (define-public ruby-tzinfo | |
4099 | (package | |
4100 | (name "ruby-tzinfo") | |
4237af85 | 4101 | (version "1.2.4") |
08a1b701 DT |
4102 | (source |
4103 | (origin | |
4104 | (method url-fetch) | |
4105 | (uri (rubygems-uri "tzinfo" version)) | |
4106 | (sha256 | |
4107 | (base32 | |
4237af85 | 4108 | "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp")))) |
08a1b701 | 4109 | (build-system ruby-build-system) |
740fea08 CB |
4110 | (arguments |
4111 | '(#:phases | |
4112 | (modify-phases %standard-phases | |
4113 | (add-after 'unpack 'skip-safe-tests | |
4114 | (lambda _ | |
4115 | (substitute* "test/test_utils.rb" | |
4116 | (("def safe_test\\(options = \\{\\}\\)") | |
4117 | "def safe_test(options = {}) | |
4118 | skip('The Guix build environment has an unsafe load path')")) | |
4119 | #t))))) | |
08a1b701 DT |
4120 | (propagated-inputs |
4121 | `(("ruby-thread-safe" ,ruby-thread-safe))) | |
4122 | (synopsis "Time zone library for Ruby") | |
4123 | (description "TZInfo is a Ruby library that provides daylight savings | |
4124 | aware transformations between times in different time zones.") | |
2f3800e5 | 4125 | (home-page "https://tzinfo.github.io") |
1e12924a BW |
4126 | (license license:expat))) |
4127 | ||
4128 | (define-public ruby-tzinfo-data | |
4129 | (package | |
4130 | (name "ruby-tzinfo-data") | |
92513191 | 4131 | (version "1.2017.3") |
1e12924a BW |
4132 | (source |
4133 | (origin | |
bb1e7ed0 | 4134 | (method git-fetch) |
1e12924a BW |
4135 | ;; Download from GitHub because the rubygems version does not contain |
4136 | ;; Rakefile or tests. | |
bb1e7ed0 EF |
4137 | (uri (git-reference |
4138 | (url "https://github.com/tzinfo/tzinfo-data") | |
4139 | (commit (string-append "v" version)))) | |
4140 | (file-name (git-file-name name version)) | |
1e12924a BW |
4141 | (sha256 |
4142 | (base32 | |
bb1e7ed0 | 4143 | "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp")) |
1e12924a BW |
4144 | ;; Remove the known test failure. |
4145 | ;; https://github.com/tzinfo/tzinfo-data/issues/10 | |
4146 | ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128 | |
4147 | (patches (search-patches | |
4148 | "ruby-tzinfo-data-ignore-broken-test.patch")))) | |
4149 | (build-system ruby-build-system) | |
4150 | (propagated-inputs | |
4151 | `(("ruby-tzinfo" ,ruby-tzinfo))) | |
4152 | (synopsis "Data from the IANA Time Zone database") | |
4153 | (description | |
4154 | "This library provides @code{TZInfo::Data}, which contains data from the | |
4155 | IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.") | |
2f3800e5 | 4156 | (home-page "https://tzinfo.github.io") |
08a1b701 | 4157 | (license license:expat))) |
c99e2247 | 4158 | |
48e6851f RW |
4159 | (define-public ruby-rb-inotify |
4160 | (package | |
4161 | (name "ruby-rb-inotify") | |
32bbfea8 | 4162 | (version "0.9.10") |
48e6851f RW |
4163 | (source |
4164 | (origin | |
4165 | (method url-fetch) | |
4166 | (uri (rubygems-uri "rb-inotify" version)) | |
4167 | (sha256 | |
4168 | (base32 | |
32bbfea8 | 4169 | "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71")))) |
48e6851f RW |
4170 | (build-system ruby-build-system) |
4171 | (arguments | |
4172 | '(#:tests? #f ; there are no tests | |
4173 | #:phases | |
4174 | (modify-phases %standard-phases | |
4175 | ;; Building the gemspec with rake is not working here since it is | |
4176 | ;; generated with Jeweler. It is also unnecessary because the | |
4177 | ;; existing gemspec does not use any development tools to generate a | |
4178 | ;; list of files. | |
4179 | (replace 'build | |
4180 | (lambda _ | |
9923d5a4 | 4181 | (invoke "gem" "build" "rb-inotify.gemspec")))))) |
48e6851f RW |
4182 | (propagated-inputs |
4183 | `(("ruby-ffi" ,ruby-ffi))) | |
4184 | (native-inputs | |
4185 | `(("ruby-yard" ,ruby-yard))) | |
4186 | (synopsis "Ruby wrapper for Linux's inotify") | |
4187 | (description "rb-inotify is a simple wrapper over the @code{inotify} Linux | |
4188 | kernel subsystem for monitoring changes to files and directories.") | |
4189 | (home-page "https://github.com/nex3/rb-inotify") | |
4190 | (license license:expat))) | |
4191 | ||
a75bdfce RW |
4192 | (define-public ruby-pry-editline |
4193 | (package | |
4194 | (name "ruby-pry-editline") | |
4195 | (version "1.1.2") | |
4196 | (source (origin | |
4197 | (method url-fetch) | |
4198 | (uri (rubygems-uri "pry-editline" version)) | |
4199 | (sha256 | |
4200 | (base32 | |
4201 | "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z")))) | |
4202 | (build-system ruby-build-system) | |
4203 | (arguments `(#:tests? #f)) ; no tests included | |
4204 | (native-inputs | |
4205 | `(("bundler" ,bundler))) | |
4206 | (synopsis "Open the current REPL line in an editor") | |
4207 | (description | |
4208 | "This gem provides a plugin for the Ruby REPL to enable opening the | |
4209 | current line in an external editor.") | |
4210 | (home-page "https://github.com/tpope/pry-editline") | |
4211 | (license license:expat))) | |
4212 | ||
d3b20a02 RW |
4213 | (define-public ruby-sdoc |
4214 | (package | |
4215 | (name "ruby-sdoc") | |
fdf3a68d | 4216 | (version "0.4.2") |
d3b20a02 RW |
4217 | (source (origin |
4218 | (method url-fetch) | |
4219 | (uri (rubygems-uri "sdoc" version)) | |
4220 | (sha256 | |
4221 | (base32 | |
fdf3a68d | 4222 | "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n")))) |
d3b20a02 RW |
4223 | (build-system ruby-build-system) |
4224 | (arguments | |
4225 | `(#:phases | |
4226 | (modify-phases %standard-phases | |
fc29d5e6 | 4227 | (add-before 'check 'set-rubylib-and-patch-gemfile |
d3b20a02 | 4228 | (lambda _ |
fdf3a68d | 4229 | (setenv "RUBYLIB" "lib") |
fc29d5e6 BW |
4230 | (substitute* "sdoc.gemspec" |
4231 | (("s.add_runtime_dependency.*") "\n") | |
4232 | (("s.add_dependency.*") "\n")) | |
4233 | (substitute* "Gemfile" | |
4234 | (("gem \"rake\".*") | |
4235 | "gem 'rake'\ngem 'rdoc'\ngem 'json'\n")) | |
d3b20a02 RW |
4236 | #t))))) |
4237 | (propagated-inputs | |
4238 | `(("ruby-json" ,ruby-json))) | |
4239 | (native-inputs | |
4240 | `(("bundler" ,bundler) | |
fdf3a68d BW |
4241 | ("ruby-minitest" ,ruby-minitest) |
4242 | ("ruby-hoe" ,ruby-hoe))) | |
d3b20a02 RW |
4243 | (synopsis "Generate searchable RDoc documentation") |
4244 | (description | |
4245 | "SDoc is an RDoc documentation generator to build searchable HTML | |
4246 | documentation for Ruby code.") | |
7bf837fd | 4247 | (home-page "https://github.com/voloko/sdoc") |
d3b20a02 RW |
4248 | (license license:expat))) |
4249 | ||
70b002aa RW |
4250 | (define-public ruby-tins |
4251 | (package | |
4252 | (name "ruby-tins") | |
fbefd6ff | 4253 | (version "1.15.0") |
70b002aa RW |
4254 | (source (origin |
4255 | (method url-fetch) | |
4256 | (uri (rubygems-uri "tins" version)) | |
4257 | (sha256 | |
4258 | (base32 | |
fbefd6ff | 4259 | "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s")))) |
70b002aa RW |
4260 | (build-system ruby-build-system) |
4261 | ;; This gem needs gem-hadar at development time, but gem-hadar needs tins | |
4262 | ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding | |
4263 | ;; the gemspec. | |
4264 | (arguments | |
4265 | `(#:tests? #f ; there are no tests | |
4266 | #:phases | |
4267 | (modify-phases %standard-phases | |
4268 | (replace 'build | |
4269 | (lambda _ | |
4270 | ;; "lib/spruz" is a symlink. Leaving it in the gemspec file | |
4271 | ;; causes an error. | |
4272 | (substitute* "tins.gemspec" | |
4273 | (("\"lib/spruz\", ") "")) | |
9923d5a4 | 4274 | (invoke "gem" "build" "tins.gemspec")))))) |
70b002aa RW |
4275 | (synopsis "Assorted tools for Ruby") |
4276 | (description "Tins is a Ruby library providing assorted tools.") | |
4277 | (home-page "https://github.com/flori/tins") | |
4278 | (license license:expat))) | |
4279 | ||
bc8277e4 RW |
4280 | (define-public ruby-gem-hadar |
4281 | (package | |
4282 | (name "ruby-gem-hadar") | |
3fd577e3 | 4283 | (version "1.9.1") |
bc8277e4 RW |
4284 | (source (origin |
4285 | (method url-fetch) | |
4286 | (uri (rubygems-uri "gem_hadar" version)) | |
4287 | (sha256 | |
4288 | (base32 | |
3fd577e3 | 4289 | "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9")))) |
bc8277e4 RW |
4290 | (build-system ruby-build-system) |
4291 | ;; This gem needs itself at development time. We disable rebuilding of the | |
4292 | ;; gemspec to avoid this loop. | |
4293 | (arguments | |
4294 | `(#:tests? #f ; there are no tests | |
4295 | #:phases | |
4296 | (modify-phases %standard-phases | |
4297 | (replace 'build | |
4298 | (lambda _ | |
9923d5a4 | 4299 | (invoke "gem" "build" "gem_hadar.gemspec")))))) |
bc8277e4 RW |
4300 | (propagated-inputs |
4301 | `(("git" ,git) | |
4302 | ("ruby-tins" ,ruby-tins) | |
3fd577e3 | 4303 | ("ruby-yard" ,ruby-yard))) |
bc8277e4 RW |
4304 | (synopsis "Library for the development of Ruby gems") |
4305 | (description | |
4306 | "This library contains some useful functionality to support the | |
4307 | development of Ruby gems.") | |
4308 | (home-page "https://github.com/flori/gem_hadar") | |
4309 | (license license:expat))) | |
4310 | ||
d8cafe29 RW |
4311 | (define-public ruby-minitest-tu-shim |
4312 | (package | |
4313 | (name "ruby-minitest-tu-shim") | |
4314 | (version "1.3.3") | |
4315 | (source (origin | |
4316 | (method url-fetch) | |
4317 | (uri (rubygems-uri "minitest_tu_shim" version)) | |
4318 | (sha256 | |
4319 | (base32 | |
4320 | "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn")))) | |
4321 | (build-system ruby-build-system) | |
4322 | (arguments | |
4323 | `(#:phases | |
4324 | (modify-phases %standard-phases | |
4325 | (add-after 'unpack 'fix-test-include-path | |
4326 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 4327 | (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))) |
761e7042 BW |
4328 | (substitute* "Rakefile" |
4329 | (("Hoe\\.add_include_dirs .*") | |
4330 | (string-append "Hoe.add_include_dirs \"" | |
3cb3fa67 | 4331 | minitest "/lib/ruby/vendor_ruby" |
761e7042 BW |
4332 | "/gems/minitest-" |
4333 | ,(package-version ruby-minitest-4) | |
4334 | "/lib" "\"")))) | |
4335 | #t)) | |
d8cafe29 RW |
4336 | (add-before 'check 'fix-test-assumptions |
4337 | (lambda _ | |
4338 | ;; The test output includes the file name, so a couple of tests | |
4339 | ;; fail. Changing the regular expressions slightly fixes this | |
4340 | ;; problem. | |
4341 | (substitute* "test/test_mini_test.rb" | |
4342 | (("output.sub!\\(.*, 'FILE:LINE'\\)") | |
4343 | "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')") | |
4344 | (("gsub\\(/.*, 'FILE:LINE'\\)") | |
4345 | "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")) | |
4346 | #t))))) | |
4347 | (propagated-inputs | |
4348 | `(("ruby-minitest-4" ,ruby-minitest-4))) | |
4349 | (native-inputs | |
4350 | `(("ruby-hoe" ,ruby-hoe))) | |
4351 | (synopsis "Adapter library between minitest and test/unit") | |
4352 | (description | |
4353 | "This library bridges the gap between the small and fast minitest and | |
4354 | Ruby's large and slower test/unit.") | |
4355 | (home-page "https://rubygems.org/gems/minitest_tu_shim") | |
4356 | (license license:expat))) | |
4357 | ||
fd83a212 RW |
4358 | (define-public ruby-term-ansicolor |
4359 | (package | |
4360 | (name "ruby-term-ansicolor") | |
f3a6311a | 4361 | (version "1.6.0") |
fd83a212 RW |
4362 | (source (origin |
4363 | (method url-fetch) | |
4364 | (uri (rubygems-uri "term-ansicolor" version)) | |
4365 | (sha256 | |
4366 | (base32 | |
f3a6311a | 4367 | "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b")))) |
fd83a212 RW |
4368 | (build-system ruby-build-system) |
4369 | ;; Rebuilding the gemspec seems to require git, even though this is not a | |
4370 | ;; git repository, so we just build the gem from the existing gemspec. | |
4371 | (arguments | |
4372 | `(#:phases | |
4373 | (modify-phases %standard-phases | |
39ecb977 CB |
4374 | (add-after 'unpack 'fix-test |
4375 | (lambda - | |
4376 | (substitute* "tests/hsl_triple_test.rb" | |
4377 | (("0\\\\\\.0%") | |
4378 | "0\\.?0?%")))) | |
fd83a212 RW |
4379 | (replace 'build |
4380 | (lambda _ | |
9923d5a4 | 4381 | (invoke "gem" "build" "term-ansicolor.gemspec")))))) |
fd83a212 RW |
4382 | (propagated-inputs |
4383 | `(("ruby-tins" ,ruby-tins))) | |
4384 | (native-inputs | |
4385 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
4386 | ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim))) | |
4387 | (synopsis "Ruby library to control the attributes of terminal output") | |
4388 | (description | |
4389 | "This Ruby library uses ANSI escape sequences to control the attributes | |
4390 | of terminal output.") | |
2f3800e5 | 4391 | (home-page "https://flori.github.io/term-ansicolor/") |
fd83a212 RW |
4392 | ;; There is no mention of the "or later" clause. |
4393 | (license license:gpl2))) | |
4394 | ||
a714c30f CB |
4395 | (define-public ruby-terraform |
4396 | (package | |
4397 | (name "ruby-terraform") | |
4398 | (version "0.22.0") | |
4399 | (source | |
4400 | (origin | |
4401 | (method url-fetch) | |
4402 | (uri (rubygems-uri "ruby-terraform" version)) | |
4403 | (sha256 | |
4404 | (base32 | |
4405 | "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324")))) | |
4406 | (build-system ruby-build-system) | |
4407 | (arguments | |
4408 | '(#:tests? #f)) ; No included tests | |
4409 | (propagated-inputs | |
4410 | `(("ruby-lino" ,ruby-lino))) | |
4411 | (synopsis "Ruby wrapper around the Terraform command line interface") | |
4412 | (description | |
4413 | "This package provides a Ruby wrapper around the Terraform command line | |
4414 | interface so that Terraform can be more easily invoked from Ruby code.") | |
4415 | (home-page "https://github.com/infrablocks/ruby_terraform") | |
4416 | (license license:expat))) | |
4417 | ||
6e376ca4 RW |
4418 | (define-public ruby-pstree |
4419 | (package | |
4420 | (name "ruby-pstree") | |
4421 | (version "0.1.0") | |
4422 | (source (origin | |
4423 | (method url-fetch) | |
4424 | (uri (rubygems-uri "pstree" version)) | |
4425 | (sha256 | |
4426 | (base32 | |
4427 | "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1")))) | |
4428 | (build-system ruby-build-system) | |
4429 | (native-inputs | |
4430 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
4431 | ("bundler" ,bundler))) | |
4432 | (synopsis "Create a process tree data structure") | |
4433 | (description | |
4434 | "This library uses the output of the @code{ps} command to create a | |
4435 | process tree data structure for the current host.") | |
2f3800e5 | 4436 | (home-page "https://github.com/flori/pstree") |
6e376ca4 RW |
4437 | ;; There is no mention of the "or later" clause. |
4438 | (license license:gpl2))) | |
4439 | ||
53239b5f RW |
4440 | (define-public ruby-utils |
4441 | (package | |
4442 | (name "ruby-utils") | |
cd698b6e | 4443 | (version "0.9.0") |
53239b5f RW |
4444 | (source (origin |
4445 | (method url-fetch) | |
4446 | (uri (rubygems-uri "utils" version)) | |
4447 | (sha256 | |
4448 | (base32 | |
cd698b6e | 4449 | "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl")))) |
53239b5f RW |
4450 | (build-system ruby-build-system) |
4451 | (propagated-inputs | |
4452 | `(("ruby-tins" ,ruby-tins) | |
4453 | ("ruby-term-ansicolor" ,ruby-term-ansicolor) | |
4454 | ("ruby-pstree" ,ruby-pstree) | |
4455 | ("ruby-pry-editline" ,ruby-pry-editline))) | |
4456 | (native-inputs | |
4457 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
4458 | ("bundler" ,bundler))) | |
4459 | (synopsis "Command line tools for working with Ruby") | |
4460 | (description | |
4461 | "This package provides assorted command line tools that may be useful | |
4462 | when working with Ruby code.") | |
4463 | (home-page "https://github.com/flori/utils") | |
4464 | ;; There is no mention of the "or later" clause. | |
4465 | (license license:gpl2))) | |
4466 | ||
433f10b5 CB |
4467 | (define-public ruby-jaro-winkler |
4468 | (package | |
4469 | (name "ruby-jaro-winkler") | |
37b23e44 | 4470 | (version "1.5.4") |
433f10b5 CB |
4471 | (source |
4472 | (origin | |
4473 | (method url-fetch) | |
4474 | (uri (rubygems-uri "jaro_winkler" version)) | |
4475 | (sha256 | |
37b23e44 | 4476 | (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh")))) |
433f10b5 CB |
4477 | (build-system ruby-build-system) |
4478 | (arguments | |
37b23e44 | 4479 | '(#:tests? #f)) ; no included tests |
433f10b5 CB |
4480 | (synopsis "Ruby implementation of Jaro-Winkler distance algorithm") |
4481 | (description | |
4482 | "@code{jaro_winkler} is an implementation of Jaro-Winkler distance | |
4483 | algorithm. It is written as a C extension and will fallback to a pure Ruby | |
4484 | implementation on platforms where this is unsupported.") | |
4485 | (home-page "https://github.com/tonytonyjan/jaro_winkler") | |
4486 | (license license:expat))) | |
4487 | ||
c99e2247 DT |
4488 | (define-public ruby-json |
4489 | (package | |
4490 | (name "ruby-json") | |
a281acce | 4491 | (version "2.1.0") |
c99e2247 DT |
4492 | (source |
4493 | (origin | |
4494 | (method url-fetch) | |
4495 | (uri (rubygems-uri "json" version)) | |
4496 | (sha256 | |
4497 | (base32 | |
a281acce | 4498 | "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp")))) |
c99e2247 DT |
4499 | (build-system ruby-build-system) |
4500 | (arguments '(#:tests? #f)) ; dependency cycle with sdoc | |
4501 | (synopsis "JSON library for Ruby") | |
4502 | (description "This Ruby library provides a JSON implementation written as | |
4503 | a native C extension.") | |
4504 | (home-page "http://json-jruby.rubyforge.org/") | |
4505 | (license (list license:ruby license:gpl2)))) ; GPL2 only | |
5ff89a1b | 4506 | |
763624f5 RW |
4507 | (define-public ruby-json-pure |
4508 | (package | |
4509 | (name "ruby-json-pure") | |
1c65d99f | 4510 | (version "2.2.0") |
763624f5 RW |
4511 | (source (origin |
4512 | (method url-fetch) | |
4513 | (uri (rubygems-uri "json_pure" version)) | |
4514 | (sha256 | |
4515 | (base32 | |
1c65d99f | 4516 | "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439")))) |
763624f5 RW |
4517 | (build-system ruby-build-system) |
4518 | (arguments | |
ac01cb07 | 4519 | `(#:phases |
763624f5 | 4520 | (modify-phases %standard-phases |
ac01cb07 | 4521 | (add-after 'unpack 'fix-rakefile |
763624f5 | 4522 | (lambda _ |
ac01cb07 BW |
4523 | (substitute* "Rakefile" |
4524 | ;; Since this is not a git repository, do not call 'git'. | |
4525 | (("`git ls-files`") "`find . -type f |sort`") | |
4526 | ;; Loosen dependency constraint. | |
4527 | (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'")) | |
4528 | #t)) | |
4529 | (add-after 'replace-git-ls-files 'regenerate-gemspec | |
4530 | (lambda _ | |
4531 | ;; Regenerate gemspec so loosened dependency constraints are | |
4532 | ;; propagated. | |
17cfb7ae CB |
4533 | (invoke "rake" "gemspec"))) |
4534 | (add-after 'regenerate-gemspec 'fix-json-java.gemspec | |
4535 | (lambda _ | |
4536 | ;; This gemspec doesn't look to be generated by the above | |
4537 | ;; command, so patch it separately. | |
4538 | (substitute* "json-java.gemspec" | |
4539 | (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]") | |
4540 | "%q<test-unit>.freeze, [\">= 2.0\"]")) | |
4541 | #t))))) | |
763624f5 | 4542 | (native-inputs |
ac01cb07 | 4543 | `(("bundler" ,bundler) |
0c9f73cd TGR |
4544 | ("ragel" ,ragel) |
4545 | ("ruby-simplecov" ,ruby-simplecov) | |
4546 | ("ruby-test-unit" ,ruby-test-unit))) | |
763624f5 RW |
4547 | (synopsis "JSON implementation in pure Ruby") |
4548 | (description | |
4549 | "This package provides a JSON implementation written in pure Ruby.") | |
1c65d99f | 4550 | (home-page "https://flori.github.com/json/") |
763624f5 RW |
4551 | (license license:ruby))) |
4552 | ||
2a8581ac CB |
4553 | (define-public ruby-jwt |
4554 | (package | |
4555 | (name "ruby-jwt") | |
4556 | (version "2.1.0") | |
4557 | (source | |
4558 | (origin | |
4559 | (method url-fetch) | |
4560 | (uri (rubygems-uri "jwt" version)) | |
4561 | (sha256 | |
4562 | (base32 | |
4563 | "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky")))) | |
4564 | (build-system ruby-build-system) | |
4565 | (arguments | |
4566 | '(#:test-target "test" | |
4567 | #:phases | |
4568 | (modify-phases %standard-phases | |
4569 | (add-after 'unpack 'remove-unnecessary-dependencies | |
4570 | (lambda _ | |
4571 | (substitute* "spec/spec_helper.rb" | |
4572 | (("require 'simplecov.*") "\n") | |
4573 | ;; Use [].each to disable running the SimpleCov configuration | |
4574 | ;; block | |
4575 | (("SimpleCov\\.configure") "[].each") | |
4576 | (("require 'codeclimate-test-reporter'") "") | |
4577 | (("require 'codacy-coverage'") "") | |
4578 | (("Codacy::Reporter\\.start") "")) | |
4579 | #t))))) | |
4580 | (native-inputs | |
4581 | `(("bundler" ,bundler) | |
4582 | ("ruby-rspec" ,ruby-rspec) | |
4583 | ("ruby-rbnacl" ,ruby-rbnacl))) | |
4584 | (synopsis "Ruby implementation of the JSON Web Token standard") | |
4585 | (description | |
4586 | "This package provides a pure Ruby implementation of the RFC 7519 OAuth | |
4587 | @acronym{JWT, JSON Web Token} standard.") | |
4588 | (home-page "https://github.com/jwt/ruby-jwt") | |
4589 | (license license:expat))) | |
4590 | ||
16b324cd RW |
4591 | ;; Even though this package only provides bindings for a Mac OSX API it is |
4592 | ;; required by "ruby-listen" at runtime. | |
4593 | (define-public ruby-rb-fsevent | |
4594 | (package | |
4595 | (name "ruby-rb-fsevent") | |
b0ef15ed | 4596 | (version "0.10.3") |
16b324cd RW |
4597 | (source (origin |
4598 | (method url-fetch) | |
4599 | (uri (rubygems-uri "rb-fsevent" version)) | |
4600 | (sha256 | |
4601 | (base32 | |
b0ef15ed | 4602 | "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8")))) |
16b324cd RW |
4603 | (build-system ruby-build-system) |
4604 | ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs | |
4605 | ;; "listen", which needs "rb-fsevent" at runtime. | |
4606 | (arguments `(#:tests? #f)) | |
4607 | (synopsis "FSEvents API with signals catching") | |
4608 | (description | |
4609 | "This library provides Ruby bindings for the Mac OSX FSEvents API.") | |
4610 | (home-page "https://rubygems.org/gems/rb-fsevent") | |
4611 | (license license:expat))) | |
4612 | ||
b86be2ad RW |
4613 | (define-public ruby-listen |
4614 | (package | |
4615 | (name "ruby-listen") | |
12341d34 | 4616 | (version "3.2.0") |
b86be2ad RW |
4617 | (source |
4618 | (origin | |
35602819 CB |
4619 | ;; The gem does not include a Rakefile, so fetch from the Git |
4620 | ;; repository. | |
4621 | (method git-fetch) | |
4622 | (uri (git-reference | |
4623 | (url "https://github.com/guard/listen.git") | |
4624 | (commit (string-append "v" version)))) | |
4625 | (file-name (git-file-name name version)) | |
b86be2ad RW |
4626 | (sha256 |
4627 | (base32 | |
12341d34 | 4628 | "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24")))) |
b86be2ad | 4629 | (build-system ruby-build-system) |
35602819 CB |
4630 | (arguments |
4631 | `(#:test-target "spec" | |
4632 | #:phases | |
4633 | (modify-phases %standard-phases | |
4634 | (add-after 'unpack 'fix-files-in-gemspec | |
4635 | (lambda _ | |
4636 | (substitute* "listen.gemspec" | |
4637 | (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`")) | |
4638 | #t)) | |
4639 | (add-before 'check 'remove-unnecessary-dependencies' | |
4640 | (lambda _ | |
4641 | (substitute* "Rakefile" | |
4642 | ;; Rubocop is for code linting, and is unnecessary for running | |
4643 | ;; the tests. | |
4644 | ((".*rubocop.*") "")) | |
4645 | #t))))) | |
4646 | (native-inputs | |
4647 | `(("bundler" ,bundler) | |
4648 | ("ruby-rspec" ,ruby-rspec))) | |
4649 | (inputs | |
4650 | `(;; ruby-thor is used for the command line interface, and is referenced | |
4651 | ;; in the wrapper, and therefore just needs to be an input. | |
4652 | ("ruby-thor" ,ruby-thor))) | |
b86be2ad | 4653 | (propagated-inputs |
35602819 CB |
4654 | `(("ruby-rb-fsevent" ,ruby-rb-fsevent) |
4655 | ("ruby-rb-inotify" ,ruby-rb-inotify) | |
4656 | ("ruby-dep" ,ruby-dep))) | |
b86be2ad RW |
4657 | (synopsis "Listen to file modifications") |
4658 | (description "The Listen gem listens to file modifications and notifies | |
4659 | you about the changes.") | |
4660 | (home-page "https://github.com/guard/listen") | |
4661 | (license license:expat))) | |
4662 | ||
8d3c5ff6 CB |
4663 | (define-public ruby-loofah |
4664 | (package | |
4665 | (name "ruby-loofah") | |
4666 | (version "2.2.3") | |
4667 | (source | |
4668 | (origin | |
4669 | (method url-fetch) | |
4670 | (uri (rubygems-uri "loofah" version)) | |
4671 | (sha256 | |
4672 | (base32 | |
4673 | "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg")))) | |
4674 | (build-system ruby-build-system) | |
4675 | (arguments | |
4676 | '(#:phases | |
4677 | (modify-phases %standard-phases | |
4678 | (add-after 'unpack 'remove-unnecessary-dependencies | |
4679 | (lambda _ | |
4680 | ;; concourse is a development tool which is unused, so remove it | |
4681 | ;; so it's not required. | |
4682 | (substitute* "Gemfile" | |
4683 | ((".*\"concourse\".*") "\n")) | |
4684 | (substitute* "Rakefile" | |
4685 | (("require 'concourse'") "") | |
4686 | (("Concourse\\.new.*") "\n")) | |
4687 | #t))))) | |
4688 | (native-inputs | |
4689 | `(("ruby-hoe" ,ruby-hoe) | |
4690 | ("ruby-rr" ,ruby-rr))) | |
4691 | (propagated-inputs | |
4692 | `(("ruby-nokogiri" ,ruby-nokogiri) | |
4693 | ("ruby-crass" ,ruby-crass))) | |
4694 | (synopsis "Ruby library for manipulating and transforming HTML/XML") | |
4695 | (description | |
4696 | "Loofah is a general library for manipulating and transforming HTML/XML | |
4697 | documents and fragments. It's built on top of Nokogiri and libxml2.") | |
4698 | (home-page "https://github.com/flavorjones/loofah") | |
4699 | (license license:expat))) | |
4700 | ||
5ff89a1b DT |
4701 | (define-public ruby-activesupport |
4702 | (package | |
4703 | (name "ruby-activesupport") | |
bcf1fe5b | 4704 | (version "5.2.2.1") |
5ff89a1b DT |
4705 | (source |
4706 | (origin | |
4707 | (method url-fetch) | |
4708 | (uri (rubygems-uri "activesupport" version)) | |
4709 | (sha256 | |
4710 | (base32 | |
bcf1fe5b | 4711 | "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb")))) |
5ff89a1b DT |
4712 | (build-system ruby-build-system) |
4713 | (arguments | |
2af45e50 BW |
4714 | `(#:phases |
4715 | (modify-phases %standard-phases | |
4716 | (replace 'check | |
4717 | (lambda _ | |
9923d5a4 TGR |
4718 | ;; There are no tests, instead attempt to load the library. |
4719 | (invoke "ruby" "-Ilib" "-r" "active_support")))))) | |
5ff89a1b | 4720 | (propagated-inputs |
2af45e50 BW |
4721 | `(("ruby-concurrent" ,ruby-concurrent) |
4722 | ("ruby-i18n" ,ruby-i18n) | |
5ff89a1b | 4723 | ("ruby-minitest" ,ruby-minitest) |
606ee9a1 BW |
4724 | ("ruby-tzinfo" ,ruby-tzinfo) |
4725 | ("ruby-tzinfo-data" ,ruby-tzinfo-data))) | |
5ff89a1b DT |
4726 | (synopsis "Ruby on Rails utility library") |
4727 | (description "ActiveSupport is a toolkit of support libraries and Ruby | |
4728 | core extensions extracted from the Rails framework. It includes support for | |
4729 | multibyte strings, internationalization, time zones, and testing.") | |
4730 | (home-page "http://www.rubyonrails.org") | |
4731 | (license license:expat))) | |
f847ad7b | 4732 | |
3996f0aa RW |
4733 | (define-public ruby-crass |
4734 | (package | |
4735 | (name "ruby-crass") | |
a0e0f9d7 | 4736 | (version "1.0.4") |
3996f0aa RW |
4737 | (source (origin |
4738 | (method url-fetch) | |
4739 | (uri (rubygems-uri "crass" version)) | |
4740 | (sha256 | |
4741 | (base32 | |
a0e0f9d7 | 4742 | "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi")))) |
3996f0aa RW |
4743 | (build-system ruby-build-system) |
4744 | (native-inputs | |
4745 | `(("bundler" ,bundler) | |
4746 | ("ruby-minitest" ,ruby-minitest))) | |
4747 | (synopsis "Pure Ruby CSS parser") | |
4748 | (description | |
4749 | "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.") | |
4750 | (home-page "https://github.com/rgrove/crass/") | |
4751 | (license license:expat))) | |
4752 | ||
c2c4e5b2 | 4753 | (define-public ruby-nokogumbo |
f1ae7c62 BW |
4754 | (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd")) |
4755 | (package | |
4756 | (name "ruby-nokogumbo") | |
4757 | (version (string-append "1.4.7-1." (string-take commit 8))) | |
4758 | (source (origin | |
4759 | ;; We use the git reference, because there's no Rakefile in the | |
4760 | ;; published gem and the tarball on Github is outdated. | |
4761 | (method git-fetch) | |
4762 | (uri (git-reference | |
4763 | (url "https://github.com/rubys/nokogumbo.git") | |
4764 | (commit "d56f954d20a"))) | |
4765 | (file-name (string-append name "-" version "-checkout")) | |
4766 | (sha256 | |
4767 | (base32 | |
4768 | "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl")))) | |
4769 | (build-system ruby-build-system) | |
4770 | (arguments | |
4771 | `(#:modules ((guix build ruby-build-system) | |
4772 | (guix build utils) | |
4773 | (ice-9 rdelim)) | |
4774 | #:phases | |
4775 | (modify-phases %standard-phases | |
5c31e981 | 4776 | (add-after 'unpack 'build-gemspec |
f1ae7c62 BW |
4777 | (lambda _ |
4778 | (substitute* "Rakefile" | |
4779 | ;; Build Makefile even without a copy of gumbo-parser sources | |
4780 | (("'gumbo-parser/src',") "") | |
4781 | ;; We don't bundle gumbo-parser sources | |
4782 | (("'gumbo-parser/src/\\*',") "") | |
4783 | (("'gumbo-parser/visualc/include/\\*',") "") | |
4784 | ;; The definition of SOURCES will be cut in gemspec, and | |
4785 | ;; "FileList" will be undefined. | |
4786 | (("SOURCES \\+ FileList\\[") | |
4787 | "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', ")) | |
4788 | ||
4789 | ;; Copy the Rakefile and cut out the gemspec. | |
4790 | (copy-file "Rakefile" ".gemspec") | |
4791 | (with-atomic-file-replacement ".gemspec" | |
4792 | (lambda (in out) | |
4793 | (let loop ((line (read-line in 'concat)) | |
4794 | (skipping? #t)) | |
4795 | (if (eof-object? line) | |
4796 | #t | |
4797 | (let ((skip-next? (if skipping? | |
4798 | (not (string-prefix? "SPEC =" line)) | |
4799 | (string-prefix? "end" line)))) | |
4800 | (when (or (not skipping?) | |
4801 | (and skipping? (not skip-next?))) | |
4802 | (format #t "~a" line) | |
4803 | (display line out)) | |
4804 | (loop (read-line in 'concat) skip-next?)))))) | |
4805 | #t))))) | |
4806 | (inputs | |
4807 | `(("gumbo-parser" ,gumbo-parser))) | |
4808 | (propagated-inputs | |
4809 | `(("ruby-nokogiri" ,ruby-nokogiri))) | |
4810 | (synopsis "Ruby bindings to the Gumbo HTML5 parser") | |
4811 | (description | |
4812 | "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and | |
c2c4e5b2 | 4813 | access the result as a Nokogiri parsed document.") |
f1ae7c62 BW |
4814 | (home-page "https://github.com/rubys/nokogumbo/") |
4815 | (license license:asl2.0)))) | |
c2c4e5b2 | 4816 | |
d56ff88b RW |
4817 | (define-public ruby-sanitize |
4818 | (package | |
4819 | (name "ruby-sanitize") | |
f812145e | 4820 | (version "4.6.3") |
d56ff88b RW |
4821 | (source (origin |
4822 | (method url-fetch) | |
4823 | ;; The gem does not include the Rakefile, so we download the | |
4824 | ;; release tarball from Github. | |
4825 | (uri (string-append "https://github.com/rgrove/" | |
4826 | "sanitize/archive/v" version ".tar.gz")) | |
4827 | (file-name (string-append name "-" version ".tar.gz")) | |
4828 | (sha256 | |
4829 | (base32 | |
f812145e | 4830 | "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc")))) |
d56ff88b RW |
4831 | (build-system ruby-build-system) |
4832 | (propagated-inputs | |
4833 | `(("ruby-crass" ,ruby-crass) | |
4834 | ("ruby-nokogiri" ,ruby-nokogiri) | |
4835 | ("ruby-nokogumbo" ,ruby-nokogumbo))) | |
4836 | (native-inputs | |
4837 | `(("bundler" ,bundler) | |
4838 | ("ruby-minitest" ,ruby-minitest) | |
4839 | ("ruby-redcarpet" ,ruby-redcarpet) | |
4840 | ("ruby-yard" ,ruby-yard))) | |
4841 | (synopsis "Whitelist-based HTML and CSS sanitizer") | |
4842 | (description | |
4843 | "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of | |
4844 | acceptable elements, attributes, and CSS properties, Sanitize will remove all | |
4845 | unacceptable HTML and/or CSS from a string.") | |
4846 | (home-page "https://github.com/rgrove/sanitize/") | |
4847 | (license license:expat))) | |
4848 | ||
ed4b6b18 BW |
4849 | (define-public ruby-oj |
4850 | (package | |
4851 | (name "ruby-oj") | |
93dfdec5 | 4852 | (version "3.10.1") |
ed4b6b18 BW |
4853 | (source |
4854 | (origin | |
b09ef660 | 4855 | (method git-fetch) |
ed4b6b18 BW |
4856 | ;; Version on rubygems.org does not contain Rakefile, so download from |
4857 | ;; GitHub instead. | |
b09ef660 EF |
4858 | (uri (git-reference |
4859 | (url "https://github.com/ohler55/oj") | |
4860 | (commit (string-append "v" version)))) | |
4861 | (file-name (git-file-name name version)) | |
ed4b6b18 BW |
4862 | (sha256 |
4863 | (base32 | |
93dfdec5 | 4864 | "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw")))) |
ed4b6b18 BW |
4865 | (build-system ruby-build-system) |
4866 | (arguments | |
4867 | '(#:test-target "test_all" | |
4868 | #:phases | |
4869 | (modify-phases %standard-phases | |
4870 | (add-before 'check 'disable-bundler | |
4871 | (lambda _ | |
4872 | (substitute* "Rakefile" | |
4873 | (("Bundler\\.with_clean_env") "1.times") | |
4874 | (("bundle exec ") ""))))))) | |
4875 | (native-inputs | |
4876 | `(("bundler" ,bundler) | |
4877 | ("ruby-rspec" ,ruby-rspec) | |
4878 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
4879 | (synopsis "JSON parser for Ruby optimized for speed") | |
4880 | (description | |
4881 | "Oj is a JSON parser and generator for Ruby, where the encoding and | |
4882 | decoding of JSON is implemented as a C extension to Ruby.") | |
b09ef660 | 4883 | (home-page "http://www.ohler.com/oj/") |
ed4b6b18 BW |
4884 | (license (list license:expat ; Ruby code |
4885 | license:bsd-3)))) ; extension code | |
4886 | ||
f847ad7b DT |
4887 | (define-public ruby-ox |
4888 | (package | |
4889 | (name "ruby-ox") | |
263c0dbf | 4890 | (version "2.6.0") |
f847ad7b DT |
4891 | (source |
4892 | (origin | |
4893 | (method url-fetch) | |
4894 | (uri (rubygems-uri "ox" version)) | |
4895 | (sha256 | |
4896 | (base32 | |
263c0dbf | 4897 | "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83")))) |
f847ad7b DT |
4898 | (build-system ruby-build-system) |
4899 | (arguments | |
4900 | '(#:tests? #f)) ; no tests | |
4901 | (synopsis "Optimized XML library for Ruby") | |
4902 | (description | |
4903 | "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby | |
4904 | written as a native C extension. It was designed to be an alternative to | |
4905 | Nokogiri and other Ruby XML parsers for generic XML parsing and as an | |
4906 | alternative to Marshal for Object serialization. ") | |
4907 | (home-page "http://www.ohler.com/ox") | |
4908 | (license license:expat))) | |
4a9e0585 | 4909 | |
0c4e7625 RW |
4910 | (define-public ruby-redcloth |
4911 | (package | |
4912 | (name "ruby-redcloth") | |
2a91494e | 4913 | (version "4.3.2") |
0c4e7625 RW |
4914 | (source (origin |
4915 | (method url-fetch) | |
4916 | (uri (rubygems-uri "RedCloth" version)) | |
4917 | (sha256 | |
4918 | (base32 | |
2a91494e | 4919 | "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy")))) |
0c4e7625 RW |
4920 | (build-system ruby-build-system) |
4921 | (arguments | |
4922 | `(#:tests? #f ; no tests | |
4923 | #:phases | |
4924 | (modify-phases %standard-phases | |
4925 | ;; Redcloth has complicated rake tasks to build various versions for | |
4926 | ;; multiple targets using RVM. We don't want this so we just use the | |
4927 | ;; existing gemspec. | |
4928 | (replace 'build | |
4929 | (lambda _ | |
9923d5a4 | 4930 | (invoke "gem" "build" "redcloth.gemspec")))))) |
0c4e7625 RW |
4931 | (native-inputs |
4932 | `(("bundler" ,bundler) | |
4933 | ("ruby-diff-lcs" ,ruby-diff-lcs) | |
4934 | ("ruby-rspec-2" ,ruby-rspec-2))) | |
4935 | (synopsis "Textile markup language parser for Ruby") | |
4936 | (description | |
4937 | "RedCloth is a Ruby parser for the Textile markup language.") | |
4938 | (home-page "http://redcloth.org") | |
4939 | (license license:expat))) | |
4940 | ||
4a9e0585 DT |
4941 | (define-public ruby-pg |
4942 | (package | |
4943 | (name "ruby-pg") | |
ffc4869e | 4944 | (version "1.1.4") |
4a9e0585 DT |
4945 | (source |
4946 | (origin | |
4947 | (method url-fetch) | |
4948 | (uri (rubygems-uri "pg" version)) | |
4949 | (sha256 | |
4950 | (base32 | |
ffc4869e | 4951 | "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy")))) |
4a9e0585 DT |
4952 | (build-system ruby-build-system) |
4953 | (arguments | |
4954 | '(#:test-target "spec")) | |
4955 | (native-inputs | |
4956 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
4957 | ("ruby-hoe" ,ruby-hoe) | |
4958 | ("ruby-rspec" ,ruby-rspec))) | |
4959 | (inputs | |
ffc4869e | 4960 | `(("postgresql" ,postgresql))) |
4a9e0585 DT |
4961 | (synopsis "Ruby interface to PostgreSQL") |
4962 | (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works | |
4db80f8b | 4963 | with PostgreSQL 9.0 and later.") |
4a9e0585 DT |
4964 | (home-page "https://bitbucket.org/ged/ruby-pg") |
4965 | (license license:ruby))) | |
468e5657 DT |
4966 | |
4967 | (define-public ruby-byebug | |
4968 | (package | |
4969 | (name "ruby-byebug") | |
d5489a61 | 4970 | (version "9.0.6") |
468e5657 DT |
4971 | (source |
4972 | (origin | |
4973 | (method url-fetch) | |
4974 | (uri (rubygems-uri "byebug" version)) | |
4975 | (sha256 | |
4976 | (base32 | |
d5489a61 | 4977 | "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0")))) |
468e5657 DT |
4978 | (build-system ruby-build-system) |
4979 | (arguments | |
4980 | '(#:tests? #f)) ; no tests | |
4981 | (synopsis "Debugger for Ruby 2") | |
4982 | (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2 | |
4983 | TracePoint C API for execution control and the Debug Inspector C API for call | |
4984 | stack navigation. The core component provides support that front-ends can | |
4985 | build on. It provides breakpoint handling and bindings for stack frames among | |
4986 | other things and it comes with a command line interface.") | |
7bf837fd | 4987 | (home-page "https://github.com/deivid-rodriguez/byebug") |
468e5657 | 4988 | (license license:bsd-2))) |
64b6ccc3 | 4989 | |
5799bc2b RW |
4990 | (define-public ruby-netrc |
4991 | (package | |
4992 | (name "ruby-netrc") | |
4993 | (version "0.11.0") | |
4994 | (source (origin | |
4995 | (method url-fetch) | |
4996 | (uri (rubygems-uri "netrc" version)) | |
4997 | (sha256 | |
4998 | (base32 | |
4999 | "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y")))) | |
5000 | (build-system ruby-build-system) | |
5001 | (arguments | |
5002 | `(#:phases | |
5003 | (modify-phases %standard-phases | |
5004 | (replace 'check | |
5005 | ;; There is no Rakefile and minitest can only run one file at once, | |
5006 | ;; so we have to iterate over all test files. | |
5007 | (lambda _ | |
9923d5a4 TGR |
5008 | (map (lambda (file) |
5009 | (invoke "ruby" "-Itest" file)) | |
5010 | (find-files "./test" "test_.*\\.rb"))))))) | |
5799bc2b RW |
5011 | (native-inputs |
5012 | `(("ruby-minitest" ,ruby-minitest))) | |
5013 | (synopsis "Library to read and update netrc files") | |
5014 | (description | |
5015 | "This library can read and update netrc files, preserving formatting | |
5016 | including comments and whitespace.") | |
5017 | (home-page "https://github.com/geemus/netrc") | |
5018 | (license license:expat))) | |
5019 | ||
3a6989ce RW |
5020 | (define-public ruby-unf-ext |
5021 | (package | |
5022 | (name "ruby-unf-ext") | |
14db8f19 | 5023 | (version "0.0.7.6") |
3a6989ce RW |
5024 | (source (origin |
5025 | (method url-fetch) | |
5026 | (uri (rubygems-uri "unf_ext" version)) | |
5027 | (sha256 | |
5028 | (base32 | |
14db8f19 | 5029 | "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf")))) |
3a6989ce | 5030 | (build-system ruby-build-system) |
b809cc9a RW |
5031 | (arguments |
5032 | `(#:phases | |
5033 | (modify-phases %standard-phases | |
5034 | (add-after 'build 'build-ext | |
14db8f19 MB |
5035 | (lambda _ (invoke "rake" "compile:unf_ext"))) |
5036 | (add-before 'check 'lose-rake-compiler-dock-dependency | |
5037 | (lambda _ | |
5038 | ;; rake-compiler-dock is listed in the gemspec, but only | |
5039 | ;; required when cross-compiling. | |
5040 | (substitute* "unf_ext.gemspec" | |
5041 | ((".*rake-compiler-dock.*") "")) | |
5042 | #t))))) | |
3a6989ce RW |
5043 | (native-inputs |
5044 | `(("bundler" ,bundler) | |
5045 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
5046 | ("ruby-test-unit" ,ruby-test-unit))) | |
5047 | (synopsis "Unicode normalization form support library") | |
5048 | (description | |
5049 | "This package provides unicode normalization form support for Ruby.") | |
5050 | (home-page "https://github.com/knu/ruby-unf_ext") | |
5051 | (license license:expat))) | |
5052 | ||
2632a067 | 5053 | (define-public ruby-tdiff |
5071f17b BW |
5054 | ;; Use a newer than released snapshot so that rspec-2 is not required. |
5055 | (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2")) | |
5056 | (package | |
5057 | (name "ruby-tdiff") | |
5058 | (version (string-append "0.3.3-1." (string-take commit 8))) | |
5059 | (source (origin | |
5060 | (method git-fetch) | |
5061 | (uri (git-reference | |
5062 | (url "https://github.com/postmodern/tdiff.git") | |
5063 | (commit commit))) | |
5064 | (file-name (string-append name "-" version "-checkout")) | |
5065 | (sha256 | |
5066 | (base32 | |
5067 | "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4")))) | |
5068 | (build-system ruby-build-system) | |
5069 | (native-inputs | |
5070 | `(("ruby-rspec" ,ruby-rspec) | |
5071 | ("ruby-yard" ,ruby-yard) | |
5072 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) | |
5073 | (synopsis "Calculate the differences between two tree-like structures") | |
5074 | (description | |
5075 | "This library provides functions to calculate the differences between two | |
2632a067 | 5076 | tree-like structures. It is similar to Ruby's built-in @code{TSort} module.") |
5071f17b BW |
5077 | (home-page "https://github.com/postmodern/tdiff") |
5078 | (license license:expat)))) | |
2632a067 | 5079 | |
f60f5002 | 5080 | (define-public ruby-nokogiri-diff |
5b0c223a BW |
5081 | ;; Use a newer than released snapshot so that rspec-2 is not required. |
5082 | (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5")) | |
5083 | (package | |
5084 | (name "ruby-nokogiri-diff") | |
5085 | (version (string-append "0.2.0-1." (string-take commit 8))) | |
5086 | (source (origin | |
5087 | (method git-fetch) | |
5088 | (uri (git-reference | |
5089 | (url "https://github.com/postmodern/nokogiri-diff.git") | |
5090 | (commit commit))) | |
5091 | (file-name (string-append name "-" version "-checkout")) | |
5092 | (sha256 | |
5093 | (base32 | |
5094 | "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf")))) | |
5095 | (build-system ruby-build-system) | |
5096 | (propagated-inputs | |
5097 | `(("ruby-tdiff" ,ruby-tdiff) | |
5098 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
5099 | (native-inputs | |
5100 | `(("ruby-rspec" ,ruby-rspec) | |
5101 | ("ruby-yard" ,ruby-yard) | |
5102 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) | |
5103 | (synopsis "Calculate the differences between two XML/HTML documents") | |
5104 | (description | |
5105 | "@code{Nokogiri::Diff} adds the ability to calculate the | |
f60f5002 | 5106 | differences (added or removed nodes) between two XML/HTML documents.") |
5b0c223a BW |
5107 | (home-page "https://github.com/postmodern/nokogiri-diff") |
5108 | (license license:expat)))) | |
f60f5002 | 5109 | |
6dc21310 CB |
5110 | (define-public ruby-racc |
5111 | (package | |
5112 | (name "ruby-racc") | |
5113 | (version "1.4.14") | |
5114 | (source | |
5115 | (origin | |
5116 | (method url-fetch) | |
5117 | (uri (rubygems-uri "racc" version)) | |
5118 | (sha256 | |
5119 | (base32 | |
5120 | "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl")))) | |
5121 | (build-system ruby-build-system) | |
5122 | (native-inputs | |
5123 | `(("ruby-hoe" ,ruby-hoe) | |
5124 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
5125 | (synopsis "LALR(1) parser generator for Ruby") | |
5126 | (description | |
5127 | "Racc is a LALR(1) parser generator. It is written in Ruby itself, and | |
5128 | generates Ruby program.") | |
5129 | (home-page "http://i.loveruby.net/en/projects/racc/") | |
5130 | (license (list | |
5131 | ;; Generally licensed under the LGPL2.1, and some files also | |
5132 | ;; available under the same license as Ruby. | |
5133 | license:lgpl2.1 | |
5134 | license:ruby)))) | |
5135 | ||
64b6ccc3 DT |
5136 | (define-public ruby-rack |
5137 | (package | |
5138 | (name "ruby-rack") | |
288d2480 | 5139 | (version "2.0.6") |
64b6ccc3 DT |
5140 | (source |
5141 | (origin | |
83870c32 | 5142 | (method git-fetch) |
1db791d5 | 5143 | ;; Download from GitHub so that the patch can be applied. |
83870c32 EF |
5144 | (uri (git-reference |
5145 | (url "https://github.com/rack/rack") | |
5146 | (commit version))) | |
5147 | (file-name (git-file-name name version)) | |
64b6ccc3 DT |
5148 | (sha256 |
5149 | (base32 | |
83870c32 | 5150 | "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6")) |
1db791d5 BW |
5151 | ;; Ignore test which fails inside the build environment but works |
5152 | ;; outside. | |
5153 | (patches (search-patches "ruby-rack-ignore-failing-test.patch")))) | |
64b6ccc3 DT |
5154 | (build-system ruby-build-system) |
5155 | (arguments | |
5156 | '(#:phases | |
5157 | (modify-phases %standard-phases | |
5158 | (add-before 'check 'fix-tests | |
5159 | (lambda _ | |
5160 | ;; A few of the tests use the length of a file on disk for | |
5161 | ;; Content-Length and Content-Range headers. However, this file | |
5162 | ;; has a shebang in it which an earlier phase patches, growing | |
5163 | ;; the file size from 193 to 239 bytes when the store prefix is | |
5164 | ;; "/gnu/store". | |
5165 | (let ((size-diff (- (string-length (which "ruby")) | |
5166 | (string-length "/usr/bin/env ruby")))) | |
5167 | (substitute* '("test/spec_file.rb") | |
5168 | (("193") | |
5169 | (number->string (+ 193 size-diff))) | |
5170 | (("bytes(.)22-33" all delimiter) | |
5171 | (string-append "bytes" | |
5172 | delimiter | |
5173 | (number->string (+ 22 size-diff)) | |
5174 | "-" | |
5175 | (number->string (+ 33 size-diff)))))) | |
83870c32 EF |
5176 | #t)) |
5177 | (add-before 'reset-gzip-timestamps 'make-files-writable | |
5178 | (lambda* (#:key outputs #:allow-other-keys) | |
5179 | ;; Make sure .gz files are writable so that the | |
5180 | ;; 'reset-gzip-timestamps' phase can do its work. | |
5181 | (let ((out (assoc-ref outputs "out"))) | |
5182 | (for-each make-file-writable | |
5183 | (find-files out "\\.gz$")) | |
5184 | #t)))))) | |
64b6ccc3 | 5185 | (native-inputs |
1db791d5 BW |
5186 | `(("ruby-minitest" ,ruby-minitest) |
5187 | ("ruby-minitest-sprint" ,ruby-minitest-sprint) | |
5188 | ("which" ,which))) | |
5189 | (propagated-inputs | |
5190 | `(("ruby-concurrent" ,ruby-concurrent))) | |
64b6ccc3 DT |
5191 | (synopsis "Unified web application interface for Ruby") |
5192 | (description "Rack provides a minimal, modular and adaptable interface for | |
5193 | developing web applications in Ruby. By wrapping HTTP requests and responses, | |
5194 | it unifies the API for web servers, web frameworks, and software in between | |
5195 | into a single method call.") | |
2f3800e5 | 5196 | (home-page "https://rack.github.io/") |
64b6ccc3 | 5197 | (license license:expat))) |
62e4cc5a | 5198 | |
20a0f804 BW |
5199 | (define-public ruby-rack-test |
5200 | (package | |
5201 | (name "ruby-rack-test") | |
5202 | (version "0.8.3") | |
5203 | (source | |
5204 | (origin | |
5205 | (method url-fetch) | |
5206 | (uri (rubygems-uri "rack-test" version)) | |
5207 | (sha256 | |
5208 | (base32 | |
5209 | "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g")))) | |
5210 | (build-system ruby-build-system) | |
5211 | (arguments | |
5212 | ;; Disable tests because of circular dependencies: requires sinatra, | |
5213 | ;; which requires rack-protection, which requires rack-test. Instead | |
5214 | ;; simply require the library. | |
5215 | `(#:phases | |
5216 | (modify-phases %standard-phases | |
5217 | (replace 'check | |
5218 | (lambda _ | |
5219 | (invoke "ruby" "-Ilib" "-r" "rack/test")))))) | |
5220 | (propagated-inputs | |
5221 | `(("ruby-rack" ,ruby-rack))) | |
5222 | (synopsis "Testing API for Rack applications") | |
5223 | (description | |
5224 | "Rack::Test is a small, simple testing API for Rack applications. It can | |
5225 | be used on its own or as a reusable starting point for Web frameworks and | |
5226 | testing libraries to build on.") | |
5227 | (home-page "https://github.com/rack-test/rack-test") | |
5228 | (license license:expat))) | |
5229 | ||
a0a7e690 BW |
5230 | (define-public ruby-rack-protection |
5231 | (package | |
5232 | (name "ruby-rack-protection") | |
3355e49c | 5233 | (version "2.0.5") |
a0a7e690 BW |
5234 | (source |
5235 | (origin | |
5236 | (method url-fetch) | |
5237 | (uri (rubygems-uri "rack-protection" version)) | |
5238 | (sha256 | |
5239 | (base32 | |
3355e49c | 5240 | "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk")))) |
a0a7e690 BW |
5241 | (build-system ruby-build-system) |
5242 | (arguments | |
fafeeaa2 | 5243 | '(;; Tests missing from the gem. |
a0a7e690 BW |
5244 | #:tests? #f)) |
5245 | (propagated-inputs | |
5246 | `(("ruby-rack" ,ruby-rack))) | |
5247 | (native-inputs | |
5248 | `(("bundler" ,bundler) | |
5249 | ("ruby-rspec" ,ruby-rspec-2) | |
5250 | ("ruby-rack-test" ,ruby-rack-test))) | |
5251 | (synopsis "Rack middleware that protects against typical web attacks") | |
5252 | (description "Rack middleware that can be used to protect against typical | |
5253 | web attacks. It can protect all Rack apps, including Rails. For instance, it | |
5254 | protects against cross site request forgery, cross site scripting, | |
5255 | clickjacking, directory traversal, session hijacking and IP spoofing.") | |
5256 | (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection") | |
5257 | (license license:expat))) | |
5258 | ||
6edabcb2 CB |
5259 | (define-public ruby-rainbow |
5260 | (package | |
5261 | (name "ruby-rainbow") | |
5262 | (version "3.0.0") | |
5263 | (source | |
5264 | (origin | |
5265 | (method url-fetch) | |
5266 | (uri (rubygems-uri "rainbow" version)) | |
5267 | (sha256 | |
5268 | (base32 | |
5269 | "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk")))) | |
5270 | (build-system ruby-build-system) | |
5271 | (arguments | |
5272 | '(#:phases | |
5273 | (modify-phases %standard-phases | |
5274 | ;; Run rspec directly, to avoid requiring Rubocop which is used from | |
5275 | ;; the Rakefile. | |
5276 | (replace 'check | |
5277 | (lambda* (#:key tests? #:allow-other-keys) | |
5278 | (when tests? | |
5279 | (invoke "rspec")) | |
5280 | #t))))) | |
5281 | (native-inputs | |
5282 | `(("bundler" ,bundler) | |
5283 | ("ruby-rspec" ,ruby-rspec))) | |
5284 | (synopsis "Colorize printed text on ANSI terminals") | |
5285 | (description | |
5286 | "@code{rainbow} provides a string presenter object to colorize strings by | |
5287 | wrapping them in ANSI escape codes.") | |
5288 | (home-page "https://github.com/sickill/rainbow") | |
79193b20 CB |
5289 | (license license:expat))) |
5290 | ||
6188d643 CB |
5291 | (define-public ruby-rr |
5292 | (package | |
5293 | (name "ruby-rr") | |
5294 | (version "1.2.1") | |
5295 | (source | |
5296 | (origin | |
5297 | (method url-fetch) | |
5298 | (uri (rubygems-uri "rr" version)) | |
5299 | (sha256 | |
5300 | (base32 | |
5301 | "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp")))) | |
5302 | (build-system ruby-build-system) | |
5303 | (arguments | |
5304 | '(#:tests? #f)) ; test files not included | |
5305 | (native-inputs | |
5306 | `(("bundler" ,bundler) | |
5307 | ("ruby-rspec" ,ruby-rspec))) | |
5308 | (synopsis "Ruby test double framework") | |
5309 | (description | |
5310 | "RR is a test double framework that features a rich selection of double | |
5311 | techniques and a terse syntax.") | |
5312 | (home-page "https://rr.github.io/rr/") | |
5313 | (license license:expat))) | |
5314 | ||
79193b20 CB |
5315 | (define-public ruby-rest-client |
5316 | (package | |
5317 | (name "ruby-rest-client") | |
5318 | (version "2.0.2") | |
5319 | (source | |
5320 | (origin | |
5321 | (method url-fetch) | |
5322 | (uri (rubygems-uri "rest-client" version)) | |
5323 | (sha256 | |
5324 | (base32 | |
5325 | "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j")))) | |
5326 | (build-system ruby-build-system) | |
5327 | (arguments | |
5328 | '(#:phases | |
5329 | (modify-phases %standard-phases | |
5330 | (add-before 'check 'remove-unnecessary-development-dependencies | |
5331 | (lambda _ | |
5332 | (substitute* "rest-client.gemspec" | |
5333 | ;; Remove rubocop as it's unused. Rubocop also indirectly | |
5334 | ;; depends on this package through ruby-parser and ruby-ast so | |
5335 | ;; this avoids a dependency loop. | |
5336 | ((".*rubocop.*") "\n") | |
5337 | ;; Remove pry as it's unused, it's a debugging tool | |
5338 | ((".*pry.*") "\n") | |
5339 | ;; Remove an unnecessarily strict rdoc dependency | |
5340 | ((".*rdoc.*") "\n")) | |
5341 | #t)) | |
5342 | (add-before 'check 'delete-network-dependent-tests | |
5343 | (lambda _ | |
5344 | (delete-file "spec/integration/request_spec.rb") | |
5345 | (delete-file "spec/integration/httpbin_spec.rb") | |
5346 | #t))))) | |
5347 | (propagated-inputs | |
5348 | `(("ruby-http-cookie" ,ruby-http-cookie) | |
5349 | ("ruby-mime-types" ,ruby-mime-types) | |
5350 | ("ruby-netrc" ,ruby-netrc))) | |
5351 | (native-inputs | |
5352 | `(("bundler" ,bundler) | |
eea094cc TGR |
5353 | ("ruby-webmock" ,ruby-webmock-2) |
5354 | ("ruby-rspec" ,ruby-rspec))) | |
79193b20 CB |
5355 | (synopsis "Simple HTTP and REST client for Ruby") |
5356 | (description | |
5357 | "@code{rest-client} provides a simple HTTP and REST client for Ruby, | |
5358 | inspired by the Sinatra microframework style of specifying actions: | |
5359 | @code{get}, @code{put}, @code{post}, @code{delete}.") | |
5360 | (home-page "https://github.com/rest-client/rest-client") | |
6edabcb2 CB |
5361 | (license license:expat))) |
5362 | ||
5d8fe6de CB |
5363 | (define-public ruby-rubocop |
5364 | (package | |
5365 | (name "ruby-rubocop") | |
865ba3f4 | 5366 | (version "0.77.0") |
5d8fe6de CB |
5367 | (source |
5368 | (origin | |
5369 | (method url-fetch) | |
5370 | (uri (rubygems-uri "rubocop" version)) | |
5371 | (sha256 | |
5372 | (base32 | |
865ba3f4 | 5373 | "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9")))) |
5d8fe6de CB |
5374 | (build-system ruby-build-system) |
5375 | (arguments | |
5376 | '(;; No included tests | |
5377 | #:tests? #f)) | |
5378 | (propagated-inputs | |
5379 | `(("ruby-parser" ,ruby-parser) | |
5380 | ("ruby-powerpack" ,ruby-powerpack) | |
5381 | ("ruby-rainbow" ,ruby-rainbow) | |
5382 | ("ruby-progressbar" ,ruby-progressbar) | |
5383 | ("ruby-parallel" ,ruby-parallel) | |
5384 | ("ruby-jaro-winkler" ,ruby-jaro-winkler) | |
5385 | ("ruby-unicode-display-width" ,ruby-unicode-display-width))) | |
5386 | (synopsis "Ruby code style checking tool") | |
5387 | (description | |
5388 | "@code{rubocop} is a Ruby code style checking tool. It aims to enforce | |
5389 | the community-driven Ruby Style Guide.") | |
5390 | (home-page "https://github.com/rubocop-hq/rubocop") | |
5391 | (license license:expat))) | |
5392 | ||
6ef85256 BW |
5393 | (define-public ruby-contest |
5394 | (package | |
5395 | (name "ruby-contest") | |
5396 | (version "0.1.3") | |
5397 | (source | |
5398 | (origin | |
5399 | (method url-fetch) | |
5400 | (uri (rubygems-uri "contest" version)) | |
5401 | (sha256 | |
5402 | (base32 | |
5403 | "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf")))) | |
5404 | (build-system ruby-build-system) | |
5405 | (synopsis "Write declarative tests using nested contexts") | |
5406 | (description | |
5407 | "Contest allows writing declarative @code{Test::Unit} tests using nested | |
5408 | contexts without performance penalties.") | |
5409 | (home-page "https://github.com/citrusbyte/contest") | |
5410 | (license license:expat))) | |
5411 | ||
c4550f75 BW |
5412 | (define-public ruby-creole |
5413 | (package | |
5414 | (name "ruby-creole") | |
5415 | (version "0.5.0") | |
5416 | (source | |
5417 | (origin | |
5418 | (method url-fetch) | |
5419 | (uri (rubygems-uri "creole" version)) | |
5420 | (sha256 | |
5421 | (base32 | |
5422 | "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm")))) | |
5423 | (build-system ruby-build-system) | |
5424 | (native-inputs | |
5425 | `(("ruby-bacon" ,ruby-bacon))) | |
5426 | (synopsis "Creole markup language converter") | |
5427 | (description | |
5428 | "Creole is a lightweight markup language and this library for converting | |
5429 | creole to @code{HTML}.") | |
5430 | (home-page "https://github.com/minad/creole") | |
5431 | (license license:ruby))) | |
5432 | ||
6aaa815e PP |
5433 | (define-public ruby-docile |
5434 | (package | |
5435 | (name "ruby-docile") | |
5436 | (version "1.1.5") | |
5437 | (source | |
5438 | (origin | |
5439 | (method url-fetch) | |
5440 | (uri (rubygems-uri "docile" version)) | |
5441 | (sha256 | |
5442 | (base32 | |
5443 | "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx")))) | |
5444 | (build-system ruby-build-system) | |
5445 | (arguments | |
5446 | '(#:tests? #f)) ; needs github-markup, among others | |
5447 | (synopsis "Ruby EDSL helper library") | |
5448 | (description "Docile is a Ruby library that provides an interface for | |
5449 | creating embedded domain specific languages (EDSLs) that manipulate existing | |
5450 | Ruby classes.") | |
5451 | (home-page "https://ms-ati.github.io/docile/") | |
5452 | (license license:expat))) | |
5453 | ||
44514637 | 5454 | (define-public ruby-gherkin |
62e4cc5a | 5455 | (package |
44514637 | 5456 | (name "ruby-gherkin") |
aada5f6f | 5457 | (version "5.1.0") |
62e4cc5a PP |
5458 | (source |
5459 | (origin | |
5460 | (method url-fetch) | |
44514637 | 5461 | (uri (rubygems-uri "gherkin" version)) |
62e4cc5a PP |
5462 | (sha256 |
5463 | (base32 | |
aada5f6f | 5464 | "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s")))) |
62e4cc5a PP |
5465 | (build-system ruby-build-system) |
5466 | (native-inputs | |
5467 | `(("bundler" ,bundler))) | |
5468 | (arguments | |
5469 | '(#:tests? #f)) ; needs simplecov, among others | |
5470 | (synopsis "Gherkin parser for Ruby") | |
44514637 | 5471 | (description "Gherkin is a parser and compiler for the Gherkin language. |
aada5f6f CB |
5472 | It is intended be used by all Cucumber implementations to parse |
5473 | @file{.feature} files.") | |
5474 | (home-page "https://github.com/cucumber-attic/gherkin") | |
62e4cc5a | 5475 | (license license:expat))) |
cd89fecb | 5476 | |
15b16c2c CB |
5477 | (define-public ruby-aruba |
5478 | (package | |
5479 | (name "ruby-aruba") | |
cf7201c4 | 5480 | (version "0.14.14") |
15b16c2c CB |
5481 | (source |
5482 | (origin | |
5483 | (method url-fetch) | |
5484 | (uri (rubygems-uri "aruba" version)) | |
5485 | (sha256 | |
5486 | (base32 | |
cf7201c4 | 5487 | "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn")))) |
15b16c2c CB |
5488 | (build-system ruby-build-system) |
5489 | (arguments | |
5490 | '(#:test-target "spec" | |
5491 | #:phases | |
5492 | (modify-phases %standard-phases | |
5493 | (add-after 'unpack 'patch | |
5494 | (lambda _ | |
5495 | (substitute* "spec/aruba/api_spec.rb" | |
5496 | ;; This resolves some errors in the specs | |
5497 | ;; | |
5498 | ;; undefined method `parse' for Time:Class | |
5499 | (("require 'spec_helper'") | |
5500 | "require 'spec_helper'\nrequire 'time'")) | |
5501 | ;; Avoid shebang issues in this spec file | |
5502 | (substitute* "spec/aruba/matchers/command_spec.rb" | |
5503 | (("/usr/bin/env bash") | |
5504 | (which "bash"))) | |
5505 | #t)) | |
5506 | (add-before 'check 'remove-unnecessary-dependencies | |
5507 | (lambda _ | |
5508 | (substitute* "Gemfile" | |
5509 | ((".*byebug.*") "\n") | |
5510 | ((".*pry.*") "\n") | |
5511 | ((".*yaml.*") "\n") | |
5512 | ((".*bcat.*") "\n") | |
5513 | ((".*kramdown.*") "\n") | |
5514 | ((".*rubocop.*") "\n") | |
5515 | ((".*cucumber-pro.*") "\n") | |
5516 | ((".*cucumber.*") "\n") | |
5517 | ((".*license_finder.*") "\n") | |
5518 | ((".*rake.*") "gem 'rake'\n") | |
15b16c2c | 5519 | ((".*relish.*") "\n")) |
15b16c2c CB |
5520 | (substitute* "aruba.gemspec" |
5521 | (("spec\\.add\\_runtime\\_dependency 'cucumber'.*") | |
5522 | "spec.add_runtime_dependency 'cucumber'")) | |
5523 | #t)) | |
5524 | (add-before 'check 'set-home | |
5525 | (lambda _ (setenv "HOME" "/tmp") #t))))) | |
5526 | (native-inputs | |
5527 | `(("bundler" ,bundler) | |
5528 | ("ruby-rspec" ,ruby-rspec) | |
cf7201c4 CB |
5529 | ("ruby-fuubar" ,ruby-fuubar) |
5530 | ("ruby-simplecov" ,ruby-simplecov))) | |
15b16c2c CB |
5531 | (propagated-inputs |
5532 | `(("ruby-childprocess" ,ruby-childprocess) | |
5533 | ("ruby-contracts" ,ruby-contracts) | |
5534 | ("ruby-cucumber" ,ruby-cucumber) | |
5535 | ("ruby-ffi" ,ruby-ffi) | |
5536 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
5537 | ("ruby-thor" ,ruby-thor) | |
5538 | ("ruby-yard" ,ruby-yard))) | |
5539 | (synopsis "Test command-line applications with Cucumber, RSpec or Minitest") | |
5540 | (description | |
5541 | "Aruba is an extension for Cucumber, RSpec and Minitest for testing | |
5542 | command-line applications. It supports applications written in any | |
5543 | language.") | |
5544 | (home-page "https://github.com/cucumber/aruba") | |
5545 | (license license:expat))) | |
5546 | ||
5547 | ;; A version of ruby-aruba without tests run so that circular dependencies can | |
5548 | ;; be avoided. | |
5549 | (define ruby-aruba-without-tests | |
5550 | (package | |
5551 | (inherit ruby-aruba) | |
5552 | (arguments '(#:tests? #f)) | |
5553 | (propagated-inputs | |
5554 | `(("ruby-cucumber" ,ruby-cucumber-without-tests) | |
5555 | ,@(alist-delete "ruby-cucumber" | |
5556 | (package-propagated-inputs ruby-aruba)))) | |
5557 | (native-inputs '()))) | |
5558 | ||
5559 | (define-public ruby-cucumber | |
5560 | (package | |
5561 | (name "ruby-cucumber") | |
5562 | (version "3.1.2") | |
5563 | (source | |
5564 | (origin | |
5565 | (method git-fetch) | |
5566 | (uri (git-reference | |
5567 | (url "https://github.com/cucumber/cucumber-ruby.git") | |
5568 | (commit (string-append "v" version)))) | |
5569 | (file-name (git-file-name name version)) | |
5570 | (sha256 | |
5571 | (base32 | |
5572 | "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3")))) | |
5573 | (build-system ruby-build-system) | |
5574 | (arguments | |
5575 | '(#:test-target "spec" | |
5576 | #:phases | |
5577 | (modify-phases %standard-phases | |
5578 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
5579 | ;; bit unnecessary. | |
5580 | (add-after 'unpack 'dont-run-rubocop | |
5581 | (lambda _ | |
5582 | (substitute* "Rakefile" | |
5583 | ((".*rubocop/rake\\_task.*") "") | |
5584 | ((".*RuboCop.*") "")) | |
5585 | #t))))) | |
5586 | (propagated-inputs | |
5587 | `(("ruby-builder" ,ruby-builder) | |
5588 | ("ruby-cucumber-core" ,ruby-cucumber-core) | |
5589 | ("ruby-cucumber-wire" ,ruby-cucumber-wire) | |
5590 | ("ruby-cucumber-expressions" ,ruby-cucumber-expressions) | |
5591 | ("ruby-diff-lcs" ,ruby-diff-lcs) | |
5592 | ("ruby-gherkin" ,ruby-gherkin) | |
5593 | ("ruby-multi-json" ,ruby-multi-json) | |
5594 | ("ruby-multi-test" ,ruby-multi-test))) | |
5595 | (native-inputs | |
5596 | `(("bundler" ,bundler) | |
5597 | ;; Use a untested version of aruba, to avoid a circular dependency, as | |
5598 | ;; ruby-aruba depends on ruby-cucumber. | |
5599 | ("ruby-aruba", ruby-aruba-without-tests) | |
5600 | ("ruby-rspec" ,ruby-rspec) | |
5601 | ("ruby-pry" ,ruby-pry) | |
5602 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
5603 | (synopsis "Describe automated tests in plain language") | |
5604 | (description | |
5605 | "Cucumber is a tool for running automated tests written in plain | |
5606 | language. It's designed to support a Behaviour Driven Development (BDD) | |
5607 | software development workflow.") | |
5608 | (home-page "https://cucumber.io/") | |
5609 | (license license:expat))) | |
5610 | ||
5611 | (define ruby-cucumber-without-tests | |
5612 | (package (inherit ruby-cucumber) | |
5613 | (arguments | |
5614 | '(#:tests? #f)) | |
5615 | (native-inputs | |
5616 | '()))) | |
5617 | ||
cd89fecb PP |
5618 | (define-public ruby-cucumber-core |
5619 | (package | |
5620 | (name "ruby-cucumber-core") | |
5cd047e8 CB |
5621 | ;; Stick to major version 3, until version 4 of Cucumber is released. |
5622 | (version "3.2.1") | |
cd89fecb PP |
5623 | (source |
5624 | (origin | |
5625 | (method url-fetch) | |
5626 | (uri (rubygems-uri "cucumber-core" version)) | |
5627 | (sha256 | |
5628 | (base32 | |
5cd047e8 | 5629 | "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c")))) |
cd89fecb PP |
5630 | (build-system ruby-build-system) |
5631 | (propagated-inputs | |
5cd047e8 CB |
5632 | `(("ruby-backports" ,ruby-backports) |
5633 | ("ruby-gherkin" ,ruby-gherkin) | |
5634 | ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions))) | |
cd89fecb PP |
5635 | (native-inputs |
5636 | `(("bundler" ,bundler))) | |
5637 | (arguments | |
5638 | '(#:tests? #f)) ; needs simplecov, among others | |
5639 | (synopsis "Core library for the Cucumber BDD app") | |
5640 | (description "Cucumber is a tool for running automated tests | |
5641 | written in plain language. Because they're written in plain language, | |
5642 | they can be read by anyone on your team. Because they can be read by | |
5643 | anyone, you can use them to help improve communication, collaboration | |
5644 | and trust on your team.") | |
5645 | (home-page "https://cucumber.io/") | |
5646 | (license license:expat))) | |
212d563d | 5647 | |
fb1a8954 CB |
5648 | (define-public ruby-cucumber-expressions |
5649 | (package | |
5650 | (name "ruby-cucumber-expressions") | |
5651 | (version "6.0.1") | |
5652 | (source | |
5653 | (origin | |
5654 | (method url-fetch) | |
5655 | (uri (rubygems-uri "cucumber-expressions" version)) | |
5656 | (sha256 | |
5657 | (base32 | |
5658 | "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw")))) | |
5659 | (build-system ruby-build-system) | |
5660 | (arguments | |
5661 | '(#:test-target "spec")) | |
5662 | (native-inputs | |
5663 | `(("bundler" ,bundler) | |
5664 | ("ruby-rspec" ,ruby-rspec) | |
5665 | ("ruby-simplecov" ,ruby-simplecov))) | |
5666 | (synopsis "Simpler alternative to Regular Expressions") | |
5667 | (description "Cucumber Expressions offer similar functionality to Regular | |
5668 | Expressions, with a syntax that is easier to read and write. Cucumber | |
5669 | Expressions are extensible with parameter types.") | |
5670 | (home-page "https://github.com/cucumber/cucumber-expressions-ruby") | |
5671 | (license license:expat))) | |
5672 | ||
ce872770 CB |
5673 | (define-public ruby-cucumber-wire |
5674 | (package | |
5675 | (name "ruby-cucumber-wire") | |
5676 | ;; Package version 0.0.1 initially, as this is what's needed by Cucumber | |
5677 | ;; 3, and Cucumber 4 hasn't been released yet. | |
5678 | (version "0.0.1") | |
5679 | (source | |
5680 | (origin | |
5681 | (method url-fetch) | |
5682 | (uri (rubygems-uri "cucumber-wire" version)) | |
5683 | (sha256 | |
5684 | (base32 | |
5685 | "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f")))) | |
5686 | (build-system ruby-build-system) | |
5687 | (arguments | |
5688 | '(;; TODO: Currently, the tests can't be run as cucumber is required, | |
5689 | ;; which would lead to a circular dependency. | |
5690 | #:tests? #f | |
5691 | #:test-target "default" | |
5692 | #:phases | |
5693 | (modify-phases %standard-phases | |
5694 | (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS | |
5695 | (lambda _ | |
5696 | (setenv "CUCUMBER_USE_RELEASED_GEMS" "true") | |
5697 | #t))))) | |
5698 | (native-inputs | |
5699 | `(("bundler" ,bundler) | |
5700 | ("ruby-rspec" ,ruby-rspec))) | |
5701 | (synopsis "Cucumber wire protocol plugin") | |
5702 | (description | |
5703 | "Cucumber's wire protocol allows step definitions to be implemented and | |
5704 | invoked on any platform.") | |
5705 | (home-page "https://github.com/cucumber/cucumber-ruby-wire") | |
5706 | (license license:expat))) | |
5707 | ||
0ce8f344 CB |
5708 | (define-public ruby-cucumber-tag-expressions |
5709 | (package | |
5710 | (name "ruby-cucumber-tag-expressions") | |
5711 | (version "1.1.1") | |
5712 | (source | |
5713 | (origin | |
5714 | (method url-fetch) | |
5715 | (uri (rubygems-uri "cucumber-tag_expressions" version)) | |
5716 | (sha256 | |
5717 | (base32 | |
5718 | "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc")))) | |
5719 | (build-system ruby-build-system) | |
5720 | (arguments | |
5721 | '(#:phases | |
5722 | (modify-phases %standard-phases | |
5723 | (replace 'check | |
5724 | (lambda _ | |
5725 | (invoke "rspec") | |
5726 | #t))))) | |
5727 | (native-inputs | |
5728 | `(("ruby-rspec" ,ruby-rspec))) | |
5729 | (synopsis "Cucumber tag expressions for Ruby") | |
5730 | (description | |
5731 | "Cucumber tag expression parser for Ruby. A tag expression is an infix | |
5732 | boolean expression used by Cucumber.") | |
5733 | (home-page "https://github.com/cucumber/tag-expressions-ruby") | |
5734 | (license license:expat))) | |
5735 | ||
73a5aff7 CB |
5736 | (define-public ruby-bindex |
5737 | (package | |
5738 | (name "ruby-bindex") | |
5739 | (version "0.5.0") | |
5740 | (source | |
5741 | (origin | |
5742 | (method url-fetch) | |
5743 | (uri (rubygems-uri "bindex" version)) | |
5744 | (sha256 | |
5745 | (base32 | |
5746 | "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i")))) | |
5747 | (build-system ruby-build-system) | |
5748 | (arguments | |
5749 | '(#:test-target "default")) | |
5750 | (native-inputs | |
5751 | `(("bundler" ,bundler) | |
5752 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
5753 | (synopsis "Provides access for bindings relating to Ruby exceptions") | |
5754 | (description | |
5755 | "@code{bindex} provides a way to access the bindings that relate to | |
5756 | exceptions in Ruby, providing more information about the context in which the | |
5757 | exception occurred.") | |
5758 | (home-page "https://github.com/gsamokovarov/bindex") | |
5759 | (license license:expat))) | |
5760 | ||
212d563d PP |
5761 | (define-public ruby-bio-logger |
5762 | (package | |
5763 | (name "ruby-bio-logger") | |
5764 | (version "1.0.1") | |
5765 | (source | |
5766 | (origin | |
5767 | (method url-fetch) | |
5768 | (uri (rubygems-uri "bio-logger" version)) | |
5769 | (sha256 | |
5770 | (base32 | |
5771 | "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28")))) | |
5772 | (build-system ruby-build-system) | |
5773 | (arguments | |
5774 | `(#:tests? #f)) ; rake errors, missing shoulda | |
5775 | (propagated-inputs | |
5776 | `(("ruby-log4r" ,ruby-log4r))) | |
5777 | (synopsis "Log4r wrapper for Ruby") | |
5778 | (description "Bio-logger is a wrapper around Log4r adding extra logging | |
5779 | features such as filtering and fine grained logging.") | |
5780 | (home-page "https://github.com/pjotrp/bioruby-logger-plugin") | |
5781 | (license license:expat))) | |
07f61cb2 | 5782 | |
2db0f9c8 BW |
5783 | (define-public ruby-yajl-ruby |
5784 | (package | |
5785 | (name "ruby-yajl-ruby") | |
5786 | (version "1.4.1") | |
5787 | (source | |
5788 | (origin | |
5789 | (method url-fetch) | |
5790 | (uri (rubygems-uri "yajl-ruby" version)) | |
5791 | (sha256 | |
5792 | (base32 | |
5793 | "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf")))) | |
5794 | (build-system ruby-build-system) | |
5795 | (arguments | |
5796 | '(#:test-target "spec" | |
5797 | #:phases | |
5798 | (modify-phases %standard-phases | |
5799 | (add-before 'check 'patch-test-to-update-load-path | |
5800 | (lambda _ | |
5801 | (substitute* "spec/parsing/large_number_spec.rb" | |
5802 | (("require \"yajl\"") | |
5803 | "$LOAD_PATH << 'lib'; require 'yajl'")) | |
5804 | #t))))) | |
5805 | (native-inputs | |
5806 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
5807 | ("ruby-rspec" ,ruby-rspec))) | |
5808 | (synopsis "Streaming JSON parsing and encoding library for Ruby") | |
5809 | (description | |
5810 | "Ruby C bindings to the Yajl JSON stream-based parser library. The API | |
5811 | is compatible with the JSON gem, so yajl-ruby can act as a drop in | |
5812 | replacement. | |
5813 | ||
5814 | A modified copy of yajl is used, and included in the package.") | |
5815 | (home-page "https://github.com/brianmario/yajl-ruby") | |
5816 | (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h | |
5817 | license:bsd-3)))) ; Included, modified copy of yajl | |
5818 | ||
07f61cb2 | 5819 | (define-public ruby-yard |
6499893e BW |
5820 | (package |
5821 | (name "ruby-yard") | |
f321380f | 5822 | (version "0.9.20") |
6499893e BW |
5823 | (source |
5824 | (origin | |
f3fd70c0 | 5825 | (method git-fetch) |
6499893e | 5826 | ;; Tests do not pass if we build from the distributed gem. |
f3fd70c0 EF |
5827 | (uri (git-reference |
5828 | (url "https://github.com/lsegal/yard") | |
5829 | (commit (string-append "v" version)))) | |
5830 | (file-name (git-file-name name version)) | |
6499893e BW |
5831 | (sha256 |
5832 | (base32 | |
f321380f | 5833 | "1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi")))) |
6499893e BW |
5834 | (build-system ruby-build-system) |
5835 | (arguments | |
5836 | `(#:phases | |
5837 | (modify-phases %standard-phases | |
5838 | (replace 'check | |
5839 | (lambda _ | |
f321380f CB |
5840 | ;; Delete the Gemfile to avoid errors relating to it |
5841 | (delete-file "Gemfile") | |
6499893e BW |
5842 | ;; $HOME needs to be set to somewhere writeable for tests to run |
5843 | (setenv "HOME" "/tmp") | |
5844 | ;; Run tests without using 'rake' to avoid dependencies. | |
9923d5a4 | 5845 | (invoke "rspec")))))) |
6499893e BW |
5846 | (native-inputs |
5847 | `(("ruby-rspec" ,ruby-rspec) | |
f321380f CB |
5848 | ("ruby-rack" ,ruby-rack) |
5849 | ("ruby-redcloth" ,ruby-redcloth) | |
5850 | ("ruby-asciidoc" ,ruby-asciidoctor))) | |
6499893e BW |
5851 | (synopsis "Documentation generation tool for Ruby") |
5852 | (description | |
5853 | "YARD is a documentation generation tool for the Ruby programming | |
07f61cb2 BW |
5854 | language. It enables the user to generate consistent, usable documentation |
5855 | that can be exported to a number of formats very easily, and also supports | |
5856 | extending for custom Ruby constructs such as custom class level definitions.") | |
2f3800e5 | 5857 | (home-page "https://yardoc.org") |
6499893e | 5858 | (license license:expat))) |
2cbcd23a | 5859 | |
ad686ef3 RW |
5860 | (define-public ruby-clap |
5861 | (package | |
5862 | (name "ruby-clap") | |
5863 | (version "1.0.0") | |
5864 | (source (origin | |
5865 | (method url-fetch) | |
5866 | (uri (rubygems-uri "clap" version)) | |
5867 | (sha256 | |
5868 | (base32 | |
5869 | "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q")))) | |
5870 | (build-system ruby-build-system) | |
5871 | ;; Clap needs cutest for running tests, but cutest needs clap. | |
5872 | (arguments `(#:tests? #f)) | |
5873 | (synopsis "Command line argument parsing for simple applications") | |
5874 | (description | |
5875 | "Clap provides command line argument parsing features. It covers the | |
5876 | simple case of executing code based on the flags or parameters passed.") | |
5877 | (home-page "https://github.com/djanowski/cutest") | |
0c80451e RW |
5878 | (license license:expat))) |
5879 | ||
5880 | (define-public ruby-cutest | |
5881 | (package | |
5882 | (name "ruby-cutest") | |
5883 | (version "1.2.2") | |
5884 | (source (origin | |
5885 | (method url-fetch) | |
5886 | (uri (rubygems-uri "cutest" version)) | |
5887 | (sha256 | |
5888 | (base32 | |
5889 | "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32")))) | |
5890 | (build-system ruby-build-system) | |
5891 | (propagated-inputs | |
5892 | `(("ruby-clap" ,ruby-clap))) | |
5893 | (synopsis "Run tests in separate processes") | |
5894 | (description | |
5895 | "Cutest runs tests in separate processes to avoid shared state.") | |
5896 | (home-page "https://github.com/djanowski/cutest") | |
ad686ef3 RW |
5897 | (license license:expat))) |
5898 | ||
ac09beba RW |
5899 | (define-public ruby-pygmentize |
5900 | (package | |
5901 | (name "ruby-pygmentize") | |
5902 | (version "0.0.3") | |
5903 | (source (origin | |
5904 | (method url-fetch) | |
5905 | (uri (rubygems-uri "pygmentize" version)) | |
5906 | (sha256 | |
5907 | (base32 | |
5908 | "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb")))) | |
5909 | (build-system ruby-build-system) | |
5910 | (arguments | |
5911 | `(#:phases | |
5912 | (modify-phases %standard-phases | |
5913 | (add-after 'unpack 'fix-pygmentize-path | |
5914 | (lambda _ | |
5915 | (substitute* "lib/pygmentize.rb" | |
5916 | (("\"/usr/bin/env python.*") | |
5917 | (string-append "\"" (which "pygmentize") "\"\n"))) | |
5918 | #t)) | |
5919 | (add-after 'build 'do-not-use-vendor-directory | |
5920 | (lambda _ | |
5921 | ;; Remove bundled pygments sources | |
5922 | ;; FIXME: ruby-build-system does not support snippets. | |
5923 | (delete-file-recursively "vendor") | |
5924 | (substitute* "pygmentize.gemspec" | |
5925 | (("\"vendor/\\*\\*/\\*\",") "")) | |
5926 | #t))))) | |
5927 | (inputs | |
5928 | `(("pygments" ,python-pygments))) | |
5929 | (native-inputs | |
5930 | `(("ruby-cutest" ,ruby-cutest) | |
5931 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
5932 | (synopsis "Thin Ruby wrapper around pygmentize") | |
5933 | (description | |
5934 | "Pygmentize provides a simple way to call pygmentize from within a Ruby | |
5935 | application.") | |
5936 | (home-page "https://github.com/djanowski/pygmentize") | |
5937 | (license license:expat))) | |
5938 | ||
2cbcd23a DT |
5939 | (define-public ruby-eventmachine |
5940 | (package | |
5941 | (name "ruby-eventmachine") | |
c207fa5e | 5942 | (version "1.2.7") |
2cbcd23a DT |
5943 | (source |
5944 | (origin | |
5945 | (method url-fetch) | |
5946 | (uri (rubygems-uri "eventmachine" version)) | |
5947 | (sha256 | |
5948 | (base32 | |
c207fa5e | 5949 | "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r")))) |
2cbcd23a DT |
5950 | (build-system ruby-build-system) |
5951 | (arguments | |
c5d269fb | 5952 | '(#:tests? #f)) ; test suite tries to connect to google.com |
2cbcd23a DT |
5953 | (native-inputs |
5954 | `(("ruby-rake-compiler" ,ruby-rake-compiler))) | |
5955 | (synopsis "Single-threaded network event framework for Ruby") | |
5956 | (description | |
5957 | "EventMachine implements a single-threaded engine for arbitrary network | |
5958 | communications. EventMachine wraps all interactions with sockets, allowing | |
5959 | programs to concentrate on the implementation of network protocols. It can be | |
5960 | used to create both network servers and clients.") | |
24a26227 TGR |
5961 | ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted. |
5962 | (home-page "https://github.com/eventmachine/eventmachine") | |
2cbcd23a | 5963 | (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT |
7d3a1a2d | 5964 | |
e218b0c8 BW |
5965 | (define-public ruby-ruby-engine |
5966 | (package | |
5967 | (name "ruby-ruby-engine") | |
5968 | (version "1.0.1") | |
5969 | (source | |
5970 | (origin | |
5971 | (method url-fetch) | |
5972 | (uri (rubygems-uri "ruby_engine" version)) | |
5973 | (sha256 | |
5974 | (base32 | |
5975 | "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v")))) | |
5976 | (build-system ruby-build-system) | |
5977 | (arguments | |
5978 | `(#:phases | |
5979 | (modify-phases %standard-phases | |
5980 | (add-before 'check 'clean-up | |
5981 | (lambda _ | |
5982 | (delete-file "Gemfile.lock") | |
5983 | (substitute* "ruby_engine.gemspec" | |
5984 | ;; Remove unnecessary imports that would entail further | |
5985 | ;; dependencies. | |
5986 | ((".*<rdoc.*") "") | |
5987 | ((".*<rubygems-tasks.*") "") | |
5988 | ;; Remove extraneous .gem file | |
5989 | (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "") | |
5990 | ;; Soften rake dependency | |
5991 | (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]") | |
5992 | "%q<rake>.freeze, [\">= 10.0\"]") | |
5993 | ;; Soften the rspec dependency | |
5994 | (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]") | |
5995 | "%q<rspec>.freeze, [\">= 2.4\"]")) | |
5996 | (substitute* "Rakefile" | |
5997 | (("require 'rubygems/tasks'") "") | |
5998 | (("Gem::Tasks.new") "")) | |
5999 | ;; Remove extraneous .gem file that otherwise gets installed. | |
6000 | (delete-file "pkg/ruby_engine-1.0.0.gem") | |
6001 | #t))))) | |
6002 | (native-inputs | |
6003 | `(("bundler" ,bundler) | |
6004 | ("ruby-rake" ,ruby-rake) | |
6005 | ("ruby-rspec" ,ruby-rspec))) | |
6006 | (synopsis "Simplifies checking for Ruby implementation") | |
6007 | (description | |
6008 | "@code{ruby_engine} provides an RubyEngine class that can be used to | |
6009 | check which implementation of Ruby is in use. It can provide the interpreter | |
6010 | name and provides query methods such as @{RubyEngine.mri?}.") | |
6011 | (home-page "https://github.com/janlelis/ruby_engine") | |
6012 | (license license:expat))) | |
6013 | ||
8092e333 BW |
6014 | (define-public ruby-turn |
6015 | (package | |
6016 | (name "ruby-turn") | |
6017 | (version "0.9.7") | |
6018 | (source | |
6019 | (origin | |
6020 | (method url-fetch) | |
6021 | (uri (rubygems-uri "turn" version)) | |
6022 | (sha256 | |
6023 | (base32 | |
6024 | "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw")))) | |
6025 | (build-system ruby-build-system) | |
6026 | (arguments | |
6027 | `(#:phases | |
6028 | (modify-phases %standard-phases | |
6029 | ;; Tests fail because turn changes its environment so can no longer | |
6030 | ;; find test/unit. Instead simply test if the executable runs | |
6031 | ;; without issue. | |
6032 | (replace 'check | |
6033 | (lambda _ | |
9923d5a4 | 6034 | (invoke "ruby" "-Ilib" "bin/turn" "-h")))))) |
8092e333 BW |
6035 | (propagated-inputs |
6036 | `(("ruby-ansi" ,ruby-ansi) | |
6037 | ("ruby-minitest" ,ruby-minitest-4))) | |
6038 | (synopsis "Alternate set of alternative runners for MiniTest") | |
6039 | (description | |
6040 | "TURN provides a set of alternative runners for MiniTest which are both | |
6041 | colorful and informative. TURN displays each test on a separate line with | |
6042 | failures being displayed immediately instead of at the end of the tests. Note | |
6043 | that TURN is no longer being maintained.") | |
f433b662 | 6044 | (home-page "https://rubygems.org/gems/turn") |
8092e333 BW |
6045 | (license license:expat))) |
6046 | ||
8279b1d3 CB |
6047 | (define-public ruby-mimemagic |
6048 | (package | |
6049 | (name "ruby-mimemagic") | |
60bc8952 | 6050 | (version "0.3.3") |
8279b1d3 CB |
6051 | (source |
6052 | (origin | |
6053 | (method url-fetch) | |
6054 | (uri (rubygems-uri "mimemagic" version)) | |
6055 | (sha256 | |
60bc8952 | 6056 | (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw")))) |
8279b1d3 CB |
6057 | (build-system ruby-build-system) |
6058 | (arguments | |
6059 | '(#:phases | |
6060 | (modify-phases %standard-phases | |
6061 | ;; This phase breaks the tests, as it patches some of the test data. | |
6062 | (delete 'patch-source-shebangs)))) | |
6063 | (native-inputs | |
6064 | `(("ruby-bacon" ,ruby-bacon))) | |
6065 | (synopsis "Ruby library for MIME detection by extension or content") | |
6066 | (description | |
6067 | "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by | |
6068 | extension or content, using the freedesktop.org.xml shared-mime-info | |
6069 | database.") | |
6070 | (home-page "https://github.com/minad/mimemagic") | |
6071 | (license license:expat))) | |
6072 | ||
32d1c06f BW |
6073 | (define-public ruby-mime-types-data |
6074 | (package | |
6075 | (name "ruby-mime-types-data") | |
f49511db | 6076 | (version "3.2016.0521") |
32d1c06f BW |
6077 | (source |
6078 | (origin | |
6079 | (method url-fetch) | |
6080 | (uri (rubygems-uri "mime-types-data" version)) | |
6081 | (sha256 | |
6082 | (base32 | |
f49511db | 6083 | "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm")))) |
32d1c06f BW |
6084 | (build-system ruby-build-system) |
6085 | (native-inputs | |
6086 | `(("ruby-hoe" ,ruby-hoe))) | |
6087 | (synopsis "Registry for information about MIME media type definitions") | |
6088 | (description | |
6089 | "@code{mime-types-data} provides a registry for information about | |
6090 | Multipurpose Internet Mail Extensions (MIME) media type definitions. It can | |
6091 | be used with the Ruby mime-types library or other software to determine | |
6092 | defined filename extensions for MIME types, or to use filename extensions to | |
6093 | look up the likely MIME type definitions.") | |
6094 | (home-page "https://github.com/mime-types/mime-types-data/") | |
6095 | (license license:expat))) | |
6096 | ||
d39b606c BW |
6097 | (define-public ruby-mime-types |
6098 | (package | |
6099 | (name "ruby-mime-types") | |
803bcc81 | 6100 | (version "3.1") |
d39b606c BW |
6101 | (source |
6102 | (origin | |
6103 | (method url-fetch) | |
6104 | (uri (rubygems-uri "mime-types" version)) | |
6105 | (sha256 | |
6106 | (base32 | |
803bcc81 | 6107 | "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m")))) |
d39b606c BW |
6108 | (build-system ruby-build-system) |
6109 | (propagated-inputs | |
6110 | `(("ruby-mime-types-data" ,ruby-mime-types-data))) | |
6111 | (native-inputs | |
6112 | `(("ruby-hoe" ,ruby-hoe) | |
6113 | ("ruby-fivemat" ,ruby-fivemat) | |
6114 | ("ruby-minitest-focus" ,ruby-minitest-focus) | |
6115 | ("ruby-minitest-rg" ,ruby-minitest-rg) | |
803bcc81 BW |
6116 | ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions) |
6117 | ("ruby-minitest-hooks" ,ruby-minitest-hooks))) | |
d39b606c BW |
6118 | (synopsis "Library and registry for MIME content type definitions") |
6119 | (description "The mime-types library provides a library and registry for | |
6120 | information about Multipurpose Internet Mail Extensions (MIME) content type | |
6121 | definitions. It can be used to determine defined filename extensions for MIME | |
6122 | types, or to use filename extensions to look up the likely MIME type | |
6123 | definitions.") | |
6124 | (home-page "https://github.com/mime-types/ruby-mime-types") | |
6125 | (license license:expat))) | |
6126 | ||
eb5e0bd9 BW |
6127 | (define-public ruby-fivemat |
6128 | (package | |
6129 | (name "ruby-fivemat") | |
c664ebcc | 6130 | (version "1.3.7") |
eb5e0bd9 BW |
6131 | (source |
6132 | (origin | |
6133 | (method url-fetch) | |
6134 | (uri (rubygems-uri "fivemat" version)) | |
6135 | (sha256 | |
6136 | (base32 | |
c664ebcc | 6137 | "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n")))) |
eb5e0bd9 BW |
6138 | (build-system ruby-build-system) |
6139 | (arguments | |
6140 | `(#:tests? #f)) ; no tests | |
6141 | (synopsis "Each test file given its own line of dots") | |
6142 | (description | |
6143 | "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file | |
6144 | its own line of dots during testing. It aims to provide test output that is | |
6145 | neither too verbose nor too minimal.") | |
6146 | (home-page "https://github.com/tpope/fivemat") | |
6147 | (license license:expat))) | |
6148 | ||
4fea500b BW |
6149 | (define-public ruby-sqlite3 |
6150 | (package | |
6151 | (name "ruby-sqlite3") | |
e7cdba61 | 6152 | (version "1.4.2") |
4fea500b BW |
6153 | (source |
6154 | (origin | |
6155 | (method url-fetch) | |
6156 | (uri (rubygems-uri "sqlite3" version)) | |
6157 | (sha256 | |
6158 | (base32 | |
e7cdba61 | 6159 | "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78")))) |
4fea500b BW |
6160 | (build-system ruby-build-system) |
6161 | (arguments | |
6162 | `(#:phases | |
6163 | (modify-phases %standard-phases | |
6164 | (add-before 'check 'add-gemtest-file | |
6165 | ;; This file exists in the repository but is not distributed. | |
9923d5a4 | 6166 | (lambda _ (invoke "touch" ".gemtest")))))) |
4fea500b BW |
6167 | (inputs |
6168 | `(("sqlite" ,sqlite))) | |
6169 | (native-inputs | |
6170 | `(("ruby-hoe" ,ruby-hoe) | |
6171 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
6172 | ("ruby-mini-portile" ,ruby-mini-portile))) | |
6173 | (synopsis "Interface with SQLite3 databases") | |
6174 | (description | |
6175 | "This module allows Ruby programs to interface with the SQLite3 database | |
6176 | engine.") | |
6177 | (home-page | |
6178 | "https://github.com/sparklemotion/sqlite3-ruby") | |
6179 | (license license:bsd-3))) | |
6180 | ||
4dfa39cc BW |
6181 | (define-public ruby-shoulda-context |
6182 | (package | |
6183 | (name "ruby-shoulda-context") | |
e7d1d472 | 6184 | (version "1.2.2") |
4dfa39cc BW |
6185 | (source |
6186 | (origin | |
6187 | (method url-fetch) | |
6188 | (uri (rubygems-uri "shoulda-context" version)) | |
6189 | (sha256 | |
6190 | (base32 | |
e7d1d472 | 6191 | "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc")))) |
4dfa39cc BW |
6192 | (build-system ruby-build-system) |
6193 | (arguments | |
6194 | `(#:phases | |
6195 | (modify-phases %standard-phases | |
6196 | (replace 'check | |
6197 | (lambda _ | |
6198 | ;; Do not run tests to avoid circular dependence with rails. | |
6199 | ;; Instead just import the library to test. | |
9923d5a4 | 6200 | (invoke "ruby" "-Ilib" "-r" "shoulda-context")))))) |
4dfa39cc BW |
6201 | (synopsis "Test::Unit context framework extracted from Shoulda") |
6202 | (description | |
6203 | "@code{shoulda-context} is the context framework extracted from Shoulda. | |
6204 | Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds | |
6205 | context, setup, and should blocks combine to produce natural test method | |
6206 | names.") | |
6207 | (home-page "https://github.com/thoughtbot/shoulda-context") | |
6208 | (license license:expat))) | |
6209 | ||
e4fea008 BW |
6210 | (define-public ruby-shoulda-matchers |
6211 | (package | |
6212 | (name "ruby-shoulda-matchers") | |
d1c1f368 | 6213 | (version "3.1.2") |
e4fea008 BW |
6214 | (source |
6215 | (origin | |
6216 | (method url-fetch) | |
6217 | (uri (rubygems-uri "shoulda-matchers" version)) | |
6218 | (sha256 | |
6219 | (base32 | |
d1c1f368 | 6220 | "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a")))) |
e4fea008 BW |
6221 | (build-system ruby-build-system) |
6222 | (arguments | |
6223 | `(#:phases | |
6224 | (modify-phases %standard-phases | |
e4fea008 BW |
6225 | (replace 'check |
6226 | (lambda _ | |
6227 | ;; Do not run tests to avoid circular dependence with rails. Instead | |
6228 | ;; just import the library to test. | |
9923d5a4 | 6229 | (invoke "ruby" "-Ilib" "-r" "shoulda-matchers")))))) |
e4fea008 BW |
6230 | (propagated-inputs |
6231 | `(("ruby-activesupport" ,ruby-activesupport))) | |
6232 | (synopsis "Collection of testing matchers extracted from Shoulda") | |
6233 | (description | |
6234 | "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that | |
6235 | test common Rails functionality. These tests would otherwise be much longer, | |
6236 | more complex, and error-prone.") | |
6237 | (home-page "https://github.com/thoughtbot/shoulda-matchers") | |
6238 | (license license:expat))) | |
6239 | ||
3885c58b BW |
6240 | (define-public ruby-shoulda-matchers-2 |
6241 | (package | |
6242 | (inherit ruby-shoulda-matchers) | |
6243 | (version "2.8.0") | |
6244 | (source (origin | |
6245 | (method url-fetch) | |
6246 | (uri (rubygems-uri "shoulda-matchers" version)) | |
6247 | (sha256 | |
6248 | (base32 | |
6249 | "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0")))))) | |
6250 | ||
6f390716 BW |
6251 | (define-public ruby-shoulda |
6252 | (package | |
6253 | (name "ruby-shoulda") | |
6254 | (version "3.5.0") | |
6255 | (source | |
6256 | (origin | |
6257 | (method url-fetch) | |
6258 | (uri (rubygems-uri "shoulda" version)) | |
6259 | (sha256 | |
6260 | (base32 | |
6261 | "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy")))) | |
6262 | (build-system ruby-build-system) | |
6263 | (arguments | |
6264 | `(#:phases | |
6265 | (modify-phases %standard-phases | |
6266 | (replace 'check | |
6267 | ;; Don't run tests to avoid circular dependence with rails. Instead | |
6268 | ;; just import the library to test. | |
9923d5a4 | 6269 | (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda")))))) |
6f390716 BW |
6270 | (propagated-inputs |
6271 | `(("ruby-shoulda-context" ,ruby-shoulda-context) | |
6272 | ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2))) | |
6273 | (synopsis "Context framework and matchers for testing") | |
6274 | (description | |
6275 | "@code{shoulda} is a meta-package combining @code{shoulda-context} and | |
6276 | @code{shoulda-matchers} providing tools for writing tests.") | |
6277 | (home-page "https://github.com/thoughtbot/shoulda") | |
6278 | (license license:expat))) | |
6279 | ||
3b44bcdf BW |
6280 | (define-public ruby-unf |
6281 | (package | |
6282 | (name "ruby-unf") | |
6283 | (version "0.1.4") | |
6284 | (source | |
6285 | (origin | |
6286 | (method url-fetch) | |
6287 | (uri (rubygems-uri "unf" version)) | |
6288 | (sha256 | |
6289 | (base32 | |
6290 | "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9")))) | |
6291 | (build-system ruby-build-system) | |
6292 | (arguments | |
6293 | `(#:phases | |
6294 | (modify-phases %standard-phases | |
6295 | (add-before 'check 'add-dependency-to-bundler | |
6296 | (lambda _ | |
6297 | ;; test-unit is required but not provided by the bundler | |
6298 | ;; environment. This is fixed in the upstream repository but fix | |
6299 | ;; has not been released. | |
6300 | (substitute* "Gemfile" | |
6301 | (("^gemspec") "gem 'test-unit'\ngemspec")) | |
6302 | #t))))) | |
6303 | (propagated-inputs | |
6304 | `(("ruby-unf-ext" ,ruby-unf-ext))) | |
6305 | (native-inputs | |
6306 | `(("ruby-shoulda" ,ruby-shoulda) | |
6307 | ("bundler" ,bundler) | |
6308 | ("ruby-test-unit" ,ruby-test-unit))) | |
6309 | (synopsis "Unicode Normalization Form support to Ruby and JRuby") | |
6310 | (description | |
6311 | "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form | |
6312 | support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and | |
6313 | @code{java.text.Normalizer} on JRuby.") | |
6314 | (home-page "https://github.com/knu/ruby-unf") | |
6315 | (license license:bsd-2))) | |
6316 | ||
e32c99d2 CB |
6317 | (define-public ruby-warden |
6318 | (package | |
6319 | (name "ruby-warden") | |
6320 | (version "1.2.8") | |
6321 | (source | |
6322 | (origin | |
6323 | (method url-fetch) | |
6324 | (uri (rubygems-uri "warden" version)) | |
6325 | (sha256 | |
6326 | (base32 | |
6327 | "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454")))) | |
6328 | (build-system ruby-build-system) | |
6329 | (arguments | |
6330 | '(#:tests? #f)) ; No included tests | |
6331 | (propagated-inputs | |
6332 | `(("ruby-rack" ,ruby-rack))) | |
6333 | (synopsis "Rack middleware providing authentication") | |
6334 | (description | |
6335 | "Warden is a Rack-based middleware that provides a mechanism for | |
6336 | authentication in Ruby web applications.") | |
6337 | (home-page "https://github.com/wardencommunity/warden") | |
6338 | (license license:expat))) | |
6339 | ||
e42eecdb CB |
6340 | (define-public ruby-warden-oauth2 |
6341 | (package | |
6342 | (name "ruby-warden-oauth2") | |
6343 | (version "0.0.1") | |
6344 | (source | |
6345 | (origin | |
6346 | (method url-fetch) | |
6347 | (uri (rubygems-uri "warden-oauth2" version)) | |
6348 | (sha256 | |
6349 | (base32 | |
6350 | "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz")))) | |
6351 | (build-system ruby-build-system) | |
6352 | (arguments | |
6353 | '(#:test-target "spec" | |
6354 | #:phases | |
6355 | (modify-phases %standard-phases | |
6356 | (add-after 'unpack 'remove-unnecessary-dependencies | |
6357 | (lambda _ | |
6358 | (substitute* "Gemfile" | |
6359 | ;; All of these gems relate to development, and are unnecessary | |
6360 | ;; when running the tests | |
6361 | (("gem 'guard-bundler'") "") | |
6362 | (("gem 'guard'") "") | |
6363 | (("gem 'guard-rspec'") "") | |
6364 | (("gem 'rb-fsevent'") "") | |
6365 | (("gem 'pry'") "") | |
6366 | (("gem 'growl'") "")) | |
6367 | #t)) | |
6368 | ;; The test suite doesn't work with rspec@2, and this is incompatible | |
6369 | ;; with the current version of Rake, so invoke Rspec directly | |
6370 | (replace 'check | |
6371 | (lambda* (#:key tests? #:allow-other-keys) | |
6372 | (when tests? | |
6373 | (invoke "bundle" "exec" "rspec")) | |
6374 | #t))))) | |
6375 | (propagated-inputs | |
6376 | `(("ruby-warden" ,ruby-warden))) | |
6377 | (native-inputs | |
6378 | `(("bundler" ,bundler) | |
6379 | ("ruby-rspec" ,ruby-rspec-2) | |
6380 | ("ruby-rack-test" ,ruby-rack-test))) | |
6381 | (synopsis "OAuth 2.0 strategies for Warden") | |
6382 | (description | |
6383 | "This library extends Warden to support OAuth 2.0 authorized API | |
6384 | requests.") | |
6385 | (home-page "https://github.com/opperator/warden-oauth2") | |
6386 | (license license:expat))) | |
6387 | ||
8c7ae384 CB |
6388 | (define-public ruby-webmock-2 |
6389 | (package | |
6390 | (name "ruby-webmock") | |
6391 | (version "2.3.2") | |
6392 | (source | |
6393 | (origin | |
6394 | (method url-fetch) | |
6395 | (uri (rubygems-uri "webmock" version)) | |
6396 | (sha256 | |
6397 | (base32 | |
6398 | "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5")))) | |
6399 | (build-system ruby-build-system) | |
6400 | (native-inputs | |
6401 | `(("bundler" ,bundler) | |
6402 | ("ruby-rspec" ,ruby-rspec))) | |
6403 | (propagated-inputs | |
6404 | `(("ruby-addressable" ,ruby-addressable) | |
6405 | ("ruby-crack" ,ruby-crack) | |
6406 | ("ruby-hashdiff" ,ruby-hashdiff))) | |
6407 | (synopsis "Allows stubbing and setting expectations on HTTP requests") | |
6408 | (description | |
6409 | "WebMock allows stubbing HTTP requests and setting expectations on HTTP | |
6410 | requests. This is useful when testing software.") | |
6411 | (home-page "https://github.com/bblimke/webmock") | |
6412 | (license license:expat))) | |
6413 | ||
d8c189ed CB |
6414 | (define-public ruby-unicode-display-width |
6415 | (package | |
6416 | (name "ruby-unicode-display-width") | |
216ccced | 6417 | (version "1.6.0") |
d8c189ed CB |
6418 | (source |
6419 | (origin | |
6420 | (method url-fetch) | |
6421 | (uri (rubygems-uri "unicode-display_width" version)) | |
6422 | (sha256 | |
6423 | (base32 | |
216ccced | 6424 | "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w")))) |
d8c189ed CB |
6425 | (build-system ruby-build-system) |
6426 | (arguments | |
6427 | '(;; Test data not included. | |
6428 | #:tests? #f)) | |
6429 | (synopsis "Determine the monospace display width of Ruby strings") | |
6430 | (description | |
6431 | "@code{Unicode::DisplayWidth} is a Ruby library which can determine the | |
6432 | display width of strings in Ruby.") | |
6433 | (home-page "https://github.com/janlelis/unicode-display_width") | |
6434 | (license license:expat))) | |
6435 | ||
6120589f CB |
6436 | ;; There is another gem called 'ruby-version' so we use an underscore in this |
6437 | ;; name | |
6438 | (define-public ruby_version | |
6439 | (package | |
6440 | (name "ruby_version") | |
6441 | (version "1.0.1") | |
6442 | (source | |
6443 | (origin | |
6444 | (method url-fetch) | |
6445 | (uri (rubygems-uri "ruby_version" version)) | |
6446 | (sha256 | |
6447 | (base32 | |
6448 | "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj")))) | |
6449 | (build-system ruby-build-system) | |
6450 | (arguments | |
6451 | '(#:phases | |
6452 | (modify-phases %standard-phases | |
6453 | (add-before 'check 'fix-dependencies | |
6454 | (lambda _ | |
6455 | ;; Remove the Gemfile.lock, as we want to use Guix packages at | |
6456 | ;; whatever versions. | |
6457 | (delete-file "Gemfile.lock") | |
6458 | ;; Remove the incldued gem file as it's unnecessary. | |
6459 | (delete-file "pkg/ruby_version-1.0.0.gem") | |
6460 | (substitute* "ruby_version.gemspec" | |
6461 | ;; Don't require rdoc and rubygems-tasks as they're unnecessary | |
6462 | ((".*rdoc.*") "\n") | |
6463 | ((".*rubygems-tasks.*") "\n") | |
6464 | ;; Accept any version of rake and rspec | |
6465 | (("%q<rake.*") "%q<rake>)\n") | |
6466 | (("%q<rspec.*") "%q<rspec>)\n")) | |
6467 | ;; Remove the use of rubygems-tasks from the Rakefile, as it's | |
6468 | ;; unnecessary. | |
6469 | (substitute* "Rakefile" | |
6470 | (("^require 'rubygems/tasks'") "") | |
6471 | (("Gem::Tasks.new") "")) | |
6472 | #t))))) | |
6473 | (native-inputs | |
6474 | `(("bundler" ,bundler) | |
6475 | ("ruby-rspec" ,ruby-rspec))) | |
6476 | (synopsis "Ruby library to help check the Ruby version") | |
6477 | (description | |
6478 | "@code{ruby_version} provides a @code{RubyVersion} module to simplify | |
6479 | checking for the right Ruby version in software.") | |
6480 | (home-page "https://github.com/janlelis/ruby_version") | |
6481 | (license license:expat))) | |
6482 | ||
a229acff CB |
6483 | (define-public ruby-websocket-driver |
6484 | (package | |
6485 | (name "ruby-websocket-driver") | |
9d1cf6d4 | 6486 | (version "0.7.1") |
a229acff CB |
6487 | (source |
6488 | (origin | |
6489 | (method url-fetch) | |
6490 | (uri (rubygems-uri "websocket-driver" version)) | |
6491 | (sha256 | |
9d1cf6d4 | 6492 | (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2")))) |
a229acff CB |
6493 | (build-system ruby-build-system) |
6494 | (arguments | |
9d1cf6d4 | 6495 | '(#:tests? #f)) ; no included tests |
a229acff CB |
6496 | (propagated-inputs |
6497 | `(("ruby-websocket-extensions" ,ruby-websocket-extensions))) | |
6498 | (synopsis "WebSocket protocol handler with pluggable I/O") | |
6499 | (description | |
6500 | "@code{websocket-driver} provides a complete implementation of the | |
6501 | WebSocket protocols that can be hooked up to any TCP library") | |
6502 | (home-page "https://github.com/faye/websocket-driver-ruby") | |
6503 | (license license:expat))) | |
6504 | ||
52b015a9 CB |
6505 | (define-public ruby-websocket-extensions |
6506 | (package | |
6507 | (name "ruby-websocket-extensions") | |
6508 | (version "0.1.3") | |
6509 | (source | |
6510 | (origin | |
6511 | (method url-fetch) | |
6512 | (uri (rubygems-uri "websocket-extensions" version)) | |
6513 | (sha256 | |
6514 | (base32 | |
6515 | "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270")))) | |
6516 | (build-system ruby-build-system) | |
6517 | (arguments | |
6518 | '(;; No included tests | |
6519 | #:tests? #f)) | |
6520 | (synopsis "Generic extension manager for WebSocket connections") | |
6521 | (description | |
6522 | "@code{websocket-extensions} provides a container for registering | |
6523 | extension plugins.") | |
6524 | (home-page "https://github.com/faye/websocket-extensions-ruby") | |
6525 | (license license:expat))) | |
6526 | ||
5799aadd BW |
6527 | (define-public ruby-domain-name |
6528 | (package | |
6529 | (name "ruby-domain-name") | |
222999c9 | 6530 | (version "0.5.20180417") |
5799aadd BW |
6531 | (source |
6532 | (origin | |
6533 | (method url-fetch) | |
6534 | (uri (rubygems-uri "domain_name" version)) | |
6535 | (sha256 | |
6536 | (base32 | |
222999c9 | 6537 | "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v")))) |
5799aadd BW |
6538 | (build-system ruby-build-system) |
6539 | (arguments | |
6540 | `(#:phases | |
6541 | (modify-phases %standard-phases | |
6542 | (add-before 'check 'fix-versions | |
6543 | (lambda _ | |
6544 | ;; Fix NameError that appears to already be fixed upstream. | |
6545 | (substitute* "Rakefile" | |
6546 | (("DomainName::VERSION") | |
6547 | "Bundler::GemHelper.gemspec.version")) | |
6548 | ;; Loosen unnecessarily strict test-unit version specification. | |
6549 | (substitute* "domain_name.gemspec" | |
71596c3c | 6550 | (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0")) |
5799aadd BW |
6551 | #t))))) |
6552 | (propagated-inputs | |
6553 | `(("ruby-unf" ,ruby-unf))) | |
6554 | (native-inputs | |
6555 | `(("ruby-shoulda" ,ruby-shoulda) | |
6556 | ("bundler" ,bundler) | |
6557 | ("ruby-test-unit" ,ruby-test-unit))) | |
6558 | (synopsis "Domain name manipulation library") | |
6559 | (description | |
6560 | "@code{domain_name} is a Domain name manipulation library. It parses a | |
6561 | domain name ready for extracting the registered domain and TLD (Top Level | |
6562 | Domain). It can also be used for cookie domain validation based on the Public | |
6563 | Suffix List.") | |
6564 | (home-page "https://github.com/knu/ruby-domain_name") | |
6565 | (license license:bsd-2))) | |
6566 | ||
d114ceeb BW |
6567 | (define-public ruby-http-cookie |
6568 | (package | |
6569 | (name "ruby-http-cookie") | |
2a2eb07d | 6570 | (version "1.0.3") |
d114ceeb BW |
6571 | (source |
6572 | (origin | |
6573 | (method url-fetch) | |
6574 | (uri (rubygems-uri "http-cookie" version)) | |
6575 | (sha256 | |
6576 | (base32 | |
2a2eb07d | 6577 | "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g")))) |
d114ceeb BW |
6578 | (build-system ruby-build-system) |
6579 | (arguments | |
6580 | `(#:phases | |
6581 | (modify-phases %standard-phases | |
6582 | (add-before 'check 'add-dependency-to-bundler | |
6583 | (lambda _ | |
6584 | ;; Fix NameError | |
6585 | (substitute* "Rakefile" | |
6586 | (("HTTP::Cookie::VERSION") | |
6587 | "Bundler::GemHelper.gemspec.version")) | |
6588 | #t))))) | |
6589 | (propagated-inputs | |
6590 | `(("ruby-domain-name" ,ruby-domain-name))) | |
6591 | (native-inputs | |
6592 | `(("rubysimplecov" ,ruby-simplecov) | |
6593 | ("bundler" ,bundler) | |
6594 | ("ruby-sqlite3" ,ruby-sqlite3) | |
6595 | ("ruby-test-unit" ,ruby-test-unit))) | |
6596 | (synopsis "Handle HTTP Cookies based on RFC 6265") | |
6597 | (description | |
6598 | "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on | |
6599 | RFC 6265. It has been designed with security, standards compliance and | |
6600 | compatibility in mind, to behave just the same as today's major web browsers. | |
6601 | It has built-in support for the legacy @code{cookies.txt} and | |
6602 | @code{cookies.sqlite} formats of Mozilla Firefox.") | |
6603 | (home-page "https://github.com/sparklemotion/http-cookie") | |
6604 | (license license:expat))) | |
6605 | ||
1c8e6fd3 CB |
6606 | (define-public ruby-httpclient |
6607 | (package | |
6608 | (name "ruby-httpclient") | |
6609 | (version "2.8.3") | |
6610 | (source | |
6611 | (origin | |
6612 | (method url-fetch) | |
6613 | (uri (rubygems-uri "httpclient" version)) | |
6614 | (sha256 | |
6615 | (base32 | |
6616 | "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99")))) | |
6617 | (build-system ruby-build-system) | |
6618 | (arguments | |
6619 | '(;; TODO: Some tests currently fail | |
6620 | ;; ------ | |
6621 | ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings, | |
6622 | ;; 2 omissions, 0 notifications | |
6623 | ;; 91.866% passed | |
6624 | ;; ------ | |
6625 | ;; 6.49 tests/s, 22.41 assertions/s | |
6626 | #:tests? #f | |
6627 | #:phases | |
6628 | (modify-phases %standard-phases | |
6629 | (replace 'check | |
6630 | (lambda* (#:key tests? #:allow-other-keys) | |
6631 | (if tests? | |
9923d5a4 TGR |
6632 | (invoke "ruby" |
6633 | "-Ilib" | |
6634 | "test/runner.rb") | |
0076f5a9 | 6635 | #t)))))) |
1c8e6fd3 CB |
6636 | (native-inputs |
6637 | `(("ruby-rack" ,ruby-rack))) | |
6638 | (synopsis | |
6639 | "Make HTTP requests with support for HTTPS, Cookies, authentication and more") | |
6640 | (description | |
6641 | "The @code{httpclient} ruby library provides functionality related to | |
6642 | HTTP. Compared to the @code{net/http} library, @{httpclient} also provides | |
6643 | Cookie, multithreading and authentication (digest, NTLM) support. | |
6644 | ||
6645 | Also provided is a @command{httpclient} command, which can perform HTTP | |
6646 | requests either using arguments or with an interactive prompt.") | |
6647 | (home-page "https://github.com/nahi/httpclient") | |
6648 | (license license:ruby))) | |
6649 | ||
7d3a1a2d BW |
6650 | (define-public ruby-ansi |
6651 | (package | |
6652 | (name "ruby-ansi") | |
6653 | (version "1.5.0") | |
6654 | (source | |
6655 | (origin | |
3d30c332 | 6656 | (method git-fetch) |
7d3a1a2d | 6657 | ;; Fetch from GitHub as the gem does not contain testing code. |
3d30c332 EF |
6658 | (uri (git-reference |
6659 | (url "https://github.com/rubyworks/ansi") | |
6660 | (commit version))) | |
6661 | (file-name (git-file-name name version)) | |
7d3a1a2d BW |
6662 | (sha256 |
6663 | (base32 | |
3d30c332 | 6664 | "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5")))) |
7d3a1a2d BW |
6665 | (build-system ruby-build-system) |
6666 | (arguments | |
6667 | `(#:phases | |
6668 | (modify-phases %standard-phases | |
6669 | ;; Disable testing to break the cycle ansi, ae, ansi, as well as the | |
6670 | ;; cycle ansi, qed, ansi. Instead simply test that the library can | |
6671 | ;; be require'd. | |
6672 | (replace 'check | |
6673 | (lambda _ | |
9923d5a4 | 6674 | (invoke "ruby" "-Ilib" "-r" "ansi"))) |
0899352f MB |
6675 | (add-before 'validate-runpath 'replace-broken-symlink |
6676 | (lambda* (#:key outputs #:allow-other-keys) | |
6677 | (let* ((out (assoc-ref outputs "out")) | |
3cb3fa67 CB |
6678 | (file (string-append |
6679 | out "/lib/ruby/vendor_ruby/gems/ansi-" | |
6680 | ,version "/lib/ansi.yml"))) | |
0899352f MB |
6681 | ;; XXX: This symlink is broken since ruby 2.4. |
6682 | ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html | |
6683 | (delete-file file) | |
6684 | (symlink "../.index" file) | |
6685 | #t)))))) | |
7d3a1a2d BW |
6686 | (synopsis "ANSI escape code related libraries") |
6687 | (description | |
6688 | "This package is a collection of ANSI escape code related libraries | |
6689 | enabling ANSI colorization and stylization of console output. Included in the | |
6690 | library are the @code{Code} module, which defines ANSI codes as constants and | |
6691 | methods, a @code{Mixin} module for including color methods, a @code{Logger}, a | |
6692 | @code{ProgressBar}, and a @code{String} subclass. The library also includes a | |
6693 | @code{Terminal} module which provides information about the current output | |
6694 | device.") | |
3d30c332 | 6695 | (home-page "https://rubyworks.github.io/ansi/") |
7d3a1a2d | 6696 | (license license:bsd-2))) |
7c033c46 BW |
6697 | |
6698 | (define-public ruby-systemu | |
6699 | (package | |
6700 | (name "ruby-systemu") | |
6701 | (version "2.6.5") | |
6702 | (source | |
6703 | (origin | |
6704 | (method url-fetch) | |
6705 | (uri (rubygems-uri "systemu" version)) | |
6706 | (sha256 | |
6707 | (base32 | |
6708 | "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1")))) | |
6709 | (build-system ruby-build-system) | |
6710 | (arguments | |
6711 | `(#:phases | |
6712 | (modify-phases %standard-phases | |
6713 | (add-before 'check 'set-version | |
6714 | (lambda _ | |
6715 | (setenv "VERSION" ,version) | |
6716 | #t))))) | |
6717 | (synopsis "Capture of stdout/stderr and handling of child processes") | |
6718 | (description | |
6719 | "Systemu can be used on any platform to return status, stdout, and stderr | |
6720 | of any command. Unlike other methods like @code{open3} and @code{popen4} | |
6721 | there is no danger of full pipes or threading issues hanging your process or | |
6722 | subprocess.") | |
6723 | (home-page "https://github.com/ahoward/systemu") | |
6724 | (license license:ruby))) | |
3d84a99e BW |
6725 | |
6726 | (define-public ruby-bio-commandeer | |
6727 | (package | |
6728 | (name "ruby-bio-commandeer") | |
37b08547 | 6729 | (version "0.4.0") |
3d84a99e BW |
6730 | (source |
6731 | (origin | |
6732 | (method url-fetch) | |
6733 | (uri (rubygems-uri "bio-commandeer" version)) | |
6734 | (sha256 | |
6735 | (base32 | |
37b08547 | 6736 | "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni")))) |
3d84a99e BW |
6737 | (build-system ruby-build-system) |
6738 | (arguments | |
6739 | `(#:phases | |
6740 | (modify-phases %standard-phases | |
6741 | (replace 'check | |
6742 | ;; Run test without calling 'rake' so that jeweler is | |
6743 | ;; not required as an input. | |
6744 | (lambda _ | |
9923d5a4 | 6745 | (invoke "rspec" "spec/bio-commandeer_spec.rb")))))) |
3d84a99e BW |
6746 | (propagated-inputs |
6747 | `(("ruby-bio-logger" ,ruby-bio-logger) | |
6748 | ("ruby-systemu" ,ruby-systemu))) | |
6749 | (native-inputs | |
6750 | `(("bundler" ,bundler) | |
6751 | ("ruby-rspec" ,ruby-rspec))) | |
6752 | (synopsis "Simplified running of shell commands from within Ruby") | |
6753 | (description | |
6754 | "Bio-commandeer provides an opinionated method of running shell commands | |
6755 | from within Ruby. The advantage of bio-commandeer over other methods of | |
6756 | running external commands is that when something goes wrong, messages printed | |
6757 | to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra | |
6758 | detail to ease debugging.") | |
7bf837fd | 6759 | (home-page "https://github.com/wwood/bioruby-commandeer") |
3d84a99e | 6760 | (license license:expat))) |
7c8131c7 BW |
6761 | |
6762 | (define-public ruby-rubytest | |
6763 | (package | |
6764 | (name "ruby-rubytest") | |
6765 | (version "0.8.1") | |
6766 | (source | |
6767 | (origin | |
6768 | (method url-fetch) | |
6769 | (uri (rubygems-uri "rubytest" version)) | |
6770 | (sha256 | |
6771 | (base32 | |
6772 | "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz")))) | |
6773 | (build-system ruby-build-system) | |
6774 | (arguments | |
6775 | ;; Disable regular testing to break the cycle rubytest, qed, brass, | |
6776 | ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead | |
6777 | ;; simply test that the library can be require'd. | |
6778 | `(#:phases | |
6779 | (modify-phases %standard-phases | |
6780 | (replace 'check | |
6781 | (lambda _ | |
9923d5a4 | 6782 | (invoke "ruby" "-Ilib" "-r" "rubytest")))))) |
7c8131c7 BW |
6783 | (propagated-inputs |
6784 | `(("ruby-ansi" ,ruby-ansi))) | |
6785 | (synopsis "Universal test harness for Ruby") | |
6786 | (description | |
6787 | "Rubytest is a testing meta-framework for Ruby. It can handle any | |
6788 | compliant test framework and can run tests from multiple frameworks in a | |
6789 | single pass.") | |
2f3800e5 | 6790 | (home-page "https://rubyworks.github.io/rubytest") |
7c8131c7 | 6791 | (license license:bsd-2))) |
90fcedf2 BW |
6792 | |
6793 | (define-public ruby-brass | |
6794 | (package | |
6795 | (name "ruby-brass") | |
6796 | (version "1.2.1") | |
6797 | (source | |
6798 | (origin | |
6799 | (method url-fetch) | |
6800 | (uri (rubygems-uri "brass" version)) | |
6801 | (sha256 | |
6802 | (base32 | |
6803 | "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka")))) | |
6804 | (build-system ruby-build-system) | |
6805 | (arguments | |
6806 | ;; Disable tests to break the cycle brass, lemon, ae, qed, brass. | |
6807 | ;; Instead simply test that the library can be require'd. | |
6808 | `(#:phases | |
6809 | (modify-phases %standard-phases | |
6810 | (replace 'check | |
6811 | (lambda _ | |
9923d5a4 | 6812 | (invoke "ruby" "-Ilib" "-r" "brass")))))) |
90fcedf2 BW |
6813 | (synopsis "Basic foundational assertions framework") |
6814 | (description | |
6815 | "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic | |
6816 | foundational assertions framework for other assertion and test frameworks to | |
6817 | make use of.") | |
2f3800e5 | 6818 | (home-page "https://rubyworks.github.io/brass") |
90fcedf2 | 6819 | (license license:bsd-2))) |
120fc74b BW |
6820 | |
6821 | (define-public ruby-qed | |
6822 | (package | |
6823 | (name "ruby-qed") | |
6824 | (version "2.9.2") | |
6825 | (source | |
6826 | (origin | |
6827 | (method url-fetch) | |
6828 | (uri (rubygems-uri "qed" version)) | |
6829 | (sha256 | |
6830 | (base32 | |
6831 | "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr")))) | |
6832 | (build-system ruby-build-system) | |
6833 | (arguments | |
6834 | ;; Disable testing to break the cycle qed, ansi, qed, among others. | |
6835 | ;; Instead simply test that the executable runs using --copyright. | |
6836 | `(#:phases | |
6837 | (modify-phases %standard-phases | |
6838 | (replace 'check | |
6839 | (lambda _ | |
9923d5a4 | 6840 | (invoke "ruby" "-Ilib" "bin/qed" "--copyright")))))) |
120fc74b BW |
6841 | (propagated-inputs |
6842 | `(("ruby-ansi" ,ruby-ansi) | |
6843 | ("ruby-brass" ,ruby-brass))) | |
6844 | (synopsis "Test framework utilizing literate programming techniques") | |
6845 | (description | |
6846 | "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for | |
6847 | @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven | |
6848 | Development} (BDD) utilizing Literate Programming techniques. QED sits | |
6849 | somewhere between lower-level testing tools like @code{Test::Unit} and | |
6850 | requirement specifications systems like Cucumber.") | |
2f3800e5 | 6851 | (home-page "https://rubyworks.github.io/qed") |
120fc74b | 6852 | (license license:bsd-2))) |
9273ee8f | 6853 | |
dbbe88d3 CB |
6854 | (define-public ruby-que |
6855 | (package | |
6856 | (name "ruby-que") | |
6857 | (version "1.0.0.beta3") | |
6858 | (source | |
6859 | (origin | |
6860 | (method url-fetch) | |
6861 | (uri (rubygems-uri "que" version)) | |
6862 | (sha256 | |
6863 | (base32 | |
6864 | "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04")))) | |
6865 | (build-system ruby-build-system) | |
6866 | (arguments | |
6867 | '(#:tests? #f)) ; No included tests | |
6868 | (synopsis "Job queue using PostgreSQL written in Ruby") | |
6869 | (description | |
6870 | "This package provides a job queue that uses PostgreSQL for storing jobs | |
6871 | and locking between worker processes.") | |
6872 | (home-page "https://github.com/chanks/que") | |
6873 | (license license:expat))) | |
6874 | ||
9273ee8f BW |
6875 | (define-public ruby-ae |
6876 | (package | |
6877 | (name "ruby-ae") | |
6878 | (version "1.8.2") | |
6879 | (source | |
6880 | (origin | |
11d1b318 | 6881 | (method git-fetch) |
9273ee8f | 6882 | ;; Fetch from github so tests are included. |
11d1b318 EF |
6883 | (uri (git-reference |
6884 | (url "https://github.com/rubyworks/ae") | |
6885 | (commit version))) | |
6886 | (file-name (git-file-name name version)) | |
9273ee8f BW |
6887 | (sha256 |
6888 | (base32 | |
11d1b318 | 6889 | "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp")))) |
9273ee8f BW |
6890 | (build-system ruby-build-system) |
6891 | (arguments | |
6892 | `(#:phases | |
6893 | (modify-phases %standard-phases | |
6894 | (replace 'check | |
9923d5a4 | 6895 | (lambda _ (invoke "qed"))) |
de6f6efd MB |
6896 | (add-before 'validate-runpath 'replace-broken-symlink |
6897 | (lambda* (#:key outputs #:allow-other-keys) | |
6898 | (let* ((out (assoc-ref outputs "out")) | |
3cb3fa67 CB |
6899 | (file (string-append |
6900 | out "/lib/ruby/vendor_ruby/gems/ae-" | |
6901 | ,version "/lib/ae.yml"))) | |
de6f6efd MB |
6902 | ;; XXX: This symlink is broken since ruby 2.4. |
6903 | ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html | |
6904 | (delete-file file) | |
6905 | (symlink "../.index" file) | |
6906 | #t)))))) | |
9273ee8f BW |
6907 | (propagated-inputs |
6908 | `(("ruby-ansi" ,ruby-ansi))) | |
6909 | (native-inputs | |
6910 | `(("ruby-qed" ,ruby-qed))) | |
6911 | (synopsis "Assertions library") | |
6912 | (description | |
6913 | "Assertive Expressive (AE) is an assertions library specifically designed | |
6914 | for reuse by other test frameworks.") | |
11d1b318 | 6915 | (home-page "https://rubyworks.github.io/ae/") |
9273ee8f | 6916 | (license license:bsd-2))) |
78bb471f BW |
6917 | |
6918 | (define-public ruby-lemon | |
6919 | (package | |
6920 | (name "ruby-lemon") | |
6921 | (version "0.9.1") | |
6922 | (source | |
6923 | (origin | |
6924 | (method url-fetch) | |
6925 | (uri (rubygems-uri "lemon" version)) | |
6926 | (sha256 | |
6927 | (base32 | |
6928 | "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm")))) | |
6929 | (build-system ruby-build-system) | |
6930 | (arguments | |
6931 | `(#:phases | |
6932 | (modify-phases %standard-phases | |
9923d5a4 | 6933 | (replace 'check (lambda _ (invoke "qed")))))) |
78bb471f BW |
6934 | (propagated-inputs |
6935 | `(("ruby-ae" ,ruby-ae) | |
6936 | ("ruby-ansi" ,ruby-ansi) | |
6937 | ("ruby-rubytest" ,ruby-rubytest))) | |
6938 | (native-inputs | |
6939 | `(("ruby-qed" ,ruby-qed))) | |
6940 | (synopsis "Test framework correlating code structure and test unit") | |
6941 | (description | |
6942 | "Lemon is a unit testing framework that enforces highly formal | |
6943 | case-to-class and unit-to-method test construction. This enforcement can help | |
6944 | focus concern on individual units of behavior.") | |
2f3800e5 | 6945 | (home-page "https://rubyworks.github.io/lemon") |
78bb471f | 6946 | (license license:bsd-2))) |
0832804e BW |
6947 | |
6948 | (define-public ruby-rubytest-cli | |
6949 | (package | |
6950 | (name "ruby-rubytest-cli") | |
6951 | (version "0.2.0") | |
6952 | (source | |
6953 | (origin | |
6954 | (method url-fetch) | |
6955 | (uri (rubygems-uri "rubytest-cli" version)) | |
6956 | (sha256 | |
6957 | (base32 | |
6958 | "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p")))) | |
6959 | (build-system ruby-build-system) | |
6960 | (arguments | |
6961 | `(#:tests? #f)) ; no tests | |
6962 | (propagated-inputs | |
6963 | `(("ruby-ansi" ,ruby-ansi) | |
6964 | ("ruby-rubytest" ,ruby-rubytest))) | |
6965 | (synopsis "Command-line interface for rubytest") | |
6966 | (description | |
6967 | "Rubytest CLI is a command-line interface for running tests for | |
6968 | Rubytest-based test frameworks. It provides the @code{rubytest} executable.") | |
2f3800e5 | 6969 | (home-page "https://rubyworks.github.io/rubytest-cli") |
0832804e | 6970 | (license license:bsd-2))) |
72ccbfe3 BW |
6971 | |
6972 | (define-public ruby-hashery | |
6973 | (package | |
6974 | (name "ruby-hashery") | |
cba96208 | 6975 | (version "2.1.2") |
72ccbfe3 BW |
6976 | (source |
6977 | (origin | |
6978 | (method url-fetch) | |
6979 | (uri (rubygems-uri "hashery" version)) | |
6980 | (sha256 | |
6981 | (base32 | |
cba96208 | 6982 | "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj")))) |
72ccbfe3 BW |
6983 | (build-system ruby-build-system) |
6984 | (arguments | |
6985 | `(#:phases | |
6986 | (modify-phases %standard-phases | |
6987 | (replace 'check | |
6988 | (lambda _ | |
9923d5a4 TGR |
6989 | (invoke "qed") |
6990 | (invoke "rubytest" "-Ilib" "-Itest" "test/")))))) | |
72ccbfe3 BW |
6991 | (native-inputs |
6992 | `(("ruby-rubytest-cli" ,ruby-rubytest-cli) | |
6993 | ("ruby-qed" ,ruby-qed) | |
6994 | ("ruby-lemon" ,ruby-lemon))) | |
6995 | (synopsis "Hash-like classes with extra features") | |
6996 | (description | |
6997 | "The Hashery is a tight collection of @code{Hash}-like classes. | |
6998 | Included are the auto-sorting @code{Dictionary} class, the efficient | |
6999 | @code{LRUHash}, the flexible @code{OpenHash} and the convenient | |
7000 | @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which | |
7001 | defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's | |
7002 | standard @code{Hash} making it possible to subclass and augment to fit any | |
7003 | specific use case.") | |
2f3800e5 | 7004 | (home-page "https://rubyworks.github.io/hashery") |
72ccbfe3 | 7005 | (license license:bsd-2))) |
1f1d71e0 BW |
7006 | |
7007 | (define-public ruby-rc4 | |
7008 | (package | |
7009 | (name "ruby-rc4") | |
7010 | (version "0.1.5") | |
7011 | (source | |
7012 | (origin | |
7013 | (method url-fetch) | |
7014 | (uri (rubygems-uri "ruby-rc4" version)) | |
7015 | (sha256 | |
7016 | (base32 | |
7017 | "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00")))) | |
7018 | (build-system ruby-build-system) | |
7019 | (arguments | |
7020 | `(#:phases | |
7021 | (modify-phases %standard-phases | |
7022 | (replace 'check | |
7023 | (lambda _ | |
9923d5a4 | 7024 | (invoke "rspec" "spec/rc4_spec.rb")))))) |
1f1d71e0 BW |
7025 | (native-inputs |
7026 | `(("ruby-rspec" ,ruby-rspec-2))) | |
7027 | (synopsis "Implementation of the RC4 algorithm") | |
7028 | (description | |
7029 | "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.") | |
7030 | (home-page "https://github.com/caiges/Ruby-RC4") | |
7031 | (license license:expat))) | |
f3e085a8 BW |
7032 | |
7033 | (define-public ruby-afm | |
7034 | (package | |
7035 | (name "ruby-afm") | |
7036 | (version "0.2.2") | |
7037 | (source | |
7038 | (origin | |
7039 | (method url-fetch) | |
7040 | (uri (rubygems-uri "afm" version)) | |
7041 | (sha256 | |
7042 | (base32 | |
7043 | "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8")))) | |
7044 | (build-system ruby-build-system) | |
7045 | (native-inputs | |
7046 | `(("bundler" ,bundler))) | |
7047 | (synopsis "Read Adobe Font Metrics (afm) files") | |
7048 | (description | |
7049 | "This library provides methods to read @dfn{Adobe Font Metrics} (afm) | |
7050 | files and use the data therein.") | |
7bf837fd | 7051 | (home-page "https://github.com/halfbyte/afm") |
f3e085a8 | 7052 | (license license:expat))) |
acb6be42 BW |
7053 | |
7054 | (define-public ruby-ascii85 | |
7055 | (package | |
7056 | (name "ruby-ascii85") | |
5854082a | 7057 | (version "1.0.3") |
acb6be42 BW |
7058 | (source |
7059 | (origin | |
7060 | (method url-fetch) | |
7061 | (uri (rubygems-uri "Ascii85" version)) | |
7062 | (sha256 | |
7063 | (base32 | |
5854082a | 7064 | "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs")))) |
acb6be42 BW |
7065 | (build-system ruby-build-system) |
7066 | (native-inputs | |
7067 | `(("bundler" ,bundler))) | |
7068 | (synopsis "Encode and decode Ascii85 binary-to-text encoding") | |
7069 | (description | |
7070 | "This library provides methods to encode and decode Ascii85 | |
7071 | binary-to-text encoding. The main modern use of Ascii85 is in PostScript and | |
7072 | @dfn{Portable Document Format} (PDF) file formats.") | |
7073 | (home-page "https://github.com/datawraith/ascii85gem") | |
7074 | (license license:expat))) | |
edf8caae BW |
7075 | |
7076 | (define-public ruby-ttfunk | |
7077 | (package | |
7078 | (name "ruby-ttfunk") | |
afb7a3e8 | 7079 | (version "1.5.1") |
edf8caae BW |
7080 | (source |
7081 | (origin | |
4e110825 | 7082 | (method git-fetch) |
edf8caae | 7083 | ;; fetch from github as the gem does not contain testing code |
4e110825 EF |
7084 | (uri (git-reference |
7085 | (url "https://github.com/prawnpdf/ttfunk") | |
7086 | (commit version))) | |
7087 | (file-name (git-file-name name version)) | |
edf8caae BW |
7088 | (sha256 |
7089 | (base32 | |
4e110825 | 7090 | "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9")))) |
edf8caae BW |
7091 | (build-system ruby-build-system) |
7092 | (arguments | |
7093 | `(#:test-target "spec" | |
7094 | #:phases | |
7095 | (modify-phases %standard-phases | |
afb7a3e8 JL |
7096 | (add-before 'build 'remove-ssh |
7097 | (lambda _ | |
7098 | ;; remove dependency on an ssh key pair that doesn't exist | |
7099 | (substitute* "ttfunk.gemspec" | |
7100 | (("spec.signing_key.*") "")) | |
7101 | #t)) | |
edf8caae BW |
7102 | (add-before 'check 'remove-rubocop |
7103 | (lambda _ | |
7104 | ;; remove rubocop as a dependency as not needed for testing | |
7105 | (substitute* "ttfunk.gemspec" | |
7106 | (("spec.add_development_dependency\\('rubocop'.*") "")) | |
7107 | (substitute* "Rakefile" | |
7108 | (("require 'rubocop/rake_task'") "") | |
afb7a3e8 | 7109 | (("RuboCop::RakeTask.new") "")) |
edf8caae BW |
7110 | #t))))) |
7111 | (native-inputs | |
7112 | `(("ruby-rspec" ,ruby-rspec) | |
afb7a3e8 | 7113 | ("ruby-yard" ,ruby-yard) |
edf8caae BW |
7114 | ("bundler" ,bundler))) |
7115 | (synopsis "Font metrics parser for the Prawn PDF generator") | |
7116 | (description | |
7117 | "TTFunk is a TrueType font parser written in pure Ruby. It is used as | |
7118 | part of the Prawn PDF generator.") | |
7119 | (home-page "https://github.com/prawnpdf/ttfunk") | |
7120 | ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE | |
7121 | ;; for details." | |
7122 | (license (list license:gpl2 license:gpl3 license:ruby)))) | |
cbdd428c | 7123 | |
9270298f BW |
7124 | (define-public ruby-puma |
7125 | (package | |
7126 | (name "ruby-puma") | |
63755fcd | 7127 | (version "3.9.1") |
9270298f BW |
7128 | (source |
7129 | (origin | |
a6cffe6e | 7130 | (method git-fetch) |
9270298f | 7131 | ;; Fetch from GitHub because distributed gem does not contain tests. |
a6cffe6e EF |
7132 | (uri (git-reference |
7133 | (url "https://github.com/puma/puma") | |
7134 | (commit (string-append "v" version)))) | |
7135 | (file-name (git-file-name name version)) | |
9270298f BW |
7136 | (sha256 |
7137 | (base32 | |
a6cffe6e | 7138 | "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f")))) |
9270298f BW |
7139 | (build-system ruby-build-system) |
7140 | (arguments | |
63755fcd BW |
7141 | `(#:tests? #f ; Tests require an out-dated version of minitest. |
7142 | #:phases | |
9270298f BW |
7143 | (modify-phases %standard-phases |
7144 | (add-before 'build 'fix-gemspec | |
7145 | (lambda _ | |
7146 | (substitute* "puma.gemspec" | |
7147 | (("git ls-files") "find * |sort")) | |
7148 | #t))))) | |
9270298f BW |
7149 | (synopsis "Simple, concurrent HTTP server for Ruby/Rack") |
7150 | (description | |
7151 | "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server | |
7152 | for Ruby/Rack applications. Puma is intended for use in both development and | |
7153 | production environments. In order to get the best throughput, it is highly | |
7154 | recommended that you use a Ruby implementation with real threads like Rubinius | |
7155 | or JRuby.") | |
a6cffe6e | 7156 | (home-page "https://puma.io/") |
9270298f BW |
7157 | (license license:expat))) |
7158 | ||
b0813490 BW |
7159 | (define-public ruby-hoe-git |
7160 | (package | |
7161 | (name "ruby-hoe-git") | |
7162 | (version "1.6.0") | |
7163 | (source | |
7164 | (origin | |
7165 | (method url-fetch) | |
7166 | (uri (rubygems-uri "hoe-git" version)) | |
7167 | (sha256 | |
7168 | (base32 | |
7169 | "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650")))) | |
7170 | (build-system ruby-build-system) | |
7171 | (propagated-inputs | |
7172 | `(("ruby-hoe" ,ruby-hoe) | |
7173 | ("git" ,git))) | |
7174 | (synopsis "Hoe plugins for tighter Git integration") | |
7175 | (description | |
7176 | "This package provides a set of Hoe plugins for tighter Git integration. | |
7177 | It provides tasks to automate release tagging and pushing and changelog | |
7178 | generation.") | |
7bf837fd | 7179 | (home-page "https://github.com/jbarnette/hoe-git") |
b0813490 BW |
7180 | (license license:expat))) |
7181 | ||
cbdd428c BW |
7182 | (define-public ruby-sequel |
7183 | (package | |
7184 | (name "ruby-sequel") | |
65a7f09c | 7185 | (version "4.49.0") |
cbdd428c BW |
7186 | (source |
7187 | (origin | |
7188 | (method url-fetch) | |
7189 | (uri (rubygems-uri "sequel" version)) | |
7190 | (sha256 | |
7191 | (base32 | |
65a7f09c | 7192 | "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8")))) |
cbdd428c BW |
7193 | (build-system ruby-build-system) |
7194 | (arguments | |
7195 | '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks. | |
7196 | (synopsis "Database toolkit for Ruby") | |
7197 | (description "Sequel provides thread safety, connection pooling and a | |
7198 | concise DSL for constructing SQL queries and table schemas. It includes a | |
7199 | comprehensive ORM layer for mapping records to Ruby objects and handling | |
7200 | associated records.") | |
e2b70d90 | 7201 | (home-page "https://sequel.jeremyevans.net") |
cbdd428c | 7202 | (license license:expat))) |
3cc78097 BW |
7203 | |
7204 | (define-public ruby-timecop | |
7205 | (package | |
7206 | (name "ruby-timecop") | |
3d4a5eb5 | 7207 | (version "0.9.1") |
3cc78097 BW |
7208 | (source |
7209 | (origin | |
7210 | (method url-fetch) | |
7211 | (uri (rubygems-uri "timecop" version)) | |
7212 | (sha256 | |
7213 | (base32 | |
3d4a5eb5 | 7214 | "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp")))) |
3cc78097 BW |
7215 | (build-system ruby-build-system) |
7216 | (arguments | |
7217 | `(#:phases | |
7218 | (modify-phases %standard-phases | |
7219 | (add-before 'check 'set-check-rubylib | |
7220 | (lambda _ | |
7221 | ;; Set RUBYLIB so timecop tests finds its own lib. | |
7222 | (setenv "RUBYLIB" "lib") | |
7223 | #t))))) | |
7224 | (native-inputs | |
7225 | `(("bundler" ,bundler) | |
7226 | ("ruby-minitest-rg" ,ruby-minitest-rg) | |
7227 | ("ruby-mocha" ,ruby-mocha) | |
7228 | ("ruby-activesupport" ,ruby-activesupport))) | |
66e07664 | 7229 | (synopsis "Test mocks for time-dependent functions") |
3cc78097 BW |
7230 | (description |
7231 | "Timecop provides \"time travel\" and \"time freezing\" capabilities, | |
7232 | making it easier to test time-dependent code. It provides a unified method to | |
7233 | mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single | |
7234 | call.") | |
7235 | (home-page "https://github.com/travisjeffery/timecop") | |
7236 | (license license:expat))) | |
7237 | ||
dae620b8 BW |
7238 | (define-public ruby-concurrent |
7239 | (package | |
7240 | (name "ruby-concurrent") | |
1007640a | 7241 | (version "1.1.5") |
dae620b8 BW |
7242 | (source |
7243 | (origin | |
8fcba3be | 7244 | (method git-fetch) |
dae620b8 BW |
7245 | ;; Download from GitHub because the rubygems version does not contain |
7246 | ;; Rakefile. | |
8fcba3be MB |
7247 | (uri (git-reference |
7248 | (url "https://github.com/ruby-concurrency/concurrent-ruby") | |
7249 | (commit (string-append "v" version)))) | |
7250 | (file-name (git-file-name name version)) | |
dae620b8 BW |
7251 | (sha256 |
7252 | (base32 | |
1007640a | 7253 | "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj")))) |
dae620b8 BW |
7254 | (build-system ruby-build-system) |
7255 | (arguments | |
1007640a | 7256 | `(#:test-target "ci" |
dae620b8 BW |
7257 | #:phases |
7258 | (modify-phases %standard-phases | |
520e89eb | 7259 | (add-before 'replace-git-ls-files 'remove-extra-gemspecs |
dae620b8 BW |
7260 | (lambda _ |
7261 | ;; Delete extra gemspec files so 'first-gemspec' chooses the | |
7262 | ;; correct one. | |
7263 | (delete-file "concurrent-ruby-edge.gemspec") | |
7264 | (delete-file "concurrent-ruby-ext.gemspec") | |
7265 | #t)) | |
1007640a | 7266 | (replace 'replace-git-ls-files |
520e89eb | 7267 | (lambda _ |
1007640a MB |
7268 | ;; XXX: The default substitution made by this phase is not fully |
7269 | ;; compatible with "git ls-files". The latter produces file names | |
7270 | ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]" | |
7271 | ;; which gives "./lib/foo". That difference in turn breaks the | |
7272 | ;; comparison against a glob pattern in this script. | |
7273 | (substitute* "concurrent-ruby.gemspec" | |
7274 | (("git ls-files") "find * -type f | sort")) | |
7275 | #t)) | |
7276 | (add-before 'build 'remove-jar-from-gemspec | |
520e89eb | 7277 | (lambda _ |
1007640a MB |
7278 | ;; The gemspec wants to include a JAR file that we do not build |
7279 | ;; nor need. | |
7280 | (substitute* "concurrent-ruby.gemspec" | |
7281 | (("'lib/concurrent/concurrent_ruby.jar'") | |
7282 | "")) | |
7283 | #t)) | |
7284 | (add-before 'build 'remove-rake_compiler_dock-dependency | |
7285 | (lambda _ | |
7286 | ;; This library is only used when building for non-MRI targets. | |
7287 | (substitute* "Rakefile" | |
7288 | (("require 'rake_compiler_dock'") | |
7289 | "")) | |
520e89eb | 7290 | #t)) |
9019b37f BW |
7291 | (add-before 'check 'remove-timecop-dependency |
7292 | ;; Remove timecop-dependent tests as having timecop as a depedency | |
7293 | ;; causes circular depedencies. | |
7294 | (lambda _ | |
7295 | (delete-file "spec/concurrent/executor/timer_set_spec.rb") | |
7296 | (delete-file "spec/concurrent/scheduled_task_spec.rb") | |
7297 | #t))))) | |
dae620b8 BW |
7298 | (native-inputs |
7299 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
9019b37f | 7300 | ("ruby-rspec" ,ruby-rspec))) |
dae620b8 BW |
7301 | (synopsis "Concurrency tools for Ruby") |
7302 | (description | |
7303 | "This library provides modern concurrency tools including agents, | |
7304 | futures, promises, thread pools, actors, supervisors, and more. It is | |
7305 | inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency | |
7306 | patterns.") | |
7307 | (home-page "http://www.concurrent-ruby.com") | |
7308 | (license license:expat))) | |
2de61e34 BW |
7309 | |
7310 | (define-public ruby-pkg-config | |
7311 | (package | |
7312 | (name "ruby-pkg-config") | |
884a80dd | 7313 | (version "1.2.5") |
2de61e34 BW |
7314 | (source |
7315 | (origin | |
7316 | (method url-fetch) | |
7317 | (uri (rubygems-uri "pkg-config" version)) | |
7318 | (sha256 | |
7319 | (base32 | |
884a80dd | 7320 | "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar")))) |
2de61e34 BW |
7321 | (build-system ruby-build-system) |
7322 | (arguments | |
7323 | ;; Tests require extra files not included in the gem. | |
7324 | `(#:tests? #f)) | |
7325 | (synopsis "Detect libraries for compiling Ruby native extensions") | |
7326 | (description | |
7327 | "@code{pkg-config} can be used in your extconf.rb to properly detect need | |
7328 | libraries for compiling Ruby native extensions.") | |
7329 | (home-page "https://github.com/ruby-gnome2/pkg-config") | |
7330 | (license license:lgpl2.0+))) | |
6689c636 MFM |
7331 | |
7332 | (define-public ruby-net-http-digest-auth | |
7333 | (package | |
7334 | (name "ruby-net-http-digest-auth") | |
ba074a85 | 7335 | (version "1.4.1") |
6689c636 MFM |
7336 | (source |
7337 | (origin | |
7338 | (method url-fetch) | |
7339 | (uri (rubygems-uri "net-http-digest_auth" version)) | |
7340 | (sha256 | |
7341 | (base32 | |
ba074a85 | 7342 | "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb")))) |
6689c636 MFM |
7343 | (build-system ruby-build-system) |
7344 | (native-inputs | |
7345 | `(("ruby-hoe" ,ruby-hoe))) | |
7346 | (synopsis "RFC 2617 HTTP digest authentication library") | |
7347 | (description | |
7348 | "This library implements HTTP's digest authentication scheme based on | |
7349 | RFC 2617. This enables the use of the digest authentication scheme instead | |
7350 | of the more insecure basic authentication scheme.") | |
7bf837fd | 7351 | (home-page "https://github.com/drbrain/net-http-digest_auth") |
6689c636 | 7352 | (license license:expat))) |
06116573 | 7353 | |
7354 | (define-public ruby-mail | |
7355 | (package | |
7356 | (name "ruby-mail") | |
04de0cb5 | 7357 | (version "2.6.6") |
06116573 | 7358 | (source |
7359 | (origin | |
7360 | (method url-fetch) | |
7361 | (uri (rubygems-uri "mail" version)) | |
7362 | (sha256 | |
7363 | (base32 | |
04de0cb5 | 7364 | "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9")))) |
06116573 | 7365 | (build-system ruby-build-system) |
7366 | (propagated-inputs | |
7367 | `(("ruby-mime-types" ,ruby-mime-types))) | |
7368 | (arguments | |
7369 | ;; Tests require extra gems not included in the Gemfile. | |
7370 | ;; XXX: Try enabling this for the next version with mini_mime. | |
7371 | `(#:tests? #f)) | |
7372 | (synopsis "Mail library for Ruby") | |
7373 | (description | |
7374 | "Mail is an internet library for Ruby that is designed to handle email | |
7375 | generation, parsing and sending. The purpose of this library is to provide | |
7376 | a single point of access to handle all email functions, including sending | |
7377 | and receiving emails. All network type actions are done through proxy | |
7378 | methods to @code{Net::SMTP}, @code{Net::POP3} etc. | |
7379 | ||
7380 | Mail has been designed with a very simple object oriented system that | |
7381 | really opens up the email messages you are parsing, if you know what you | |
7382 | are doing, you can fiddle with every last bit of your email directly.") | |
7383 | (home-page "https://github.com/mikel/mail") | |
7384 | (license license:expat))) | |
9b4c8e1b | 7385 | |
4d372cb9 CB |
7386 | (define-public ruby-mathn |
7387 | (package | |
7388 | (name "ruby-mathn") | |
7389 | (version "0.1.0") | |
7390 | (source | |
7391 | (origin | |
7392 | (method url-fetch) | |
7393 | (uri (rubygems-uri "mathn" version)) | |
7394 | (sha256 | |
7395 | (base32 | |
7396 | "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p")))) | |
7397 | (build-system ruby-build-system) | |
7398 | (native-inputs | |
7399 | `(("bundler" ,bundler) | |
7400 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
7401 | (synopsis "Extends math operations for increased precision") | |
7402 | (description | |
7403 | "This gem makes mathematical operations more precise in Ruby and | |
7404 | integrates other mathematical standard libraries. Prior to Ruby 2.5, | |
7405 | @code{mathn} was part of the Ruby standard library.") | |
7406 | (home-page "https://github.com/ruby/mathn") | |
7407 | (license license:bsd-2))) | |
7408 | ||
9b4c8e1b BW |
7409 | (define-public ruby-code-statistics |
7410 | (package | |
7411 | (name "ruby-code-statistics") | |
7412 | (version "0.2.13") | |
7413 | (source | |
7414 | (origin | |
7415 | (method url-fetch) | |
7416 | (uri (rubygems-uri "code_statistics" version)) | |
7417 | (sha256 | |
7418 | (base32 | |
7419 | "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93")))) | |
7420 | (build-system ruby-build-system) | |
7421 | (arguments | |
7422 | `(#:tests? #f)) ; Not all test code is included in gem. | |
7423 | (synopsis "Port of the rails 'rake stats' method") | |
7424 | (description | |
7425 | "This gem is a port of the rails 'rake stats' method so it can be made | |
7426 | more robust and work for non rails projects.") | |
7427 | (home-page "http://github.com/danmayer/code_statistics") | |
7428 | (license license:expat))) | |
f90c25c1 CL |
7429 | |
7430 | (define-public ruby-rubypants | |
7431 | (package | |
7432 | (name "ruby-rubypants") | |
7433 | (version "0.6.0") | |
7434 | (source (origin | |
7435 | (method url-fetch) | |
7436 | (uri (rubygems-uri "rubypants" version)) | |
7437 | (sha256 | |
7438 | (base32 | |
7439 | "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh")))) | |
7440 | (build-system ruby-build-system) | |
7441 | (arguments | |
7442 | '(#:tests? #f)) ; need Codecov | |
7443 | (synopsis "Port of the smart-quotes library SmartyPants") | |
7444 | (description | |
7445 | "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The | |
7446 | original SmartyPants is a web publishing plug-in for Movable Type, Blosxom, | |
7447 | and BBEdit that easily translates plain ASCII punctuation characters into | |
7448 | smart typographic punctuation HTML entities.") | |
7449 | (home-page "https://github.com/jmcnevin/rubypants") | |
7450 | (license license:bsd-2))) | |
beb34835 CL |
7451 | |
7452 | (define-public ruby-org-ruby | |
7453 | (package | |
7454 | (name "ruby-org-ruby") | |
7455 | (version "0.9.12") | |
7456 | (source (origin | |
7457 | (method url-fetch) | |
7458 | (uri (rubygems-uri "org-ruby" version)) | |
7459 | (sha256 | |
7460 | (base32 | |
7461 | "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk")))) | |
7462 | (build-system ruby-build-system) | |
7463 | (arguments | |
7464 | '(#:tests? #f)) ; no rakefile | |
7465 | (propagated-inputs | |
7466 | `(("ruby-rubypants" ,ruby-rubypants))) | |
7467 | (synopsis "Org-mode parser written in Ruby") | |
7468 | (description | |
7469 | "Org-ruby is an org-mode parser written in Ruby. The most significant | |
7470 | thing this library does today is convert org-mode files to HTML or Textile or | |
7471 | Markdown.") | |
7472 | (home-page "https://github.com/wallyqs/org-ruby") | |
7473 | (license license:expat))) | |
670ee20a BW |
7474 | |
7475 | (define-public ruby-rake | |
7476 | (package | |
7477 | (name "ruby-rake") | |
d6fb32b8 | 7478 | (version "12.3.1") |
670ee20a BW |
7479 | (source |
7480 | (origin | |
7481 | (method url-fetch) | |
7482 | (uri (rubygems-uri "rake" version)) | |
7483 | (sha256 | |
7484 | (base32 | |
d6fb32b8 | 7485 | "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg")))) |
670ee20a BW |
7486 | (build-system ruby-build-system) |
7487 | (native-inputs | |
7488 | `(("bundler" ,bundler))) | |
7489 | (synopsis "Rake is a Make-like program implemented in Ruby") | |
7490 | (description | |
7491 | "Rake is a Make-like program where tasks and dependencies are specified | |
7492 | in standard Ruby syntax.") | |
7493 | (home-page "https://github.com/ruby/rake") | |
7494 | (license license:expat))) | |
45498f51 | 7495 | |
51420124 | 7496 | (define-public ruby-childprocess |
45498f51 DM |
7497 | (package |
7498 | (name "ruby-childprocess") | |
459e4a1a | 7499 | (version "3.0.0") |
45498f51 DM |
7500 | (source |
7501 | (origin | |
7502 | (method url-fetch) | |
7503 | (uri (rubygems-uri "childprocess" version)) | |
7504 | (sha256 | |
7505 | (base32 | |
459e4a1a | 7506 | "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5")))) |
45498f51 DM |
7507 | (build-system ruby-build-system) |
7508 | (arguments | |
7509 | `(#:tests? #f)) | |
7510 | (native-inputs | |
7511 | `(("bundler" ,bundler) | |
7512 | ("ruby-rspec" ,ruby-rspec))) | |
7513 | (propagated-inputs | |
7514 | `(("ruby-ffi" ,ruby-ffi))) | |
7515 | (synopsis "Control external programs running in the background, in Ruby") | |
7516 | (description "@code{childprocess} provides a gem to control external | |
7517 | programs running in the background, in Ruby.") | |
459e4a1a | 7518 | (home-page "https://github.com/enkessler/childprocess") |
45498f51 | 7519 | (license license:expat))) |
1f10e28d | 7520 | |
0d16905b JL |
7521 | (define-public ruby-public-suffix |
7522 | (package | |
7523 | (name "ruby-public-suffix") | |
9de12df7 | 7524 | (version "4.0.1") |
0d16905b JL |
7525 | (source (origin |
7526 | (method url-fetch) | |
7527 | (uri (rubygems-uri "public_suffix" version)) | |
7528 | (sha256 | |
7529 | (base32 | |
9de12df7 | 7530 | "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0")))) |
0d16905b JL |
7531 | (build-system ruby-build-system) |
7532 | (arguments | |
1f4fc125 CB |
7533 | '(#:phases |
7534 | (modify-phases %standard-phases | |
7535 | ;; Remove the requirement on Rubocop, as it isn't useful to run, and | |
7536 | ;; including it as an input can lead to circular dependencies. | |
7537 | (add-after 'unpack 'remove-rubocop-from-Rakefile | |
7538 | (lambda _ | |
7539 | (substitute* "Rakefile" | |
7540 | (("require \"rubocop/rake\\_task\"") "") | |
7541 | (("RuboCop::RakeTask\\.new") "")) | |
7542 | #t))))) | |
7543 | (native-inputs | |
7544 | `(("bundler" ,bundler) | |
7545 | ("ruby-yard" ,ruby-yard) | |
7546 | ("ruby-mocha" ,ruby-mocha) | |
7547 | ("ruby-minitest-reporters" ,ruby-minitest-reporters))) | |
0d16905b JL |
7548 | (home-page "https://simonecarletti.com/code/publicsuffix-ruby/") |
7549 | (synopsis "Domain name parser") | |
7550 | (description "The gem @code{public_suffix} is a domain name parser, | |
7551 | written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix | |
7552 | is one under which Internet users can (or historically could) directly | |
7553 | register names. Some examples of public suffixes are @code{.com}, | |
7554 | @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of | |
7555 | all known public suffixes.") | |
7556 | (license license:expat))) | |
6f2c4efb JL |
7557 | |
7558 | (define-public ruby-addressable | |
7559 | (package | |
7560 | (name "ruby-addressable") | |
91f7ee87 | 7561 | (version "2.7.0") |
6f2c4efb JL |
7562 | (source (origin |
7563 | (method url-fetch) | |
7564 | (uri (rubygems-uri "addressable" version)) | |
7565 | (sha256 | |
7566 | (base32 | |
91f7ee87 | 7567 | "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy")))) |
6f2c4efb | 7568 | (build-system ruby-build-system) |
0a794b30 CB |
7569 | (arguments |
7570 | '(#:test-target "spec" | |
7571 | #:phases | |
7572 | (modify-phases %standard-phases | |
7573 | (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile | |
7574 | (lambda _ | |
7575 | (substitute* "Gemfile" | |
7576 | (("git: 'https://github.com/sporkmonger/rack-mount.git',") "") | |
7577 | ((".*launchy.*") "") | |
7578 | ((".*rake.*") "gem 'rake'\n") | |
7579 | ((".*redcarpet.*") "")) | |
7580 | #t)) | |
7581 | (add-before 'check 'delete-network-dependent-test | |
7582 | (lambda _ | |
7583 | (delete-file "spec/addressable/net_http_compat_spec.rb") | |
7584 | #t))))) | |
7585 | (native-inputs | |
7586 | `(("ruby-rspec" ,ruby-rspec) | |
7587 | ("bundler" ,bundler) | |
7588 | ("ruby-idn-ruby" ,ruby-idn-ruby) | |
7589 | ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount) | |
7590 | ("ruby-rspec-its", ruby-rspec-its) | |
7591 | ("ruby-yard" ,ruby-yard) | |
7592 | ("ruby-simplecov" ,ruby-simplecov))) | |
6f2c4efb JL |
7593 | (propagated-inputs |
7594 | `(("ruby-public-suffix" ,ruby-public-suffix))) | |
6f2c4efb JL |
7595 | (home-page "https://github.com/sporkmonger/addressable") |
7596 | (synopsis "Alternative URI implementation") | |
7597 | (description "Addressable is a replacement for the URI implementation that | |
7598 | is part of Ruby's standard library. It more closely conforms to RFC 3986, | |
7599 | RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.") | |
7600 | (license license:asl2.0))) | |
9c7f15c0 JL |
7601 | |
7602 | (define-public ruby-colorator | |
7603 | (package | |
7604 | (name "ruby-colorator") | |
7605 | (version "1.1.0") | |
7606 | (source (origin | |
7607 | (method url-fetch) | |
7608 | (uri (rubygems-uri "colorator" version)) | |
7609 | (sha256 | |
7610 | (base32 | |
7611 | "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72")))) | |
7612 | (build-system ruby-build-system) | |
7613 | (arguments | |
7614 | ;; No test target | |
7615 | `(#:tests? #f)) | |
7616 | (home-page "http://octopress.org/colorator/") | |
7617 | (synopsis "Terminal color library") | |
7618 | (description "Colorator is a Ruby gem that helps you colorize your text | |
7619 | for the terminal.") | |
7620 | (license license:expat))) | |
78b9c291 JL |
7621 | |
7622 | (define-public ruby-command-line-reporter | |
7623 | (package | |
7624 | (name "ruby-command-line-reporter") | |
b448e408 | 7625 | (version "4.0.1") |
78b9c291 JL |
7626 | (source (origin |
7627 | (method url-fetch) | |
7628 | (uri (rubygems-uri "command_line_reporter" version)) | |
7629 | (sha256 | |
7630 | (base32 | |
b448e408 | 7631 | "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll")))) |
78b9c291 JL |
7632 | (build-system ruby-build-system) |
7633 | (arguments | |
7634 | ;; No Rakefile | |
7635 | `(#:tests? #f | |
7636 | #:phases | |
7637 | (modify-phases %standard-phases | |
7638 | (add-before 'build 'fix-dependencies | |
7639 | (lambda _ | |
7640 | (substitute* ".gemspec" | |
7641 | ;; colored is unmaintained | |
7642 | (("colored") "colorator") | |
7643 | ;; colorator version | |
7644 | (("= 1.2") "= 1.1")) | |
7645 | #t))))) | |
7646 | (propagated-inputs `(("ruby-colorator" ,ruby-colorator))) | |
7647 | (home-page "https://github.com/wbailey/command_line_reporter") | |
7648 | (synopsis "Report production while executing Ruby scripts") | |
7649 | (description "This gem provides a DSL that makes it easy to write reports | |
7650 | of various types in ruby. It eliminates the need to litter your source with | |
7651 | puts statements, instead providing a more readable, expressive interface to | |
7652 | your application.") | |
7653 | (license license:asl2.0))) | |
f22c0387 JL |
7654 | |
7655 | (define-public ruby-command-line-reporter-3 | |
7656 | (package | |
7657 | (inherit ruby-command-line-reporter) | |
7658 | (version "3.3.6") | |
7659 | (source (origin | |
7660 | (method url-fetch) | |
7661 | (uri (rubygems-uri "command_line_reporter" version)) | |
7662 | (sha256 | |
7663 | (base32 | |
7664 | "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71")))))) | |
6bba8ecf JL |
7665 | |
7666 | (define-public ruby-rdoc | |
7667 | (package | |
7668 | (name "ruby-rdoc") | |
7669 | (version "6.0.4") | |
7670 | (source | |
7671 | (origin | |
7672 | (method url-fetch) | |
7673 | (uri (rubygems-uri "rdoc" version)) | |
7674 | (sha256 | |
7675 | (base32 | |
7676 | "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7")))) | |
7677 | (build-system ruby-build-system) | |
7678 | (native-inputs | |
7679 | `(("bundler" ,bundler))) | |
7680 | (home-page "https://ruby.github.io/rdoc/") | |
7681 | (synopsis "HTML and command-line documentation utility") | |
7682 | (description "RDoc produces HTML and command-line documentation for Ruby | |
7683 | projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying | |
7684 | documentation from the command-line.") | |
7685 | (license license:gpl2+))) | |
18077ffc JL |
7686 | |
7687 | (define-public ruby-sass-listen | |
7688 | (package | |
7689 | (name "ruby-sass-listen") | |
7690 | (version "4.0.0") | |
7691 | (source (origin | |
7692 | (method url-fetch) | |
7693 | (uri (rubygems-uri "sass-listen" version)) | |
7694 | (sha256 | |
7695 | (base32 | |
7696 | "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df")))) | |
7697 | (build-system ruby-build-system) | |
7698 | (arguments | |
7699 | ;; No test target | |
7700 | `(#:tests? #f)) | |
7701 | (propagated-inputs | |
7702 | `(("ruby-rb-fsevent" ,ruby-rb-fsevent) | |
7703 | ("ruby-rb-inotify" ,ruby-rb-inotify))) | |
7704 | (home-page "https://github.com/sass/listen") | |
7705 | (synopsis "File modification notification library") | |
7706 | (description "The Listen gem listens to file modifications and notifies you | |
7707 | about the changes.") | |
7708 | (license license:expat))) | |
0c8eedc1 JL |
7709 | |
7710 | (define-public ruby-terminfo | |
7711 | (package | |
7712 | (name "ruby-terminfo") | |
7713 | (version "0.1.1") | |
7714 | (source | |
7715 | (origin | |
7716 | (method url-fetch) | |
7717 | (uri (rubygems-uri "ruby-terminfo" version)) | |
7718 | (sha256 | |
7719 | (base32 | |
7720 | "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm")))) | |
7721 | (build-system ruby-build-system) | |
7722 | (arguments | |
7723 | `(#:test-target "test" | |
7724 | ;; Rakefile requires old packages and would need modification to | |
7725 | ;; work with current software. | |
7726 | #:tests? #f)) | |
7727 | (inputs | |
7728 | `(("ncurses" ,ncurses))) | |
7729 | (native-inputs | |
7730 | `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks) | |
7731 | ("ruby-rdoc" ,ruby-rdoc))) | |
7732 | (home-page "http://www.a-k-r.org/ruby-terminfo/") | |
7733 | (synopsis "Terminfo binding for Ruby") | |
7734 | (description "Ruby-terminfo provides terminfo binding for Ruby.") | |
7735 | (license license:bsd-3))) | |
ddc3a667 JL |
7736 | |
7737 | (define-public ruby-diffy | |
7738 | (package | |
7739 | (name "ruby-diffy") | |
7740 | (version "3.2.1") | |
7741 | (source | |
7742 | (origin | |
7743 | (method url-fetch) | |
7744 | (uri (rubygems-uri "diffy" version)) | |
7745 | (sha256 | |
7746 | (base32 | |
7747 | "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg")))) | |
7748 | (build-system ruby-build-system) | |
7749 | (arguments | |
7750 | ;; No tests | |
7751 | `(#:tests? #f)) | |
7752 | (native-inputs | |
7753 | `(("ruby-rspec" ,ruby-rspec))) | |
7754 | (home-page "https://github.com/samg/diffy") | |
7755 | (synopsis "Convenient diffing in ruby") | |
7756 | (description "Diffy provides a convenient way to generate a diff from two | |
7757 | strings or files.") | |
7758 | (license license:expat))) | |
6456beef JL |
7759 | |
7760 | (define-public ruby-sass-spec | |
7761 | (package | |
7762 | (name "ruby-sass-spec") | |
7763 | (version "3.5.4") | |
11df8321 TGR |
7764 | (source |
7765 | (origin | |
7766 | (method git-fetch) | |
7767 | (uri (git-reference | |
7768 | (url "https://github.com/sass/sass-spec.git") | |
7769 | (commit (string-append "v" version)))) | |
7770 | (file-name (git-file-name name version)) | |
7771 | (sha256 | |
7772 | (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr")))) | |
6456beef JL |
7773 | (build-system ruby-build-system) |
7774 | (propagated-inputs | |
7775 | `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3) | |
7776 | ("ruby-diffy" ,ruby-diffy) | |
7777 | ("ruby-terminfo" ,ruby-terminfo))) | |
7778 | (arguments | |
2c7cb711 CB |
7779 | `(;; This package contains tests for a sass implementation, and the to |
7780 | ;; avoid any circular dependencies, the tests are not run here | |
7781 | #:tests? #f | |
7782 | #:phases | |
7783 | (modify-phases %standard-phases | |
7784 | (add-after 'unpack 'patch-test | |
7785 | (lambda _ | |
7786 | (delete-file "spec/values/colors/alpha_hex-3.5/error") | |
7787 | (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css" | |
7788 | (("string") "color"))))))) | |
6456beef JL |
7789 | (home-page "https://github.com/sass/sass-spec") |
7790 | (synopsis "Test suite for Sass") | |
7791 | (description "Sass Spec is a test suite for Sass. Test cases are all in | |
7792 | the @file{spec} directory.") | |
7793 | (license license:expat))) | |
f00f4492 JL |
7794 | |
7795 | (define-public ruby-sass | |
7796 | (package | |
7797 | (name "ruby-sass") | |
11ff2adc | 7798 | (version "3.6.0") |
f00f4492 JL |
7799 | (source (origin |
7800 | (method url-fetch) | |
7801 | (uri (rubygems-uri "sass" version)) | |
7802 | (sha256 | |
7803 | (base32 | |
11ff2adc | 7804 | "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh")))) |
f00f4492 JL |
7805 | (build-system ruby-build-system) |
7806 | (propagated-inputs | |
7807 | `(("ruby-sass-listen" ,ruby-sass-listen))) | |
7808 | (native-inputs | |
11ff2adc CB |
7809 | `(("ruby-sass-spec" ,ruby-sass-spec) |
7810 | ("ruby-mathn" ,ruby-mathn))) | |
3497086b | 7811 | (home-page "https://sass-lang.com/") |
f00f4492 JL |
7812 | (synopsis "CSS extension language") |
7813 | (description "Sass is a CSS extension language. It extends CSS with | |
7814 | features that don't exist yet like variables, nesting, mixins and inheritance.") | |
7815 | (license license:expat))) | |
5e242cb4 | 7816 | |
9efc888d CB |
7817 | (define-public ruby-sassc |
7818 | (package | |
7819 | (name "ruby-sassc") | |
3e776b44 | 7820 | (version "2.2.1") |
9efc888d CB |
7821 | (source |
7822 | (origin | |
7823 | (method url-fetch) | |
7824 | (uri (rubygems-uri "sassc" version)) | |
7825 | (sha256 | |
7826 | (base32 | |
3e776b44 | 7827 | "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz")))) |
9efc888d CB |
7828 | (build-system ruby-build-system) |
7829 | (arguments | |
3e776b44 CB |
7830 | '(#:modules ((guix build ruby-build-system) |
7831 | (guix build utils) | |
7832 | (ice-9 textual-ports)) | |
7833 | #:phases | |
9efc888d CB |
7834 | (modify-phases %standard-phases |
7835 | ;; TODO: This would be better as a snippet, but the ruby-build-system | |
7836 | ;; doesn't seem to support that | |
7837 | (add-after 'unpack 'remove-libsass | |
7838 | (lambda _ | |
7839 | (delete-file-recursively "ext") | |
3e776b44 CB |
7840 | (with-atomic-file-replacement "sassc.gemspec" |
7841 | (lambda (in out) | |
7842 | (let* ((gemspec (get-string-all in)) | |
7843 | (index (string-contains gemspec "libsass_dir"))) | |
7844 | (display (string-append | |
7845 | (string-take gemspec index) | |
7846 | "\nend\n") | |
7847 | out)))) | |
9efc888d CB |
7848 | #t)) |
7849 | (add-after 'unpack 'dont-check-the-libsass-version | |
7850 | (lambda _ | |
7851 | (substitute* "test/native_test.rb" | |
7852 | (("assert_equal.*Native\\.version") "")) | |
7853 | #t)) | |
7854 | (add-after 'unpack 'remove-git-from-gemspec | |
7855 | (lambda _ | |
7856 | (substitute* "sassc.gemspec" | |
3e776b44 | 7857 | (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")) |
9efc888d CB |
7858 | #t)) |
7859 | (add-after 'unpack 'remove-extensions-from-gemspec | |
7860 | (lambda _ | |
7861 | (substitute* "sassc.gemspec" | |
3e776b44 | 7862 | (("\\[\"ext/extconf.rb\"\\]") "[]")) |
9efc888d CB |
7863 | #t)) |
7864 | (add-after 'unpack 'fix-Rakefile | |
7865 | (lambda _ | |
7866 | (substitute* "Rakefile" | |
3e776b44 | 7867 | (("test: 'compile:libsass'") ":test")) |
9efc888d CB |
7868 | #t)) |
7869 | (add-after 'unpack 'remove-unnecessary-dependencies | |
7870 | (lambda _ | |
7871 | (substitute* "test/test_helper.rb" | |
7872 | (("require \"pry\"") "")) | |
7873 | #t)) | |
7874 | (add-before 'build 'patch-native.rb | |
7875 | (lambda* (#:key inputs #:allow-other-keys) | |
7876 | (substitute* "lib/sassc/native.rb" | |
7877 | ((".*gem_root = spec.gem_dir") "") | |
7878 | (("ffi_lib .*\n") | |
7879 | (string-append | |
7880 | "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'"))) | |
7881 | #t)) | |
7882 | ;; The gemspec still references the libsass files, so just keep the | |
7883 | ;; one in the gem. | |
7884 | (delete 'extract-gemspec)))) | |
7885 | (propagated-inputs | |
7886 | `(("ruby-ffi" ,ruby-ffi) | |
7887 | ("ruby-rake" ,ruby-rake))) | |
7888 | (inputs | |
7889 | `(("libsass" ,libsass))) | |
7890 | (native-inputs | |
7891 | `(("bundler" ,bundler) | |
3e776b44 | 7892 | ("ruby-rake-compiler" ,ruby-rake-compiler) |
9efc888d CB |
7893 | ("ruby-minitest-around" ,ruby-minitest-around) |
7894 | ("ruby-test-construct" ,ruby-test-construct))) | |
7895 | (synopsis "Use libsss from Ruby") | |
7896 | (description | |
7897 | "This library provides Ruby q@acronym{FFI, Foreign Function Interface} | |
7898 | bindings to the libsass library. This enables rendering | |
7899 | @acronym{SASS,Syntactically awesome style sheets} from Ruby code.") | |
7900 | (home-page "https://github.com/sass/sassc-ruby") | |
7901 | (license license:expat))) | |
7902 | ||
5e242cb4 JL |
7903 | (define-public ruby-jekyll-sass-converter |
7904 | (package | |
7905 | (name "ruby-jekyll-sass-converter") | |
7906 | (version "1.5.2") | |
7907 | (source (origin | |
7908 | (method url-fetch) | |
7909 | (uri (rubygems-uri "jekyll-sass-converter" version)) | |
7910 | (sha256 | |
7911 | (base32 | |
7912 | "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk")))) | |
7913 | (build-system ruby-build-system) | |
7914 | (propagated-inputs | |
7915 | `(("ruby-sass" ,ruby-sass))) | |
7916 | (arguments | |
7917 | ;; No rakefile | |
7918 | `(#:tests? #f)) | |
7919 | (home-page "https://github.com/jekyll/jekyll-sass-converter") | |
7920 | (synopsis "Sass converter for Jekyll") | |
7921 | (description "This gem provide built-in support for the Sass converter | |
7922 | in Jekyll.") | |
7923 | (license license:expat))) | |
ceac6f6f JL |
7924 | |
7925 | (define-public ruby-jekyll-watch | |
7926 | (package | |
7927 | (name "ruby-jekyll-watch") | |
6cbba8a3 | 7928 | (version "2.1.2") |
ceac6f6f JL |
7929 | (source (origin |
7930 | (method url-fetch) | |
7931 | (uri (rubygems-uri "jekyll-watch" version)) | |
7932 | (sha256 | |
7933 | (base32 | |
6cbba8a3 | 7934 | "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv")))) |
ceac6f6f JL |
7935 | (build-system ruby-build-system) |
7936 | (propagated-inputs | |
6cbba8a3 | 7937 | `(("ruby-listen" ,ruby-listen))) |
ceac6f6f JL |
7938 | (arguments |
7939 | ;; No rakefile | |
7940 | `(#:tests? #f)) | |
7941 | (home-page "https://github.com/jekyll/jekyll-watch") | |
7942 | (synopsis "Jekyll auto-rebuild support") | |
7943 | (description "This gems add the @code{--watch} switch to the jekyll CLI | |
7944 | interface. It allows Jekyll to rebuild your site when a file changes.") | |
7945 | (license license:expat))) | |
3224a5a8 JL |
7946 | |
7947 | (define-public ruby-parallel | |
7948 | (package | |
7949 | (name "ruby-parallel") | |
c41fba01 CB |
7950 | (version "1.13.0") |
7951 | (source | |
7952 | (origin | |
7953 | (method git-fetch) | |
7954 | (uri (git-reference | |
7955 | (url "https://github.com/grosser/parallel.git") | |
7956 | (commit (string-append "v" version)))) | |
7957 | (file-name (git-file-name name version)) | |
7958 | (sha256 | |
7959 | (base32 | |
7960 | "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv")))) | |
3224a5a8 | 7961 | (build-system ruby-build-system) |
c41fba01 CB |
7962 | (arguments |
7963 | `(;; TODO 3 test failures | |
7964 | ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not | |
7965 | ;; open unnecessary pipes | |
7966 | ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with | |
7967 | ;; SQLite in processes | |
7968 | ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with | |
7969 | ;; SQLite in threads | |
7970 | #:tests? #f | |
7971 | #:test-target "rspec-rerun:spec" | |
7972 | #:phases | |
7973 | (modify-phases %standard-phases | |
7974 | (add-after 'unpack 'patch-Gemfile | |
7975 | (lambda _ | |
7976 | (substitute* "Gemfile" | |
7977 | (("gem 'rspec-legacy_formatters'") "") | |
7978 | (("gem 'activerecord.*$") "gem 'activerecord'\n")))) | |
7979 | (add-before 'check 'delete-Gemfile.lock | |
7980 | (lambda _ | |
7981 | ;; Bundler isn't being used for fetching dependendencies, so | |
7982 | ;; delete the Gemfile.lock | |
7983 | (delete-file "Gemfile.lock") | |
7984 | #t)) | |
7985 | (add-before 'build 'patch-gemspec | |
7986 | (lambda _ | |
7987 | (substitute* "parallel.gemspec" | |
7988 | (("git ls-files") "find")) | |
7989 | #t))))) | |
7990 | (native-inputs | |
7991 | `(("ruby-rspec" ,ruby-rspec) | |
7992 | ("ruby-rspec-rerun" ,ruby-rspec-rerun) | |
7993 | ("bundler" ,bundler) | |
7994 | ("ruby-activerecord" ,ruby-activerecord) | |
7995 | ("ruby-progressbar" ,ruby-progressbar) | |
7996 | ("ruby-bump" ,ruby-bump) | |
7997 | ("procps" ,procps) | |
7998 | ("lsof" ,lsof) | |
7999 | ("ruby-mysql2" ,ruby-mysql2) | |
8000 | ("ruby-sqlite3" ,ruby-sqlite3) | |
8001 | ("ruby-i18n" ,ruby-i18n))) | |
3224a5a8 JL |
8002 | (home-page "https://github.com/grosser/parallel") |
8003 | (synopsis "Parallel processing in Ruby") | |
8004 | (description "Parallel allows you to run any code in parallel Processes | |
8005 | (to use all CPUs) or Threads(to speedup blocking operations). It is best | |
8006 | suited for map-reduce or e.g. parallel downloads/uploads.") | |
8007 | (license license:expat))) | |
83d9f672 JL |
8008 | |
8009 | (define-public ruby-cane | |
8010 | (package | |
8011 | (name "ruby-cane") | |
8012 | (version "3.0.0") | |
8013 | (source (origin | |
8014 | (method url-fetch) | |
8015 | (uri (rubygems-uri "cane" version)) | |
8016 | (sha256 | |
8017 | (base32 | |
8018 | "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih")))) | |
8019 | (build-system ruby-build-system) | |
8020 | (arguments `(#:tests? #f)); No rakefile | |
8021 | (home-page "https://github.com/square/cane") | |
8022 | (propagated-inputs | |
8023 | `(("ruby-parallel" ,ruby-parallel))) | |
8024 | (synopsis "Code quality threshold checking") | |
8025 | (description "Cane fails your build if code quality thresholds are not met.") | |
8026 | (license license:asl2.0))) | |
00d71efc JL |
8027 | |
8028 | (define-public ruby-morecane | |
8029 | (package | |
8030 | (name "ruby-morecane") | |
8031 | (version "0.2.0") | |
8032 | (source (origin | |
8033 | (method url-fetch) | |
8034 | (uri (rubygems-uri "morecane" version)) | |
8035 | (sha256 | |
8036 | (base32 | |
8037 | "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771")))) | |
8038 | (build-system ruby-build-system) | |
8039 | (home-page "https://github.com/yob/morecane") | |
8040 | (arguments `(#:tests? #f)); No rakefile | |
8041 | (propagated-inputs | |
8042 | `(("ruby-parallel" ,ruby-parallel))) | |
8043 | (synopsis "Extra checks for cane") | |
8044 | (description "The cane gem provides a great framework for running quality | |
8045 | checks over your ruby project as part of continuous integration build. It | |
8046 | comes with a few checks out of the box, but also provides an API for loading | |
8047 | custom checks. This gem provides a set of additional checks.") | |
8048 | (license license:expat))) | |
abbe629c JL |
8049 | |
8050 | (define-public ruby-pdf-reader | |
8051 | (package | |
8052 | (name "ruby-pdf-reader") | |
8053 | (version "2.1.0") | |
8054 | (source (origin | |
8055 | (method url-fetch) | |
8056 | (uri (rubygems-uri "pdf-reader" version)) | |
8057 | (sha256 | |
8058 | (base32 | |
8059 | "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45")))) | |
8060 | (build-system ruby-build-system) | |
8061 | (arguments `(#:test-target "spec")) | |
8062 | (native-inputs | |
8063 | `(("bundler" ,bundler) | |
8064 | ("ruby-rspec" ,ruby-rspec) | |
8065 | ("ruby-cane" ,ruby-cane) | |
8066 | ("ruby-morecane" ,ruby-morecane))) | |
8067 | (propagated-inputs | |
8068 | `(("ruby-afm" ,ruby-afm) | |
8069 | ("ruby-ascii85" ,ruby-ascii85) | |
8070 | ("ruby-hashery" ,ruby-hashery) | |
8071 | ("ruby-rc4" ,ruby-rc4) | |
8072 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
8073 | (home-page "https://github.com/yob/pdf-reader") | |
8074 | (synopsis "PDF parser in Ruby") | |
8075 | (description "The PDF::Reader library implements a PDF parser conforming as | |
8076 | much as possible to the PDF specification from Adobe. It provides programmatic | |
8077 | access to the contents of a PDF file with a high degree of flexibility.") | |
8078 | (license license:gpl3+))) | |
461fb859 JL |
8079 | |
8080 | (define-public ruby-pdf-inspector | |
8081 | (package | |
8082 | (name "ruby-pdf-inspector") | |
8083 | (version "1.3.0") | |
8084 | (source (origin | |
8085 | (method url-fetch) | |
8086 | (uri (rubygems-uri "pdf-inspector" version)) | |
8087 | (sha256 | |
8088 | (base32 | |
8089 | "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w")))) | |
8090 | (build-system ruby-build-system) | |
8091 | (propagated-inputs | |
8092 | `(("ruby-pdf-reader" ,ruby-pdf-reader))) | |
8093 | (arguments `(#:tests? #f)); No rakefile | |
8094 | (home-page "https://github.com/prawnpdf/pdf-inspector") | |
8095 | (synopsis "Analysis classes for inspecting PDF output") | |
8096 | (description "This library provides a number of PDF::Reader based tools for | |
8097 | use in testing PDF output. Presently, the primary purpose of this tool is to | |
8098 | support the tests found in Prawn, a pure Ruby PDF generation library.") | |
8099 | (license license:gpl3+))) | |
770e3b53 JL |
8100 | |
8101 | (define-public ruby-pdf-core | |
8102 | (package | |
8103 | (name "ruby-pdf-core") | |
8104 | (version "0.8.1") | |
8105 | (source (origin | |
8106 | (method url-fetch) | |
8107 | (uri (rubygems-uri "pdf-core" version)) | |
8108 | (sha256 | |
8109 | (base32 | |
8110 | "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg")))) | |
8111 | (build-system ruby-build-system) | |
8112 | (arguments | |
8113 | ; No test target | |
8114 | `(#:tests? #f)) | |
8115 | (home-page "https://github.com/prawnpdf/pdf-core") | |
8116 | (synopsis "Low level PDF features for Prawn") | |
8117 | (description "This is an experimental gem that extracts low-level PDF | |
8118 | functionality from Prawn.") | |
8119 | (license license:gpl3+))) | |
37fbced7 | 8120 | |
7ad8dd08 JL |
8121 | (define-public ruby-prawn |
8122 | (package | |
8123 | (name "ruby-prawn") | |
8124 | (version "2.2.2") | |
8125 | (source (origin | |
8126 | (method url-fetch) | |
8127 | (uri (rubygems-uri "prawn" version)) | |
8128 | (sha256 | |
8129 | (base32 | |
8130 | "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m")))) | |
8131 | (build-system ruby-build-system) | |
8132 | (arguments | |
8133 | ; No tests | |
8134 | `(#:tests? #f | |
8135 | #:phases | |
8136 | (modify-phases %standard-phases | |
8137 | (add-before 'build 'fix-dependencies | |
8138 | (lambda _ | |
8139 | (substitute* "prawn.gemspec" | |
8140 | (("~> 0.7.0") "~> 0.7")) | |
8141 | #t))))) | |
8142 | (propagated-inputs | |
8143 | `(("ruby-pdf-core" ,ruby-pdf-core) | |
8144 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
8145 | (native-inputs | |
8146 | `(("bundler" ,bundler) | |
8147 | ("ruby-pdf-inspector" ,ruby-pdf-inspector) | |
8148 | ("ruby-rspec" ,ruby-rspec) | |
8149 | ("ruby-simplecov" ,ruby-simplecov) | |
8150 | ("ruby-yard" ,ruby-yard))) | |
8151 | (home-page "http://prawnpdf.org/api-docs/2.0/") | |
8152 | (synopsis "PDF generation for Ruby") | |
8153 | (description "Prawn is a pure Ruby PDF generation library.") | |
8154 | (license license:gpl3+))) | |
197ca8ec JL |
8155 | |
8156 | (define-public ruby-prawn-table | |
8157 | (package | |
8158 | (name "ruby-prawn-table") | |
8159 | (version "0.2.2") | |
8160 | (source (origin | |
8161 | (method url-fetch) | |
8162 | (uri (rubygems-uri "prawn-table" version)) | |
8163 | (sha256 | |
8164 | (base32 | |
8165 | "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k")))) | |
8166 | (build-system ruby-build-system) | |
197ca8ec | 8167 | (propagated-inputs |
0927b039 CB |
8168 | `(("ruby-prawn" ,ruby-prawn) |
8169 | ("ruby-pdf-inspector" ,ruby-pdf-inspector))) | |
8170 | (native-inputs | |
8171 | `(("bundler" ,bundler) | |
8172 | ("ruby-yard" ,ruby-yard) | |
8173 | ("ruby-mocha" ,ruby-mocha) | |
8174 | ("ruby-coderay" ,ruby-coderay) | |
8175 | ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder) | |
8176 | ("ruby-simplecov" ,ruby-simplecov) | |
8177 | ("ruby-rspec-2" ,ruby-rspec-2))) | |
8178 | (arguments | |
8179 | '(;; TODO: 1 test fails | |
8180 | ;; Failure/Error: pdf.page_count.should == 1 | |
8181 | ;; expected: 1 | |
8182 | ;; got: 2 (using ==) | |
8183 | ;; # ./spec/table_spec.rb:1308 | |
8184 | ;; | |
8185 | ;; 225 examples, 1 failure | |
8186 | #:tests? #f | |
8187 | #:phases | |
8188 | (modify-phases %standard-phases | |
8189 | (add-before 'check 'patch-gemspec | |
8190 | (lambda _ | |
8191 | (substitute* "prawn-table.gemspec" | |
8192 | ;; Loosen the requirement for pdf-inspector | |
8193 | (("~> 1\\.1\\.0") ">= 0") | |
8194 | ;; Loosen the requirement for pdf-reader | |
8195 | (("~> 1\\.2") ">= 0")))) | |
8196 | (replace 'check | |
8197 | (lambda* (#:key tests? #:allow-other-keys) | |
8198 | (when tests? | |
8199 | (invoke "rspec")) | |
8200 | #t))))) | |
197ca8ec JL |
8201 | (home-page "https://github.com/prawnpdf/prawn-table") |
8202 | (synopsis "Tables support for Prawn") | |
8203 | (description "This gem provides tables support for Prawn.") | |
8204 | (license license:gpl3+))) | |
03127069 JL |
8205 | |
8206 | (define-public ruby-kramdown | |
8207 | (package | |
8208 | (name "ruby-kramdown") | |
8209 | (version "1.17.0") | |
8210 | (source (origin | |
8211 | (method url-fetch) | |
8212 | (uri (rubygems-uri "kramdown" version)) | |
8213 | (sha256 | |
8214 | (base32 | |
8215 | "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq")))) | |
8216 | (build-system ruby-build-system) | |
8217 | (arguments `(#:tests? #f)); FIXME: some test failures | |
8218 | (native-inputs | |
8219 | `(("ruby-prawn" ,ruby-prawn) | |
8220 | ("ruby-prawn-table" ,ruby-prawn-table))) | |
8221 | (home-page "https://kramdown.gettalong.org/") | |
8222 | (synopsis "Markdown parsing and converting library") | |
8223 | (description "Kramdown is a library for parsing and converting a superset | |
8224 | of Markdown. It is completely written in Ruby, supports standard Markdown | |
8225 | (with some minor modifications) and various extensions that have been made | |
8226 | popular by the PHP @code{Markdown Extra} package and @code{Maruku}.") | |
8227 | (license license:expat))) | |
fa0063bc JL |
8228 | |
8229 | (define-public ruby-http-parser.rb | |
8230 | (package | |
8231 | (name "ruby-http-parser.rb") | |
8232 | (version "0.6.0") | |
8233 | (source | |
8234 | (origin | |
8235 | (method url-fetch) | |
8236 | (uri (rubygems-uri "http_parser.rb" version)) | |
8237 | (sha256 | |
8238 | (base32 | |
8239 | "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi")))) | |
8240 | (build-system ruby-build-system) | |
8241 | (arguments | |
8242 | ;; No tests | |
8243 | `(#:tests? #f)) | |
8244 | (native-inputs | |
8245 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
8246 | ("ruby-rspec" ,ruby-rspec))) | |
8247 | (home-page "https://github.com/tmm1/http_parser.rb") | |
8248 | (synopsis "HTTP parser un Ruby") | |
8249 | (description "This gem is a simple callback-based HTTP request/response | |
8250 | parser for writing http servers, clients and proxies.") | |
8251 | (license license:expat))) | |
5e2f74bd JL |
8252 | |
8253 | (define-public ruby-em-websocket | |
8254 | (package | |
8255 | (name "ruby-em-websocket") | |
8256 | (version "0.5.1") | |
8257 | (source | |
8258 | (origin | |
8259 | (method url-fetch) | |
8260 | (uri (rubygems-uri "em-websocket" version)) | |
8261 | (sha256 | |
8262 | (base32 | |
8263 | "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3")))) | |
8264 | (build-system ruby-build-system) | |
8265 | (arguments | |
8266 | ;; No tests | |
8267 | `(#:tests? #f)) | |
8268 | (propagated-inputs | |
8269 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
8270 | ("ruby-http-parser.rb" ,ruby-http-parser.rb))) | |
8271 | (native-inputs | |
8272 | `(("bundler" ,bundler) | |
8273 | ("ruby-rspec" ,ruby-rspec))) | |
8274 | (home-page "https://github.com/igrigorik/em-websocket") | |
8275 | (synopsis "EventMachine based WebSocket server") | |
8276 | (description "Em-websocket is an EventMachine based WebSocket server | |
8277 | implementation.") | |
8278 | (license license:expat))) | |
4ce0414b JL |
8279 | |
8280 | (define-public ruby-rouge | |
8281 | (package | |
8282 | (name "ruby-rouge") | |
55cc5ef8 | 8283 | (version "3.13.0") |
4ce0414b JL |
8284 | (source (origin |
8285 | (method url-fetch) | |
8286 | (uri (rubygems-uri "rouge" version)) | |
8287 | (sha256 | |
8288 | (base32 | |
55cc5ef8 | 8289 | "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw")))) |
4ce0414b JL |
8290 | (build-system ruby-build-system) |
8291 | (arguments `(#:tests? #f)); No rakefile | |
8292 | (home-page "http://rouge.jneen.net/") | |
8293 | (synopsis "Code highlighter") | |
8294 | (description "Rouge is a code highlighter written in Ruby. It supports more | |
8295 | than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output | |
8296 | is compatible with stylesheets designed for pygments.") | |
8297 | (license (list | |
8298 | ;; rouge is licensed under expat | |
8299 | license:expat | |
8300 | ;; pygments is licensed under bsd-2 | |
8301 | license:bsd-2)))) | |
2c5028bd JL |
8302 | |
8303 | (define-public ruby-rouge-2 | |
8304 | (package | |
8305 | (inherit ruby-rouge) | |
8306 | (version "2.2.1") | |
8307 | (source (origin | |
8308 | (method url-fetch) | |
8309 | (uri (rubygems-uri "rouge" version)) | |
8310 | (sha256 | |
8311 | (base32 | |
8312 | "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs")))))) | |
2e072e37 JL |
8313 | |
8314 | (define-public ruby-hashie | |
8315 | (package | |
8316 | (name "ruby-hashie") | |
8317 | (version "3.6.0") | |
8318 | (source (origin | |
8319 | (method url-fetch) | |
8320 | (uri (rubygems-uri "hashie" version)) | |
8321 | (sha256 | |
8322 | (base32 | |
8323 | "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh")))) | |
8324 | (build-system ruby-build-system) | |
8325 | (native-inputs | |
8326 | `(("bundler" ,bundler))) | |
8327 | (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory | |
8328 | (home-page "https://github.com/intridea/hashie") | |
8329 | (synopsis "Extensions to Ruby Hashes") | |
8330 | (description "Hashie is a collection of classes and mixins that make Ruby | |
8331 | hashes more powerful.") | |
8332 | (license license:expat))) | |
73bfc125 JL |
8333 | |
8334 | (define-public ruby-heredoc-unindent | |
8335 | (package | |
8336 | (name "ruby-heredoc-unindent") | |
8337 | (version "1.2.0") | |
8338 | (source (origin | |
8339 | (method url-fetch) | |
8340 | (uri (rubygems-uri "heredoc_unindent" version)) | |
8341 | (sha256 | |
8342 | (base32 | |
8343 | "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw")))) | |
8344 | (build-system ruby-build-system) | |
8345 | (native-inputs | |
8346 | `(("ruby-hoe" ,ruby-hoe))) | |
8347 | (home-page "https://github.com/adrianomitre/heredoc_unindent") | |
8348 | (synopsis "Heredoc indentation cleaner") | |
8349 | (description "This gem removes common margin from indented strings, such | |
8350 | as the ones produced by indented heredocs. In other words, it strips out | |
4f66ae28 | 8351 | leading whitespace chars at the beginning of each line, but only as much as |
73bfc125 JL |
8352 | the line with the smallest margin. |
8353 | ||
8354 | It is acknowledged that many strings defined by heredocs are just code and | |
8355 | fact is that most parsers are insensitive to indentation. If, however, the | |
8356 | strings are to be used otherwise, be it for printing or testing, the extra | |
8357 | indentation will probably be an issue and hence this gem.") | |
8358 | (license license:expat))) | |
f8ae2ee5 JL |
8359 | |
8360 | (define-public ruby-safe-yaml | |
8361 | (package | |
8362 | (name "ruby-safe-yaml") | |
7fa83fa8 | 8363 | (version "1.0.5") |
28cf8dab CB |
8364 | (source |
8365 | (origin | |
28cf8dab CB |
8366 | (method git-fetch) |
8367 | (uri (git-reference | |
8368 | (url "https://github.com/dtao/safe_yaml.git") | |
8369 | (commit version))) | |
8370 | (file-name (git-file-name name version)) | |
8371 | (sha256 | |
8372 | (base32 | |
7fa83fa8 | 8373 | "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg")))) |
f8ae2ee5 JL |
8374 | (build-system ruby-build-system) |
8375 | (native-inputs | |
8376 | `(("ruby-rspec" ,ruby-rspec) | |
8377 | ("ruby-hashie" ,ruby-hashie) | |
8378 | ("ruby-heredoc-unindent" ,ruby-heredoc-unindent))) | |
28cf8dab CB |
8379 | (arguments |
8380 | '(#:test-target "spec" | |
8381 | #:phases | |
8382 | (modify-phases %standard-phases | |
8383 | (add-before 'check 'set-TZ | |
8384 | (lambda _ | |
8385 | ;; This test is dependent on the timezone | |
8386 | ;; spec/transform/to_date_spec.rb:35 | |
8387 | ;; # SafeYAML::Transform::ToDate converts times to the local | |
8388 | ;; timezone | |
8389 | (setenv "TZ" "UTC-11") | |
8390 | #t))))) | |
f8ae2ee5 JL |
8391 | (home-page "https://github.com/dtao/safe_yaml") |
8392 | (synopsis "YAML parser") | |
8393 | (description "The SafeYAML gem provides an alternative implementation of | |
8394 | YAML.load suitable for accepting user input in Ruby applications.") | |
8395 | (license license:expat))) | |
f1ec4d76 JL |
8396 | |
8397 | (define-public ruby-mercenary | |
8398 | (package | |
8399 | (name "ruby-mercenary") | |
8400 | (version "0.3.6") | |
8401 | (source (origin | |
8402 | (method url-fetch) | |
8403 | (uri (rubygems-uri "mercenary" version)) | |
8404 | (sha256 | |
8405 | (base32 | |
8406 | "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a")))) | |
8407 | (build-system ruby-build-system) | |
8408 | (arguments `(#:test-target "spec")) | |
8409 | (native-inputs | |
8410 | `(("bundler" ,bundler))) | |
8411 | (home-page "https://github.com/jekyll/mercenary") | |
8412 | (synopsis "Command-line apps library in Ruby") | |
8413 | (description "Mercenary is a lightweight and flexible library for writing | |
8414 | command-line apps in Ruby.") | |
8415 | (license license:expat))) | |
a13d451e JL |
8416 | |
8417 | (define-public ruby-liquid | |
8418 | (package | |
8419 | (name "ruby-liquid") | |
8420 | (version "4.0.0") | |
8421 | (source (origin | |
8422 | (method url-fetch) | |
8423 | (uri (rubygems-uri "liquid" version)) | |
8424 | (sha256 | |
8425 | (base32 | |
8426 | "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y")))) | |
8427 | (build-system ruby-build-system) | |
8428 | (arguments `(#:tests? #f)); No rakefile | |
8429 | (home-page "https://shopify.github.io/liquid/") | |
8430 | (synopsis "Template language") | |
8431 | (description "Liquid is a template language written in Ruby. It is used | |
8432 | to load dynamic content on storefronts.") | |
8433 | (license license:expat))) | |
49395112 JL |
8434 | |
8435 | (define-public ruby-forwardable-extended | |
8436 | (package | |
8437 | (name "ruby-forwardable-extended") | |
8438 | (version "2.6.0") | |
8439 | (source (origin | |
8440 | (method url-fetch) | |
8441 | (uri (rubygems-uri "forwardable-extended" version)) | |
8442 | (sha256 | |
8443 | (base32 | |
8444 | "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v")))) | |
8445 | (build-system ruby-build-system) | |
8446 | (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters | |
8447 | (home-page "https://github.com/envygeeks/forwardable-extended") | |
8448 | (synopsis "Delegation to hashes and instance variables in Forwardable") | |
8449 | (description "Forwardable Extended provides more @code{Forwardable} | |
8450 | methods for your source as @code{Forwardable::Extended}.") | |
8451 | (license license:expat))) | |
37296113 JL |
8452 | |
8453 | (define-public ruby-pathutil | |
8454 | (package | |
8455 | (name "ruby-pathutil") | |
feaaa603 | 8456 | (version "0.16.2") |
37296113 JL |
8457 | (source (origin |
8458 | (method url-fetch) | |
8459 | (uri (rubygems-uri "pathutil" version)) | |
8460 | (sha256 | |
8461 | (base32 | |
feaaa603 | 8462 | "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4")))) |
37296113 JL |
8463 | (build-system ruby-build-system) |
8464 | (propagated-inputs | |
8465 | `(("ruby-forwardable-extended" ,ruby-forwardable-extended))) | |
8466 | (native-inputs | |
8467 | `(("bundler" ,bundler) | |
8468 | ("ruby-rspec" ,ruby-rspec))) | |
8469 | ;; Fails with: cannot load such file -- | |
8470 | ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task | |
8471 | (arguments `(#:tests? #f)) | |
8472 | (home-page "https://github.com/envygeeks/pathutil") | |
8473 | (synopsis "Extended implementation of Pathname") | |
8474 | (description "Pathutil tries to be a faster pure Ruby implementation of | |
8475 | Pathname.") | |
8476 | (license license:expat))) | |
49e1dde5 JL |
8477 | |
8478 | (define-public jekyll | |
8479 | (package | |
8480 | (name "jekyll") | |
fcf82fd3 | 8481 | (version "3.8.6") |
49e1dde5 JL |
8482 | (source (origin |
8483 | (method url-fetch) | |
8484 | (uri (rubygems-uri "jekyll" version)) | |
8485 | (sha256 | |
8486 | (base32 | |
fcf82fd3 | 8487 | "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz")))) |
49e1dde5 JL |
8488 | (build-system ruby-build-system) |
8489 | (arguments | |
fcf82fd3 | 8490 | ;; No rakefile, but a test subdirectory. |
49e1dde5 JL |
8491 | `(#:tests? #f |
8492 | #:phases | |
8493 | (modify-phases %standard-phases | |
8494 | (add-before 'build 'fix-i18n | |
8495 | (lambda _ | |
8496 | (substitute* ".gemspec" | |
8497 | (("~> 0.7") ">= 0.7")) | |
8498 | #t))))) | |
8499 | (propagated-inputs | |
8500 | `(("ruby-addressable" ,ruby-addressable) | |
8501 | ("ruby-colorator" ,ruby-colorator) | |
8502 | ("ruby-em-websocket" ,ruby-em-websocket) | |
8503 | ("ruby-i18n" ,ruby-i18n) | |
8504 | ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter) | |
8505 | ("ruby-jekyll-watch" ,ruby-jekyll-watch) | |
8506 | ("ruby-kramdown" ,ruby-kramdown) | |
8507 | ("ruby-liquid" ,ruby-liquid) | |
8508 | ("ruby-mercenary" ,ruby-mercenary) | |
8509 | ("ruby-pathutil" ,ruby-pathutil) | |
8510 | ("ruby-rouge" ,ruby-rouge-2) | |
8511 | ("ruby-safe-yaml" ,ruby-safe-yaml))) | |
8512 | (home-page "https://jekyllrb.com/") | |
8513 | (synopsis "Static site generator") | |
8514 | (description "Jekyll is a simple, blog aware, static site generator.") | |
8515 | (license license:expat))) | |
37a0f470 JL |
8516 | |
8517 | (define-public ruby-jekyll-paginate-v2 | |
8518 | (package | |
8519 | (name "ruby-jekyll-paginate-v2") | |
8520 | (version "2.0.0") | |
8521 | (source (origin | |
8522 | (method url-fetch) | |
8523 | (uri (rubygems-uri "jekyll-paginate-v2" version)) | |
8524 | (sha256 | |
8525 | (base32 | |
8526 | "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib")))) | |
8527 | (build-system ruby-build-system) | |
8528 | (propagated-inputs | |
8529 | `(("jekyll" ,jekyll))) | |
8530 | (home-page "https://github.com/sverrirs/jekyll-paginate-v2") | |
8531 | (synopsis "Pagination Generator for Jekyll 3") | |
8532 | (description "The Pagination Generator forms the core of the pagination | |
8533 | logic in Jekyll. It calculates and generates the pagination pages.") | |
8534 | (license license:expat))) | |
909eae21 CB |
8535 | |
8536 | (define-public ruby-faraday | |
8537 | (package | |
8538 | (name "ruby-faraday") | |
8539 | (version "0.15.4") | |
8540 | (source | |
8541 | (origin | |
8542 | (method url-fetch) | |
8543 | (uri (rubygems-uri "faraday" version)) | |
8544 | (sha256 | |
8545 | (base32 | |
8546 | "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0")))) | |
8547 | (build-system ruby-build-system) | |
8548 | (arguments | |
8549 | '(#:tests? #f)) | |
8550 | (propagated-inputs | |
8551 | `(("ruby-multipart-post" ,ruby-multipart-post))) | |
8552 | (synopsis "Ruby HTTP/REST API client library") | |
8553 | (description | |
8554 | "Faraday is a HTTP/REST API client library which provides a common | |
8555 | interface over different adapters.") | |
8556 | (home-page "https://github.com/lostisland/faraday") | |
8557 | (license license:expat))) | |
a058cbfd CB |
8558 | |
8559 | (define-public ruby-nio4r | |
8560 | (package | |
8561 | (name "ruby-nio4r") | |
7923b9bf | 8562 | (version "2.5.2") |
a058cbfd CB |
8563 | (source |
8564 | (origin | |
8565 | (method url-fetch) | |
8566 | (uri (rubygems-uri "nio4r" version)) | |
8567 | (sha256 | |
8568 | (base32 | |
7923b9bf | 8569 | "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c")))) |
a058cbfd CB |
8570 | (build-system ruby-build-system) |
8571 | (arguments | |
8572 | '(#:phases | |
8573 | (modify-phases %standard-phases | |
8574 | (add-after 'unpack 'remove-unnecessary-dependencies | |
8575 | (lambda _ | |
8576 | (substitute* "spec/spec_helper.rb" | |
8577 | ;; Coveralls is for uploading test coverage information to an | |
8578 | ;; online service, and thus unnecessary for building the Guix | |
8579 | ;; package | |
8580 | (("require \"coveralls\"") "") | |
8581 | (("Coveralls\\.wear!") "") | |
8582 | ;; Remove rspec/retry as we are not retrying the tests | |
8583 | (("require \"rspec/retry\"") "") | |
8584 | (("config\\.display_try_failure_messages = true") "") | |
8585 | (("config\\.verbose_retry = true") "")) | |
8586 | #t)) | |
8587 | (add-before 'check 'compile | |
8588 | (lambda _ | |
8589 | (invoke "rake" "compile") | |
8590 | #t)) | |
8591 | (replace 'check | |
8592 | (lambda* (#:key tests? #:allow-other-keys) | |
8593 | (when tests? | |
8594 | (invoke "rspec")) | |
8595 | #t))))) | |
8596 | (native-inputs | |
8597 | `(("bundler" ,bundler) | |
8598 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
8599 | ("ruby-rspec" ,ruby-rspec) | |
8600 | ("ruby-rubocop" ,ruby-rubocop))) | |
8601 | (synopsis "New I/O for Ruby") | |
8602 | (description | |
8603 | "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby | |
8604 | for scalable network clients and servers.") | |
8605 | (home-page "https://github.com/socketry/nio4r") | |
8606 | (license license:expat))) | |
f9da1ada CB |
8607 | |
8608 | (define-public ruby-globalid | |
8609 | (package | |
8610 | (name "ruby-globalid") | |
8611 | (version "0.4.2") | |
8612 | (source | |
8613 | (origin | |
8614 | (method url-fetch) | |
8615 | (uri (rubygems-uri "globalid" version)) | |
8616 | (sha256 | |
8617 | (base32 | |
8618 | "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1")))) | |
8619 | (build-system ruby-build-system) | |
8620 | (arguments | |
8621 | '(;; No included tests | |
8622 | #:tests? #f)) | |
8623 | (propagated-inputs | |
8624 | `(("ruby-activesupport" ,ruby-activesupport))) | |
8625 | (synopsis "Generate URIs idenfitying model instances in Ruby") | |
8626 | (description | |
8627 | "@code{GlobalID} provides a way to generate URIs from a model in Ruby that | |
8628 | uniquely identify it.") | |
8629 | (home-page "https://rubyonrails.org/") | |
8630 | (license license:expat))) | |
15606d98 CB |
8631 | |
8632 | (define-public ruby-sprockets | |
8633 | (package | |
8634 | (name "ruby-sprockets") | |
8635 | (version "3.7.2") | |
8636 | (source | |
8637 | (origin | |
8638 | (method url-fetch) | |
8639 | (uri (rubygems-uri "sprockets" version)) | |
8640 | (sha256 | |
8641 | (base32 | |
8642 | "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay")))) | |
8643 | (build-system ruby-build-system) | |
8644 | (arguments | |
8645 | '(;; No included tests | |
8646 | #:tests? #f)) | |
8647 | (propagated-inputs | |
8648 | `(("ruby-concurrent" ,ruby-concurrent) | |
8649 | ("ruby-rack" ,ruby-rack))) | |
8650 | (synopsis "Sprockets is a Rack-based asset packaging system") | |
8651 | (description | |
8652 | "Sprockets is a Rack-based asset packaging system that concatenates and | |
8653 | serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") | |
8654 | (home-page "https://github.com/rails/sprockets") | |
8655 | (license license:expat))) | |
acb9e3d8 PN |
8656 | |
8657 | (define-public ruby-mustermann | |
8658 | (package | |
8659 | (name "ruby-mustermann") | |
8660 | (version "1.0.3") | |
8661 | (source | |
8662 | (origin | |
8663 | (method url-fetch) | |
8664 | (uri (rubygems-uri "mustermann" version)) | |
8665 | (sha256 | |
8666 | (base32 | |
8667 | "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1")))) | |
8668 | (build-system ruby-build-system) | |
8669 | (arguments | |
8670 | ;; No tests. | |
8671 | '(#:tests? #f)) | |
8672 | (synopsis "Library implementing patterns that behave like regular expressions") | |
8673 | (description "Given a string pattern, Mustermann will turn it into an | |
8674 | object that behaves like a regular expression and has comparable performance | |
8675 | characteristics.") | |
8676 | (home-page "https://github.com/sinatra/mustermann") | |
8677 | (license license:expat))) | |
3bb094e2 | 8678 | |
7bddb6aa BL |
8679 | (define-public ruby-htmlentities |
8680 | (package | |
8681 | (name "ruby-htmlentities") | |
8682 | (version "4.3.4") | |
8683 | (source | |
8684 | (origin | |
8685 | (method url-fetch) | |
8686 | (uri (rubygems-uri "htmlentities" version)) | |
8687 | (sha256 | |
8688 | (base32 | |
8689 | "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj")))) | |
8690 | (build-system ruby-build-system) | |
8691 | (arguments | |
8692 | `(#:phases | |
8693 | (modify-phases %standard-phases | |
8694 | (replace 'check | |
8695 | (lambda _ | |
8696 | (map (lambda (file) | |
8697 | (invoke "ruby" "-Itest" file)) | |
8698 | (find-files "./test" ".*_test\\.rb"))))))) | |
8699 | (synopsis "Encode and decode (X)HTML entities") | |
8700 | (description | |
8701 | "This package provides a module for encoding and decoding (X)HTML | |
8702 | entities.") | |
8703 | (home-page "https://github.com/threedaymonk/htmlentities") | |
8704 | (license license:expat))) | |
8705 | ||
3bb094e2 PN |
8706 | (define-public ruby-sinatra |
8707 | (package | |
8708 | (name "ruby-sinatra") | |
8709 | (version "2.0.5") | |
8710 | (source | |
8711 | (origin | |
8712 | (method url-fetch) | |
8713 | (uri (rubygems-uri "sinatra" version)) | |
8714 | (sha256 | |
8715 | (base32 | |
8716 | "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry")))) | |
8717 | (build-system ruby-build-system) | |
8718 | (propagated-inputs | |
8719 | `(("ruby-mustermann" ,ruby-mustermann) | |
8720 | ("ruby-rack" ,ruby-rack) | |
8721 | ("ruby-rack-protection" ,ruby-rack-protection) | |
8722 | ("ruby-tilt" ,ruby-tilt))) | |
8723 | (synopsis "DSL for quick web applications creation in Ruby") | |
8724 | (description | |
8725 | "Sinatra is a DSL for quickly creating web applications in Ruby with | |
8726 | minimal effort.") | |
8727 | (home-page "http://sinatrarb.com/") | |
8728 | (license license:expat))) | |
6e87695b PN |
8729 | |
8730 | (define-public ruby-thin | |
8731 | (package | |
8732 | (name "ruby-thin") | |
8733 | (version "1.7.2") | |
8734 | (source | |
8735 | (origin | |
8736 | (method url-fetch) | |
8737 | (uri (rubygems-uri "thin" version)) | |
8738 | (sha256 | |
8739 | (base32 | |
8740 | "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f")))) | |
8741 | (build-system ruby-build-system) | |
8742 | (arguments | |
8743 | ;; No tests. | |
8744 | '(#:tests? #f)) | |
8745 | (propagated-inputs | |
8746 | `(("ruby-daemons" ,ruby-daemons) | |
8747 | ("ruby-eventmachine" ,ruby-eventmachine) | |
8748 | ("ruby-rack" ,ruby-rack))) | |
8749 | (synopsis "Thin and fast web server for Ruby") | |
8750 | (description "Thin is a Ruby web server that glues together 3 Ruby libraries: | |
8751 | @itemize | |
8752 | @item the Mongrel parser, | |
8753 | @item Event Machine, a network I/O library with high scalability, performance | |
8754 | and stability, | |
8755 | @item Rack, a minimal interface between webservers and Ruby frameworks. | |
8756 | @end itemize\n") | |
60783303 | 8757 | (home-page "https://github.com/macournoyer/thin") |
6e87695b | 8758 | (license license:ruby))) |
be6016db PN |
8759 | |
8760 | (define-public ruby-skinny | |
8761 | (package | |
8762 | (name "ruby-skinny") | |
8763 | (version "0.2.4") | |
8764 | (source | |
8765 | (origin | |
8766 | (method url-fetch) | |
8767 | (uri (rubygems-uri "skinny" version)) | |
8768 | (sha256 | |
8769 | (base32 | |
8770 | "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9")))) | |
8771 | (build-system ruby-build-system) | |
8772 | (arguments | |
8773 | '(#:tests? #f ; No included tests | |
8774 | #:phases | |
8775 | (modify-phases %standard-phases | |
8776 | (add-before 'build 'patch-gemspec | |
8777 | (lambda _ | |
8778 | (substitute* ".gemspec" | |
8779 | (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"") | |
8780 | "<eventmachine>, [\">= 1.0.0\"") | |
8781 | (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, [")) | |
8782 | #t))))) | |
8783 | (propagated-inputs | |
8784 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
8785 | ("ruby-thin" ,ruby-thin))) | |
8786 | (synopsis "Simple, upgradable WebSockets for Ruby Thin") | |
8787 | (description "Skinny is a simple, upgradable WebSockets for Ruby, using | |
8788 | the Thin library.") | |
8789 | (home-page "https://github.com/sj26/skinny") | |
8790 | (license license:expat))) | |
df747c8d PN |
8791 | |
8792 | (define-public mailcatcher | |
8793 | (package | |
8794 | (name "mailcatcher") | |
8795 | (version "0.7.1") | |
8796 | (source | |
8797 | (origin | |
8798 | (method url-fetch) | |
8799 | (uri (rubygems-uri "mailcatcher" version)) | |
8800 | (sha256 | |
8801 | (base32 | |
8802 | "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n")))) | |
8803 | (build-system ruby-build-system) | |
8804 | (arguments | |
8805 | ;; Tests require web/assets which is not included in the output. We | |
8806 | ;; might be able to fix this by adding the Git repository to the GEM_PATH | |
8807 | ;; of the tests. See ruby-mysql2. | |
8808 | '(#:tests? #f | |
8809 | #:phases | |
8810 | (modify-phases %standard-phases | |
8811 | (add-before 'build 'patch-gemspec | |
8812 | (lambda _ | |
8813 | (substitute* ".gemspec" | |
8814 | (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1") | |
8815 | "<eventmachine>, [\">= 1.0.9.1") | |
8816 | (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5") | |
8817 | (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0") | |
8818 | (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2")) | |
8819 | #t)) | |
8820 | (add-before 'build 'loosen-dependency-contraint | |
8821 | (lambda _ | |
8822 | (substitute* "lib/mail_catcher.rb" | |
8823 | (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"") | |
8824 | (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"") | |
8825 | (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"") | |
8826 | (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")) | |
8827 | #t))))) | |
8828 | (inputs | |
8829 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
8830 | ("ruby-mail" ,ruby-mail) | |
8831 | ("ruby-rack" ,ruby-rack) | |
8832 | ("ruby-sinatra" ,ruby-sinatra) | |
8833 | ("ruby-skinny" ,ruby-skinny) | |
8834 | ("ruby-sqlite3" ,ruby-sqlite3) | |
8835 | ("ruby-thin" ,ruby-thin))) | |
8836 | (synopsis "SMTP server which catches messages to display them a browser") | |
8837 | (description | |
8838 | "MailCatcher runs a super simple SMTP server which catches any message | |
8839 | sent to it to display in a web interface. Run mailcatcher, set your favourite | |
8840 | app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, | |
8841 | then check out http://127.0.0.1:1080 to see the mail.") | |
8842 | (home-page "https://mailcatcher.me") | |
8843 | (license license:expat))) | |
fc4f7c45 MK |
8844 | |
8845 | (define-public ruby-backport | |
8846 | (package | |
8847 | (name "ruby-backport") | |
b62863b8 | 8848 | (version "1.1.2") |
fc4f7c45 MK |
8849 | (source |
8850 | (origin | |
b62863b8 | 8851 | ;; The gem does not include test code, so fetch from the Git repository. |
fc4f7c45 MK |
8852 | (method git-fetch) |
8853 | (uri (git-reference | |
8854 | (url "https://github.com/castwide/backport.git") | |
8855 | (commit (string-append "v" version)))) | |
8856 | (file-name (git-file-name name version)) | |
8857 | (sha256 | |
b62863b8 | 8858 | (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2")))) |
fc4f7c45 MK |
8859 | (build-system ruby-build-system) |
8860 | (arguments | |
8861 | `(#:test-target "spec")) | |
8862 | (native-inputs | |
8863 | `(("bundler" ,bundler) | |
8864 | ("ruby-rspec" ,ruby-rspec))) | |
8865 | (inputs | |
8866 | `(("ruby-simplecov" ,ruby-simplecov))) | |
8867 | (synopsis "Pure Ruby library for event-driven IO") | |
8868 | (description | |
8869 | "This package provides a pure Ruby library for event-driven IO.") | |
8870 | (home-page "https://github.com/castwide/backport") | |
8871 | (license license:expat))) | |
369faa59 JL |
8872 | |
8873 | (define-public ruby-json-schema | |
8874 | (package | |
8875 | (name "ruby-json-schema") | |
8876 | (version "2.8.1") | |
8877 | (source | |
8878 | (origin | |
8879 | (method url-fetch) | |
8880 | (uri (rubygems-uri "json-schema" version)) | |
8881 | (sha256 | |
8882 | (base32 | |
8883 | "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5")))) | |
8884 | (build-system ruby-build-system) | |
8885 | (arguments | |
8886 | `(#:tests? #f ; no tests | |
8887 | #:phases | |
8888 | (modify-phases %standard-phases | |
8889 | (replace 'build | |
8890 | (lambda _ | |
8891 | (invoke "gem" "build" ".gemspec")))))) | |
8892 | (propagated-inputs | |
8893 | `(("ruby-addressable" ,ruby-addressable))) | |
8894 | (synopsis "Ruby JSON Schema Validator") | |
8895 | (description "This library provides Ruby with an interface for validating | |
8896 | JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy | |
8897 | support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1 | |
8898 | is also included.") | |
8899 | (home-page "https://github.com/ruby-json-schema/json-schema") | |
8900 | (license license:expat))) | |
44881cad JL |
8901 | |
8902 | (define-public swagger-diff | |
8903 | (package | |
8904 | (name "swagger-diff") | |
8905 | (version "1.1.2") | |
8906 | (source | |
8907 | (origin | |
8908 | (method url-fetch) | |
8909 | (uri (rubygems-uri "swagger-diff" version)) | |
8910 | (sha256 | |
8911 | (base32 | |
8912 | "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn")))) | |
8913 | (build-system ruby-build-system) | |
8914 | (arguments | |
8915 | `(#:test-target "spec" | |
8916 | #:phases | |
8917 | (modify-phases %standard-phases | |
8918 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
8919 | ;; bit unnecessary. | |
8920 | (add-after 'unpack 'dont-run-rubocop | |
8921 | (lambda _ | |
8922 | (substitute* "Rakefile" | |
8923 | ((".*rubocop.*") "") | |
8924 | ((".*RuboCop.*") "")) | |
8925 | #t))))) | |
8926 | (propagated-inputs | |
8927 | `(("ruby-json-schema" ,ruby-json-schema))) | |
8928 | (native-inputs | |
8929 | `(("bundler" ,bundler) | |
8930 | ("ruby-rspec-core" ,ruby-rspec-core) | |
8931 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
8932 | (synopsis | |
8933 | "Compare Open API Initiative specification files") | |
8934 | (description | |
8935 | "Swagger::Diff is a utility for comparing two different Open API | |
8936 | Initiative (OAI) specifications (formerly known as Swagger specifications). | |
8937 | It is intended to determine whether a newer API specification is | |
8938 | backwards-compatible with an older API specification.") | |
8939 | (home-page "https://github.com/civisanalytics/swagger-diff") | |
8940 | (license license:bsd-3))) | |
9e065a8a BL |
8941 | |
8942 | (define-public ruby-reverse-markdown | |
8943 | (package | |
8944 | (name "ruby-reverse-markdown") | |
8945 | (version "1.1.0") | |
8946 | (source | |
8947 | (origin | |
8948 | (method url-fetch) | |
8949 | (uri (rubygems-uri "reverse_markdown" version)) | |
8950 | (sha256 | |
8951 | (base32 | |
8952 | "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg")))) | |
8953 | (build-system ruby-build-system) | |
8954 | (propagated-inputs | |
8955 | `(("ruby-nokogiri" ,ruby-nokogiri))) | |
8956 | (native-inputs | |
8957 | `(("bundler" ,bundler) | |
8958 | ("ruby-rspec" ,ruby-rspec) | |
8959 | ("ruby-kramdown" ,ruby-kramdown) | |
8960 | ("ruby-simplecov" ,ruby-simplecov))) | |
8961 | (arguments | |
8962 | `(#:phases | |
8963 | (modify-phases %standard-phases | |
8964 | (replace 'check | |
8965 | (lambda* (#:key tests? #:allow-other-keys) | |
8966 | (when tests? | |
8967 | (invoke "rspec")) | |
8968 | #t))))) | |
8969 | (synopsis "Convert HTML into Markdown") | |
8970 | (description | |
8971 | "This Ruby module allows you to map simple HTML back into | |
8972 | Markdown---e.g., if you want to import existing HTML data in your | |
8973 | application.") | |
8974 | (home-page "https://github.com/xijo/reverse_markdown") | |
8975 | (license license:wtfpl2))) | |
8976 | ||
a9e2de7e BL |
8977 | (define-public ruby-solargraph |
8978 | (package | |
8979 | (name "ruby-solargraph") | |
8980 | (version "0.36.0") | |
8981 | (source | |
8982 | (origin | |
8983 | (method url-fetch) | |
8984 | (uri (rubygems-uri "solargraph" version)) | |
8985 | (sha256 | |
8986 | (base32 | |
8987 | "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i")))) | |
8988 | (build-system ruby-build-system) | |
8989 | (propagated-inputs | |
8990 | `(("ruby-backport" ,ruby-backport) | |
8991 | ("bundler" ,bundler) | |
8992 | ("ruby-htmlentities" ,ruby-htmlentities) | |
8993 | ("ruby-jaro-winkler" ,ruby-jaro-winkler) | |
8994 | ("ruby-maruku" ,ruby-maruku) | |
8995 | ("ruby-nokogiri" ,ruby-nokogiri) | |
8996 | ("ruby-parser" ,ruby-parser) | |
8997 | ("ruby-reverse-markdown" ,ruby-reverse-markdown) | |
8998 | ("ruby-rubocop" ,ruby-rubocop) | |
8999 | ("ruby-thor" ,ruby-thor) | |
9000 | ("ruby-tilt" ,ruby-tilt) | |
9001 | ("ruby-yard" ,ruby-yard))) | |
9002 | (native-inputs | |
9003 | `(("ruby-rspec" ,ruby-rspec) | |
9004 | ("ruby-pry" ,ruby-pry) | |
9005 | ("ruby-simplecov" ,ruby-simplecov) | |
9006 | ("ruby-webmock" ,ruby-webmock-2))) | |
9007 | ;; FIXME: can't figure out how to run the tests properly: | |
9008 | ||
9009 | ;; An error occurred while loading spec_helper. | |
9010 | ;; Failure/Error: return gem_original_require(path) | |
9011 | ;; LoadError: | |
9012 | ;; cannot load such file -- spec_helper | |
9013 | (arguments | |
9014 | '(#:tests? #f | |
9015 | #:phases | |
9016 | (modify-phases %standard-phases | |
9017 | (replace 'check | |
9018 | (lambda* (#:key tests? #:allow-other-keys) | |
9019 | (when tests? | |
9020 | (invoke "rspec")) | |
9021 | #t))))) | |
9022 | (synopsis | |
9023 | "IDE tools for code completion, inline documentation, and static analysis") | |
9024 | (description | |
9025 | "Solargraph provides a comprehensive suite of tools for Ruby | |
9026 | programming: intellisense, diagnostics, inline documentation, and type | |
9027 | checking.") | |
9028 | (home-page "https://solargraph.org/") | |
9029 | (license license:expat))) | |
0c558aa9 DNB |
9030 | |
9031 | (define-public ruby-wayback-machine-downloader | |
9032 | (package | |
9033 | (name "ruby-wayback-machine-downloader") | |
9034 | (version "2.2.1") | |
9035 | (source | |
9036 | (origin | |
9037 | (method url-fetch) | |
9038 | (uri (rubygems-uri | |
9039 | "wayback_machine_downloader" | |
9040 | version)) | |
9041 | (sha256 | |
9042 | (base32 | |
9043 | "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2")))) | |
9044 | (build-system ruby-build-system) | |
9045 | (arguments | |
9046 | '(#:tests? #f)) ; no tests | |
9047 | (synopsis "Download archived websites from the Wayback Machine") | |
9048 | (description | |
9049 | "Wayback Machine Downloader is a command line tool for downloading | |
9050 | websites from the Internet Archive's Wayback Machine (archive.org). | |
9051 | It allows fine grained control over what to download by specifying | |
9052 | which snapshots to consider and what files to include.") | |
9053 | (home-page | |
9054 | "https://github.com/hartator/wayback-machine-downloader") | |
9055 | (license license:expat))) |