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> |
e4fb673a | 10 | ;;; Copyright © 2017, 2018, 2019, 2020, 2021 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> |
a8cdfd53 | 23 | ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
49994222 | 24 | ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
b7e76699 | 25 | ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> |
40afc2f4 | 26 | ;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de> |
0af8398b | 27 | ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org> |
c7358514 | 28 | ;;; Copyright © 2021 EuAndreh <eu@euandre.org> |
6ef8c59a PP |
29 | ;;; |
30 | ;;; This file is part of GNU Guix. | |
31 | ;;; | |
32 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
33 | ;;; under the terms of the GNU General Public License as published by | |
34 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
35 | ;;; your option) any later version. | |
36 | ;;; | |
37 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
38 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
39 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
40 | ;;; GNU General Public License for more details. | |
41 | ;;; | |
42 | ;;; You should have received a copy of the GNU General Public License | |
43 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
44 | ||
45 | (define-module (gnu packages ruby) | |
46 | #:use-module ((guix licenses) #:prefix license:) | |
47 | #:use-module (gnu packages) | |
1db791d5 | 48 | #:use-module (gnu packages base) |
933dad91 | 49 | #:use-module (gnu packages bison) |
24be6751 | 50 | #:use-module (gnu packages c) |
15b16c2c | 51 | #:use-module (gnu packages check) |
6ef8c59a | 52 | #:use-module (gnu packages compression) |
2a9ce5cb | 53 | #:use-module (gnu packages crypto) |
0af8398b | 54 | #:use-module (gnu packages curl) |
4a9e0585 | 55 | #:use-module (gnu packages databases) |
255d1bbe | 56 | #:use-module (gnu packages dbm) |
c41fba01 | 57 | #:use-module (gnu packages rails) |
6ef8c59a | 58 | #:use-module (gnu packages readline) |
6ef8c59a | 59 | #:use-module (gnu packages autotools) |
c84dd8d4 | 60 | #:use-module (gnu packages haskell-xyz) |
ad79eb55 | 61 | #:use-module (gnu packages java) |
6ef8c59a | 62 | #:use-module (gnu packages libffi) |
f3d7bb93 | 63 | #:use-module (gnu packages libidn) |
c41fba01 CB |
64 | #:use-module (gnu packages linux) |
65 | #:use-module (gnu packages lsof) | |
34138e42 | 66 | #:use-module (gnu packages maths) |
0c8eedc1 | 67 | #:use-module (gnu packages ncurses) |
fe5dd5f4 | 68 | #:use-module (gnu packages networking) |
3ca43524 | 69 | #:use-module (gnu packages node) |
dff5392f | 70 | #:use-module (gnu packages protobuf) |
ac09beba | 71 | #:use-module (gnu packages python) |
44d10b1f | 72 | #:use-module (gnu packages python-xyz) |
763624f5 | 73 | #:use-module (gnu packages ragel) |
30f08487 | 74 | #:use-module (gnu packages rsync) |
cd0322a3 | 75 | #:use-module (gnu packages sqlite) |
cc2b77df | 76 | #:use-module (gnu packages tls) |
66e20863 | 77 | #:use-module (gnu packages version-control) |
6ef8c59a PP |
78 | #:use-module (guix packages) |
79 | #:use-module (guix download) | |
bda0c139 | 80 | #:use-module (guix git-download) |
6ef8c59a | 81 | #:use-module (guix utils) |
acf735f2 | 82 | #:use-module (guix build-system gnu) |
e920bfca | 83 | #:use-module (gnu packages xml) |
c2c4e5b2 | 84 | #:use-module (gnu packages web) |
15b16c2c CB |
85 | #:use-module (guix build-system ruby) |
86 | #:use-module ((srfi srfi-1) #:select (alist-delete))) | |
6ef8c59a | 87 | |
9622928d MC |
88 | (define %prawn-project-licenses |
89 | ;; This set of licenses applies to most (all?) components of the Prawn | |
90 | ;; project (it is triple licensed). | |
91 | (list license:ruby | |
92 | license:gpl2+ | |
93 | license:gpl3+)) | |
94 | ||
6ef8c59a PP |
95 | (define-public ruby |
96 | (package | |
97 | (name "ruby") | |
4914c157 | 98 | (version "2.6.5") |
6ef8c59a PP |
99 | (source |
100 | (origin | |
101 | (method url-fetch) | |
6becfdff MW |
102 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" |
103 | (version-major+minor version) | |
12d39eb5 | 104 | "/ruby-" version ".tar.xz")) |
6ef8c59a PP |
105 | (sha256 |
106 | (base32 | |
4914c157 | 107 | "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm")) |
65e84e31 BW |
108 | (modules '((guix build utils))) |
109 | (snippet `(begin | |
110 | ;; Remove bundled libffi | |
c033c195 | 111 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") |
65e84e31 | 112 | #t)))) |
6ef8c59a PP |
113 | (build-system gnu-build-system) |
114 | (arguments | |
115 | `(#:test-target "test" | |
fd248cb8 | 116 | #:configure-flags '("--enable-shared") ; dynamic linking |
6ef8c59a | 117 | #:phases |
9656b8be | 118 | (modify-phases %standard-phases |
65e84e31 | 119 | (add-before 'configure 'replace-bin-sh-and-remove-libffi |
9656b8be BW |
120 | (lambda _ |
121 | (substitute* '("Makefile.in" | |
122 | "ext/pty/pty.c" | |
123 | "io.c" | |
124 | "lib/mkmf.rb" | |
125 | "process.c" | |
126 | "test/rubygems/test_gem_ext_configure_builder.rb" | |
127 | "test/rdoc/test_rdoc_parser.rb" | |
128 | "test/ruby/test_rubyoptions.rb" | |
129 | "test/ruby/test_process.rb" | |
130 | "test/ruby/test_system.rb" | |
131 | "tool/rbinstall.rb") | |
132 | (("/bin/sh") (which "sh"))) | |
133 | #t))))) | |
6ef8c59a PP |
134 | (inputs |
135 | `(("readline" ,readline) | |
6ef8c59a PP |
136 | ("openssl" ,openssl) |
137 | ("libffi" ,libffi) | |
4914c157 CB |
138 | ("gdbm" ,gdbm))) |
139 | (propagated-inputs | |
140 | `(("zlib" ,zlib))) | |
6ef8c59a PP |
141 | (native-search-paths |
142 | (list (search-path-specification | |
143 | (variable "GEM_PATH") | |
3cb3fa67 | 144 | (files (list (string-append "lib/ruby/vendor_ruby")))))) |
6becfdff | 145 | (synopsis "Programming language interpreter") |
6ef8c59a PP |
146 | (description "Ruby is a dynamic object-oriented programming language with |
147 | a focus on simplicity and productivity.") | |
bf3be6a5 | 148 | (home-page "https://www.ruby-lang.org") |
6ef8c59a PP |
149 | (license license:ruby))) |
150 | ||
1cc7d340 RP |
151 | (define-public ruby-2.7 |
152 | (package | |
153 | (inherit ruby) | |
763e6133 | 154 | (version "2.7.2") |
1cc7d340 RP |
155 | (source |
156 | (origin | |
157 | (method url-fetch) | |
763e6133 | 158 | (uri (string-append "https://cache.ruby-lang.org/pub/ruby/" |
1cc7d340 RP |
159 | (version-major+minor version) |
160 | "/ruby-" version ".tar.gz")) | |
161 | (sha256 | |
162 | (base32 | |
763e6133 | 163 | "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf")) |
1cc7d340 RP |
164 | (modules '((guix build utils))) |
165 | (snippet `(begin | |
166 | ;; Remove bundled libffi | |
167 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
168 | #t)))) | |
169 | (arguments | |
170 | `(#:test-target "test" | |
171 | #:configure-flags '("--enable-shared") ; dynamic linking | |
172 | #:phases | |
173 | (modify-phases %standard-phases | |
174 | (add-before 'configure 'replace-bin-sh-and-remove-libffi | |
175 | (lambda _ | |
176 | (substitute* '("configure.ac" | |
177 | "template/Makefile.in" | |
178 | "lib/rubygems/installer.rb" | |
179 | "ext/pty/pty.c" | |
180 | "io.c" | |
181 | "lib/mkmf.rb" | |
182 | "process.c" | |
183 | "test/rubygems/test_gem_ext_configure_builder.rb" | |
184 | "test/rdoc/test_rdoc_parser.rb" | |
185 | "test/ruby/test_rubyoptions.rb" | |
186 | "test/ruby/test_process.rb" | |
187 | "test/ruby/test_system.rb" | |
188 | "tool/rbinstall.rb") | |
189 | (("/bin/sh") (which "sh"))) | |
190 | #t))))) | |
191 | (native-inputs | |
192 | `(("autoconf" ,autoconf))))) | |
193 | ||
03c51c04 RP |
194 | (define-public ruby-3.0 |
195 | (package | |
196 | (inherit ruby-2.7) | |
197 | (version "3.0.0") | |
198 | (source | |
199 | (origin | |
200 | (method url-fetch) | |
201 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
202 | (version-major+minor version) | |
203 | "/ruby-" version ".tar.xz")) | |
204 | (sha256 | |
205 | (base32 | |
206 | "1cbcixwnr0y8q0lg67wjgplp06kjd6p6hjjh680csv3v0bpsxgv8")))))) | |
207 | ||
227fab3e CB |
208 | (define-public ruby-2.5 |
209 | (package | |
210 | (inherit ruby) | |
a09ff632 | 211 | (version "2.5.8") |
227fab3e CB |
212 | (source |
213 | (origin | |
214 | (method url-fetch) | |
215 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
216 | (version-major+minor version) | |
217 | "/ruby-" version ".tar.xz")) | |
218 | (sha256 | |
219 | (base32 | |
a09ff632 | 220 | "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483")) |
227fab3e CB |
221 | (modules '((guix build utils))) |
222 | (snippet `(begin | |
223 | ;; Remove bundled libffi | |
224 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
225 | #t)))))) | |
226 | ||
93cae02f CB |
227 | (define-public ruby-2.4 |
228 | (package | |
229 | (inherit ruby) | |
dfe211f9 | 230 | (version "2.4.10") |
93cae02f CB |
231 | (source |
232 | (origin | |
233 | (method url-fetch) | |
234 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
235 | (version-major+minor version) | |
236 | "/ruby-" version ".tar.xz")) | |
237 | (sha256 | |
238 | (base32 | |
dfe211f9 | 239 | "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm")) |
93cae02f CB |
240 | (modules '((guix build utils))) |
241 | (snippet `(begin | |
242 | ;; Remove bundled libffi | |
243 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
244 | #t)))))) | |
245 | ||
933dad91 RW |
246 | (define-public mruby |
247 | (package | |
248 | (name "mruby") | |
2d1a621b | 249 | (version "2.1.2") |
933dad91 RW |
250 | (source |
251 | (origin | |
252 | (method git-fetch) | |
253 | (uri (git-reference | |
b0e7b699 | 254 | (url "https://github.com/mruby/mruby") |
933dad91 RW |
255 | (commit version))) |
256 | (file-name (git-file-name name version)) | |
257 | (sha256 | |
258 | (base32 | |
2d1a621b | 259 | "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3")))) |
933dad91 RW |
260 | (build-system gnu-build-system) |
261 | (arguments | |
262 | `(#:test-target "test" | |
263 | #:phases | |
264 | (modify-phases %standard-phases | |
265 | (delete 'configure) | |
266 | (add-after 'unpack 'enable-verbose-tests | |
267 | (lambda _ | |
268 | (substitute* "Makefile" | |
269 | (("ruby ./minirake" m) | |
270 | (string-append m " --verbose"))) | |
271 | #t)) | |
272 | (add-after 'unpack 'disable-broken-tests | |
273 | (lambda _ | |
274 | (substitute* "mrbgems/mruby-io/test/io.rb" | |
275 | (("assert\\('IO.popen.+$" m) | |
276 | (string-append m "skip \"Hangs in the Guix build environment\"\n")) | |
277 | (("assert\\('IO#isatty.+$" m) | |
278 | (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n")) | |
279 | ;; This one is really weird. The *expected* output is all wrong. | |
280 | (("assert\\('`cmd`.*" m) | |
281 | (string-append m "skip \"Disable for Guix\"\n")) | |
282 | (("echo foo") | |
283 | (string-append (which "echo") " foo"))) | |
284 | #t)) | |
285 | ;; There is no install target | |
286 | (replace 'install | |
287 | (lambda* (#:key outputs #:allow-other-keys) | |
288 | (let* ((out (assoc-ref outputs "out")) | |
289 | (bin (string-append out "/bin")) | |
290 | (lib (string-append out "/lib"))) | |
291 | (mkdir-p bin) | |
292 | (copy-recursively "build/host/bin" bin) | |
293 | (mkdir-p lib) | |
294 | (copy-recursively "build/host/lib" lib)) | |
295 | #t))))) | |
296 | (native-inputs | |
297 | `(("ruby" ,ruby) | |
298 | ("bison" ,bison))) | |
299 | (home-page "https://github.com/mruby/mruby") | |
300 | (synopsis "Lightweight Ruby") | |
301 | (description "mruby is the lightweight implementation of the Ruby | |
302 | language. Its syntax is Ruby 1.9 compatible. mruby can be linked and | |
303 | embedded within your application.") | |
304 | (license license:expat))) | |
305 | ||
34372d39 RW |
306 | (define-public ruby-commander |
307 | (package | |
308 | (name "ruby-commander") | |
309 | (version "4.4.7") | |
310 | (source | |
311 | (origin | |
312 | (method url-fetch) | |
313 | (uri (rubygems-uri "commander" version)) | |
314 | (sha256 | |
315 | (base32 | |
316 | "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg")))) | |
317 | (build-system ruby-build-system) | |
318 | (arguments | |
319 | `(#:test-target "spec" | |
320 | #:phases | |
321 | (modify-phases %standard-phases | |
322 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
323 | ;; bit unnecessary. | |
324 | (add-after 'unpack 'dont-run-rubocop | |
325 | (lambda _ | |
326 | (substitute* "Rakefile" | |
327 | ((".*rubocop.*") "") | |
328 | ((".*RuboCop.*") "")) | |
329 | #t))))) | |
330 | (propagated-inputs | |
331 | `(("ruby-highline" ,ruby-highline))) | |
332 | (native-inputs | |
333 | `(("bundler" ,bundler) | |
334 | ("ruby-rspec-core" ,ruby-rspec-core) | |
335 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
336 | ("ruby-rspec-mocks" ,ruby-rspec-mocks) | |
337 | ("ruby-simplecov" ,ruby-simplecov))) | |
338 | (home-page "https://github.com/commander-rb/commander") | |
339 | (synopsis "Library for building Ruby command-line executables") | |
340 | (description | |
341 | "Commander aims to be a complete solution for Ruby command-line | |
342 | executables. Commander bridges the gap between other terminal related | |
343 | libraries (OptionParser, HighLine), while providing many new features, and an | |
344 | elegant API.") | |
345 | (license license:expat))) | |
346 | ||
823ed097 CB |
347 | (define-public ruby-highline |
348 | (package | |
349 | (name "ruby-highline") | |
6742c6f6 | 350 | (version "2.0.1") |
823ed097 CB |
351 | (source |
352 | (origin | |
353 | (method url-fetch) | |
354 | (uri (rubygems-uri "highline" version)) | |
355 | (sha256 | |
356 | (base32 | |
6742c6f6 | 357 | "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc")))) |
823ed097 CB |
358 | (build-system ruby-build-system) |
359 | (arguments | |
360 | `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC | |
361 | (native-inputs | |
362 | `(("bundler" ,bundler) | |
363 | ("ruby-code-statistics" ,ruby-code-statistics))) | |
364 | (synopsis | |
365 | "HighLine helps you build command-line interfaces") | |
366 | (description | |
367 | "HighLine provides a high-level IO library that provides validation, | |
368 | type conversion, and more for command-line interfaces. HighLine also includes | |
369 | a menu system for providing multiple options to the user.") | |
370 | (home-page "https://github.com/JEG2/highline") | |
371 | (license (list license:gpl2 license:ruby)))) | |
372 | ||
bda0c139 DT |
373 | (define-public ruby-hoe |
374 | (package | |
375 | (name "ruby-hoe") | |
d0d2dd24 | 376 | (version "3.21.0") |
bda0c139 | 377 | (source (origin |
e83c6d00 DT |
378 | (method url-fetch) |
379 | (uri (rubygems-uri "hoe" version)) | |
bda0c139 DT |
380 | (sha256 |
381 | (base32 | |
d0d2dd24 | 382 | "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4")))) |
bda0c139 | 383 | (build-system ruby-build-system) |
d0d2dd24 CB |
384 | (arguments |
385 | '(#:phases | |
386 | (modify-phases %standard-phases | |
387 | ;; One of the tests fails if the SOURCE_DATE_EPOCH environment | |
388 | ;; variable is set, so unset it for the duration of the tests. | |
389 | ;; | |
390 | ;; TestHoe#test_possibly_better | |
391 | ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]: | |
392 | ;; Expected: 2019-11-12 00:00:00 UTC | |
393 | ;; Actual: 1970-01-01 00:00:00 UTC | |
394 | (add-before 'check 'unset-SOURCE-DATE-EPOCH | |
395 | (lambda _ | |
396 | (unsetenv "SOURCE_DATE_EPOCH") | |
397 | #t)) | |
398 | (add-after 'check 'set-SOURCE-DATE-EPOCH-again | |
399 | (lambda _ | |
400 | (setenv "SOURCE_DATE_EPOCH" "1") | |
401 | #t))))) | |
bda0c139 DT |
402 | (synopsis "Ruby project management helper") |
403 | (description | |
404 | "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage, | |
405 | maintain, and release projects and includes a dynamic plug-in system allowing | |
406 | for easy extensibility. Hoe ships with plug-ins for all the usual project | |
407 | tasks including rdoc generation, testing, packaging, deployment, and | |
408 | announcement.") | |
2f3800e5 | 409 | (home-page "https://www.zenspider.com/projects/hoe.html") |
bda0c139 DT |
410 | (license license:expat))) |
411 | ||
022170dc PP |
412 | (define-public ruby-rake-compiler |
413 | (package | |
414 | (name "ruby-rake-compiler") | |
7ac6bd00 | 415 | (version "1.1.0") |
022170dc PP |
416 | (source (origin |
417 | (method url-fetch) | |
e83c6d00 | 418 | (uri (rubygems-uri "rake-compiler" version)) |
022170dc PP |
419 | (sha256 |
420 | (base32 | |
7ac6bd00 | 421 | "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q")))) |
022170dc PP |
422 | (build-system ruby-build-system) |
423 | (arguments | |
e83c6d00 | 424 | '(#:tests? #f)) ; needs cucumber |
022170dc | 425 | (synopsis "Building and packaging helper for Ruby native extensions") |
e881752c | 426 | (description "Rake-compiler provides a framework for building and |
022170dc PP |
427 | packaging native C and Java extensions in Ruby.") |
428 | (home-page "https://github.com/rake-compiler/rake-compiler") | |
429 | (license license:expat))) | |
430 | ||
30f08487 RW |
431 | (define-public ruby-rsync |
432 | (package | |
433 | (name "ruby-rsync") | |
434 | (version "1.0.9") | |
435 | (source | |
436 | (origin | |
437 | (method url-fetch) | |
438 | (uri (rubygems-uri "rsync" version)) | |
439 | (sha256 | |
440 | (base32 | |
441 | "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv")))) | |
442 | (build-system ruby-build-system) | |
443 | (arguments | |
444 | '(#:test-target "spec" | |
445 | #:phases | |
446 | (modify-phases %standard-phases | |
447 | (add-after 'unpack 'remove-coveralls-requirement | |
448 | (lambda _ | |
449 | (substitute* "spec/spec_helper.rb" | |
450 | (("require 'coveralls'") "") | |
451 | (("Coveralls.wear!") "")) | |
452 | #t))))) | |
453 | (native-inputs | |
454 | `(("bundler" ,bundler) | |
455 | ("rsync" ,rsync) | |
456 | ("ruby-rspec-core" ,ruby-rspec-core) | |
457 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
458 | ("ruby-rspec-mocks" ,ruby-rspec-mocks))) | |
459 | (home-page "https://github.com/jbussdieker/ruby-rsync") | |
460 | (synopsis "Ruby wrapper around rsync") | |
461 | (description | |
462 | "Ruby Rsync is a Ruby library that can synchronize files between remote | |
463 | hosts by wrapping the @file{rsync} binary.") | |
464 | (license license:expat))) | |
465 | ||
acf735f2 DT |
466 | (define-public ruby-i18n |
467 | (package | |
468 | (name "ruby-i18n") | |
92dddf6b | 469 | (version "1.7.0") |
acf735f2 DT |
470 | (source (origin |
471 | (method url-fetch) | |
e83c6d00 | 472 | (uri (rubygems-uri "i18n" version)) |
acf735f2 DT |
473 | (sha256 |
474 | (base32 | |
92dddf6b | 475 | "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl")))) |
acf735f2 DT |
476 | (build-system ruby-build-system) |
477 | (arguments | |
0bfdfd37 | 478 | '(#:tests? #f)) ; no tests |
cbb50182 | 479 | (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent))) |
acf735f2 DT |
480 | (synopsis "Internationalization library for Ruby") |
481 | (description "Ruby i18n is an internationalization and localization | |
482 | solution for Ruby programs. It features translation and localization, | |
483 | interpolation of values to translations, pluralization, customizable | |
484 | transliteration to ASCII, flexible defaults, bulk lookup, lambdas as | |
485 | translation data, custom key/scope separator, custom exception handlers, and | |
486 | an extensible architecture with a swappable backend.") | |
92dddf6b | 487 | (home-page "https://github.com/ruby-i18n/i18n") |
acf735f2 | 488 | (license license:expat))) |
eb0c2dd6 | 489 | |
62b138ca CB |
490 | (define-public ruby-iruby |
491 | (package | |
492 | (name "ruby-iruby") | |
493 | (version "0.3") | |
494 | (source | |
495 | (origin | |
496 | (method url-fetch) | |
497 | (uri (rubygems-uri "iruby" version)) | |
498 | (sha256 | |
499 | (base32 | |
500 | "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn")))) | |
501 | (build-system ruby-build-system) | |
502 | (arguments | |
503 | ;; TODO: Tests currently fail. | |
504 | ;; | |
505 | ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s. | |
506 | ;; | |
507 | ;; 1) Failure: | |
508 | ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]: | |
509 | ;; In [ expected | |
510 | ;; | |
511 | ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips | |
512 | '(#:tests? #f | |
513 | #:phases | |
514 | (modify-phases %standard-phases | |
515 | (add-after 'unpack 'patch-ipython | |
516 | (lambda* (#:key inputs #:allow-other-keys) | |
517 | (substitute* "lib/iruby/command.rb" | |
518 | (("version = `") | |
519 | (string-append | |
520 | "version = `" | |
521 | (assoc-ref inputs "python-ipython") | |
522 | "/bin/")) | |
523 | (("Kernel\\.exec\\('") | |
524 | (string-append | |
525 | "Kernel.exec('" | |
526 | (assoc-ref inputs "python-ipython") | |
527 | "/bin/"))) | |
528 | #t))))) | |
529 | (inputs | |
530 | `(("python-ipython" ,python-ipython))) | |
531 | (propagated-inputs | |
532 | `(("ruby-bond" ,ruby-bond) | |
533 | ("ruby-data_uri" ,ruby-data_uri) | |
534 | ("ruby-mimemagic" ,ruby-mimemagic) | |
535 | ("ruby-multi-json" ,ruby-multi-json) | |
536 | ("ruby-cztop" ,ruby-cztop) | |
537 | ;; Optional inputs | |
538 | ("ruby-pry" ,ruby-pry))) | |
539 | (synopsis "Ruby kernel for Jupyter/IPython") | |
540 | (description | |
541 | "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g. | |
542 | notebook).") | |
543 | (home-page "https://github.com/SciRuby/iruby") | |
544 | (license license:expat))) | |
545 | ||
eb0c2dd6 DT |
546 | ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's |
547 | ;; dependencies use RSpec for their test suites! To avoid these circular | |
548 | ;; dependencies, we disable tests for all of the RSpec-related packages. | |
87688ff3 | 549 | (define-public ruby-rspec-support |
eb0c2dd6 DT |
550 | (package |
551 | (name "ruby-rspec-support") | |
bee67d18 | 552 | (version "3.8.0") |
eb0c2dd6 DT |
553 | (source (origin |
554 | (method url-fetch) | |
e83c6d00 | 555 | (uri (rubygems-uri "rspec-support" version)) |
eb0c2dd6 DT |
556 | (sha256 |
557 | (base32 | |
bee67d18 | 558 | "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609")))) |
eb0c2dd6 DT |
559 | (build-system ruby-build-system) |
560 | (arguments | |
561 | '(#:tests? #f)) ; avoid dependency cycles | |
562 | (synopsis "RSpec support library") | |
563 | (description "Support utilities for RSpec gems.") | |
564 | (home-page "https://github.com/rspec/rspec-support") | |
565 | (license license:expat))) | |
566 | ||
567 | (define-public ruby-rspec-core | |
568 | (package | |
569 | (name "ruby-rspec-core") | |
bee67d18 | 570 | (version "3.8.0") |
eb0c2dd6 DT |
571 | (source (origin |
572 | (method url-fetch) | |
e83c6d00 | 573 | (uri (rubygems-uri "rspec-core" version)) |
eb0c2dd6 DT |
574 | (sha256 |
575 | (base32 | |
bee67d18 | 576 | "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p")))) |
eb0c2dd6 DT |
577 | (build-system ruby-build-system) |
578 | (arguments | |
579 | '(#:tests? #f)) ; avoid dependency cycles | |
580 | (propagated-inputs | |
581 | `(("ruby-rspec-support" ,ruby-rspec-support))) | |
582 | (synopsis "RSpec core library") | |
583 | (description "Rspec-core provides the RSpec test runner and example | |
584 | groups.") | |
585 | (home-page "https://github.com/rspec/rspec-core") | |
586 | (license license:expat))) | |
e6962009 | 587 | |
64c318f2 BW |
588 | (define-public ruby-rspec-core-2 |
589 | (package (inherit ruby-rspec-core) | |
590 | (version "2.14.8") | |
591 | (source (origin | |
592 | (method url-fetch) | |
593 | (uri (rubygems-uri "rspec-core" version)) | |
594 | (sha256 | |
595 | (base32 | |
596 | "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc")))) | |
597 | (propagated-inputs `()))) | |
598 | ||
20c05ea9 | 599 | (define-public ruby-diff-lcs |
e6962009 DT |
600 | (package |
601 | (name "ruby-diff-lcs") | |
e2fcef39 | 602 | (version "1.3") |
e6962009 DT |
603 | (source (origin |
604 | (method url-fetch) | |
e83c6d00 | 605 | (uri (rubygems-uri "diff-lcs" version)) |
e6962009 DT |
606 | (sha256 |
607 | (base32 | |
e2fcef39 | 608 | "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza")))) |
e6962009 DT |
609 | (build-system ruby-build-system) |
610 | (arguments | |
611 | '(#:tests? #f)) ; avoid dependency cycles | |
612 | (synopsis "Compute the difference between two Enumerable sequences") | |
613 | (description "Diff::LCS computes the difference between two Enumerable | |
614 | sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm. | |
615 | It includes utilities to create a simple HTML diff output format and a | |
616 | standard diff-like tool.") | |
617 | (home-page "https://github.com/halostatue/diff-lcs") | |
618 | (license license:expat))) | |
619 | ||
620 | (define-public ruby-rspec-expectations | |
621 | (package | |
622 | (name "ruby-rspec-expectations") | |
bee67d18 | 623 | (version "3.8.2") |
e6962009 DT |
624 | (source (origin |
625 | (method url-fetch) | |
e83c6d00 | 626 | (uri (rubygems-uri "rspec-expectations" version)) |
e6962009 DT |
627 | (sha256 |
628 | (base32 | |
bee67d18 | 629 | "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm")))) |
e6962009 DT |
630 | (build-system ruby-build-system) |
631 | (arguments | |
632 | '(#:tests? #f)) ; avoid dependency cycles | |
633 | (propagated-inputs | |
634 | `(("ruby-rspec-support" ,ruby-rspec-support) | |
20c05ea9 | 635 | ("ruby-diff-lcs" ,ruby-diff-lcs))) |
e881752c | 636 | (synopsis "RSpec expectations library") |
e6962009 DT |
637 | (description "Rspec-expectations provides a simple API to express expected |
638 | outcomes of a code example.") | |
639 | (home-page "https://github.com/rspec/rspec-expectations") | |
640 | (license license:expat))) | |
4f2a0cac | 641 | |
fb157f25 BW |
642 | (define-public ruby-rspec-expectations-2 |
643 | (package (inherit ruby-rspec-expectations) | |
644 | (version "2.14.5") | |
645 | (source (origin | |
646 | (method url-fetch) | |
647 | (uri (rubygems-uri "rspec-expectations" version)) | |
648 | (sha256 | |
649 | (base32 | |
650 | "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9")))) | |
651 | (propagated-inputs | |
652 | `(("ruby-diff-lcs" ,ruby-diff-lcs))))) | |
653 | ||
818b402c MC |
654 | (define-public ruby-sorcerer |
655 | (package | |
656 | (name "ruby-sorcerer") | |
657 | (version "2.0.1") | |
658 | (source | |
659 | (origin | |
660 | (method url-fetch) | |
661 | (uri (rubygems-uri "sorcerer" version)) | |
662 | (sha256 | |
663 | (base32 | |
664 | "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h")))) | |
665 | (build-system ruby-build-system) | |
666 | (synopsis "Ripper-style abstract syntax tree to Ruby source generator") | |
667 | (description "Sorcerer generates Ruby code from a Ripper-like abstract | |
668 | syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small | |
7230f6d5 TGR |
669 | snippets of Ruby code, expressible in a single line. Longer examples may be |
670 | re-sourced, but they will be rendered in a single-line format.") | |
818b402c MC |
671 | (home-page "https://github.com/rspec-given/sorcerer") |
672 | (license license:expat))) | |
673 | ||
906b9a14 MC |
674 | (define-public ruby-given-core |
675 | (package | |
676 | (name "ruby-given-core") | |
677 | (version "3.8.0") | |
678 | (source | |
679 | (origin | |
680 | (method url-fetch) | |
681 | (uri (rubygems-uri "given_core" version)) | |
682 | (sha256 | |
683 | (base32 | |
684 | "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg")))) | |
685 | (build-system ruby-build-system) | |
686 | (arguments '(#:tests? #f)) ;no test suite for the core package | |
687 | (propagated-inputs | |
688 | `(("ruby-sorcerer" ,ruby-sorcerer))) | |
689 | (synopsis "Core abstractions used by rspec-given and minitest-given") | |
690 | (description "Given_core is the basic functionality behind rspec-given and | |
691 | minitest-given, extensions that allow the use of Given/When/Then terminology | |
692 | when defining specifications.") | |
693 | (home-page "https://github.com/rspec-given/rspec-given") | |
694 | (license license:expat))) | |
695 | ||
9c171558 MC |
696 | (define-public ruby-rspec-given |
697 | (package | |
698 | (name "ruby-rspec-given") | |
699 | (version "3.8.0") | |
700 | (source | |
701 | (origin | |
702 | (method url-fetch) | |
703 | (uri (rubygems-uri "rspec-given" version)) | |
704 | (sha256 | |
705 | (base32 | |
706 | "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji")))) | |
707 | (build-system ruby-build-system) | |
708 | (arguments | |
709 | `(#:test-target "rs" | |
710 | #:phases | |
711 | (modify-phases %standard-phases | |
712 | (add-after 'unpack 'fix-rakefile | |
713 | (lambda _ | |
714 | (substitute* '("Rakefile" "rakelib/gemspec.rake") | |
715 | (("require '\\./lib/given/.*") "") | |
716 | (("Given::VERSION") (format #f "~s" ,version)) | |
717 | ;; Fix the error: "cannot load such file -- example_helper" | |
718 | (("sh \"rspec") | |
719 | "sh \"rspec -Ilib:examples")) | |
720 | #t)) | |
721 | (add-after 'extract-gemspec 'delete-failing-tests | |
722 | ;; See: https://github.com/jimweirich/rspec-given/issues/57. | |
723 | (lambda _ | |
724 | (substitute* ".gemspec" | |
725 | (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ") | |
726 | "") | |
727 | (("\"examples/integration/failing_messages_spec.rb\".freeze, ") | |
728 | "")) | |
729 | (delete-file "spec/lib/given/natural_assertion_spec.rb") | |
730 | (delete-file "examples/integration/failing_messages_spec.rb") | |
731 | #t))))) | |
732 | (native-inputs | |
733 | `(("ruby-rspec" ,ruby-rspec) | |
734 | ("ruby-minitest" ,ruby-minitest))) | |
735 | (propagated-inputs | |
736 | `(("ruby-given-core" ,ruby-given-core) | |
737 | ("ruby-rspec" ,ruby-rspec))) | |
738 | (synopsis "Given/When/Then for RSpec and Minitest") | |
739 | (description "Given is an RSpec extension that allows the use of | |
740 | Given/When/Then terminology when defining specifications, in a way similar to | |
741 | the Cucumber Gherkin language.") | |
742 | (home-page "https://github.com/rspec-given/rspec-given") | |
743 | (license license:expat))) | |
744 | ||
999ffb26 DM |
745 | (define-public ruby-rspec-its |
746 | (package | |
747 | (name "ruby-rspec-its") | |
b2244c68 | 748 | (version "1.3.0") |
999ffb26 DM |
749 | (source |
750 | (origin | |
3306f02a CB |
751 | (method git-fetch) |
752 | (uri (git-reference | |
b0e7b699 | 753 | (url "https://github.com/rspec/rspec-its") |
3306f02a CB |
754 | (commit (string-append "v" version)))) |
755 | (file-name (git-file-name name version)) | |
999ffb26 DM |
756 | (sha256 |
757 | (base32 | |
b2244c68 | 758 | "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p")))) |
999ffb26 DM |
759 | (build-system ruby-build-system) |
760 | (arguments | |
3306f02a CB |
761 | `(#:test-target "spec" |
762 | #:phases | |
763 | (modify-phases %standard-phases | |
764 | (add-after 'unpack 'dont-install-gems-from-gemfile | |
765 | (lambda _ | |
766 | (substitute* "Gemfile" | |
767 | (("rspec rspec-core rspec-expectations rspec-mocks rspec-support") | |
768 | "")) | |
769 | #t)) | |
7c8eb479 | 770 | (add-before 'build 'loosen-ffi-requirement |
b2244c68 | 771 | (lambda _ |
7c8eb479 | 772 | ;; Accept any version of ruby-ffi. |
b2244c68 | 773 | (substitute* "Gemfile" |
7c8eb479 MB |
774 | ((" gem 'ffi', '~> 1\\.9\\.25'") |
775 | " gem 'ffi'")) | |
b2244c68 | 776 | #t)) |
3306f02a CB |
777 | (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile |
778 | (lambda _ | |
779 | (substitute* "rspec-its.gemspec" | |
780 | (("rake.*") "rake'\n") | |
b2244c68 BH |
781 | (("spec.add_development_dependency 'cucumber'.*") |
782 | "spec.add_development_dependency 'cucumber'\n") | |
3306f02a | 783 | (("bundler.*") "bundler'\n") |
b2244c68 | 784 | (("\"aruba.*") "'aruba'\n")) |
3306f02a | 785 | #t))))) |
999ffb26 DM |
786 | (propagated-inputs |
787 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
788 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
3306f02a CB |
789 | (native-inputs |
790 | `(("bundler" ,bundler) | |
791 | ("ruby-cucumber" ,ruby-cucumber) | |
b2244c68 | 792 | ("ruby-ffi" ,ruby-ffi) |
3306f02a CB |
793 | ("ruby-aruba" ,ruby-aruba))) |
794 | (synopsis "RSpec extension that provides the @code{its} method") | |
795 | (description | |
796 | "RSpec::Its provides the its method as a short-hand to specify the expected | |
797 | value of an attribute. For example, one can use @code{its(:size)\\{should | |
798 | eq(1)\\}}.") | |
999ffb26 DM |
799 | (home-page "https://github.com/rspec/rspec-its") |
800 | (license license:expat))) | |
801 | ||
d7bd7016 MC |
802 | ;;; This variant is used to break a cycle with ruby-protobuf. |
803 | (define-public ruby-rspec-its-minimal | |
804 | (hidden-package | |
805 | (package | |
806 | (inherit ruby-rspec-its) | |
807 | (arguments | |
808 | (substitute-keyword-arguments (package-arguments ruby-rspec-its) | |
809 | ((#:tests? _ #f) #f))) | |
810 | (native-inputs '())))) | |
811 | ||
4f2a0cac DT |
812 | (define-public ruby-rspec-mocks |
813 | (package | |
814 | (name "ruby-rspec-mocks") | |
bee67d18 | 815 | (version "3.8.0") |
4f2a0cac DT |
816 | (source (origin |
817 | (method url-fetch) | |
e83c6d00 | 818 | (uri (rubygems-uri "rspec-mocks" version)) |
4f2a0cac DT |
819 | (sha256 |
820 | (base32 | |
bee67d18 | 821 | "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp")))) |
4f2a0cac DT |
822 | (build-system ruby-build-system) |
823 | (arguments | |
824 | '(#:tests? #f)) ; avoid dependency cycles | |
825 | (propagated-inputs | |
826 | `(("ruby-rspec-support" ,ruby-rspec-support) | |
20c05ea9 | 827 | ("ruby-diff-lcs" ,ruby-diff-lcs))) |
4f2a0cac DT |
828 | (synopsis "RSpec stubbing and mocking library") |
829 | (description "Rspec-mocks provides RSpec's \"test double\" framework, with | |
830 | support for stubbing and mocking.") | |
831 | (home-page "https://github.com/rspec/rspec-mocks") | |
832 | (license license:expat))) | |
d4fde1f2 | 833 | |
6da9adeb BW |
834 | (define-public ruby-rspec-mocks-2 |
835 | (package (inherit ruby-rspec-mocks) | |
836 | (version "2.14.6") | |
837 | (source (origin | |
838 | (method url-fetch) | |
839 | (uri (rubygems-uri "rspec-mocks" version)) | |
840 | (sha256 | |
841 | (base32 | |
842 | "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30")))) | |
843 | (propagated-inputs | |
844 | `(("ruby-diff-lcs" ,ruby-diff-lcs))))) | |
845 | ||
198bc648 CB |
846 | (define-public ruby-rspec-rerun |
847 | (package | |
848 | (name "ruby-rspec-rerun") | |
849 | (version "1.1.0") | |
850 | (source | |
851 | (origin | |
852 | (method url-fetch) | |
853 | (uri (rubygems-uri "rspec-rerun" version)) | |
854 | (sha256 | |
855 | (base32 | |
856 | "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj")))) | |
857 | (build-system ruby-build-system) | |
858 | (arguments | |
859 | '(;; No included tests | |
860 | #:tests? #f)) | |
861 | (propagated-inputs `(("ruby-rspec" ,ruby-rspec))) | |
862 | (synopsis "Track failed RSpec tests to re-run them") | |
863 | (description | |
864 | "This package provides an automated way to track, and then re-run failed | |
865 | RSpec tests.") | |
866 | (home-page "https://github.com/dblock/rspec-rerun") | |
867 | (license license:expat))) | |
868 | ||
9c4cb1ef CD |
869 | (define-public ruby-rspec-wait |
870 | (package | |
871 | (name "ruby-rspec-wait") | |
872 | (version "0.0.9") | |
873 | (source | |
874 | (origin | |
875 | (method url-fetch) | |
876 | (uri (rubygems-uri "rspec-wait" version)) | |
877 | (sha256 | |
878 | (base32 | |
879 | "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww")))) | |
880 | (build-system ruby-build-system) | |
881 | (arguments | |
882 | '(#:phases | |
883 | (modify-phases %standard-phases | |
884 | (replace 'check | |
885 | (lambda _ | |
886 | (invoke "rake" "spec")))))) | |
887 | (native-inputs | |
888 | `(("bundler" ,bundler))) | |
889 | (propagated-inputs | |
890 | `(("ruby-rspec" ,ruby-rspec))) | |
891 | (home-page "https://github.com/laserlemon/rspec-wait") | |
892 | (synopsis "Wait for conditions in RSpec") | |
893 | (description | |
894 | "RSpec::Wait strives to make it easier to test asynchronous or slow | |
895 | interactions.") | |
896 | (license license:expat))) | |
897 | ||
d4fde1f2 DT |
898 | (define-public ruby-rspec |
899 | (package | |
900 | (name "ruby-rspec") | |
bee67d18 | 901 | (version "3.8.0") |
d4fde1f2 DT |
902 | (source (origin |
903 | (method url-fetch) | |
e83c6d00 | 904 | (uri (rubygems-uri "rspec" version)) |
d4fde1f2 DT |
905 | (sha256 |
906 | (base32 | |
bee67d18 | 907 | "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3")))) |
d4fde1f2 DT |
908 | (build-system ruby-build-system) |
909 | (arguments | |
910 | '(#:tests? #f)) ; avoid dependency cycles | |
911 | (propagated-inputs | |
912 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
913 | ("ruby-rspec-mocks" ,ruby-rspec-mocks) | |
914 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
915 | (synopsis "Behavior-driven development framework for Ruby") | |
916 | (description "RSpec is a behavior-driven development (BDD) framework for | |
917 | Ruby. This meta-package includes the RSpec test runner, along with the | |
918 | expectations and mocks frameworks.") | |
35739712 | 919 | (home-page "https://rspec.info/") |
d4fde1f2 | 920 | (license license:expat))) |
2cbc105b | 921 | |
5ac984b3 BW |
922 | (define-public ruby-rspec-2 |
923 | (package (inherit ruby-rspec) | |
924 | (version "2.14.1") | |
925 | (source (origin | |
926 | (method url-fetch) | |
927 | (uri (rubygems-uri "rspec" version)) | |
928 | (sha256 | |
929 | (base32 | |
930 | "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg")))) | |
931 | (propagated-inputs | |
932 | `(("ruby-rspec-core" ,ruby-rspec-core-2) | |
933 | ("ruby-rspec-mocks" ,ruby-rspec-mocks-2) | |
934 | ("ruby-rspec-expectations" ,ruby-rspec-expectations-2))))) | |
935 | ||
2cbc105b DT |
936 | ;; Bundler is yet another source of circular dependencies, so we must disable |
937 | ;; its test suite as well. | |
938 | (define-public bundler | |
939 | (package | |
940 | (name "bundler") | |
cbee8e31 | 941 | (version "2.1.4") |
2cbc105b DT |
942 | (source (origin |
943 | (method url-fetch) | |
e83c6d00 | 944 | (uri (rubygems-uri "bundler" version)) |
2cbc105b DT |
945 | (sha256 |
946 | (base32 | |
cbee8e31 | 947 | "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah")))) |
2cbc105b DT |
948 | (build-system ruby-build-system) |
949 | (arguments | |
950 | '(#:tests? #f)) ; avoid dependency cycles | |
951 | (synopsis "Ruby gem bundler") | |
952 | (description "Bundler automatically downloads and installs a list of gems | |
953 | specified in a \"Gemfile\", as well as their dependencies.") | |
2f3800e5 | 954 | (home-page "https://bundler.io/") |
2cbc105b | 955 | (license license:expat))) |
98b87b82 | 956 | |
cf36174f RW |
957 | (define-public ruby-builder |
958 | (package | |
959 | (name "ruby-builder") | |
42b48db2 | 960 | (version "3.2.3") |
cf36174f RW |
961 | (source (origin |
962 | (method url-fetch) | |
963 | (uri (rubygems-uri "builder" version)) | |
964 | (sha256 | |
965 | (base32 | |
42b48db2 | 966 | "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1")))) |
cf36174f RW |
967 | (build-system ruby-build-system) |
968 | (arguments | |
969 | `(#:phases | |
970 | (modify-phases %standard-phases | |
971 | (add-after 'unpack 'do-not-use-rvm | |
972 | (lambda _ | |
973 | (substitute* "rakelib/tags.rake" | |
974 | (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n")) | |
975 | #t))))) | |
976 | (synopsis "Ruby library to create structured data") | |
977 | (description "Builder provides a number of builder objects that make it | |
978 | easy to create structured data. Currently the following builder objects are | |
979 | supported: XML Markup and XML Events.") | |
980 | (home-page "https://github.com/jimweirich/builder") | |
981 | (license license:expat))) | |
982 | ||
566f71f8 CB |
983 | (define-public ruby-bump |
984 | (package | |
985 | (name "ruby-bump") | |
986 | (version "0.7.0") | |
987 | (source | |
988 | (origin | |
989 | (method url-fetch) | |
990 | (uri (rubygems-uri "bump" version)) | |
991 | (sha256 | |
992 | (base32 | |
993 | "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym")))) | |
994 | (build-system ruby-build-system) | |
995 | (arguments | |
996 | '(;; No included tests | |
997 | #:tests? #f)) | |
998 | (synopsis "Tool for working with Rubygems") | |
999 | (description | |
1000 | "Bump provides commands to manage Rubygem versioning, updating to the | |
1001 | next patch version for example.") | |
1002 | (home-page "https://github.com/gregorym/bump") | |
1003 | (license license:expat))) | |
1004 | ||
ad79eb55 RW |
1005 | (define-public ruby-rjb |
1006 | (package | |
1007 | (name "ruby-rjb") | |
aeb4e61e | 1008 | (version "1.5.5") |
ad79eb55 RW |
1009 | (source (origin |
1010 | (method url-fetch) | |
1011 | (uri (rubygems-uri "rjb" version)) | |
1012 | (sha256 | |
1013 | (base32 | |
aeb4e61e | 1014 | "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca")))) |
ad79eb55 RW |
1015 | (build-system ruby-build-system) |
1016 | (arguments | |
1017 | `(#:tests? #f ; no rakefile | |
1018 | #:phases | |
1019 | (modify-phases %standard-phases | |
1020 | (add-before 'build 'set-java-home | |
1021 | (lambda* (#:key inputs #:allow-other-keys) | |
1022 | (setenv "JAVA_HOME" (assoc-ref inputs "jdk")) | |
1023 | #t))))) | |
1024 | (native-inputs | |
d2540f80 | 1025 | `(("jdk" ,icedtea "jdk"))) |
ad79eb55 RW |
1026 | (synopsis "Ruby-to-Java bridge using the Java Native Interface") |
1027 | (description "RJB is a bridge program that connects Ruby and Java via the | |
1028 | Java Native Interface.") | |
2f3800e5 | 1029 | (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge") |
ad79eb55 RW |
1030 | (license license:lgpl2.1+))) |
1031 | ||
f9ae2c06 PP |
1032 | (define-public ruby-log4r |
1033 | (package | |
1034 | (name "ruby-log4r") | |
1035 | (version "1.1.10") | |
1036 | (source | |
1037 | (origin | |
1038 | (method url-fetch) | |
1039 | (uri (rubygems-uri "log4r" version)) | |
1040 | (sha256 | |
1041 | (base32 | |
1042 | "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv")))) | |
1043 | (build-system ruby-build-system) | |
1044 | (arguments | |
1045 | '(#:tests? #f)) ; no Rakefile in gem | |
1046 | (synopsis "Flexible logging library for Ruby") | |
1047 | (description "Comprehensive and flexible logging library written | |
1048 | in Ruby for use in Ruby programs. It features a hierarchical logging | |
1049 | system of any number of levels, custom level names, logger | |
1050 | inheritance, multiple output destinations per log event, execution | |
1051 | tracing, custom formatting, thread safteyness, XML and YAML | |
1052 | configuration, and more.") | |
1053 | (home-page "http://log4r.rubyforge.org/") | |
1054 | (license license:bsd-3))) | |
1055 | ||
71a03c29 RW |
1056 | (define-public ruby-atoulme-antwrap |
1057 | (package | |
1058 | (name "ruby-atoulme-antwrap") | |
1059 | (version "0.7.5") | |
1060 | (source (origin | |
1061 | (method url-fetch) | |
1062 | (uri (rubygems-uri "atoulme-Antwrap" version)) | |
1063 | (sha256 | |
1064 | (base32 | |
1065 | "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz")))) | |
1066 | (build-system ruby-build-system) | |
1067 | ;; Test data required for most of the tests are not included. | |
1068 | (arguments `(#:tests? #f)) | |
1069 | (native-inputs | |
1070 | `(("ruby-hoe" ,ruby-hoe))) | |
1071 | (inputs | |
1072 | `(("ruby-rjb" ,ruby-rjb))) | |
1073 | (synopsis "Ruby wrapper for the Ant build tool") | |
1074 | (description "Antwrap is a Ruby module that wraps the Apache Ant build | |
1075 | tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby | |
1076 | script.") | |
1077 | (home-page "http://rubyforge.org/projects/antwrap/") | |
1078 | (license license:expat))) | |
1079 | ||
fe1ddad5 RW |
1080 | (define-public ruby-atoulme-saikuro |
1081 | (package | |
1082 | (name "ruby-atoulme-saikuro") | |
1083 | (version "1.2.1") | |
1084 | (source (origin | |
1085 | (method url-fetch) | |
1086 | (uri (rubygems-uri "atoulme-Saikuro" version)) | |
1087 | (sha256 | |
1088 | (base32 | |
1089 | "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19")))) | |
1090 | (build-system ruby-build-system) | |
1091 | ;; FIXME: There are no unit tests. The tests are demonstrations of the | |
1092 | ;; "saikuro" tool. | |
1093 | (arguments `(#:tests? #f)) | |
1094 | (synopsis "Cyclomatic complexity analyzer") | |
1095 | (description "Saikuro is a Ruby cyclomatic complexity analyzer. When | |
1096 | given Ruby source code Saikuro will generate a report listing the cyclomatic | |
1097 | complexity of each method found. In addition, Saikuro counts the number of | |
1098 | lines per method and can generate a listing of the number of tokens on each | |
1099 | line of code.") | |
1100 | (home-page "http://www.github.com/atoulme/Saikuro") | |
1101 | ;; File headers contain the BSD-3 license and the README.rdoc says that | |
1102 | ;; "Saikuro uses the BSD license", but the LICENSE file contains the text | |
1103 | ;; of the Expat license. | |
1104 | (license license:bsd-3))) | |
1105 | ||
ff350f98 GL |
1106 | (define-public ruby-awesome-print |
1107 | (package | |
1108 | (name "ruby-awesome-print") | |
1109 | (version "1.8.0") | |
1110 | (source | |
1111 | (origin | |
1112 | (method url-fetch) | |
1113 | (uri (rubygems-uri "awesome_print" version)) | |
1114 | (sha256 | |
1115 | (base32 | |
1116 | "14arh1ixfsd6j5md0agyzvksm5svfkvchb90fp32nn7y3avcmc2h")))) | |
1117 | (build-system ruby-build-system) | |
1118 | (arguments | |
1119 | `(#:phases | |
1120 | (modify-phases %standard-phases | |
1121 | (replace 'check | |
1122 | (lambda _ | |
1123 | ;; Remove failing test. | |
1124 | (for-each delete-file | |
1125 | '("spec/ext/nokogiri_spec.rb" | |
1126 | "spec/colors_spec.rb" | |
1127 | "spec/formats_spec.rb" | |
1128 | "spec/methods_spec.rb" | |
1129 | "spec/misc_spec.rb" | |
1130 | "spec/objects_spec.rb")) | |
1131 | (invoke "rspec" "-c" "spec")))))) | |
1132 | (native-inputs | |
1133 | `(("ruby-nokogiri" ,ruby-nokogiri) | |
1134 | ("ruby-rspec" ,ruby-rspec) | |
1135 | ("ruby-simplecov" ,ruby-simplecov))) | |
1136 | (synopsis "Pretty print Ruby objects to visualize their structure") | |
1137 | (description | |
1138 | "Ruby dubugging companion: pretty print Ruby objects to visualize their | |
1139 | structure. Supports custom object formatting via plugins.") | |
1140 | (home-page "https://github.com/awesome-print/awesome_print") | |
1141 | (license license:expat))) | |
1142 | ||
c84dd8d4 MC |
1143 | (define-public ruby-pandoc-ruby |
1144 | (package | |
1145 | (name "ruby-pandoc-ruby") | |
1146 | (version "2.1.4") | |
1147 | (source | |
1148 | (origin | |
1149 | (method git-fetch) ;the gem lacks many test files | |
1150 | (uri (git-reference | |
b0e7b699 | 1151 | (url "https://github.com/xwmx/pandoc-ruby") |
c84dd8d4 MC |
1152 | (commit version))) |
1153 | (file-name (git-file-name name version)) | |
1154 | (sha256 | |
1155 | (base32 | |
1156 | "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935")))) | |
1157 | (build-system ruby-build-system) | |
1158 | (arguments | |
1159 | `(#:phases | |
1160 | (modify-phases %standard-phases | |
1161 | (add-after 'unpack 'disable-failing-tests | |
1162 | ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+ | |
1163 | ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39). | |
1164 | (lambda _ | |
1165 | (substitute* "test/test_conversions.rb" | |
1166 | (("next if from == to.*" all) | |
1167 | (string-append | |
1168 | all | |
1169 | " next if ['plain', 'beamer'].include? to\n"))) | |
1170 | #t)) | |
1171 | (add-after 'unpack 'patch-pandoc-path | |
1172 | (lambda* (#:key inputs #:allow-other-keys) | |
8cc8e584 | 1173 | (let ((pandoc (string-append (assoc-ref inputs "pandoc") |
c84dd8d4 MC |
1174 | "/bin/pandoc"))) |
1175 | (substitute* "lib/pandoc-ruby.rb" | |
1176 | (("@@pandoc_path = 'pandoc'") | |
1177 | (format #f "@@pandoc_path = '~a'" pandoc))) | |
1178 | (substitute* "test/test_pandoc_ruby.rb" | |
1179 | (("('|\")pandoc" _ quote) | |
1180 | (string-append quote pandoc)) | |
1181 | (("\\^pandoc") | |
1182 | ".*pandoc")) | |
1183 | #t))) | |
1184 | (add-after 'extract-gemspec 'remove-Gemfile.lock | |
1185 | (lambda _ | |
1186 | (delete-file "Gemfile.lock") | |
1187 | (substitute* "pandoc-ruby.gemspec" | |
1188 | (("Gemfile\\.lock") "")) | |
1189 | #t))))) | |
1190 | (native-inputs | |
1191 | `(("ruby-mocha" ,ruby-mocha))) | |
1192 | (inputs | |
8cc8e584 | 1193 | `(("pandoc" ,pandoc))) |
c84dd8d4 MC |
1194 | (synopsis "Ruby wrapper for Pandoc") |
1195 | (description "PandocRuby is a wrapper for Pandoc, a Haskell library with | |
1196 | command line tools for converting one markup format to another. Pandoc can | |
1197 | convert documents from a variety of formats including markdown, | |
1198 | reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a | |
1199 | variety of other formats, including markdown, reStructuredText, HTML, LaTeX, | |
1200 | ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki | |
1201 | markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and | |
1202 | more.") | |
1203 | (home-page "https://github.com/xwmx/pandoc-ruby") | |
1204 | (license license:expat))) | |
1205 | ||
0af8398b GL |
1206 | (define-public ruby-patron |
1207 | (package | |
1208 | (name "ruby-patron") | |
1209 | (version "0.13.3") | |
1210 | (source | |
1211 | (origin | |
1212 | (method url-fetch) | |
1213 | (uri (rubygems-uri "patron" version)) | |
1214 | (sha256 | |
1215 | (base32 | |
1216 | "0523gddx88zql2mq6655k60gy2ac8vybpzkcf90lmd9nx7wl3fi9")))) | |
1217 | (build-system ruby-build-system) | |
1218 | (inputs | |
1219 | `(("curl" ,curl))) | |
1220 | (arguments | |
1221 | `(#:tests? #f)) ; no included tests | |
1222 | (synopsis "Ruby HTTP client library based on @code{libcurl}") | |
1223 | (description | |
1224 | "Patron is a Ruby HTTP client library based on @code{libcurl}. It does | |
1225 | not try to expose the full power (read complexity) of @code{libcurl} but | |
1226 | instead tries to provide a sane API while taking advantage of @code{libcurl} | |
1227 | under the hood.") | |
1228 | (home-page "https://github.com/toland/patron") | |
1229 | (license license:expat))) | |
1230 | ||
fef0564c MC |
1231 | (define-public ruby-slim |
1232 | (package | |
1233 | (name "ruby-slim") | |
1234 | (version "4.1.0") | |
1235 | (source | |
1236 | (origin | |
1237 | (method url-fetch) | |
1238 | (uri (rubygems-uri "slim" version)) | |
1239 | (sha256 | |
1240 | (base32 | |
1241 | "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n")))) | |
1242 | (build-system ruby-build-system) | |
1243 | (arguments | |
1244 | `(#:phases | |
1245 | (modify-phases %standard-phases | |
1246 | ;; See: https://github.com/slim-template/slim/issues/857 and | |
1247 | ;; https://github.com/slim-template/slim/issues/858. | |
1248 | (add-after 'unpack 'skip-broken-tests | |
1249 | (lambda _ | |
1250 | (substitute* "test/core/test_embedded_engines.rb" | |
1251 | (("def test_render_with_markdown") | |
1252 | "def skipped_test_render_with_markdown")) | |
1253 | (substitute* "test/translator/test_translator.rb" | |
1254 | (("raise (\"Missing test for.*)" _ tail) | |
1255 | (string-append "print " tail))) | |
1256 | #t)) | |
1257 | ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/ | |
1258 | ;; 824862bd99d1675bc699d8fc71ba965a785c1f44. | |
1259 | (add-after 'unpack 'prevent-bundler-interference | |
1260 | (lambda _ | |
1261 | (substitute* "Rakefile" | |
1262 | (("require 'bundler/setup'") "nil") | |
1263 | (("Bundler::GemHelper\\.install_tasks") "nil")) | |
1264 | #t))))) | |
1265 | (native-inputs | |
1266 | `(("ruby-rack-test" ,ruby-rack-test) | |
1267 | ("ruby-sinatra" ,ruby-sinatra))) | |
1268 | (propagated-inputs | |
1269 | `(("ruby-temple" ,ruby-temple) | |
1270 | ("ruby-tilt" ,ruby-tilt))) | |
1271 | (synopsis "Minimalist template language for Ruby") | |
1272 | (description "Slim is a template language for Ruby that aims to reduce the | |
1273 | syntax to the minimum while remaining clear.") | |
1274 | (home-page "http://slim-lang.com/") | |
1275 | (license license:expat))) | |
1276 | ||
34138e42 BW |
1277 | (define-public ruby-asciidoctor |
1278 | (package | |
751bf33d | 1279 | (name "ruby-asciidoctor") |
5df1126c | 1280 | (version "2.0.10") |
751bf33d MC |
1281 | (source |
1282 | (origin | |
5df1126c MC |
1283 | (method git-fetch) ;the gem release lacks a Rakefile |
1284 | (uri (git-reference | |
b0e7b699 | 1285 | (url "https://github.com/asciidoctor/asciidoctor") |
5df1126c MC |
1286 | (commit (string-append "v" version)))) |
1287 | (file-name (git-file-name name version)) | |
751bf33d | 1288 | (sha256 |
34138e42 | 1289 | (base32 |
5df1126c | 1290 | "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95")))) |
751bf33d MC |
1291 | (build-system ruby-build-system) |
1292 | (arguments | |
1293 | `(#:test-target "test:all" | |
1294 | #:phases | |
1295 | (modify-phases %standard-phases | |
5df1126c | 1296 | (replace 'replace-git-ls-files |
751bf33d | 1297 | (lambda _ |
5df1126c MC |
1298 | ;; TODO: Remove after the fix of using 'cut' to better mimic the |
1299 | ;; git ls-files output is merged in ruby-build-system. | |
1300 | (substitute* "asciidoctor.gemspec" | |
1301 | (("`git ls-files -z`") | |
1302 | "`find . -type f -print0 |sort -z|cut -zc3-`")) | |
1303 | #t)) | |
1304 | (add-after 'extract-gemspec 'strip-version-requirements | |
1305 | (lambda _ | |
1306 | (delete-file "Gemfile") | |
1307 | (substitute* "asciidoctor.gemspec" | |
1308 | (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) | |
1309 | (string-append stripped "\n"))) | |
751bf33d MC |
1310 | #t))))) |
1311 | (native-inputs | |
5df1126c MC |
1312 | `(("ruby-erubis" ,ruby-erubis) |
1313 | ("ruby-minitest" ,ruby-minitest) | |
751bf33d MC |
1314 | ("ruby-nokogiri" ,ruby-nokogiri) |
1315 | ("ruby-asciimath" ,ruby-asciimath) | |
5df1126c MC |
1316 | ("ruby-coderay" ,ruby-coderay) |
1317 | ("ruby-cucumber" ,ruby-cucumber) | |
1318 | ("ruby-haml" ,ruby-haml) | |
1319 | ("ruby-rouge" ,ruby-rouge) | |
1320 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
1321 | ("ruby-simplecov" ,ruby-simplecov) | |
1322 | ("ruby-slim" ,ruby-slim) | |
1323 | ("ruby-tilt" ,ruby-tilt))) | |
751bf33d MC |
1324 | (synopsis "Converter from AsciiDoc content to other formats") |
1325 | (description "Asciidoctor is a text processor and publishing toolchain for | |
1326 | converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other | |
1327 | formats.") | |
1328 | (home-page "https://asciidoctor.org") | |
1329 | (license license:expat))) | |
34138e42 | 1330 | |
15b188c3 MC |
1331 | (define-public ruby-prawn-icon |
1332 | (package | |
1333 | (name "ruby-prawn-icon") | |
1334 | (version "2.5.0") | |
1335 | (source | |
1336 | (origin | |
1337 | (method url-fetch) | |
1338 | (uri (rubygems-uri "prawn-icon" version)) | |
1339 | (sha256 | |
1340 | (base32 | |
1341 | "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w")))) | |
1342 | (build-system ruby-build-system) | |
1343 | (arguments | |
1344 | `(#:test-target "spec" | |
1345 | #:phases (modify-phases %standard-phases | |
1346 | (add-after 'unpack 'remove-unnecessary-dependencies | |
1347 | (lambda _ | |
1348 | (substitute* '("Rakefile" "spec/spec_helper.rb") | |
1349 | ((".*[Bb]undler.*") "") | |
1350 | (("^require 'rubocop.*") "") | |
1351 | (("^RuboCop.*") "")) | |
1352 | #t))))) | |
1353 | (native-inputs | |
1354 | `(("ruby-pdf-inspector" ,ruby-pdf-inspector) | |
1355 | ("ruby-pdf-reader" ,ruby-pdf-reader) | |
1356 | ("ruby-rspec" ,ruby-rspec) | |
1357 | ("ruby-simplecov" ,ruby-simplecov))) | |
1358 | (propagated-inputs | |
1359 | `(("ruby-prawn" ,ruby-prawn))) | |
1360 | (synopsis "Icon fonts for use with the Prawn PDF toolkit") | |
1361 | (description "@code{Prawn::Icon} provides various icon fonts including | |
1362 | FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF | |
1363 | toolkit.") | |
1364 | (home-page "https://github.com/jessedoyle/prawn-icon/") | |
1365 | (license %prawn-project-licenses))) | |
1366 | ||
2d877f6e MC |
1367 | (define-public ruby-css-parser |
1368 | (package | |
1369 | (name "ruby-css-parser") | |
1370 | (version "1.7.1") | |
1371 | (source | |
1372 | (origin | |
1373 | (method url-fetch) | |
1374 | (uri (rubygems-uri "css_parser" version)) | |
1375 | (sha256 | |
1376 | (base32 | |
1377 | "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw")))) | |
1378 | (build-system ruby-build-system) | |
1379 | (arguments `(#:tests? #f)) ;gem doesn't ship with test suite | |
1380 | (propagated-inputs | |
1381 | `(("ruby-addressable" ,ruby-addressable))) | |
1382 | (synopsis "Ruby Cascading Style Sheets (CSS) parser") | |
1383 | (description "This package allows loading, parsing and cascading Cascading | |
1384 | Style Sheets (CSS) rule sets in Ruby.") | |
1385 | (home-page "https://github.com/premailer/css_parser") | |
1386 | (license license:expat))) | |
1387 | ||
95692655 MC |
1388 | (define-public ruby-prawn-svg |
1389 | (package | |
1390 | (name "ruby-prawn-svg") | |
1391 | (version "0.30.0") | |
1392 | (source | |
1393 | (origin | |
1394 | (method url-fetch) | |
1395 | (uri (rubygems-uri "prawn-svg" version)) | |
1396 | (sha256 | |
1397 | (base32 | |
1398 | "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77")))) | |
1399 | (build-system ruby-build-system) | |
1400 | (arguments | |
1401 | `(#:phases (modify-phases %standard-phases | |
1402 | (add-after 'unpack 'do-not-use-bundler | |
1403 | (lambda _ | |
1404 | (substitute* "spec/spec_helper.rb" | |
1405 | ((".*[Bb]undler.*") "")) | |
1406 | #t)) | |
1407 | (replace 'check | |
1408 | (lambda* (#:key tests? #:allow-other-keys) | |
1409 | (when tests? | |
1410 | (invoke "rspec" "-Ilib" "-rprawn-svg")) | |
1411 | #t))))) | |
1412 | (native-inputs | |
1413 | `(("ruby-rspec" ,ruby-rspec))) | |
1414 | (propagated-inputs | |
1415 | `(("ruby-css-parser" ,ruby-css-parser) | |
1416 | ("ruby-prawn" ,ruby-prawn))) | |
1417 | (synopsis "SVG renderer for the Prawn PDF library") | |
1418 | (description "This library allows rendering Scalable Vector Graphics (SVG) | |
1419 | graphics directly into a Portable Document Format (PDF) document using the | |
1420 | Prawn module.") | |
1421 | (home-page "https://github.com/mogest/prawn-svg") | |
1422 | (license license:expat))) | |
1423 | ||
ce52f2b1 MC |
1424 | (define-public ruby-prawn-templates |
1425 | (package | |
1426 | (name "ruby-prawn-templates") | |
1427 | (version "0.1.2") | |
1428 | (source | |
1429 | (origin | |
1430 | (method git-fetch) | |
1431 | (uri (git-reference | |
8ed4c468 | 1432 | (url "https://github.com/prawnpdf/prawn-templates") |
ce52f2b1 MC |
1433 | (commit version))) |
1434 | (file-name (git-file-name name version)) | |
1435 | (sha256 | |
1436 | (base32 | |
1437 | "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl")))) | |
1438 | (build-system ruby-build-system) | |
1439 | (arguments | |
1440 | `(#:phases (modify-phases %standard-phases | |
1441 | (add-after 'unpack 'do-not-use-bundler | |
1442 | (lambda _ | |
1443 | (substitute* "spec/spec_helper.rb" | |
1444 | ((".*[Bb]undler.*") "")) | |
1445 | #t)) | |
1446 | (replace 'check | |
1447 | (lambda* (#:key tests? #:allow-other-keys) | |
1448 | (when tests? | |
1449 | (invoke "rspec")) | |
1450 | #t))))) | |
1451 | (native-inputs | |
1452 | `(("ruby-pdf-inspector" ,ruby-pdf-inspector) | |
1453 | ("ruby-rspec" ,ruby-rspec))) | |
1454 | (propagated-inputs | |
1455 | `(("ruby-pdf-reader" ,ruby-pdf-reader) | |
1456 | ("ruby-prawn" ,ruby-prawn))) | |
1457 | (synopsis "Prawn extension to include or combine PDF documents") | |
1458 | (description "This @strong{unmaintained} package provides a Prawn | |
1459 | extension that allows including other Portable Document Format (PDF) documents | |
1460 | as background or combining several PDF documents into one. This functionality | |
1461 | used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because | |
1462 | of its many longstanding issues.") | |
1463 | (home-page "https://github.com/prawnpdf/prawn-templates") | |
1464 | (license %prawn-project-licenses))) | |
1465 | ||
f949b60e MC |
1466 | (define-public ruby-polyglot |
1467 | (package | |
1468 | (name "ruby-polyglot") | |
1469 | (version "0.3.5") | |
1470 | (source | |
1471 | (origin | |
1472 | (method url-fetch) | |
1473 | (uri (rubygems-uri "polyglot" version)) | |
1474 | (sha256 | |
1475 | (base32 | |
1476 | "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr")))) | |
1477 | (build-system ruby-build-system) | |
1478 | (arguments `(#:tests? #f)) ;no test suite | |
1479 | (synopsis "Augment @code{require} to load non-Ruby file types") | |
1480 | (description "The Polyglot library allows a Ruby module to register a | |
1481 | loader for the file type associated with a filename extension, and it augments | |
1482 | @code{require} to find and load matching files.") | |
1483 | (home-page "https://github.com/cjheath/polyglot") | |
1484 | (license license:expat))) | |
1485 | ||
1f183ca0 MC |
1486 | (define-public ruby-treetop |
1487 | (package | |
1488 | (name "ruby-treetop") | |
1489 | (version "1.6.10") | |
1490 | (source | |
1491 | (origin | |
1492 | (method git-fetch) ;no test suite in distributed gem | |
1493 | (uri (git-reference | |
8ed4c468 | 1494 | (url "https://github.com/cjheath/treetop") |
1f183ca0 MC |
1495 | (commit (string-append "v" version)))) |
1496 | (file-name (git-file-name name version)) | |
1497 | (sha256 | |
1498 | (base32 | |
1499 | "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv")))) | |
1500 | (build-system ruby-build-system) | |
1501 | (arguments | |
1502 | `(#:test-target "spec" | |
1503 | #:phases | |
1504 | (modify-phases %standard-phases | |
1505 | (replace 'replace-git-ls-files | |
1506 | (lambda _ | |
1507 | ;; TODO: Remove after the fix of using 'cut' to better mimic the | |
1508 | ;; git ls-files output is merged in ruby-build-system. | |
1509 | (substitute* "treetop.gemspec" | |
1510 | (("`git ls-files -z`") | |
1511 | "`find . -type f -print0 |sort -z|cut -zc3-`")) | |
1512 | #t))))) | |
1513 | (native-inputs | |
1514 | `(("ruby-activesupport" ,ruby-activesupport) | |
1515 | ("ruby-rr" ,ruby-rr) | |
1516 | ("ruby-rspec" ,ruby-rspec))) | |
1517 | (propagated-inputs | |
1518 | `(("ruby-polyglot" ,ruby-polyglot))) | |
1519 | (synopsis "Ruby-based parsing DSL based on parsing expression grammars") | |
1520 | (description "This package provides a Ruby-based Parsing Expression | |
1521 | Grammar (PEG) parser generator Domain Specific Language (DSL).") | |
1522 | (home-page "https://github.com/cjheath/treetop") | |
1523 | (license license:expat))) | |
1524 | ||
b47c85a5 GL |
1525 | (define-public ruby-typhoeus |
1526 | (package | |
1527 | (name "ruby-typhoeus") | |
1528 | (version "1.4.0") | |
1529 | (source | |
1530 | (origin | |
1531 | (method url-fetch) | |
1532 | (uri (rubygems-uri "typhoeus" version)) | |
1533 | (sha256 | |
1534 | (base32 | |
1535 | "1m22yrkmbj81rzhlny81j427qdvz57yk5wbcf3km0nf3bl6qiygz")))) | |
1536 | (build-system ruby-build-system) | |
1537 | (arguments | |
1538 | `(#:tests? #f)) ; no included tests | |
1539 | (propagated-inputs | |
1540 | `(("ruby-ethon" ,ruby-ethon))) | |
1541 | (synopsis "@code{libcurl} wrapper in Ruby") | |
1542 | (description | |
1543 | "Like a modern code version of the mythical beast with 100 serpent heads, | |
1544 | Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling | |
1545 | logic.") | |
1546 | (home-page "https://github.com/typhoeus/typhoeus") | |
1547 | (license license:expat))) | |
1548 | ||
8588e668 EF |
1549 | (define-public ruby-rubocop-rspec |
1550 | (package | |
1551 | (name "ruby-rubocop-rspec") | |
1552 | (version "2.2.0") | |
1553 | (source | |
1554 | (origin | |
1555 | (method git-fetch) | |
1556 | (uri (git-reference | |
1557 | (url "https://github.com/rubocop-hq/rubocop-rspec") | |
1558 | (commit (string-append "v" version)))) | |
1559 | (file-name (git-file-name name version)) | |
1560 | (sha256 | |
1561 | (base32 | |
1562 | "0gdpjpympb6qc77bang759z7z6lckf14ghkx8v6614agxg8l3g5y")))) | |
1563 | (build-system ruby-build-system) | |
1564 | (arguments | |
1565 | '(#:test-target "internal_investigation" | |
1566 | #:phases | |
1567 | (modify-phases %standard-phases | |
1568 | (add-before 'check 'set-HOME | |
1569 | (lambda _ | |
1570 | (setenv "HOME" "/tmp") | |
1571 | #t))))) | |
1572 | (propagated-inputs | |
1573 | `(("ruby-rubocop" ,ruby-rubocop) | |
1574 | ("ruby-rubocop-ast" ,ruby-rubocop-ast))) | |
1575 | (native-inputs | |
1576 | `(("ruby-rack" ,ruby-rack) | |
1577 | ("ruby-rspec" ,ruby-rspec) | |
1578 | ("ruby-rubocop-performance" ,ruby-rubocop-performance) | |
1579 | ("ruby-simplecov" ,ruby-simplecov) | |
1580 | ("ruby-yard" ,ruby-yard))) | |
1581 | (synopsis "Code style checking for RSpec files") | |
1582 | (description "This package provides a plugin for the RuboCop code style | |
1583 | enforcing & linting tool.") | |
1584 | (home-page "https://github.com/rubocop-hq/rubocop-rspec") | |
1585 | (license license:expat))) | |
1586 | ||
301d1bac EF |
1587 | (define-public ruby-rubocop-rspec-minimal |
1588 | (hidden-package | |
1589 | (package | |
1590 | (inherit ruby-rubocop-rspec) | |
1591 | (arguments | |
1592 | (substitute-keyword-arguments (package-arguments ruby-rubocop-rspec) | |
1593 | ((#:tests? _ #f) #f))) | |
1594 | (propagated-inputs '()) | |
1595 | (native-inputs '())))) | |
1596 | ||
66861792 MC |
1597 | (define-public ruby-rubocop-performance |
1598 | (package | |
1599 | (name "ruby-rubocop-performance") | |
cc128eef | 1600 | (version "1.9.2") |
66861792 MC |
1601 | (source |
1602 | (origin | |
cc128eef EF |
1603 | (method git-fetch) |
1604 | (uri (git-reference | |
1605 | (url "https://github.com/rubocop-hq/rubocop-performance") | |
1606 | (commit (string-append "v" version)))) | |
1607 | (file-name (git-file-name name version)) | |
66861792 MC |
1608 | (sha256 |
1609 | (base32 | |
cc128eef | 1610 | "04lmkmz6c0ccs5miikrww7lakp7y6xz00g7b47ay7rn7sx5j6qyf")))) |
66861792 MC |
1611 | (build-system ruby-build-system) |
1612 | (arguments | |
cc128eef EF |
1613 | `(#:tests? #f ; tests require a git checkout of rubocop's source code. |
1614 | #:phases | |
1615 | (modify-phases %standard-phases | |
1616 | (replace 'replace-git-ls-files | |
1617 | (lambda _ | |
1618 | (substitute* "rubocop-performance.gemspec" | |
1619 | (("`git ls-files -z config lib LICENSE.txt README.md`") | |
1620 | "`find config lib LICENSE.txt README.md -type f -print0 |sort -z`")) | |
1621 | #t)) | |
1622 | (add-before 'check 'set-HOME | |
1623 | (lambda _ | |
1624 | (setenv "HOME" "/tmp") | |
1625 | #t))))) | |
66861792 | 1626 | (propagated-inputs |
cc128eef EF |
1627 | `(("ruby-rubocop" ,ruby-rubocop) |
1628 | ("ruby-rubocop-ast" ,ruby-rubocop-ast))) | |
1629 | (native-inputs | |
1630 | `(("ruby-bump" ,ruby-bump) | |
1631 | ("ruby-yard" ,ruby-yard))) | |
66861792 MC |
1632 | (synopsis "Performance optimizations checkers for Ruby code") |
1633 | (description "This package provides a collection of RuboCop cops to check | |
1634 | for performance optimizations in Ruby code.") | |
1635 | (home-page "https://docs.rubocop.org/rubocop-performance/") | |
1636 | (license license:expat))) | |
1637 | ||
301d1bac EF |
1638 | (define-public ruby-rubocop-performance-minimal |
1639 | (hidden-package | |
1640 | (package | |
1641 | (inherit ruby-rubocop-performance) | |
1642 | (arguments | |
1643 | (substitute-keyword-arguments (package-arguments ruby-rubocop-performance) | |
1644 | ((#:tests? _ #f) #f))) | |
1645 | (propagated-inputs '()) | |
1646 | (native-inputs '())))) | |
1647 | ||
c7ab342a MC |
1648 | (define-public ruby-gimme |
1649 | (let ((revision "1") | |
1650 | (commit "4e71f0236f1271871916dd403261d26533db34c0")) | |
1651 | (package | |
1652 | (name "ruby-gimme") | |
1653 | (version (git-version "0.5.0" revision commit)) | |
1654 | (source | |
1655 | (origin | |
1656 | (method git-fetch) | |
1657 | (uri (git-reference | |
8ed4c468 | 1658 | (url "https://github.com/searls/gimme") |
c7ab342a MC |
1659 | (commit commit))) |
1660 | (file-name (git-file-name name version)) | |
1661 | (sha256 | |
1662 | (base32 | |
1663 | "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6")))) | |
1664 | (build-system ruby-build-system) | |
1665 | (native-inputs | |
1666 | `(("ruby-coveralls" ,ruby-coveralls) | |
1667 | ("ruby-cucumber" ,ruby-cucumber) | |
1668 | ("ruby-pry" ,ruby-pry) | |
1669 | ("ruby-simplecov" ,ruby-simplecov) | |
1670 | ("ruby-rspec-given" ,ruby-rspec-given))) | |
1671 | (arguments | |
1672 | `(;; The cucumber task fails with error: "index 3 out of matches | |
1673 | ;; (IndexError)", apparently due to our newer Cucumber version. | |
1674 | ;; TODO: Try the "default" task with a future release. | |
1675 | #:test-target "spec" | |
1676 | #:phases | |
1677 | (modify-phases %standard-phases | |
1678 | (add-after 'extract-gemspec 'prepare-for-tests | |
1679 | (lambda _ | |
1680 | ;; Delete failing tests (possibly due to our newer rspec | |
1681 | ;; version). | |
1682 | (delete-file "spec/gimme/gives_class_methods_spec.rb") | |
1683 | (delete-file "spec/gimme/rspec_adapter_spec.rb") | |
1684 | (delete-file "spec/gimme/verifies_class_methods_spec.rb") | |
1685 | ;; Fix duplicate version requirements and de-register files. | |
1686 | (delete-file "Gemfile") | |
1687 | (delete-file "Gemfile.lock") | |
1688 | (substitute* "gimme.gemspec" | |
1689 | ((".*\"Gemfile\".*") "") | |
1690 | ((".*\"Gemfile\\.lock\",.*") "") | |
1691 | ((".*(rspec|cucumber).*\">= 0\".*") "") | |
1692 | (("\"spec/gimme/gives_class_methods_spec.rb\",") "") | |
1693 | (("\"spec/gimme/rspec_adapter_spec.rb\",") "") | |
1694 | (("\"spec/gimme/verifies_class_methods_spec.rb\",") "") | |
1695 | ;; All of these gems relate to development, and are | |
1696 | ;; unnecessary when running the tests. | |
1697 | ((".*(add|gem).*guard-.*") "") | |
1698 | ((".*(add|gem).*jeweler.*") "") | |
1699 | ((".*(add|gem).*pry.*") "") | |
1700 | ((".*(add|gem).*growl.*") "") | |
1701 | ((".*(add|gem).*rb-fsevent.*") "")) | |
1702 | #t))))) | |
1703 | (synopsis "Lightweight test double library for Ruby") | |
1704 | (description "Gimme is a very lightweight test double library for Ruby, | |
1705 | based on Mockito (a mocking framework for Java). It is an opinionated (but | |
1706 | not noisy) means to facilitate test-driving by enabling the authors to specify | |
1707 | only what they care about.") | |
1708 | (home-page "https://github.com/searls/gimme") | |
1709 | (license license:expat)))) | |
1710 | ||
97295c2a MC |
1711 | (define-public ruby-standard |
1712 | (package | |
1713 | (name "ruby-standard") | |
1714 | (version "0.4.7") | |
1715 | (source | |
1716 | (origin | |
1717 | (method git-fetch) ;no test suite in distributed gem | |
1718 | (uri (git-reference | |
8ed4c468 | 1719 | (url "https://github.com/testdouble/standard") |
97295c2a MC |
1720 | (commit (string-append "v" version)))) |
1721 | (file-name (git-file-name name version)) | |
1722 | (sha256 | |
1723 | (base32 | |
1724 | "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv")))) | |
1725 | (build-system ruby-build-system) | |
1726 | (arguments | |
1727 | ;; TODO: the tests are currently broken due to using a newer Rubocop. | |
1728 | `(#:tests? #f | |
1729 | #:phases | |
1730 | (modify-phases %standard-phases | |
1731 | (add-after 'unpack 'relax-version-requiremens | |
1732 | (lambda _ | |
1733 | (delete-file "Gemfile") | |
1734 | (delete-file "Gemfile.lock") | |
1735 | #t)) | |
1736 | (replace 'replace-git-ls-files | |
1737 | (lambda _ | |
1738 | ;; TODO: Remove after the fix of using 'cut' to better mimic the | |
1739 | ;; git ls-files output is merged in ruby-build-system. | |
1740 | (substitute* "standard.gemspec" | |
1741 | (("`git ls-files -z`") | |
1742 | "`find . -type f -not -regex '.*\\.gem$' -print0 \ | |
1743 | |sort -z|cut -zc3-`")) | |
1744 | #t))))) | |
1745 | (native-inputs | |
1746 | `(("ruby-gimme" ,ruby-gimme) | |
1747 | ("ruby-pry" ,ruby-pry) | |
1748 | ("ruby-simplecov" ,ruby-simplecov))) | |
1749 | (propagated-inputs | |
1750 | `(("ruby-rubocop" ,ruby-rubocop) | |
1751 | ("ruby-rubocop-performance" ,ruby-rubocop-performance))) | |
1752 | (synopsis "Ruby Style Guide, with linter & automatic code fixer") | |
1753 | (description "Standard is a port of StandardJS. Like StandardJS, it aims | |
1754 | to save time in the following ways: | |
1755 | @itemize | |
1756 | @item No configuration. | |
1757 | @item Automatically format code. | |
1758 | @item Catch style issues and programmer errors early. | |
1759 | @end itemize") | |
1760 | (home-page "https://github.com/testdouble/standard") | |
1761 | (license license:expat))) | |
1762 | ||
db9f951b | 1763 | (define-public ruby-chunky-png |
4c91f184 MC |
1764 | (package |
1765 | (name "ruby-chunky-png") | |
d065517b | 1766 | (version "1.3.14") |
4c91f184 MC |
1767 | (source |
1768 | (origin | |
1769 | (method git-fetch) | |
1770 | (uri (git-reference | |
8ed4c468 | 1771 | (url "https://github.com/wvanbergen/chunky_png") |
4c91f184 MC |
1772 | (commit (string-append "v" version)))) |
1773 | (file-name (git-file-name name version)) | |
1774 | (sha256 | |
d065517b | 1775 | (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h")))) |
4c91f184 MC |
1776 | (build-system ruby-build-system) |
1777 | (arguments | |
1778 | `(#:test-target "spec" | |
1779 | #:phases | |
1780 | (modify-phases %standard-phases | |
1781 | (add-after 'unpack 'disable-bundler | |
1782 | (lambda _ | |
1783 | (substitute* (find-files "." "\\.rb$") | |
1784 | (("require.*bundler/setup.*") "")) | |
1785 | #t)) | |
1786 | (replace 'replace-git-ls-files | |
1787 | (lambda _ | |
1788 | ;; TODO: Remove after the fix of using 'cut' to better mimic the | |
1789 | ;; git ls-files output is merged in ruby-build-system. | |
1790 | (substitute* "chunky_png.gemspec" | |
1791 | (("`git ls-files`") | |
1792 | "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`")) | |
1793 | #t))))) | |
1794 | (native-inputs | |
1795 | `(("bundler" ,bundler) | |
1796 | ("ruby-rspec" ,ruby-rspec) | |
1797 | ("ruby-standard" ,ruby-standard) | |
1798 | ("ruby-yard" ,ruby-yard))) | |
1799 | (synopsis "Ruby library to handle PNG images") | |
1800 | (description "ChunkyPNG is a pure Ruby library that can read and write | |
db9f951b MC |
1801 | Portable Network Graphics (PNG) images without depending on an external image |
1802 | library. It tries to be memory efficient and reasonably fast. It has | |
1803 | features such as: | |
1804 | @itemize | |
1805 | @item | |
1806 | Decoding support for any image that the PNG standard allows. This includes all | |
1807 | standard color modes, all bit depths, all transparency, and interlacing and | |
1808 | filtering options. | |
1809 | @item | |
1810 | Encoding support for images of all color modes (true color, grayscale, and | |
1811 | indexed) and transparency for all these color modes. The best color mode is | |
1812 | chosen automatically, based on the amount of used colors. | |
1813 | @item Read/write access to the image's pixels. | |
1814 | @item Read/write access to all image metadata that is stored in chunks. | |
1815 | @item | |
1816 | Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per | |
1817 | pixel, depending on the hardware). | |
1818 | @item | |
1819 | Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using | |
1820 | integer math and a highly optimized saving routine. | |
1821 | @item Interoperability with RMagick. | |
ed02857b TGR |
1822 | @end itemize |
1823 | ||
1824 | ChunkyPNG is vulnerable to decompression bombs and can run out of memory when | |
1825 | loading a specifically crafted PNG file. This is hard to fix in pure Ruby. | |
1826 | Deal with untrusted images in a separate process, e.g., by using @code{fork} | |
1827 | or a background processing library.") | |
4c91f184 MC |
1828 | (home-page "https://github.com/wvanbergen/chunky_png/wiki") |
1829 | (license license:expat))) | |
db9f951b | 1830 | |
f421785b MC |
1831 | (define-public ruby-text-hyphen |
1832 | (package | |
1833 | (name "ruby-text-hyphen") | |
1834 | (version "1.4.1") | |
1835 | (source | |
1836 | (origin | |
1837 | (method url-fetch) | |
1838 | (uri (rubygems-uri "text-hyphen" version)) | |
1839 | (sha256 | |
1840 | (base32 | |
1841 | "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1")))) | |
1842 | (build-system ruby-build-system) | |
1843 | (native-inputs | |
1844 | `(("ruby-hoe" ,ruby-hoe))) | |
1845 | (synopsis "Ruby library to hyphenate words in various languages") | |
1846 | (description "Text::Hyphen is a Ruby library to hyphenate words in various | |
1847 | languages using Ruby-fied versions of TeX hyphenation patterns. It will | |
1848 | properly hyphenate various words according to the rules of the language the | |
1849 | word is written in. The algorithm is based on that of the TeX typesetting | |
1850 | system by Donald E. Knuth.") | |
1851 | (home-page "https://github.com/halostatue/text-hyphen") | |
1852 | ;; The whole is licensed under the Expat license, but parts use various | |
1853 | ;; versions of the LaTeX Project Public License. | |
1854 | (license license:expat))) | |
1855 | ||
7d94616d MC |
1856 | (define-public ruby-open-uri-cached |
1857 | (package | |
1858 | (name "ruby-open-uri-cached") | |
1859 | (version "0.0.5") | |
1860 | (source | |
1861 | (origin | |
1862 | (method url-fetch) | |
1863 | (uri (rubygems-uri "open-uri-cached" version)) | |
1864 | (sha256 | |
1865 | (base32 | |
1866 | "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap")))) | |
1867 | (build-system ruby-build-system) | |
1868 | (arguments | |
1869 | `(#:tests? #f)) ;no test suite | |
1870 | (synopsis "OpenURI with transparent disk caching") | |
1871 | (description "OpenURI with transparent disk caching, which is | |
1872 | useful to avoid making excessive queries, for example when scraping | |
1873 | web pages.") | |
1874 | (home-page "https://github.com/tigris/open-uri-cached") | |
1875 | (license license:expat))) | |
1876 | ||
9c5a7d00 MC |
1877 | (define-public ruby-asciidoctor-pdf |
1878 | ;; Use the latest commit, as the last tag doesn't build with the | |
1879 | ;; latest Ruby dependencies in Guix. | |
1880 | (let ((revision "1") | |
1881 | (commit "d257440df895d1595a3825ef58b32e4b290ba1c3")) | |
1882 | (package | |
1883 | (name "ruby-asciidoctor-pdf") | |
1884 | (version (git-version "1.5.3" revision commit)) | |
1885 | (source | |
1886 | (origin | |
1887 | (method git-fetch) ;no test suite in the distributed gem | |
1888 | (uri (git-reference | |
8ed4c468 | 1889 | (url "https://github.com/asciidoctor/asciidoctor-pdf") |
9c5a7d00 MC |
1890 | (commit commit))) |
1891 | (file-name (git-file-name name version)) | |
1892 | (sha256 | |
1893 | (base32 | |
1894 | "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj")))) | |
1895 | (build-system ruby-build-system) | |
1896 | (arguments | |
1897 | `(#:test-target "spec" | |
1898 | #:phases | |
1899 | (modify-phases %standard-phases | |
1900 | (add-after 'unpack 'remove-failing-tests | |
1901 | ;; Two tests module fail for unknown reasons, *only* when | |
1902 | ;; ran in the build container (see: | |
1903 | ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965). | |
1904 | (lambda _ | |
1905 | (delete-file "spec/audio_spec.rb") | |
1906 | (delete-file "spec/video_spec.rb") | |
1907 | #t)) | |
1908 | (add-after 'extract-gemspec 'strip-version-requirements | |
1909 | (lambda _ | |
1910 | (substitute* "asciidoctor-pdf.gemspec" | |
1911 | (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) | |
1912 | (string-append stripped "\n"))) | |
1913 | #t)) | |
1914 | (replace 'replace-git-ls-files | |
1915 | ;; TODO: Remove after the fix of using 'cut' to better mimic the | |
1916 | ;; git ls-files output is merged in ruby-build-system. | |
1917 | (lambda _ | |
1918 | (substitute* "asciidoctor-pdf.gemspec" | |
1919 | (("`git ls-files -z`") | |
1920 | "`find . -type f -not -regex '.*\\.gem$' -print0 \ | |
1921 | |sort -z|cut -zc3-`")) | |
1922 | #t)) | |
1923 | ;; The tests rely on the Gem being installed, so move the check phase | |
1924 | ;; after the install phase. | |
1925 | (delete 'check) | |
1926 | (add-after 'install 'check | |
1927 | (lambda* (#:key outputs tests? #:allow-other-keys) | |
1928 | (let ((new-gem (string-append (assoc-ref outputs "out") | |
1929 | "/lib/ruby/vendor_ruby"))) | |
1930 | (setenv "GEM_PATH" | |
1931 | (string-append (getenv "GEM_PATH") ":" new-gem)) | |
1932 | (when tests? | |
1933 | (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network")) | |
1934 | #t)))))) | |
1935 | (native-inputs | |
1936 | `(("ruby-chunky-png" ,ruby-chunky-png) | |
1937 | ("ruby-coderay" ,ruby-coderay) | |
1938 | ("ruby-pdf-inspector" ,ruby-pdf-inspector) | |
1939 | ("ruby-rouge" ,ruby-rouge) | |
1940 | ("ruby-rspec" ,ruby-rspec))) | |
1941 | (propagated-inputs | |
1942 | `(("ruby-asciidoctor" ,ruby-asciidoctor) | |
1943 | ("ruby-concurrent-ruby" ,ruby-concurrent) | |
1944 | ("ruby-open-uri-cached" ,ruby-open-uri-cached) | |
1945 | ("ruby-prawn" ,ruby-prawn) | |
1946 | ("ruby-prawn-icon" ,ruby-prawn-icon) | |
1947 | ("ruby-prawn-svg" ,ruby-prawn-svg) | |
1948 | ("ruby-prawn-table" ,ruby-prawn-table) | |
1949 | ("ruby-prawn-templates" ,ruby-prawn-templates) | |
1950 | ("ruby-safe-yaml" ,ruby-safe-yaml) | |
1951 | ("ruby-text-hyphen" ,ruby-text-hyphen) | |
1952 | ("ruby-thread-safe" ,ruby-thread-safe) | |
1953 | ("ruby-treetop" ,ruby-treetop) | |
1954 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
1955 | (synopsis"AsciiDoc to Portable Document Format (PDF)} converter") | |
1956 | (description "Asciidoctor PDF is an extension for Asciidoctor that | |
1957 | converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn | |
1958 | PDF library. It has features such as: | |
1959 | @itemize | |
1960 | @item Direct AsciiDoc to PDF conversion | |
1961 | @item Configuration-driven theme (style and layout) | |
1962 | @item Scalable Vector Graphics (SVG) support | |
1963 | @item PDF document outline (i.e., bookmarks) | |
1964 | @item Table of contents page(s) | |
1965 | @item Document metadata (title, authors, subject, keywords, etc.) | |
1966 | @item Internal cross reference links | |
1967 | @item Syntax highlighting with Rouge, Pygments, or CodeRay | |
1968 | @item Page numbering | |
1969 | @item Customizable running content (header and footer) | |
1970 | @item | |
1971 | “Keep together” blocks (i.e., page breaks avoided in certain block content) | |
1972 | @item Orphaned section titles avoided | |
1973 | @item Autofit verbatim blocks (as permitted by base_font_size_min setting) | |
1974 | @item Table border settings honored | |
1975 | @item Font-based icons | |
1976 | @item Custom TrueType (TTF) fonts | |
1977 | @item Double-sided printing mode (margins alternate on recto and verso pages) | |
1978 | @end itemize") | |
1979 | (home-page "https://asciidoctor.org/docs/asciidoctor-pdf") | |
1980 | (license license:expat)))) | |
1981 | ||
d5840f77 CB |
1982 | (define-public ruby-ast |
1983 | (package | |
1984 | (name "ruby-ast") | |
308104f8 | 1985 | (version "2.4.1") |
d5840f77 CB |
1986 | (source |
1987 | (origin | |
308104f8 MC |
1988 | (method git-fetch) ;no test included in gem from v2.4.1 |
1989 | (uri (git-reference | |
1990 | (url "https://github.com/whitequark/ast") | |
1991 | (commit (string-append "v" version)))) | |
1992 | (file-name (git-file-name name version)) | |
d5840f77 CB |
1993 | (sha256 |
1994 | (base32 | |
308104f8 | 1995 | "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi")))) |
d5840f77 CB |
1996 | (build-system ruby-build-system) |
1997 | (arguments | |
1998 | '(#:phases | |
1999 | (modify-phases %standard-phases | |
2000 | (add-after 'unpack 'remove-coveralls-requirement | |
2001 | (lambda _ | |
2002 | (substitute* "test/helper.rb" | |
2003 | (("require 'coveralls'") "") | |
2004 | (("Coveralls::SimpleCov::Formatter") "")) | |
2005 | #t)) | |
2006 | (add-after 'extract-gemspec 'remove-unnecessary-requirements | |
2007 | (lambda _ | |
2008 | (substitute* "ast.gemspec" | |
2009 | ((".*coveralls.*") "\n") | |
2010 | (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n") | |
2011 | (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n") | |
2012 | (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n")) | |
2013 | #t))))) | |
2014 | (native-inputs | |
2015 | `(("bundler" ,bundler) | |
2016 | ("ruby-simplecov" ,ruby-simplecov) | |
2017 | ("ruby-json-pure" ,ruby-json-pure) | |
2018 | ("ruby-mime-times" ,ruby-mime-types) | |
2019 | ("ruby-yard" ,ruby-yard) | |
2020 | ("ruby-kramdown" ,ruby-kramdown) | |
2021 | ("ruby-rest-client" ,ruby-rest-client) | |
2022 | ("ruby-bacon" ,ruby-bacon) | |
2023 | ("ruby-bacon-colored-output" ,ruby-bacon-colored-output) | |
2024 | ("ruby-racc" ,ruby-racc))) | |
2025 | (synopsis "Library for working with Abstract Syntax Trees") | |
2026 | (description | |
2027 | "@code{ast} is a Ruby library for working with Abstract Syntax Trees. | |
2028 | It does this through immutable data structures.") | |
2029 | (home-page "https://whitequark.github.io/ast/") | |
2030 | (license license:expat))) | |
2031 | ||
b88502c9 BW |
2032 | (define-public ruby-sporkmonger-rack-mount |
2033 | ;; Testing the addressable gem requires a newer commit than that released, so | |
2034 | ;; use an up to date version. | |
2035 | (let ((revision "1") | |
2036 | (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3")) | |
2037 | (package | |
2038 | (name "ruby-sporkmonger-rack-mount") | |
2039 | (version (git-version "0.8.3" revision commit)) | |
2040 | (source (origin | |
2041 | (method git-fetch) | |
2042 | (uri (git-reference | |
b0e7b699 | 2043 | (url "https://github.com/sporkmonger/rack-mount") |
b88502c9 BW |
2044 | (commit commit))) |
2045 | (file-name (git-file-name name version)) | |
2046 | (sha256 | |
2047 | (base32 | |
2048 | "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq")))) | |
2049 | (build-system ruby-build-system) | |
2050 | (arguments | |
2051 | ;; Tests currently fail so disable them. | |
2052 | ;; https://github.com/sporkmonger/rack-mount/pull/1 | |
2053 | `(#:tests? #f)) | |
2054 | (propagated-inputs `(("ruby-rack" ,ruby-rack))) | |
2055 | (synopsis "Stackable dynamic tree based Rack router") | |
2056 | (description | |
2057 | "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to | |
2058 | continue trying routes if the response returns pass. This allows multiple | |
2059 | routes to be nested or stacked on top of each other.") | |
2060 | (home-page "https://github.com/sporkmonger/rack-mount") | |
2061 | (license license:expat)))) | |
2062 | ||
2f9e0b68 RW |
2063 | (define-public ruby-ci-reporter |
2064 | (package | |
2065 | (name "ruby-ci-reporter") | |
2066 | (version "2.0.0") | |
2067 | (source (origin | |
2068 | (method url-fetch) | |
2069 | (uri (rubygems-uri "ci_reporter" version)) | |
2070 | (sha256 | |
2071 | (base32 | |
2072 | "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg")))) | |
2073 | (build-system ruby-build-system) | |
2074 | (arguments | |
2075 | `(#:test-target "rspec")) | |
2076 | (propagated-inputs | |
2077 | `(("ruby-builder" ,ruby-builder))) | |
2078 | (native-inputs | |
2079 | `(("bundler" ,bundler) | |
2080 | ("ruby-rspec" ,ruby-rspec))) | |
2081 | (synopsis "Generate XML reports of runs test") | |
2082 | (description | |
2083 | "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows | |
2084 | you to generate XML reports of your test runs. The resulting files can be | |
2085 | read by a continuous integration system that understands Ant's JUnit report | |
2086 | format.") | |
2087 | (home-page "https://github.com/nicksieger/ci_reporter") | |
2088 | (license license:expat))) | |
2089 | ||
2ed201c1 CB |
2090 | (define-public ruby-contracts |
2091 | (package | |
2092 | (name "ruby-contracts") | |
2093 | (version "0.16.0") | |
2094 | (source | |
2095 | (origin | |
2096 | (method url-fetch) | |
2097 | (uri (rubygems-uri "contracts" version)) | |
2098 | (sha256 | |
2099 | (base32 | |
2100 | "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a")))) | |
2101 | (build-system ruby-build-system) | |
2102 | (arguments | |
2103 | '(#:test-target "spec" | |
2104 | #:phases | |
2105 | (modify-phases %standard-phases | |
2106 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
2107 | ;; bit unnecessary. | |
2108 | (add-after 'unpack 'dont-run-rubocop | |
2109 | (lambda _ | |
2110 | (substitute* "Rakefile" | |
2111 | ((".*rubocop.*") "") | |
2112 | ((".*RuboCop.*") "")) | |
2113 | #t))))) | |
2114 | (native-inputs | |
2115 | `(("ruby-rspec" ,ruby-rspec))) | |
2116 | (synopsis "Method contracts for Ruby") | |
2117 | (description | |
2118 | "This library provides contracts for Ruby. A contract describes the | |
2119 | correct inputs and output for a method, and will raise an error if a incorrect | |
2120 | value is found.") | |
2121 | (home-page "https://github.com/egonSchiele/contracts.ruby") | |
2122 | (license license:bsd-2))) | |
2123 | ||
6f8bf0eb CB |
2124 | (define-public ruby-crack |
2125 | (package | |
2126 | (name "ruby-crack") | |
16c0cc5c | 2127 | (version "0.4.5") |
6f8bf0eb CB |
2128 | (source |
2129 | (origin | |
2130 | (method url-fetch) | |
2131 | (uri (rubygems-uri "crack" version)) | |
2132 | (sha256 | |
2133 | (base32 | |
16c0cc5c | 2134 | "1cr1kfpw3vkhysvkk3wg7c54m75kd68mbm9rs5azdjdq57xid13r")))) |
6f8bf0eb CB |
2135 | (build-system ruby-build-system) |
2136 | (arguments | |
2137 | `(#:phases | |
2138 | (modify-phases %standard-phases | |
2139 | (replace 'check | |
2140 | (lambda* (#:key tests? #:allow-other-keys) | |
2141 | (when tests? | |
2142 | (for-each (lambda (file) | |
2143 | (display file)(display "\n") | |
2144 | (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file)) | |
2145 | (find-files "test" ".*rb$"))) | |
2146 | #t))))) | |
2147 | (propagated-inputs | |
16c0cc5c | 2148 | `(("ruby-rexml" ,ruby-rexml))) |
6f8bf0eb CB |
2149 | (synopsis "Simple JSON and XML parsing for Ruby") |
2150 | (description | |
2151 | "@code{crack} provides really simple JSON and XML parsing, extracted from | |
2152 | code in Merb and Rails.") | |
2153 | (home-page "https://github.com/jnunemaker/crack") | |
2154 | (license license:expat))) | |
2155 | ||
bef3506e CB |
2156 | (define-public ruby-cliver |
2157 | (package | |
2158 | (name "ruby-cliver") | |
2159 | (version "0.3.2") | |
2160 | (source | |
2161 | (origin | |
2162 | (method url-fetch) | |
2163 | (uri (rubygems-uri "cliver" version)) | |
2164 | (sha256 | |
2165 | (base32 | |
2166 | "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7")))) | |
2167 | (build-system ruby-build-system) | |
2168 | (arguments | |
2169 | '(#:phases | |
2170 | (modify-phases %standard-phases | |
2171 | ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3 | |
2172 | ;; would be nice, but the tests look to be incompatible: | |
2173 | ;; | |
2174 | ;; NoMethodError: undefined method `last_comment' | |
2175 | (replace 'check | |
2176 | (lambda* (#:key tests? #:allow-other-keys) | |
2177 | (when tests? | |
2178 | (invoke "rspec")) | |
2179 | #t))))) | |
2180 | (native-inputs | |
2181 | `(("bundler" ,bundler) | |
2182 | ("ruby-rspec" ,ruby-rspec-2))) | |
2183 | (synopsis "Assertions for command-line dependencies in Ruby") | |
2184 | (description | |
2185 | "@code{cliver} provides a way to detect missing command-line | |
2186 | dependencies, including versions.") | |
2187 | (home-page "https://github.com/yaauie/cliver") | |
2188 | (license license:expat))) | |
2189 | ||
fe5dd5f4 CB |
2190 | (define-public ruby-czmq-ffi-gen |
2191 | (package | |
2192 | (name "ruby-czmq-ffi-gen") | |
2193 | (version "0.13.0") | |
2194 | (source | |
2195 | (origin | |
2196 | (method url-fetch) | |
2197 | (uri (rubygems-uri "czmq-ffi-gen" version)) | |
2198 | (sha256 | |
2199 | (base32 | |
2200 | "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3")))) | |
2201 | (build-system ruby-build-system) | |
2202 | (arguments | |
2203 | '(#:tests? #f ;; Tests are not included in the release on rubygems.org | |
2204 | #:phases | |
2205 | (modify-phases %standard-phases | |
2206 | (add-after 'unpack 'patch-lib_dirs | |
2207 | (lambda* (#:key inputs #:allow-other-keys) | |
2208 | (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb" | |
2209 | (("lib\\_dirs = \\[.*\\]") | |
2210 | (string-append "lib_dirs = ['" | |
2211 | (assoc-ref inputs "czmq") "/lib" | |
2212 | "']"))) | |
2213 | (substitute* "lib/czmq-ffi-gen/libzmq.rb" | |
2214 | (("lib\\_dirs = \\[.*\\]") | |
2215 | (string-append "lib_dirs = ['" | |
2216 | (assoc-ref inputs "zeromq") "/lib" | |
2217 | "']")))))))) | |
2218 | (inputs | |
2219 | `(("zeromq" ,zeromq) | |
2220 | ("czmq" ,czmq))) | |
2221 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
2222 | (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)") | |
2223 | (description | |
2224 | "These Ruby bindings are not intended to be directly used, but rather | |
2225 | used by higher level bindings like those provided by CZTop.") | |
2226 | (home-page | |
2227 | "https://github.com/paddor/czmq-ffi-gen") | |
2228 | (license license:isc))) | |
2229 | ||
d0afff26 CB |
2230 | (define-public ruby-cztop |
2231 | (package | |
2232 | (name "ruby-cztop") | |
2233 | (version "0.12.2") | |
2234 | (source | |
2235 | (origin | |
2236 | (method url-fetch) | |
2237 | (uri (rubygems-uri "cztop" version)) | |
2238 | (sha256 | |
2239 | (base32 | |
2240 | "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa")))) | |
2241 | (build-system ruby-build-system) | |
2242 | (arguments | |
2243 | '(#:test-target "spec" | |
2244 | #:phases | |
2245 | (modify-phases %standard-phases | |
2246 | (add-after 'unpack 'patch-lib_paths | |
2247 | (lambda* (#:key inputs #:allow-other-keys) | |
2248 | (substitute* "lib/cztop/poller/zmq.rb" | |
2249 | (("lib\\_paths = \\[.*\\]") | |
2250 | (string-append "lib_paths = ['" | |
2251 | (assoc-ref inputs "zeromq") "/lib" | |
2252 | "']")))))))) | |
2253 | (native-inputs | |
2254 | `(("bundler" ,bundler) | |
2255 | ("ruby-rspec" ,ruby-rspec))) | |
2256 | (inputs | |
2257 | `(("zeromq" ,zeromq))) | |
2258 | (propagated-inputs | |
2259 | `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen))) | |
2260 | (synopsis "CZMQ Ruby bindings") | |
2261 | (description | |
2262 | "CZMQ Ruby bindings, based on the generated low-level FFI bindings of | |
2263 | CZMQ. The focus of of CZTop is on being easy to use and providing first class | |
2264 | support for security mechanisms.") | |
2265 | (home-page "https://github.com/paddor/cztop") | |
2266 | (license license:isc))) | |
2267 | ||
b004fb6a RW |
2268 | (define-public ruby-saikuro-treemap |
2269 | (package | |
2270 | (name "ruby-saikuro-treemap") | |
2271 | (version "0.2.0") | |
2272 | (source (origin | |
2273 | (method url-fetch) | |
2274 | (uri (rubygems-uri "saikuro_treemap" version)) | |
2275 | (sha256 | |
2276 | (base32 | |
2277 | "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950")))) | |
2278 | (build-system ruby-build-system) | |
2279 | ;; Some of the tests fail because the generated JSON has keys in a | |
2280 | ;; different order. This is a problem with the test suite rather than any | |
2281 | ;; of the involved libraries. | |
2282 | (arguments `(#:tests? #f)) | |
2283 | (propagated-inputs | |
2284 | `(("ruby-json-pure" ,ruby-json-pure) | |
2285 | ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro))) | |
2286 | (synopsis "Generate complexity treemap based on saikuro analysis") | |
2287 | (description | |
2288 | "This gem generates a treemap showing the complexity of Ruby code on | |
2289 | which it is run. It uses Saikuro under the covers to analyze Ruby code | |
2290 | complexity.") | |
7bf837fd | 2291 | (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap") |
b004fb6a RW |
2292 | (license license:expat))) |
2293 | ||
92b37500 CB |
2294 | (define-public ruby-oauth2 |
2295 | (package | |
2296 | (name "ruby-oauth2") | |
5dd10be5 | 2297 | (version "1.4.2") |
92b37500 CB |
2298 | (source |
2299 | (origin | |
2300 | (method url-fetch) | |
2301 | (uri (rubygems-uri "oauth2" version)) | |
2302 | (sha256 | |
5dd10be5 | 2303 | (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036")))) |
92b37500 CB |
2304 | (build-system ruby-build-system) |
2305 | (arguments | |
5dd10be5 | 2306 | '(#:tests? #f)) ; no included tests |
92b37500 CB |
2307 | (propagated-inputs |
2308 | `(("ruby-faraday" ,ruby-faraday) | |
2309 | ("ruby-jwt" ,ruby-jwt) | |
2310 | ("ruby-multi-json" ,ruby-multi-json) | |
2311 | ("ruby-multi-xml" ,ruby-multi-xml) | |
2312 | ("ruby-rack" ,ruby-rack))) | |
2313 | (synopsis "Ruby wrapper for the OAuth 2.0") | |
2314 | (description | |
2315 | "This package provides a Ruby wrapper for the OAuth 2.0 protocol built | |
2316 | with a similar style to the original OAuth spec.") | |
2317 | (home-page "https://github.com/oauth-xx/oauth2") | |
2318 | (license license:expat))) | |
2319 | ||
29dc4823 CB |
2320 | (define-public ruby-omniauth |
2321 | (package | |
2322 | (name "ruby-omniauth") | |
984d6438 | 2323 | (version "2.0.3") |
29dc4823 CB |
2324 | (source |
2325 | (origin | |
2326 | (method url-fetch) | |
2327 | (uri (rubygems-uri "omniauth" version)) | |
2328 | (sha256 | |
984d6438 | 2329 | (base32 "105mzgvmn2kjaacxw01h4wqv33r7hfn5z8fxlkk3jcjar14j71bh")))) |
29dc4823 | 2330 | (build-system ruby-build-system) |
29dc4823 CB |
2331 | (propagated-inputs |
2332 | `(("ruby-hashie" ,ruby-hashie) | |
984d6438 EF |
2333 | ("ruby-rack" ,ruby-rack) |
2334 | ("ruby-rack-protection" ,ruby-rack-protection))) | |
2335 | (native-inputs | |
2336 | `(("ruby-rspec" ,ruby-rspec))) | |
29dc4823 CB |
2337 | (synopsis "Generalized Rack framework for multiple-provider authentication") |
2338 | (description | |
2339 | "This package provides a generalized Rack framework for multiple-provider | |
2340 | authentication.") | |
2341 | (home-page "https://github.com/omniauth/omniauth") | |
2342 | (license license:expat))) | |
2343 | ||
d6084cdb CB |
2344 | (define-public ruby-omniauth-oauth2 |
2345 | (package | |
2346 | (name "ruby-omniauth-oauth2") | |
51b3ea8d | 2347 | (version "1.7.1") |
d6084cdb CB |
2348 | (source |
2349 | (origin | |
2350 | (method url-fetch) | |
2351 | (uri (rubygems-uri "omniauth-oauth2" version)) | |
2352 | (sha256 | |
2353 | (base32 | |
51b3ea8d | 2354 | "10fr2b58sp7l6nfdvxpbi67374hkrvsf507cvda89jjs0jacy319")))) |
d6084cdb CB |
2355 | (build-system ruby-build-system) |
2356 | (arguments | |
2357 | '(#:phases | |
2358 | (modify-phases %standard-phases | |
2359 | (add-after 'unpack 'remove-unnecessary-dependencies | |
2360 | (lambda _ | |
2361 | ;; The coveralls gem submits coverage information to an online | |
2362 | ;; service, and is unnecessary when running the tests | |
2363 | (substitute* "Gemfile" | |
2364 | ((".*coveralls\"") "")) | |
2365 | (substitute* "spec/helper.rb" | |
2366 | (("require \"coveralls\"") "") | |
2367 | (("Coveralls::SimpleCov::Formatter") "")) | |
2368 | #t))))) | |
2369 | (propagated-inputs | |
2370 | `(("ruby-oauth2" ,ruby-oauth2) | |
2371 | ("ruby-omniauth" ,ruby-omniauth))) | |
2372 | (native-inputs | |
2373 | `(("bundler" ,bundler) | |
2374 | ("ruby-rspec" ,ruby-rspec) | |
2375 | ("ruby-simplecov" ,ruby-simplecov) | |
2376 | ("ruby-rack-test" ,ruby-rack-test) | |
a4d61297 | 2377 | ("ruby-webmock" ,ruby-webmock))) |
d6084cdb CB |
2378 | (synopsis "Abstract OAuth2 strategy for OmniAuth") |
2379 | (description | |
2380 | "This library provides a generic OAuth2 strategy for OmniAuth. It | |
2381 | doesn't provide a way to gather user information, so should be used as a | |
2382 | building block for authentication strategies.") | |
2383 | (home-page "https://github.com/omniauth/omniauth-oauth2") | |
2384 | (license license:expat))) | |
2385 | ||
433e3154 CB |
2386 | (define-public ruby-open4 |
2387 | (package | |
2388 | (name "ruby-open4") | |
2389 | (version "1.3.4") | |
2390 | (source | |
2391 | (origin | |
2392 | (method url-fetch) | |
2393 | (uri (rubygems-uri "open4" version)) | |
2394 | (sha256 | |
2395 | (base32 | |
2396 | "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1")))) | |
2397 | (build-system ruby-build-system) | |
2398 | (arguments | |
2399 | '(#:phases | |
2400 | (modify-phases %standard-phases | |
2401 | (add-after 'unpack 'patch | |
2402 | (lambda _ | |
2403 | (substitute* "rakefile" | |
2404 | ;; Update the Rakefile so it works | |
2405 | (("-rubygems") "-rrubygems") | |
2406 | (("Config") "RbConfig")) | |
2407 | #t)) | |
2408 | (add-before 'check 'set-LIB | |
2409 | (lambda _ | |
2410 | ;; This is used in the rakefile when running the tests | |
2411 | (setenv "LIB" "open4") | |
2412 | #t))))) | |
2413 | (synopsis "Open child processes from Ruby and manage them easily") | |
2414 | (description | |
2415 | "@code{Open4} is a Ruby library to run child processes and manage their | |
2416 | input and output.") | |
2417 | (home-page "https://github.com/ahoward/open4") | |
2418 | (license license:ruby))) | |
2419 | ||
cef87ed6 CB |
2420 | (define-public ruby-options |
2421 | (package | |
2422 | (name "ruby-options") | |
2423 | (version "2.3.2") | |
2424 | (source | |
2425 | (origin | |
2426 | (method url-fetch) | |
2427 | (uri (rubygems-uri "options" version)) | |
2428 | (sha256 | |
2429 | (base32 | |
2430 | "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j")))) | |
2431 | (build-system ruby-build-system) | |
2432 | (arguments | |
2433 | '(#:tests? #f ;; TODO: NameError: uninitialized constant Config | |
2434 | #:phases | |
2435 | (modify-phases %standard-phases | |
2436 | (add-before 'check 'set-LIB | |
2437 | (lambda _ | |
2438 | ;; This is used in the Rakefile, and setting it avoids an issue | |
2439 | ;; with running the tests. | |
fe27238c CB |
2440 | (setenv "LIB" "options") |
2441 | #t))))) | |
cef87ed6 CB |
2442 | (synopsis "Ruby library to parse options from *args cleanly") |
2443 | (description | |
2444 | "The @code{options} library helps with parsing keyword options in Ruby | |
2445 | functions.") | |
2446 | (home-page "https://github.com/ahoward/options") | |
2447 | (license license:ruby))) | |
2448 | ||
d15dbe83 CB |
2449 | (define-public ruby-erubi |
2450 | (package | |
2451 | (name "ruby-erubi") | |
2452 | (version "1.8.0") | |
2453 | (source | |
2454 | (origin | |
2455 | (method url-fetch) | |
2456 | (uri (rubygems-uri "erubi" version)) | |
2457 | (sha256 | |
2458 | (base32 | |
2459 | "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1")))) | |
2460 | (build-system ruby-build-system) | |
2461 | (synopsis "ERB template engine for Ruby") | |
2462 | (description | |
2463 | "Erubi is a ERB template engine for Ruby. It is a simplified fork of | |
2464 | Erubis") | |
2465 | (home-page "https://github.com/jeremyevans/erubi") | |
2466 | (license license:expat))) | |
2467 | ||
d64ebebd BW |
2468 | (define-public ruby-erubis |
2469 | (package | |
2470 | (name "ruby-erubis") | |
2471 | (version "2.7.0") | |
2472 | (source | |
2473 | (origin | |
2474 | (method url-fetch) | |
2475 | (uri (rubygems-uri "erubis" version)) | |
2476 | (sha256 | |
2477 | (base32 | |
2478 | "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3")))) | |
2479 | (build-system ruby-build-system) | |
2480 | (arguments | |
2481 | '(#:tests? #f)) ; tests do not run properly with Ruby 2.0 | |
2482 | (synopsis "Implementation of embedded Ruby (eRuby)") | |
2483 | (description | |
2484 | "Erubis is a fast implementation of embedded Ruby (eRuby) with several | |
2485 | features such as multi-language support, auto escaping, auto trimming spaces | |
2486 | around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails | |
2487 | support.") | |
2488 | (home-page "http://www.kuwata-lab.com/erubis/") | |
2489 | (license license:expat))) | |
2490 | ||
45270b18 GL |
2491 | (define-public ruby-ethon |
2492 | (package | |
2493 | (name "ruby-ethon") | |
2494 | (version "0.12.0") | |
2495 | (source | |
2496 | (origin | |
2497 | (method url-fetch) | |
2498 | (uri (rubygems-uri "ethon" version)) | |
2499 | (sha256 | |
2500 | (base32 | |
2501 | "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9")))) | |
2502 | (build-system ruby-build-system) | |
2503 | (arguments | |
2504 | `(#:tests? #f)) ; no included tests | |
2505 | (inputs | |
2506 | `(("curl" ,curl))) | |
2507 | (propagated-inputs | |
2508 | `(("ruby-ffi" ,ruby-ffi))) | |
2509 | (synopsis "Very lightweight @code{libcurl} wrapper") | |
2510 | (description | |
2511 | "Ethon is a very basic @code{libcurl} wrapper using ffi.") | |
2512 | (home-page "https://github.com/typhoeus/ethon") | |
2513 | (license license:expat))) | |
2514 | ||
3ca43524 CB |
2515 | (define-public ruby-execjs |
2516 | (package | |
2517 | (name "ruby-execjs") | |
2518 | (version "2.7.0") | |
2519 | (source | |
2520 | (origin | |
2521 | ;; fetch from github as the gem does not contain testing code | |
2522 | (method git-fetch) | |
2523 | (uri (git-reference | |
b0e7b699 | 2524 | (url "https://github.com/rails/execjs") |
3ca43524 CB |
2525 | (commit (string-append "v" version)))) |
2526 | (file-name (git-file-name name version)) | |
2527 | (sha256 | |
2528 | (base32 | |
2529 | "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6")))) | |
2530 | (build-system ruby-build-system) | |
2531 | (native-inputs | |
2532 | `(("bundler" ,bundler) | |
2533 | ;; The test suite tests all the available backends. Currenly, this just | |
2534 | ;; means the node backend. | |
2535 | ;; | |
2536 | ;; PASSED: test:node | |
2537 | ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript, | |
2538 | ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8 | |
2539 | ("node" ,node))) | |
2540 | (synopsis "Run JavaScript code from Ruby") | |
2541 | (description | |
2542 | "ExecJS lets you run JavaScript code from Ruby. It automatically picks a | |
2543 | runtime to evaluate your JavaScript program, then returns the result to you as | |
2544 | a Ruby object.") | |
2545 | (home-page "https://github.com/rails/execjs") | |
2546 | (license license:expat))) | |
2547 | ||
6623a151 MB |
2548 | (define-public ruby-fakefs |
2549 | (package | |
2550 | (name "ruby-fakefs") | |
2551 | (version "1.2.2") | |
2552 | (home-page "https://github.com/fakefs/fakefs") | |
2553 | (source (origin | |
2554 | ;; The Rubygems release does not contain tests. | |
2555 | (method git-fetch) | |
2556 | (uri (git-reference | |
2557 | (url home-page) | |
2558 | (commit (string-append "v" version)))) | |
2559 | (file-name (git-file-name name version)) | |
2560 | (sha256 | |
2561 | (base32 | |
2562 | "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk")))) | |
2563 | (build-system ruby-build-system) | |
2564 | (arguments | |
2565 | '(#:phases (modify-phases %standard-phases | |
2566 | (replace 'replace-git-ls-files | |
2567 | (lambda _ | |
2568 | (substitute* "fakefs.gemspec" | |
2569 | (("`git ls-files lib README.md LICENSE`") | |
2570 | "`find lib README.md LICENSE -type f | sort`")) | |
2571 | #t)) | |
2572 | (add-before 'check 'remove-version-constraints | |
2573 | (lambda _ | |
2574 | ;; Drop hard version requirements for test dependencies. | |
2575 | (substitute* "fakefs.gemspec" | |
2576 | (("(.*add_development_dependency .*), .*" _ dep) | |
2577 | (string-append dep "\n"))) | |
a011f67b | 2578 | #t))))) |
6623a151 MB |
2579 | (native-inputs |
2580 | `(("ruby-bump" ,ruby-bump) | |
2581 | ("ruby-maxitest" ,ruby-maxitest) | |
2582 | ("ruby-rubocop" ,ruby-rubocop) | |
2583 | ("ruby-rspec" ,ruby-rspec))) | |
2584 | (synopsis "Fake file system for Ruby") | |
2585 | (description | |
2586 | "This package provides a fake file system for use in test suites. It | |
2587 | avoids the need for manually creating temporary directories, or dealing | |
2588 | with platform intricacies in @code{File} and @code{FileUtils}.") | |
2589 | (license license:expat))) | |
2590 | ||
cc53e630 RW |
2591 | (define-public ruby-orderedhash |
2592 | (package | |
2593 | (name "ruby-orderedhash") | |
2594 | (version "0.0.6") | |
2595 | (source (origin | |
2596 | (method url-fetch) | |
2597 | (uri (rubygems-uri "orderedhash" version)) | |
2598 | (sha256 | |
2599 | (base32 | |
2600 | "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7")))) | |
2601 | (build-system ruby-build-system) | |
2602 | (arguments | |
2603 | '(#:tests? #f)) ; no test suite | |
2604 | (synopsis "Ruby library providing an order-preserving hash") | |
2605 | (description "Orderedhash is a Ruby library providing a hash | |
2606 | implementation that preserves the order of items and features some array-like | |
2607 | extensions.") | |
2608 | (home-page "http://codeforpeople.com/lib/ruby/orderedhash/") | |
2609 | (license license:public-domain))) | |
2610 | ||
28c5d42d PP |
2611 | (define-public ruby-libxml |
2612 | (package | |
2613 | (name "ruby-libxml") | |
acbc5062 | 2614 | (version "3.0.0") |
28c5d42d PP |
2615 | (source |
2616 | (origin | |
2617 | (method url-fetch) | |
2618 | (uri (rubygems-uri "libxml-ruby" version)) | |
2619 | (sha256 | |
2620 | (base32 | |
acbc5062 | 2621 | "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54")))) |
28c5d42d PP |
2622 | (build-system ruby-build-system) |
2623 | (inputs | |
2624 | `(("zlib" ,zlib) | |
2625 | ("libxml2" ,libxml2))) | |
2626 | (arguments | |
2627 | '(#:tests? #f ; test suite hangs for unknown reason | |
2628 | #:gem-flags | |
5b98944d CB |
2629 | (list "--no-document" ; TODO: Re-enable when documentation |
2630 | ; generation works | |
2631 | "--" | |
28c5d42d PP |
2632 | (string-append "--with-xml2-include=" |
2633 | (assoc-ref %build-inputs "libxml2") | |
2634 | "/include/libxml2" )))) | |
2635 | (synopsis "Ruby bindings for GNOME Libxml2") | |
2636 | (description "The Libxml-Ruby project provides Ruby language bindings for | |
2637 | the GNOME Libxml2 XML toolkit.") | |
2f3800e5 | 2638 | (home-page "https://xml4r.github.com/libxml-ruby") |
28c5d42d PP |
2639 | (license license:expat))) |
2640 | ||
b3222518 CB |
2641 | (define-public ruby-lino |
2642 | (package | |
2643 | (name "ruby-lino") | |
2644 | (version "1.1.0") | |
2645 | (source | |
2646 | (origin | |
2647 | (method url-fetch) | |
2648 | (uri (rubygems-uri "lino" version)) | |
2649 | (sha256 | |
2650 | (base32 | |
2651 | "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3")))) | |
2652 | (build-system ruby-build-system) | |
2653 | (arguments | |
2654 | '(#:tests? #f)) ; No included tests | |
2655 | (propagated-inputs | |
2656 | `(("ruby-hamster" ,ruby-hamster) | |
2657 | ("ruby-open4" ,ruby-open4))) | |
2658 | (synopsis "Build and execute commands in Ruby") | |
2659 | (description | |
2660 | "@code{Lino} provides an interface to run external commands. It provides | |
2661 | an interface to add options as well as managing the standard input, output and | |
2662 | error streams.") | |
2663 | (home-page "https://github.com/tobyclemson/lino") | |
2664 | (license license:expat))) | |
2665 | ||
8b9bde07 RW |
2666 | (define-public ruby-xml-simple |
2667 | (package | |
2668 | (name "ruby-xml-simple") | |
2669 | (version "1.1.5") | |
2670 | (source (origin | |
2671 | (method url-fetch) | |
2672 | (uri (rubygems-uri "xml-simple" version)) | |
2673 | (sha256 | |
2674 | (base32 | |
2675 | "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8")))) | |
2676 | (build-system ruby-build-system) | |
2677 | (arguments | |
2678 | '(#:tests? #f)) ; no test suite | |
2679 | (synopsis "Simple Ruby library for XML processing") | |
2680 | (description "This library provides a simple API for XML processing in | |
2681 | Ruby.") | |
2682 | (home-page "https://github.com/maik/xml-simple") | |
2683 | (license license:ruby))) | |
2684 | ||
2cb3ab48 RW |
2685 | (define-public ruby-thor |
2686 | (package | |
2687 | (name "ruby-thor") | |
bb719d6a | 2688 | (version "1.0.1") |
2cb3ab48 | 2689 | (source (origin |
bb719d6a MB |
2690 | ;; Pull from git because the gem has no tests. |
2691 | (method git-fetch) | |
2692 | (uri (git-reference | |
2693 | (url "https://github.com/erikhuda/thor") | |
2694 | (commit (string-append "v" version)))) | |
2695 | (file-name (git-file-name name version)) | |
2cb3ab48 RW |
2696 | (sha256 |
2697 | (base32 | |
bb719d6a | 2698 | "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57")))) |
2cb3ab48 RW |
2699 | (build-system ruby-build-system) |
2700 | (arguments | |
bb719d6a MB |
2701 | '(#:phases (modify-phases %standard-phases |
2702 | (add-after 'unpack 'fix-readline-tests | |
2703 | (lambda _ | |
2704 | ;; Ensure Readline is initialized before running the | |
2705 | ;; test to avoid a type clash with the mock ::Readline. | |
2706 | ;; See <https://github.com/erikhuda/thor/pull/717>. | |
2707 | (substitute* "spec/line_editor/readline_spec.rb" | |
2708 | (("unless defined\\? ::Readline" all) | |
2709 | (string-append "Thor::LineEditor::Readline.available?\n" | |
2710 | all))) | |
2711 | #t)) | |
2712 | (add-after 'unpack 'remove-coveralls-dependency | |
2713 | (lambda _ | |
2714 | ;; Do not hook the test suite into the online | |
2715 | ;; coveralls service. | |
2716 | (substitute* "Gemfile" | |
2717 | ((".*coveralls.*") "")) | |
2718 | (substitute* "spec/helper.rb" | |
2719 | (("require \"coveralls\"") "") | |
2720 | (("Coveralls::SimpleCov::Formatter") "") | |
2721 | ;; Also drop the WebMock dependency which is only | |
2722 | ;; present to allow a coveralls.io connection, and | |
2723 | ;; would otherwise introduce a circular dependency. | |
2724 | (("require \"webmock/rspec\"") "") | |
2725 | (("WebMock\\.disable_net_connect.*") "")) | |
2726 | #t)) | |
2727 | (add-after 'unpack 'disable-network-tests | |
2728 | (lambda _ | |
2729 | ;; These tests attempt to look up example.com. | |
2730 | (substitute* "spec/actions/file_manipulation_spec.rb" | |
2731 | (("it \"accepts (https?) remote sources" _ proto) | |
2732 | (string-append "xit \"accepts " proto " remote sources"))) | |
2733 | #t)) | |
2734 | (add-after 'unpack 'disable-quality-tests | |
2735 | (lambda _ | |
2736 | ;; These tests attempt to check the git repository for | |
2737 | ;; tabs vs spaces, double vs single quotes, etc, and | |
2738 | ;; depend on the git checkout. | |
2739 | (delete-file "spec/quality_spec.rb") | |
2740 | #t)) | |
2741 | (add-before 'check 'make-files-writable | |
2742 | (lambda _ | |
2743 | ;; The tests needs rw access to the test suite. | |
2744 | (for-each make-file-writable (find-files "spec")) | |
2745 | #t)) | |
2746 | (replace 'check | |
2747 | (lambda _ | |
2748 | (invoke "rspec" "spec")))))) | |
2cb3ab48 | 2749 | (native-inputs |
bb719d6a MB |
2750 | `(("ruby-rspec" ,ruby-rspec) |
2751 | ("ruby-simplecov" ,ruby-simplecov))) | |
2cb3ab48 RW |
2752 | (synopsis "Ruby toolkit for building command-line interfaces") |
2753 | (description "Thor is a toolkit for building powerful command-line | |
2754 | interfaces.") | |
2755 | (home-page "http://whatisthor.com/") | |
2756 | (license license:expat))) | |
2757 | ||
ec79018e RW |
2758 | (define-public ruby-lumberjack |
2759 | (package | |
2760 | (name "ruby-lumberjack") | |
41700efa | 2761 | (version "1.0.13") |
ec79018e RW |
2762 | (source (origin |
2763 | (method url-fetch) | |
2764 | (uri (rubygems-uri "lumberjack" version)) | |
2765 | (sha256 | |
2766 | (base32 | |
41700efa | 2767 | "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n")))) |
ec79018e RW |
2768 | (build-system ruby-build-system) |
2769 | (native-inputs | |
8be62d3f BW |
2770 | `(("ruby-rspec" ,ruby-rspec) |
2771 | ("ruby-timecop" ,ruby-timecop))) | |
ec79018e RW |
2772 | (synopsis "Logging utility library for Ruby") |
2773 | (description "Lumberjack is a simple logging utility that can be a drop in | |
2774 | replacement for Logger or ActiveSupport::BufferedLogger. It provides support | |
2775 | for automatically rolling log files even with multiple processes writing the | |
2776 | same log file.") | |
7bf837fd | 2777 | (home-page "https://github.com/bdurand/lumberjack") |
ec79018e RW |
2778 | (license license:expat))) |
2779 | ||
2a9ce5cb CB |
2780 | (define-public ruby-rbnacl |
2781 | (package | |
2782 | (name "ruby-rbnacl") | |
2783 | (version "6.0.1") | |
2784 | (source | |
2785 | (origin | |
2786 | (method url-fetch) | |
2787 | (uri (rubygems-uri "rbnacl" version)) | |
2788 | (sha256 | |
2789 | (base32 | |
2790 | "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn")))) | |
2791 | (build-system ruby-build-system) | |
2792 | (arguments | |
2793 | `(#:phases | |
2794 | (modify-phases %standard-phases | |
2795 | (add-after 'unpack 'remove-unnecessary-dependencies | |
2796 | (lambda _ | |
2797 | ;; Coveralls relates to a network service, and Rubocop to code | |
2798 | ;; linting and both are unnecessary to run the tests | |
2799 | (substitute* "Gemfile" | |
2800 | ((".*rubocop.*") "\n") | |
2801 | ((".*guard-rspec.*") "\n") | |
2802 | ((".*coveralls.*") "\n")) | |
2803 | (substitute* "spec/spec_helper.rb" | |
2804 | (("require \"coveralls\"") "") | |
2805 | (("Coveralls.wear!") "")) | |
2806 | #t)) | |
2807 | (add-after 'unpack 'use-libsodium-from-store | |
2808 | (lambda* (#:key inputs #:allow-other-keys) | |
2809 | (substitute* '("lib/rbnacl/init.rb" | |
2810 | "lib/rbnacl/sodium.rb") | |
2811 | (("ffi_lib \\[.+\\]") | |
2812 | (string-append "ffi_lib [\"" | |
2813 | (assoc-ref inputs "libsodium") "/lib/libsodium.so" | |
2814 | "\"]"))) | |
2815 | #t)) | |
2816 | ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile | |
2817 | (replace 'check | |
2818 | (lambda* (#:key tests? #:allow-other-keys) | |
2819 | (when tests? | |
2820 | (invoke "rspec")) | |
2821 | #t))))) | |
2822 | (propagated-inputs | |
2823 | `(("ruby-ffi" ,ruby-ffi))) | |
2824 | (inputs | |
2825 | `(("libsodium" ,libsodium))) | |
2826 | (native-inputs | |
2827 | `(("bundler" ,bundler) | |
2828 | ("ruby-rspec" ,ruby-rspec))) | |
2829 | (synopsis "Ruby FFI binding to libsodium") | |
2830 | (description | |
2831 | "This package provides Ruby FFI bindings to the Networking and | |
2832 | Cryptography (NaCl) library, also known as libsodium. This provides a | |
2833 | high-level toolkit for building cryptographic systems and protocols.") | |
2834 | (home-page "https://github.com/crypto-rb/rbnacl") | |
2835 | (license license:expat))) | |
2836 | ||
70b4cf38 RW |
2837 | (define-public ruby-nenv |
2838 | (package | |
2839 | (name "ruby-nenv") | |
12313cd0 | 2840 | (version "0.3.0") |
70b4cf38 RW |
2841 | (source (origin |
2842 | (method url-fetch) | |
2843 | (uri (rubygems-uri "nenv" version)) | |
2844 | (sha256 | |
2845 | (base32 | |
12313cd0 | 2846 | "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr")))) |
70b4cf38 RW |
2847 | (build-system ruby-build-system) |
2848 | (arguments | |
2849 | `(#:tests? #f)) ; no tests included | |
2850 | (native-inputs | |
2851 | `(("ruby-rspec" ,ruby-rspec) | |
2852 | ("bundler" ,bundler))) | |
2853 | (synopsis "Ruby interface for modifying the environment") | |
2854 | (description "Nenv provides a convenient wrapper for Ruby's ENV to modify | |
2855 | and inspect the environment.") | |
2856 | (home-page "https://github.com/e2/nenv") | |
2857 | (license license:expat))) | |
2858 | ||
af59d4b4 MB |
2859 | (define-public ruby-ptools |
2860 | (package | |
2861 | (name "ruby-ptools") | |
2862 | (version "1.3.5") | |
2863 | (source (origin | |
2864 | (method url-fetch) | |
2865 | (uri (rubygems-uri "ptools" version)) | |
2866 | (sha256 | |
2867 | (base32 | |
2868 | "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j")))) | |
2869 | (build-system ruby-build-system) | |
2870 | (arguments | |
2871 | '(#:phases (modify-phases %standard-phases | |
2872 | (add-after 'unpack 'patch-/bin/ls | |
2873 | (lambda _ | |
2874 | (substitute* "test/test_binary.rb" | |
2875 | (("/bin/ls") | |
2876 | (which "ls"))) | |
2877 | #t)) | |
2878 | (add-before 'install 'create-gem | |
2879 | (lambda _ | |
2880 | ;; Do not attempt to sign the gem. | |
2881 | (substitute* "Rakefile" | |
2882 | (("spec\\.signing_key = .*") | |
2883 | "")) | |
2884 | (invoke "rake" "gem:create")))))) | |
2885 | (synopsis "Extra methods for Ruby's @code{File} class") | |
2886 | (description | |
2887 | "The @dfn{ptools} (power tools) library extends Ruby's core @code{File} | |
2888 | class with many additional methods modelled after common POSIX tools, such as | |
2889 | @code{File.which} for finding executables, @code{File.tail} to print the last | |
2890 | lines of a file, @code{File.wc} to count words, and so on.") | |
2891 | (home-page "https://github.com/djberg96/ptools") | |
2892 | (license license:artistic2.0))) | |
2893 | ||
8d9e9f28 RW |
2894 | (define-public ruby-permutation |
2895 | (package | |
2896 | (name "ruby-permutation") | |
2897 | (version "0.1.8") | |
2898 | (source (origin | |
2899 | (method url-fetch) | |
2900 | (uri (rubygems-uri "permutation" version)) | |
2901 | (sha256 | |
2902 | (base32 | |
2903 | "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8")))) | |
2904 | (build-system ruby-build-system) | |
2905 | (arguments | |
2906 | `(#:phases | |
2907 | (modify-phases %standard-phases | |
2908 | (add-after 'unpack 'fix-rakefile | |
2909 | (lambda _ | |
2910 | (substitute* "Rakefile" | |
2911 | (("require 'rake/gempackagetask'") | |
2912 | "require 'rubygems/package_task'") | |
2913 | (("include Config") "")) | |
2914 | #t)) | |
2915 | (replace 'check | |
2916 | (lambda _ | |
9923d5a4 | 2917 | (invoke "ruby" "-Ilib" "test/test.rb")))))) |
8d9e9f28 RW |
2918 | (synopsis "Library to perform operations with sequence permutations") |
2919 | (description "This package provides a Ruby library to perform different | |
2920 | operations with permutations of sequences, such as strings and arrays.") | |
2f3800e5 | 2921 | (home-page "https://flori.github.io/permutation") |
8d9e9f28 RW |
2922 | (license license:gpl2))) ; GPL 2 only |
2923 | ||
c5d14d42 RW |
2924 | (define-public ruby-shellany |
2925 | (package | |
2926 | (name "ruby-shellany") | |
2927 | (version "0.0.1") | |
2928 | (source (origin | |
2929 | (method url-fetch) | |
2930 | (uri (rubygems-uri "shellany" version)) | |
2931 | (sha256 | |
2932 | (base32 | |
2933 | "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf")))) | |
2934 | (build-system ruby-build-system) | |
2935 | (arguments | |
2936 | `(#:test-target "default" | |
2937 | #:phases | |
2938 | (modify-phases %standard-phases | |
2939 | (add-after 'unpack 'fix-version-test | |
2940 | (lambda _ | |
2941 | (substitute* "spec/shellany_spec.rb" | |
2942 | (("^RSpec") "require \"shellany\"\nRSpec")) | |
2943 | #t))))) | |
2944 | (native-inputs | |
2945 | `(("ruby-rspec" ,ruby-rspec) | |
2946 | ("ruby-nenv" ,ruby-nenv) | |
2947 | ("bundler" ,bundler))) | |
2948 | (synopsis "Capture command output") | |
2949 | (description "Shellany is a Ruby library providing functions to capture | |
2950 | the output produced by running shell commands.") | |
2951 | (home-page "https://rubygems.org/gems/shellany") | |
2952 | (license license:expat))) | |
2953 | ||
d152162f RW |
2954 | (define-public ruby-notiffany |
2955 | (package | |
2956 | (name "ruby-notiffany") | |
8c1e4a4f | 2957 | (version "0.1.3") |
d152162f RW |
2958 | (source (origin |
2959 | (method url-fetch) | |
2960 | (uri (rubygems-uri "notiffany" version)) | |
2961 | (sha256 | |
2962 | (base32 | |
8c1e4a4f | 2963 | "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk")))) |
d152162f RW |
2964 | (build-system ruby-build-system) |
2965 | ;; Tests are not included in the gem. | |
2966 | (arguments `(#:tests? #f)) | |
2967 | (propagated-inputs | |
2968 | `(("ruby-shellany" ,ruby-shellany) | |
2969 | ("ruby-nenv" ,ruby-nenv))) | |
2970 | (native-inputs | |
2971 | `(("bundler" ,bundler))) | |
01eb17de VC |
2972 | (synopsis "Wrapper library for notification libraries") |
2973 | (description "Notiffany is a Ruby wrapper library for notification | |
d152162f RW |
2974 | libraries such as Libnotify.") |
2975 | (home-page "https://github.com/guard/notiffany") | |
2976 | (license license:expat))) | |
2977 | ||
96bf7521 MB |
2978 | (define-public ruby-forking-test-runner |
2979 | (package | |
2980 | (name "ruby-forking-test-runner") | |
2981 | (version "1.6.0") | |
2982 | (home-page "https://github.com/grosser/forking_test_runner") | |
2983 | (source (origin | |
2984 | (method git-fetch) | |
2985 | (uri (git-reference (url home-page) | |
2986 | (commit (string-append "v" version)))) | |
2987 | (file-name (git-file-name name version)) | |
2988 | (sha256 | |
2989 | (base32 | |
2990 | "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m")))) | |
2991 | (build-system ruby-build-system) | |
2992 | (arguments | |
2993 | '(#:test-target "spec" | |
2994 | ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has | |
2995 | ;; 1.4.1, which in turn breaks the tests that use ActiveRecord. | |
2996 | #:tests? #f | |
2997 | #:phases (modify-phases %standard-phases | |
2998 | (replace 'replace-git-ls-files | |
2999 | (lambda _ | |
3000 | (substitute* "forking_test_runner.gemspec" | |
3001 | (("`git ls-files lib/ bin/ MIT-LICENSE`") | |
3002 | "`find lib/ bin/ MIT-LICENSE -type f | sort`")) | |
3003 | #t)) | |
3004 | (add-before 'check 'remove-version-constraints | |
3005 | (lambda _ | |
3006 | ;; Ignore hard coded version constraints for the tests. | |
3007 | (delete-file "Gemfile.lock") | |
3008 | #t)) | |
3009 | (add-before 'check 'set-HOME | |
3010 | (lambda _ | |
3011 | ;; Many tests invoke Bundler, and fails when Bundler | |
3012 | ;; warns that /homeless-shelter does not exist. | |
3013 | (setenv "HOME" "/tmp") | |
3014 | #t))))) | |
3015 | (native-inputs | |
3016 | `(("ruby-activerecord" ,ruby-activerecord) | |
3017 | ("ruby-bump" ,ruby-bump) | |
3018 | ("ruby-rspec" ,ruby-rspec) | |
3019 | ("ruby-sqlite3" ,ruby-sqlite3) | |
3020 | ("ruby-wwtd" ,ruby-wwtd))) | |
3021 | (propagated-inputs | |
3022 | `(("ruby-parallel-tests" ,ruby-parallel-tests))) | |
3023 | (synopsis "Run every test in a fork") | |
3024 | (description | |
3025 | "This package is a wrapper around @code{parallel_tests} that runs every | |
3026 | test in a fork to avoid pollution and get clean output per test.") | |
3027 | (license license:expat))) | |
3028 | ||
8528365b RW |
3029 | (define-public ruby-formatador |
3030 | (package | |
3031 | (name "ruby-formatador") | |
3032 | (version "0.2.5") | |
3033 | (source (origin | |
3034 | (method url-fetch) | |
3035 | (uri (rubygems-uri "formatador" version)) | |
3036 | (sha256 | |
3037 | (base32 | |
3038 | "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0")))) | |
3039 | (build-system ruby-build-system) | |
3040 | ;; Circular dependency: Tests require ruby-shindo, which requires | |
3041 | ;; ruby-formatador at runtime. | |
3042 | (arguments `(#:tests? #f)) | |
3043 | (synopsis "Ruby library to format text on stdout") | |
3044 | (description "Formatador is a Ruby library to format text printed to the | |
3045 | standard output stream.") | |
7bf837fd | 3046 | (home-page "https://github.com/geemus/formatador") |
8528365b RW |
3047 | (license license:expat))) |
3048 | ||
5437c741 CB |
3049 | (define-public ruby-fuubar |
3050 | (package | |
3051 | (name "ruby-fuubar") | |
3052 | (version "2.3.2") | |
3053 | (source | |
3054 | (origin | |
3055 | ;; Fetch from the git repository, as the gem package doesn't include | |
3056 | ;; the tests. | |
3057 | (method git-fetch) | |
3058 | (uri (git-reference | |
b0e7b699 | 3059 | (url "https://github.com/thekompanee/fuubar") |
5437c741 CB |
3060 | (commit (string-append "releases/v" version)))) |
3061 | (file-name (git-file-name name version)) | |
3062 | (sha256 | |
3063 | (base32 | |
3064 | "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259")))) | |
3065 | (build-system ruby-build-system) | |
3066 | (arguments | |
3067 | '(;; TODO: Some tests fail, unsure why. | |
3068 | ;; 21 examples, 7 failures | |
3069 | #:tests? #f | |
3070 | #:phases | |
3071 | (modify-phases %standard-phases | |
3072 | (add-before 'build 'delete-certificate | |
3073 | (lambda _ | |
3074 | ;; Remove 's.cert_chain' as we do not build with a private key | |
3075 | (substitute* "fuubar.gemspec" | |
3076 | ((".*cert_chain.*") "") | |
3077 | ((".*signing_key.*") "")) | |
3078 | #t)) | |
3079 | (replace 'check | |
3080 | (lambda* (#:key tests? #:allow-other-keys) | |
3081 | (when tests? | |
3082 | (invoke "rspec")) | |
3083 | #t))))) | |
3084 | (native-inputs | |
3085 | `(("bundler" ,bundler))) | |
3086 | (propagated-inputs | |
3087 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
3088 | ("ruby-progressbar" ,ruby-progressbar))) | |
3089 | (synopsis "Fuubar is an RSpec formatter that uses a progress bar") | |
3090 | (description | |
3091 | "Fuubar is an RSpec formatter that uses a progress bar instead of a | |
3092 | string of letters and dots as feedback. It also stops on the first test | |
3093 | failure.") | |
3094 | (home-page "https://github.com/thekompanee/fuubar") | |
3095 | (license license:expat))) | |
3096 | ||
8ea991e3 CB |
3097 | (define-public ruby-haml |
3098 | (package | |
3099 | (name "ruby-haml") | |
3100 | (version "5.0.4") | |
3101 | (source | |
3102 | (origin | |
3103 | (method url-fetch) | |
3104 | (uri (rubygems-uri "haml" version)) | |
3105 | (sha256 | |
3106 | (base32 | |
3107 | "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac")))) | |
3108 | (build-system ruby-build-system) | |
3109 | (arguments | |
3110 | '(#:tests? #f)) ; No included tests | |
3111 | (propagated-inputs | |
3112 | `(("ruby-tilt" ,ruby-tilt) | |
3113 | ("ruby-temple" ,ruby-temple))) | |
3114 | (synopsis "Haml is a Ruby library to generate HTML documents") | |
3115 | (description | |
3116 | "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of | |
3117 | HTML or XML that is designed to express the structure of documents using | |
3118 | indentation rather than closing tags. It was originally envisioned as a | |
3119 | plugin for Ruby on Rails, but it can function as a stand-alone templating | |
3120 | engine.") | |
3121 | (home-page "http://haml.info/") | |
3122 | (license license:expat))) | |
3123 | ||
353b7eb8 CB |
3124 | (define-public ruby-hamster |
3125 | (package | |
3126 | (name "ruby-hamster") | |
3127 | (version "3.0.0") | |
3128 | (source | |
3129 | (origin | |
3130 | (method url-fetch) | |
3131 | (uri (rubygems-uri "hamster" version)) | |
3132 | (sha256 | |
3133 | (base32 | |
3134 | "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar")))) | |
3135 | (build-system ruby-build-system) | |
3136 | (arguments | |
3137 | '(#:phases | |
3138 | (modify-phases %standard-phases | |
3139 | (add-after 'unpack 'remove-unnecessary-dependencies | |
3140 | (lambda _ | |
3141 | ;; pry is a debugging tool, and is unnecessary when running the | |
3142 | ;; tests | |
3143 | (substitute* "spec/lib/hamster/vector/insert_spec.rb" | |
3144 | (("require 'pry'") "")) | |
3145 | (substitute* "spec/spec_helper.rb" | |
3146 | (("require \"pry\"") "") | |
3147 | ;; CodeClimate is an online service, and is unnecessary for | |
3148 | ;; running the tests | |
3149 | (("require \"codeclimate-test-reporter\"") "") | |
3150 | (("CodeClimate.*\n") "")) | |
3151 | #t)) | |
3152 | ;; No Rakefile is included, so run rspec directly. | |
3153 | (replace 'check | |
3154 | (lambda* (#:key tests? #:allow-other-keys) | |
3155 | (when tests? | |
3156 | (invoke "rspec")) | |
3157 | #t))))) | |
3158 | (propagated-inputs | |
3159 | `(("ruby-concurrent" ,ruby-concurrent))) | |
3160 | (native-inputs | |
3161 | `(("ruby-rspec" ,ruby-rspec))) | |
3162 | (synopsis "Efficient, immutable, thread-safe collection classes for Ruby") | |
3163 | (description | |
3164 | "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector}, | |
3165 | @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an | |
3166 | immutable queue or stack).") | |
3167 | (home-page "https://github.com/hamstergem/hamster") | |
3168 | (license license:expat))) | |
3169 | ||
21781436 CB |
3170 | (define-public ruby-hashdiff |
3171 | (package | |
3172 | (name "ruby-hashdiff") | |
f7bd9d23 | 3173 | (version "1.0.1") |
21781436 CB |
3174 | (source |
3175 | (origin | |
3176 | (method url-fetch) | |
3177 | (uri (rubygems-uri "hashdiff" version)) | |
3178 | (sha256 | |
3179 | (base32 | |
f7bd9d23 | 3180 | "1nynpl0xbj0nphqx1qlmyggq58ms1phf5i03hk64wcc0a17x1m1c")))) |
21781436 CB |
3181 | (build-system ruby-build-system) |
3182 | (arguments | |
3183 | '(#:phases | |
3184 | (modify-phases %standard-phases | |
f7bd9d23 | 3185 | ;; Run tests directly via rspec to avoid depending on rubocop. |
21781436 CB |
3186 | (replace 'check |
3187 | (lambda* (#:key tests? #:allow-other-keys) | |
3188 | (when tests? | |
3189 | (invoke "rspec")) | |
3190 | #t))))) | |
3191 | (native-inputs | |
3192 | `(("bundler" ,bundler) | |
3193 | ("ruby-rspec" ,ruby-rspec-2))) | |
3194 | (synopsis "HashDiff computes the smallest difference between two hashes") | |
3195 | (description | |
3196 | "HashDiff is a Ruby library to compute the smallest difference between | |
3197 | two hashes.") | |
3198 | (home-page "https://github.com/liufengyun/hashdiff") | |
3199 | (license license:expat))) | |
3200 | ||
3cc8e029 MB |
3201 | (define-public ruby-hydra |
3202 | ;; No releases yet. | |
3203 | (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525") | |
3204 | (revision "0")) | |
3205 | (package | |
3206 | (name "ruby-hydra") | |
3207 | (version (git-version "0.0" revision commit)) | |
3208 | (home-page "https://github.com/hyphenation/hydra") | |
3209 | (source (origin | |
3210 | (method git-fetch) | |
3211 | (uri (git-reference (url home-page) (commit commit))) | |
3212 | (file-name (git-file-name name version)) | |
3213 | (sha256 | |
3214 | (base32 | |
3215 | "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f")))) | |
3216 | (build-system ruby-build-system) | |
3217 | (arguments | |
3218 | '(#:phases (modify-phases %standard-phases | |
3219 | (add-after 'unpack 'make-files-writable | |
3220 | (lambda _ | |
3221 | (for-each make-file-writable (find-files ".")) | |
3222 | #t)) | |
3223 | (replace 'check | |
3224 | (lambda _ | |
3225 | (invoke "rspec")))))) | |
3226 | (native-inputs | |
3227 | `(("ruby-rspec" ,ruby-rspec))) | |
3228 | (propagated-inputs | |
3229 | `(("ruby-byebug" ,ruby-byebug))) | |
3230 | (synopsis "Ruby hyphenation patterns") | |
3231 | (description | |
3232 | "ruby-hydra is a Ruby library for working with hyphenation patterns.") | |
3233 | (license license:expat)))) | |
3234 | ||
7ac4610f RW |
3235 | (define-public ruby-shindo |
3236 | (package | |
3237 | (name "ruby-shindo") | |
3238 | (version "0.3.8") | |
3239 | (source (origin | |
3240 | (method url-fetch) | |
3241 | (uri (rubygems-uri "shindo" version)) | |
3242 | (sha256 | |
3243 | (base32 | |
3244 | "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq")))) | |
3245 | (build-system ruby-build-system) | |
3246 | (arguments | |
3247 | `(#:test-target "shindo_tests" | |
3248 | #:phases | |
3249 | (modify-phases %standard-phases | |
3250 | (add-after 'unpack 'fix-tests | |
0b060e34 CB |
3251 | (lambda _ |
3252 | (substitute* "tests/tests_helper.rb" | |
3253 | (("-rubygems") "")) | |
3254 | (substitute* "Rakefile" | |
3255 | (("system \"shindo") "system \"./bin/shindo") | |
3256 | ;; This test doesn't work, so we disable it. | |
3257 | (("fail \"The build_error test should fail") "#") | |
3258 | ((" -rubygems") "")) | |
3259 | #t))))) | |
7ac4610f RW |
3260 | (propagated-inputs |
3261 | `(("ruby-formatador" ,ruby-formatador))) | |
3262 | (synopsis "Simple depth first Ruby testing") | |
3263 | (description "Shindo is a simple depth first testing library for Ruby.") | |
3264 | (home-page "https://github.com/geemus/shindo") | |
3265 | (license license:expat))) | |
3266 | ||
f13636f2 RW |
3267 | (define-public ruby-rubygems-tasks |
3268 | (package | |
3269 | (name "ruby-rubygems-tasks") | |
f0f5f2d3 | 3270 | (version "0.2.5") |
f13636f2 RW |
3271 | (source (origin |
3272 | (method url-fetch) | |
3273 | (uri (rubygems-uri "rubygems-tasks" version)) | |
3274 | (sha256 | |
3275 | (base32 | |
f0f5f2d3 | 3276 | "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx")))) |
f13636f2 RW |
3277 | (build-system ruby-build-system) |
3278 | ;; Tests need Internet access. | |
3279 | (arguments `(#:tests? #f)) | |
3280 | (native-inputs | |
3281 | `(("ruby-rspec" ,ruby-rspec) | |
3282 | ("ruby-yard" ,ruby-yard))) | |
3283 | (synopsis "Rake tasks for managing and releasing Ruby Gems") | |
3284 | (description "Rubygems-task provides Rake tasks for managing and releasing | |
3285 | Ruby Gems.") | |
3286 | (home-page "https://github.com/postmodern/rubygems-tasks") | |
3287 | (license license:expat))) | |
3288 | ||
cb6bc5df CB |
3289 | (define-public ruby-rubyzip |
3290 | (package | |
3291 | (name "ruby-rubyzip") | |
3292 | (version "1.2.1") | |
3293 | (source | |
3294 | (origin | |
3295 | (method url-fetch) | |
3296 | (uri (rubygems-uri "rubyzip" version)) | |
3297 | (sha256 | |
3298 | (base32 | |
3299 | "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz")))) | |
3300 | (build-system ruby-build-system) | |
3301 | (arguments | |
3302 | '(#:phases | |
3303 | (modify-phases %standard-phases | |
3304 | (add-before 'check 'patch-tests | |
3305 | (lambda* (#:key inputs #:allow-other-keys) | |
3306 | (substitute* "test/gentestfiles.rb" | |
3307 | (("/usr/bin/zip") | |
3308 | (string-append | |
3309 | (assoc-ref inputs "zip") "/bin/zip"))) | |
3310 | (substitute* "test/input_stream_test.rb" | |
3311 | (("/usr/bin/env ruby") (which "ruby"))) | |
3312 | #t))))) | |
3313 | (native-inputs | |
3314 | `(("bundler" ,bundler) | |
3315 | ("ruby-simplecov" ,ruby-simplecov) | |
3316 | ("zip" ,zip) | |
3317 | ("unzip" ,unzip))) | |
3318 | (synopsis "Ruby module is for reading and writing zip files") | |
3319 | (description | |
3320 | "The rubyzip module provides ways to read from and create zip files.") | |
702a1012 | 3321 | (home-page "https://github.com/rubyzip/rubyzip") |
cb6bc5df CB |
3322 | (license license:bsd-2))) |
3323 | ||
58b59742 RW |
3324 | (define-public ruby-simplecov-html |
3325 | (package | |
3326 | (name "ruby-simplecov-html") | |
53fd476f | 3327 | (version "0.10.2") |
58b59742 RW |
3328 | (source (origin |
3329 | (method url-fetch) | |
3330 | (uri (rubygems-uri "simplecov-html" version)) | |
3331 | (sha256 | |
3332 | (base32 | |
53fd476f | 3333 | "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn")))) |
58b59742 | 3334 | (build-system ruby-build-system) |
8b749cf3 | 3335 | (arguments `(#:tests? #f)) ; there are no tests |
58b59742 RW |
3336 | (native-inputs |
3337 | `(("bundler" ,bundler))) | |
3338 | (synopsis "Default HTML formatter for SimpleCov code coverage tool") | |
3339 | (description "This package provides the default HTML formatter for | |
3340 | the SimpleCov code coverage tool for Ruby version 1.9 and above.") | |
3341 | (home-page "https://github.com/colszowka/simplecov-html") | |
3342 | (license license:expat))) | |
3343 | ||
a84fa2ad RW |
3344 | (define-public ruby-simplecov |
3345 | (package | |
3346 | (name "ruby-simplecov") | |
d432682b | 3347 | (version "0.17.1") |
a84fa2ad RW |
3348 | (source (origin |
3349 | (method url-fetch) | |
3350 | (uri (rubygems-uri "simplecov" version)) | |
3351 | (sha256 | |
3352 | (base32 | |
d432682b | 3353 | "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw")))) |
a84fa2ad RW |
3354 | (build-system ruby-build-system) |
3355 | ;; Simplecov depends on rubocop for code style checking at build time. | |
3356 | ;; Rubocop needs simplecov at build time. | |
3357 | (arguments `(#:tests? #f)) | |
3358 | (propagated-inputs | |
3359 | `(("ruby-json" ,ruby-json) | |
3360 | ("ruby-docile" ,ruby-docile) | |
3361 | ("ruby-simplecov-html" ,ruby-simplecov-html))) | |
3362 | (native-inputs | |
3363 | `(("bundler" ,bundler))) | |
3364 | (synopsis "Code coverage framework for Ruby") | |
3365 | (description "SimpleCov is a code coverage framework for Ruby with a | |
3366 | powerful configuration library and automatic merging of coverage across test | |
3367 | suites.") | |
7bf837fd | 3368 | (home-page "https://github.com/colszowka/simplecov") |
a84fa2ad RW |
3369 | (license license:expat))) |
3370 | ||
98b87b82 DT |
3371 | (define-public ruby-useragent |
3372 | (package | |
3373 | (name "ruby-useragent") | |
959d908d | 3374 | (version "0.16.10") |
98b87b82 DT |
3375 | (source (origin |
3376 | (method url-fetch) | |
e83c6d00 | 3377 | (uri (rubygems-uri "useragent" version)) |
98b87b82 DT |
3378 | (sha256 |
3379 | (base32 | |
959d908d | 3380 | "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p")))) |
98b87b82 DT |
3381 | (build-system ruby-build-system) |
3382 | (arguments | |
e83c6d00 | 3383 | '(#:tests? #f)) ; no test suite |
98b87b82 DT |
3384 | (synopsis "HTTP user agent parser for Ruby") |
3385 | (description "UserAgent is a Ruby library that parses and compares HTTP | |
3386 | User Agents.") | |
3387 | (home-page "https://github.com/gshutler/useragent") | |
3388 | (license license:expat))) | |
96086cc5 | 3389 | |
f7e9b2f3 CB |
3390 | (define-public ruby-backports |
3391 | (package | |
3392 | (name "ruby-backports") | |
3393 | (version "3.11.4") | |
3394 | (source | |
3395 | (origin | |
3396 | (method url-fetch) | |
3397 | (uri (rubygems-uri "backports" version)) | |
3398 | (sha256 | |
3399 | (base32 | |
3400 | "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g")))) | |
3401 | (build-system ruby-build-system) | |
3402 | (arguments | |
3403 | '(;; TODO: This should be default, but there is one test failure | |
3404 | #:test-target "all_spec")) | |
3405 | (native-inputs | |
3406 | `(("ruby-mspec" ,ruby-mspec) | |
3407 | ("ruby-activesupport" ,ruby-activesupport))) | |
3408 | (synopsis "Backports of the features in newer Ruby versions") | |
3409 | (description | |
3410 | "Backports enables more compatibility across Ruby versions by providing | |
3411 | backports of some features.") | |
3412 | (home-page "https://github.com/marcandre/backports") | |
3413 | (license license:expat))) | |
3414 | ||
96086cc5 DT |
3415 | (define-public ruby-bacon |
3416 | (package | |
3417 | (name "ruby-bacon") | |
e83c6d00 | 3418 | (version "1.2.0") |
96086cc5 DT |
3419 | (source (origin |
3420 | (method url-fetch) | |
e83c6d00 | 3421 | (uri (rubygems-uri "bacon" version)) |
96086cc5 DT |
3422 | (sha256 |
3423 | (base32 | |
e83c6d00 | 3424 | "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai")))) |
96086cc5 | 3425 | (build-system ruby-build-system) |
96086cc5 DT |
3426 | (synopsis "Small RSpec clone") |
3427 | (description "Bacon is a small RSpec clone providing all essential | |
3428 | features.") | |
3429 | (home-page "https://github.com/chneukirchen/bacon") | |
3430 | (license license:expat))) | |
de59d316 | 3431 | |
a8d2bf3c CB |
3432 | (define-public ruby-bacon-bits |
3433 | (package | |
3434 | (name "ruby-bacon-bits") | |
3435 | (version "0.1.0") | |
3436 | (source | |
3437 | (origin | |
3438 | (method url-fetch) | |
3439 | (uri (rubygems-uri "bacon-bits" version)) | |
3440 | (sha256 | |
3441 | (base32 | |
3442 | "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx")))) | |
3443 | (build-system ruby-build-system) | |
3444 | (arguments | |
3445 | ;; No tests | |
3446 | '(#:tests? #f)) | |
3447 | (propagated-inputs `(("ruby-bacon" ,ruby-bacon))) | |
3448 | (synopsis "Extensions to Bacon, for disabling tests, before and after | |
3449 | blocks and more") | |
3450 | (description | |
3451 | "This extends the bacon testing framework with useful extensions to | |
3452 | disable tests, have before and after blocks that run once and more.") | |
3453 | (home-page "https://github.com/cldwalker/bacon-bits") | |
3454 | (license license:expat))) | |
3455 | ||
65f65889 CB |
3456 | (define-public ruby-bacon-colored-output |
3457 | (package | |
3458 | (name "ruby-bacon-colored-output") | |
3459 | (version "1.1.1") | |
3460 | (source | |
3461 | (origin | |
3462 | (method url-fetch) | |
3463 | (uri (rubygems-uri "bacon-colored_output" version)) | |
3464 | (sha256 | |
3465 | (base32 | |
3466 | "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx")))) | |
3467 | (build-system ruby-build-system) | |
3468 | (arguments | |
3469 | '(;; No included tests | |
3470 | #:tests? #f)) | |
3471 | (propagated-inputs | |
3472 | `(("ruby-bacon" ,ruby-bacon))) | |
3473 | (synopsis "Colored output for Bacon test framework") | |
3474 | (description | |
3475 | "This package adds color through ANSI escape codes to Bacon test | |
3476 | output.") | |
3477 | (home-page "https://github.com/whitequark/bacon-colored_output") | |
3478 | (license license:expat))) | |
3479 | ||
e259bdf0 DT |
3480 | (define-public ruby-connection-pool |
3481 | (package | |
3482 | (name "ruby-connection-pool") | |
58021db4 | 3483 | (version "2.2.2") |
e259bdf0 DT |
3484 | (source (origin |
3485 | (method url-fetch) | |
e83c6d00 | 3486 | (uri (rubygems-uri "connection_pool" version)) |
e259bdf0 DT |
3487 | (sha256 |
3488 | (base32 | |
58021db4 | 3489 | "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68")))) |
e259bdf0 DT |
3490 | (build-system ruby-build-system) |
3491 | (native-inputs | |
3492 | `(("bundler" ,bundler))) | |
3493 | (synopsis "Generic connection pool for Ruby") | |
3494 | (description "Connection_pool provides a generic connection pooling | |
3495 | interface for Ruby programs.") | |
3496 | (home-page "https://github.com/mperham/connection_pool") | |
3497 | (license license:expat))) | |
4c0aeb44 | 3498 | |
4a98314d MB |
3499 | (define-public ruby-fast-gettext |
3500 | (package | |
3501 | (name "ruby-fast-gettext") | |
c3beb7ce | 3502 | (version "2.0.3") |
4a98314d MB |
3503 | (home-page "https://github.com/grosser/fast_gettext") |
3504 | (source (origin | |
3505 | (method git-fetch) | |
3506 | (uri (git-reference (url home-page) | |
3507 | (commit (string-append "v" version)))) | |
3508 | (file-name (git-file-name name version)) | |
3509 | (sha256 | |
3510 | (base32 | |
c3beb7ce | 3511 | "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6")))) |
4a98314d MB |
3512 | (build-system ruby-build-system) |
3513 | (arguments | |
3514 | '(#:test-target "spec" | |
3515 | #:phases (modify-phases %standard-phases | |
3516 | (add-before 'check 'remove-version-constraints | |
3517 | (lambda _ | |
3518 | (delete-file "Gemfile.lock") | |
3519 | #t)) | |
3520 | (add-before 'check 'remove-activerecord-test | |
3521 | (lambda _ | |
3522 | ;; FIXME: This test fails because ActiveRecord depends on | |
3523 | ;; a different version of ruby-sqlite than the currently | |
3524 | ;; available one. | |
3525 | (delete-file | |
3526 | "spec/fast_gettext/translation_repository/db_spec.rb") | |
3527 | #t)) | |
3528 | (add-before 'check 'disable-i18n-test | |
3529 | (lambda _ | |
3530 | ;; XXX: This test checks i18n intricasies with Rails 3 and | |
3531 | ;; automatically disables itself for Rails 4.0, but does | |
3532 | ;; not know about newer versions as it has not been updated | |
3533 | ;; since 2014. Disable for later versions of Rails too. | |
3534 | (substitute* "spec/fast_gettext/vendor/string_spec.rb" | |
3535 | (((string-append "ActiveRecord::VERSION::MAJOR == 4 and " | |
3536 | "ActiveRecord::VERSION::MINOR == 0")) | |
3537 | "ActiveRecord::VERSION::MAJOR >= 4")) | |
3538 | #t))))) | |
3539 | (native-inputs | |
3540 | `(;; For tests. | |
3541 | ("ruby-activerecord" ,ruby-activerecord) | |
3542 | ("ruby-activesupport" ,ruby-activesupport) | |
3543 | ("ruby-bump" ,ruby-bump) | |
3544 | ("ruby-forking-test-runner" ,ruby-forking-test-runner) | |
3545 | ("ruby-i18n" ,ruby-i18n) | |
3546 | ("ruby-rubocop" ,ruby-rubocop) | |
3547 | ("ruby-rspec" ,ruby-rspec) | |
3548 | ("ruby-single-cov" ,ruby-single-cov) | |
3549 | ("ruby-sqlite3" ,ruby-sqlite3) | |
3550 | ("ruby-wwtd" ,ruby-wwtd))) | |
3551 | (synopsis "Fast implementation of @code{GetText}") | |
3552 | (description | |
3553 | "This package provides an alternative implementation of the Ruby | |
3554 | @code{GetText} library that is approximately 12x faster yet thread safe.") | |
3555 | ;; Some parts are covered by the Ruby license, see file headers. | |
3556 | (license (list license:expat license:ruby)))) | |
3557 | ||
4c0aeb44 DT |
3558 | (define-public ruby-net-http-persistent |
3559 | (package | |
3560 | (name "ruby-net-http-persistent") | |
185ea446 | 3561 | (version "3.0.0") |
4c0aeb44 DT |
3562 | (source (origin |
3563 | (method url-fetch) | |
e83c6d00 | 3564 | (uri (rubygems-uri "net-http-persistent" version)) |
4c0aeb44 DT |
3565 | (sha256 |
3566 | (base32 | |
185ea446 | 3567 | "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18")))) |
4c0aeb44 | 3568 | (build-system ruby-build-system) |
4c0aeb44 DT |
3569 | (native-inputs |
3570 | `(("ruby-connection-pool" ,ruby-connection-pool) | |
3571 | ("ruby-hoe" ,ruby-hoe))) | |
3572 | (synopsis "Persistent HTTP connection manager") | |
3573 | (description "Net::HTTP::Persistent manages persistent HTTP connections | |
3574 | using Net::HTTP, supporting reconnection and retry according to RFC 2616.") | |
3575 | (home-page "https://github.com/drbrain/net-http-persistent") | |
3576 | (license license:expat))) | |
afbbdf77 | 3577 | |
f88bacaf RW |
3578 | (define-public ruby-power-assert |
3579 | (package | |
3580 | (name "ruby-power-assert") | |
6754323b | 3581 | (version "1.1.5") |
f88bacaf RW |
3582 | (source (origin |
3583 | (method url-fetch) | |
3584 | (uri (rubygems-uri "power_assert" version)) | |
3585 | (sha256 | |
3586 | (base32 | |
6754323b | 3587 | "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s")))) |
f88bacaf | 3588 | (build-system ruby-build-system) |
6754323b CB |
3589 | (arguments |
3590 | '(#:tests? #f)) ; No included tests | |
f88bacaf RW |
3591 | (native-inputs |
3592 | `(("bundler" ,bundler))) | |
3593 | (synopsis "Assert library with descriptive assertion messages") | |
3594 | (description "Power-assert is an assertion library providing descriptive | |
3595 | assertion messages for tests.") | |
3596 | (home-page "https://github.com/k-tsj/power_assert") | |
3597 | (license (list license:bsd-2 license:ruby)))) | |
3598 | ||
e42e3bfa CB |
3599 | (define-public ruby-powerpack |
3600 | (package | |
3601 | (name "ruby-powerpack") | |
3602 | (version "0.1.2") | |
3603 | (source | |
3604 | (origin | |
3605 | (method url-fetch) | |
3606 | (uri (rubygems-uri "powerpack" version)) | |
3607 | (sha256 | |
3608 | (base32 | |
3609 | "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv")))) | |
3610 | (build-system ruby-build-system) | |
3611 | (arguments | |
3612 | '(#:test-target "spec")) | |
3613 | (native-inputs | |
3614 | `(("bundler" ,bundler) | |
3615 | ("ruby-rspec" ,ruby-rspec) | |
3616 | ("ruby-yard" ,ruby-yard))) | |
3617 | (synopsis "Useful extensions to core Ruby classes") | |
3618 | (description | |
3619 | "This package provides a few useful extensions to core Ruby classes, | |
3620 | including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and | |
3621 | @code{String}.") | |
3622 | (home-page "https://github.com/bbatsov/powerpack") | |
3623 | (license license:expat))) | |
3624 | ||
347eb21e RW |
3625 | (define-public ruby-locale |
3626 | (package | |
3627 | (name "ruby-locale") | |
3628 | (version "2.1.2") | |
3629 | (source (origin | |
3630 | (method url-fetch) | |
3631 | (uri (rubygems-uri "locale" version)) | |
3632 | (sha256 | |
3633 | (base32 | |
3634 | "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x")))) | |
3635 | (build-system ruby-build-system) | |
3636 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga, | |
3637 | ;; which needs ruby-gettext, which needs ruby-locale. To break the | |
3638 | ;; dependency cycle we disable tests. | |
3639 | (arguments `(#:tests? #f)) | |
3640 | (native-inputs | |
3641 | `(("bundler" ,bundler) | |
3642 | ("ruby-yard" ,ruby-yard))) | |
3643 | (synopsis "Ruby library providing basic localization APIs") | |
3644 | (description | |
3645 | "Ruby-Locale is the pure ruby library which provides basic APIs for | |
3646 | localization.") | |
3647 | (home-page "https://github.com/ruby-gettext/locale") | |
3648 | (license (list license:lgpl3+ license:ruby)))) | |
3649 | ||
09e2b0af CB |
3650 | (define-public ruby-temple |
3651 | (package | |
3652 | (name "ruby-temple") | |
b1c79cab | 3653 | (version "0.8.2") |
09e2b0af CB |
3654 | (source |
3655 | (origin | |
3656 | (method url-fetch) | |
3657 | (uri (rubygems-uri "temple" version)) | |
3658 | (sha256 | |
3659 | (base32 | |
b1c79cab | 3660 | "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861")))) |
09e2b0af CB |
3661 | (build-system ruby-build-system) |
3662 | (native-inputs | |
3663 | `(("ruby-tilt" ,ruby-tilt) | |
3664 | ("ruby-bacon" ,ruby-bacon) | |
3665 | ("ruby-erubis" ,ruby-erubis))) | |
3666 | (synopsis "Template compilation framework in Ruby") | |
3667 | (description | |
3668 | "Temple is an abstraction and framework for compiling templates to pure | |
3669 | Ruby.") | |
3670 | (home-page "https://github.com/judofyr/temple") | |
3671 | (license license:expat))) | |
3672 | ||
e2333ea3 RW |
3673 | (define-public ruby-text |
3674 | (package | |
3675 | (name "ruby-text") | |
3676 | (version "1.3.1") | |
3677 | (source (origin | |
3678 | (method url-fetch) | |
3679 | (uri (rubygems-uri "text" version)) | |
3680 | (sha256 | |
3681 | (base32 | |
3682 | "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg")))) | |
3683 | (build-system ruby-build-system) | |
3684 | (synopsis "Collection of text algorithms for Ruby") | |
3685 | (description | |
3686 | "This package provides a collection of text algorithms: Levenshtein, | |
3687 | Soundex, Metaphone, Double Metaphone, Porter Stemming.") | |
7bf837fd | 3688 | (home-page "https://github.com/threedaymonk/text") |
e2333ea3 RW |
3689 | (license license:expat))) |
3690 | ||
c1f52261 RW |
3691 | (define-public ruby-gettext |
3692 | (package | |
3693 | (name "ruby-gettext") | |
3694 | (version "3.1.7") | |
3695 | (source (origin | |
3696 | (method url-fetch) | |
3697 | (uri (rubygems-uri "gettext" version)) | |
3698 | (sha256 | |
3699 | (base32 | |
3700 | "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq")))) | |
3701 | (build-system ruby-build-system) | |
3702 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga, | |
3703 | ;; which needs ruby-gettext. To break the dependency cycle we disable | |
3704 | ;; tests. | |
3705 | (arguments `(#:tests? #f)) | |
3706 | (propagated-inputs | |
3707 | `(("ruby-locale" ,ruby-locale) | |
3708 | ("ruby-text" ,ruby-text))) | |
3709 | (native-inputs | |
3710 | `(("bundler" ,bundler) | |
3711 | ("ruby-yard" ,ruby-yard))) | |
3712 | (synopsis "GNU gettext-like program for Ruby") | |
3713 | (description | |
3714 | "Gettext is a GNU gettext-like program for Ruby. The catalog | |
3715 | file (po-file) used is the same as that used by GNU gettext, allowing you to | |
3716 | use GNU gettext tools for maintenance.") | |
2f3800e5 | 3717 | (home-page "https://ruby-gettext.github.com/") |
c1f52261 RW |
3718 | (license (list license:lgpl3+ license:ruby)))) |
3719 | ||
cc5aeb8c RW |
3720 | (define-public ruby-packnga |
3721 | (package | |
3722 | (name "ruby-packnga") | |
1d60c436 | 3723 | (version "1.0.4") |
cc5aeb8c RW |
3724 | (source (origin |
3725 | (method url-fetch) | |
3726 | (uri (rubygems-uri "packnga" version)) | |
3727 | (sha256 | |
3728 | (base32 | |
1d60c436 | 3729 | "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4")))) |
cc5aeb8c RW |
3730 | (build-system ruby-build-system) |
3731 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga. | |
3732 | ;; To break the dependency cycle we disable tests. | |
3733 | (arguments `(#:tests? #f)) | |
3734 | (propagated-inputs | |
3735 | `(("ruby-gettext" ,ruby-gettext) | |
3736 | ("ruby-yard" ,ruby-yard))) | |
3737 | (native-inputs | |
3738 | `(("bundler" ,bundler))) | |
3739 | (synopsis "Utility library to package internationalized libraries") | |
3740 | (description | |
3741 | "Packnga is a library to translate to many languages using YARD.") | |
3742 | (home-page "http://ranguba.org/packnga/") | |
3743 | (license license:lgpl2.0+))) | |
3744 | ||
93dc8684 CB |
3745 | (define-public ruby-test-construct |
3746 | (package | |
3747 | (name "ruby-test-construct") | |
3748 | (version "2.0.1") | |
3749 | (source | |
3750 | (origin | |
3751 | (method url-fetch) | |
3752 | (uri (rubygems-uri "test_construct" version)) | |
3753 | (sha256 | |
3754 | (base32 | |
3755 | "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj")))) | |
3756 | (build-system ruby-build-system) | |
3757 | (native-inputs | |
3758 | `(("bundler" ,bundler) | |
3759 | ("ruby-mocha" ,ruby-mocha) | |
3760 | ("ruby-rspec" ,ruby-rspec))) | |
3761 | (synopsis "Creates temporary files and directories for testing") | |
3762 | (description | |
3763 | "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating | |
3764 | temporary files and directories during tests.") | |
3765 | (home-page "https://github.com/bhb/test_construct") | |
3766 | (license license:expat))) | |
3767 | ||
3383f5bd RW |
3768 | (define-public ruby-test-unit |
3769 | (package | |
3770 | (name "ruby-test-unit") | |
d74d96e4 | 3771 | (version "3.2.5") |
3383f5bd RW |
3772 | (source (origin |
3773 | (method url-fetch) | |
3774 | (uri (rubygems-uri "test-unit" version)) | |
3775 | (sha256 | |
3776 | (base32 | |
d74d96e4 | 3777 | "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52")))) |
3383f5bd RW |
3778 | (build-system ruby-build-system) |
3779 | (propagated-inputs | |
3780 | `(("ruby-power-assert" ,ruby-power-assert))) | |
3781 | (native-inputs | |
3782 | `(("bundler" ,bundler) | |
3783 | ("ruby-packnga" ,ruby-packnga) | |
3784 | ("ruby-yard" ,ruby-yard))) | |
3785 | (synopsis "Unit testing framework for Ruby") | |
3786 | (description "@code{Test::Unit} is unit testing framework for Ruby, based | |
3787 | on xUnit principles. These were originally designed by Kent Beck, creator of | |
3788 | extreme programming software development methodology, for Smalltalk's SUnit. | |
3789 | It allows writing tests, checking results and automated testing in Ruby.") | |
2f3800e5 | 3790 | (home-page "https://test-unit.github.io/") |
3383f5bd RW |
3791 | (license (list license:psfl license:ruby)))) |
3792 | ||
76b732fb CB |
3793 | (define-public ruby-markaby |
3794 | (package | |
3795 | (name "ruby-markaby") | |
3796 | (version "0.9.0") | |
3797 | (source | |
3798 | (origin | |
3799 | (method url-fetch) | |
3800 | (uri (rubygems-uri "markaby" version)) | |
3801 | (sha256 | |
3802 | (base32 | |
3803 | "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i")))) | |
3804 | (build-system ruby-build-system) | |
3805 | (arguments | |
3806 | '(#:phases | |
3807 | (modify-phases %standard-phases | |
3808 | ;; Run rspec manually without using the Rakefile, as the versions of | |
3809 | ;; Rake and RSpec 2 are incompatible: | |
3810 | ;; | |
3811 | ;; NoMethodError: undefined method `last_comment' | |
3812 | (replace 'check | |
3813 | (lambda* (#:key tests? #:allow-other-keys) | |
3814 | (when tests? | |
3815 | (invoke "rspec")) | |
3816 | #t))))) | |
3817 | (propagated-inputs | |
3818 | `(("ruby-builder" ,ruby-builder))) | |
3819 | (native-inputs | |
3820 | `(("bundler" ,bundler) | |
3821 | ("ruby-rspec" ,ruby-rspec-2))) | |
3822 | (synopsis "Write HTML pages in pure Ruby") | |
3823 | (description | |
3824 | "Markaby allows writing HTML packages in pure Ruby. This is similar to | |
e54af322 | 3825 | the functionality provided by @acronym{ERB, Embedded Ruby}, but without the |
76b732fb | 3826 | mixture of HTML and additional ERB syntax.") |
41181b76 | 3827 | (home-page "https://markaby.github.io/") |
76b732fb CB |
3828 | (license license:expat))) |
3829 | ||
b9511aa9 CB |
3830 | (define-public ruby-maruku |
3831 | (package | |
3832 | (name "ruby-maruku") | |
3833 | (version "0.7.3") | |
3834 | (source | |
3835 | (origin | |
3836 | (method url-fetch) | |
3837 | (uri (rubygems-uri "maruku" version)) | |
3838 | (sha256 | |
3839 | (base32 | |
3840 | "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x")))) | |
3841 | (build-system ruby-build-system) | |
3842 | (arguments | |
3843 | '(;; TODO: 3 tests seem to fail due to HTML encoding issues | |
3844 | #:tests? #f | |
3845 | #:phases | |
3846 | (modify-phases %standard-phases | |
3847 | (replace 'check | |
3848 | (lambda* (#:key tests? #:allow-other-keys) | |
3849 | (when tests? | |
3850 | (invoke "rspec")) | |
3851 | #t))))) | |
3852 | (native-inputs | |
3853 | `(("ruby-rspec" ,ruby-rspec) | |
3854 | ("ruby-simplecov" ,ruby-simplecov) | |
3855 | ("ruby-nokogiri-diff" ,ruby-nokogiri-diff))) | |
3856 | (synopsis "Markdown interpreter in Ruby") | |
3857 | (description | |
3858 | "Maruku is a Markdown interpreter in Ruby. It can export Markdown to | |
3859 | HTML, and PDF through LaTeX.") | |
3860 | (home-page "https://github.com/bhollis/maruku") | |
3861 | (license license:expat))) | |
3862 | ||
25d6d49b RW |
3863 | (define-public ruby-metaclass |
3864 | (package | |
3865 | (name "ruby-metaclass") | |
3866 | (version "0.0.4") | |
3867 | (source (origin | |
3868 | (method url-fetch) | |
3869 | (uri (rubygems-uri "metaclass" version)) | |
3870 | (sha256 | |
3871 | (base32 | |
3872 | "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5")))) | |
3873 | (build-system ruby-build-system) | |
3874 | (arguments | |
3875 | `(#:phases | |
3876 | (modify-phases %standard-phases | |
3877 | (add-after 'unpack 'add-test-unit-to-search-path | |
761e7042 | 3878 | (lambda* (#:key inputs #:allow-other-keys) |
3cb3fa67 | 3879 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
3880 | (substitute* "Rakefile" |
3881 | (("t\\.libs << \"test\"" line) | |
3882 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 3883 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
3884 | "/gems/test-unit-" |
3885 | ,(package-version ruby-test-unit) | |
3886 | "/lib\"")))) | |
3887 | #t))))) | |
25d6d49b RW |
3888 | (native-inputs |
3889 | `(("bundler" ,bundler) | |
3890 | ("ruby-test-unit" ,ruby-test-unit))) | |
3891 | (synopsis "Ruby library adding metaclass method to all objects") | |
3892 | (description | |
3893 | "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby | |
3894 | objects.") | |
7bf837fd | 3895 | (home-page "https://github.com/floehopper/metaclass") |
25d6d49b RW |
3896 | (license license:expat))) |
3897 | ||
fae1c866 MB |
3898 | (define-public ruby-mkmf-lite |
3899 | (package | |
3900 | (name "ruby-mkmf-lite") | |
3901 | (version "0.3.2") | |
3902 | (source (origin | |
3903 | (method url-fetch) | |
3904 | (uri (rubygems-uri "mkmf-lite" version)) | |
3905 | (sha256 | |
3906 | (base32 | |
3907 | "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06")))) | |
3908 | (build-system ruby-build-system) | |
3909 | (propagated-inputs | |
3910 | `(("ruby-ptools" ,ruby-ptools))) | |
3911 | (synopsis "Lightweight alternative to @code{mkmf}") | |
3912 | (description | |
3913 | "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed | |
3914 | for use as a library. It does not create packages, builds, or log files of | |
3915 | any kind. Instead, it provides mixin methods that you can use in FFI or tests | |
3916 | to check for the presence of header files, constants, and so on.") | |
3917 | (home-page "https://github.com/djberg96/mkmf-lite") | |
3918 | (license license:asl2.0))) | |
3919 | ||
1d1d20b0 CB |
3920 | (define-public ruby-mspec |
3921 | (package | |
3922 | (name "ruby-mspec") | |
3923 | (version "1.9.1") | |
3924 | (source | |
3925 | (origin | |
3926 | (method url-fetch) | |
3927 | (uri (rubygems-uri "mspec" version)) | |
3928 | (sha256 | |
3929 | (base32 | |
3930 | "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd")))) | |
3931 | (build-system ruby-build-system) | |
3932 | (arguments | |
3933 | '(;; TODO: 3 test failures | |
3934 | ;; ./spec/mocks/mock_spec.rb:82 | |
3935 | ;; ./spec/utils/name_map_spec.rb:151 | |
3936 | ;; ./spec/utils/name_map_spec.rb:155 | |
3937 | #:tests? #f | |
3938 | #:phases | |
3939 | (modify-phases %standard-phases | |
3940 | (add-after 'extract-gemspec 'change-dependency-constraints | |
3941 | (lambda _ | |
3942 | (substitute* "mspec.gemspec" | |
3943 | (("rake.*") "rake>)\n") | |
3944 | (("rspec.*") "rspec>)\n")) | |
3945 | #t)) | |
3946 | (replace 'check | |
3947 | (lambda* (#:key tests? #:allow-other-keys) | |
3948 | (when tests? | |
3949 | (invoke "rspec" "spec")) | |
3950 | #t))))) | |
3951 | (native-inputs | |
3952 | `(("bundler" ,bundler) | |
3953 | ("ruby-rake" ,ruby-rake) | |
3954 | ("ruby-rspec" ,ruby-rspec))) | |
3955 | (synopsis "MSpec is a specialized framework for RubySpec") | |
3956 | (description | |
3957 | "MSpec is a specialized framework that is syntax-compatible with RSpec 2 | |
3958 | for basic features. MSpec contains additional features that assist in writing | |
3959 | specs for Ruby implementations in ruby/spec.") | |
3960 | (home-page "http://rubyspec.org") | |
3961 | (license license:expat))) | |
3962 | ||
b8aecc31 CB |
3963 | (define-public ruby-mysql2 |
3964 | (package | |
3965 | (name "ruby-mysql2") | |
3966 | (version "0.5.2") | |
3967 | (source | |
3968 | (origin | |
3969 | (method git-fetch) | |
3970 | (uri (git-reference | |
b0e7b699 | 3971 | (url "https://github.com/brianmario/mysql2") |
b8aecc31 CB |
3972 | (commit version))) |
3973 | (file-name (git-file-name name version)) | |
3974 | (sha256 | |
3975 | (base32 | |
3976 | "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv")))) | |
3977 | (build-system ruby-build-system) | |
3978 | (arguments | |
3979 | '(;; TODO: Tests require a running MySQL/MariaDB service | |
3980 | #:tests? #f | |
3981 | #:phases | |
3982 | (modify-phases %standard-phases | |
3983 | (replace 'replace-git-ls-files | |
3984 | (lambda _ | |
3985 | (substitute* "mysql2.gemspec" | |
3986 | (("git ls-files .*`") "find . -type f |sort`")) | |
3987 | #t)) | |
3988 | (add-before 'install 'set-MAKEFLAGS | |
3989 | (lambda* (#:key outputs #:allow-other-keys) | |
3990 | (setenv "MAKEFLAGS" | |
3991 | (string-append | |
3992 | "V=1 " | |
3993 | "prefix=" (assoc-ref outputs "out"))) | |
3994 | #t)) | |
3995 | ;; Move the 'check phase to after 'install, as then you can test | |
3996 | ;; using the installed mysql2 gem in the store. | |
3997 | (delete 'check) | |
3998 | (add-after 'install 'check | |
3999 | (lambda* (#:key outputs tests? #:allow-other-keys) | |
4000 | (setenv "GEM_PATH" | |
4001 | (string-append | |
4002 | (getenv "GEM_PATH") | |
4003 | ":" | |
4004 | (assoc-ref outputs "out") "/lib/ruby/vendor_ruby")) | |
4005 | (when tests? | |
4006 | (invoke "rspec")) | |
4007 | #t))))) | |
4008 | (inputs | |
997abda9 | 4009 | `(("mariadb-dev" ,mariadb "dev") |
b8aecc31 CB |
4010 | ("zlib" ,zlib))) |
4011 | (native-inputs | |
4012 | `(("ruby-rspec" ,ruby-rspec) | |
4013 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
4014 | (synopsis "MySQL library for Ruby, binding to libmysql") | |
4015 | (description | |
4016 | "This package provides a simple, fast MySQL library for Ruby, binding to | |
4017 | libmysql.") | |
4018 | (home-page "https://github.com/brianmario/mysql2") | |
4019 | (license license:expat))) | |
4020 | ||
21f7b7bd RW |
4021 | (define-public ruby-blankslate |
4022 | (package | |
4023 | (name "ruby-blankslate") | |
4024 | (version "3.1.3") | |
4025 | (source (origin | |
4026 | (method url-fetch) | |
4027 | (uri (rubygems-uri "blankslate" version)) | |
4028 | (sha256 | |
4029 | (base32 | |
4030 | "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx")))) | |
4031 | (build-system ruby-build-system) | |
4032 | (arguments | |
4033 | `(#:phases | |
4034 | (modify-phases %standard-phases | |
4035 | (replace 'check | |
9923d5a4 | 4036 | (lambda _ (invoke "rspec" "spec/")))))) |
21f7b7bd RW |
4037 | (native-inputs |
4038 | `(("bundler" ,bundler) | |
4039 | ("ruby-rspec" ,ruby-rspec))) | |
4040 | (synopsis "Abstract base class with no predefined methods") | |
4041 | (description | |
4042 | "BlankSlate provides an abstract base class with no predefined | |
4043 | methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful | |
4044 | as a base class when writing classes that depend upon | |
4045 | @code{method_missing} (e.g. dynamic proxies).") | |
7bf837fd | 4046 | (home-page "https://github.com/masover/blankslate") |
21f7b7bd RW |
4047 | (license license:expat))) |
4048 | ||
afdb437c CB |
4049 | (define-public ruby-bond |
4050 | (package | |
4051 | (name "ruby-bond") | |
4052 | (version "0.5.1") | |
4053 | (source | |
4054 | (origin | |
4055 | (method url-fetch) | |
4056 | (uri (rubygems-uri "bond" version)) | |
4057 | (sha256 | |
4058 | (base32 | |
4059 | "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90")))) | |
4060 | (build-system ruby-build-system) | |
18a29cb3 MC |
4061 | (arguments |
4062 | ;; The test suite fails (see: | |
4063 | ;; https://github.com/cldwalker/bond/issues/46). | |
4064 | `(#:tests? #f)) | |
afdb437c CB |
4065 | (native-inputs |
4066 | `(("ruby-bacon" ,ruby-bacon) | |
4067 | ("ruby-bacon-bits" ,ruby-bacon-bits) | |
4068 | ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon))) | |
4069 | (synopsis "Bond can provide custom autocompletion for arguments, methods | |
4070 | and more") | |
4071 | (description | |
4072 | "Bond can autocomplete argument(s) to methods, uniquely completing per | |
4073 | module, per method and per argument. Bond provides a configuration system and | |
4074 | a DSL for creating custom completions and completion rules. Bond can also | |
4075 | load completions that ship with gems. Bond is able to offer more than irb's | |
4076 | completion since it uses the full line of input when completing as opposed to | |
4077 | irb's last-word approach.") | |
4078 | (home-page "http://tagaholic.me/bond/") | |
4079 | (license license:expat))) | |
4080 | ||
f3d7bb93 CB |
4081 | (define-public ruby-idn-ruby |
4082 | (package | |
4083 | (name "ruby-idn-ruby") | |
4084 | (version "0.1.0") | |
4085 | (source | |
4086 | (origin | |
4087 | (method url-fetch) | |
4088 | (uri (rubygems-uri "idn-ruby" version)) | |
4089 | (sha256 | |
4090 | (base32 | |
4091 | "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr")))) | |
4092 | (build-system ruby-build-system) | |
4093 | (arguments | |
4094 | '(#:phases | |
4095 | (modify-phases %standard-phases | |
4096 | (delete 'check) | |
4097 | (add-after 'install 'check | |
4098 | (lambda* (#:key tests? outputs #:allow-other-keys) | |
4099 | (when tests? | |
4100 | (let* ((gem-file (cadr (find-files "." "\\.gem"))) | |
4101 | (name-and-version (basename gem-file ".gem"))) | |
4102 | (apply invoke | |
4103 | "ruby" "--verbose" | |
4104 | (string-append "-I" | |
4105 | (assoc-ref outputs "out") | |
4106 | "/lib/ruby/vendor_ruby/gems/" | |
4107 | name-and-version | |
4108 | "/lib") | |
4109 | (find-files "./test" ".*\\.rb")))) | |
4110 | #t))))) | |
4111 | (inputs | |
4112 | `(("libidn" ,libidn))) | |
4113 | (synopsis "Ruby Bindings for the GNU LibIDN library") | |
4114 | (description | |
4115 | "Ruby Bindings for the GNU LibIDN library, an implementation of the | |
4116 | Stringprep, Punycode and IDNA specifications. These are used to encode and | |
4117 | decode internationalized domain + names according to the IDNA2003 | |
4118 | specifications. | |
4119 | ||
4120 | Included are the most important parts of the Stringprep, Punycode and IDNA | |
4121 | APIs like performing Stringprep processings, encoding to and decoding from | |
4122 | Punycode strings and converting entire domain names to and from the ACE | |
4123 | encoded form.") | |
4124 | (home-page "https://github.com/deepfryed/idn-ruby") | |
4125 | (license license:asl2.0))) | |
4126 | ||
4016ba3f RW |
4127 | (define-public ruby-instantiator |
4128 | (package | |
4129 | (name "ruby-instantiator") | |
688c9076 | 4130 | (version "0.0.7") |
4016ba3f RW |
4131 | (source (origin |
4132 | (method url-fetch) | |
4133 | (uri (rubygems-uri "instantiator" version)) | |
4134 | (sha256 | |
4135 | (base32 | |
688c9076 | 4136 | "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr")))) |
4016ba3f RW |
4137 | (build-system ruby-build-system) |
4138 | (arguments | |
4139 | `(#:phases | |
4140 | (modify-phases %standard-phases | |
4141 | (add-after 'unpack 'add-test-unit-to-search-path | |
761e7042 | 4142 | (lambda* (#:key inputs #:allow-other-keys) |
3cb3fa67 | 4143 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
4144 | (substitute* "Rakefile" |
4145 | (("t\\.libs << \"test\"" line) | |
4146 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 4147 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
4148 | "/gems/test-unit-" |
4149 | ,(package-version ruby-test-unit) | |
4150 | "/lib\"")))) | |
4151 | #t))))) | |
4016ba3f RW |
4152 | (propagated-inputs |
4153 | `(("ruby-blankslate" ,ruby-blankslate))) | |
4154 | (native-inputs | |
4155 | `(("bundler" ,bundler) | |
4156 | ("ruby-test-unit" ,ruby-test-unit))) | |
4157 | (synopsis "Instantiate an arbitrary Ruby class") | |
4158 | (description | |
4159 | "Instantiator lets you instantiate an arbitrary Ruby class without | |
4160 | knowing anything about the constructor.") | |
4161 | (home-page "https://github.com/floehopper/instantiator") | |
4162 | (license license:expat))) | |
4163 | ||
97aee8d3 RW |
4164 | (define-public ruby-introspection |
4165 | (package | |
4166 | (name "ruby-introspection") | |
98ff58a5 | 4167 | (version "0.0.4") |
97aee8d3 RW |
4168 | (source (origin |
4169 | (method url-fetch) | |
4170 | (uri (rubygems-uri "introspection" version)) | |
4171 | (sha256 | |
4172 | (base32 | |
98ff58a5 | 4173 | "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca")))) |
97aee8d3 RW |
4174 | (build-system ruby-build-system) |
4175 | (arguments | |
4176 | `(#:phases | |
4177 | (modify-phases %standard-phases | |
4178 | (add-after 'unpack 'add-test-unit-to-search-path | |
4179 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 4180 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
4181 | (substitute* "Rakefile" |
4182 | (("t\\.libs << \"test\"" line) | |
4183 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 4184 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
4185 | "/gems/test-unit-" |
4186 | ,(package-version ruby-test-unit) | |
4187 | "/lib\"")))) | |
97aee8d3 RW |
4188 | #t))))) |
4189 | (propagated-inputs | |
4190 | `(("ruby-instantiator" ,ruby-instantiator) | |
4191 | ("ruby-metaclass" ,ruby-metaclass))) | |
4192 | (native-inputs | |
4193 | `(("bundler" ,bundler) | |
4194 | ("ruby-blankslate" ,ruby-blankslate) | |
4195 | ("ruby-test-unit" ,ruby-test-unit))) | |
4196 | (synopsis "Dynamic inspection of the method hierarchy on a Ruby object") | |
4197 | (description | |
4198 | "Introspection provides tools to inspect the hierarchy of method | |
4199 | definitions on a Ruby object.") | |
4200 | (home-page "https://github.com/floehopper/introspection") | |
4201 | (license license:expat))) | |
4202 | ||
d93062fd RW |
4203 | (define-public ruby-redcarpet |
4204 | (package | |
4205 | (name "ruby-redcarpet") | |
ba4084bb | 4206 | (version "3.5.0") |
d93062fd RW |
4207 | (source (origin |
4208 | (method url-fetch) | |
4209 | (uri (rubygems-uri "redcarpet" version)) | |
4210 | (sha256 | |
4211 | (base32 | |
ba4084bb | 4212 | "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k")))) |
d93062fd RW |
4213 | (build-system ruby-build-system) |
4214 | (arguments | |
4215 | `(#:phases | |
4216 | (modify-phases %standard-phases | |
4217 | ;; The gem archive does not include the conformance tests. | |
4218 | (add-after 'unpack 'disable-conformance-tests | |
4219 | (lambda _ | |
4220 | (substitute* "Rakefile" | |
4221 | (("task :test => %w\\[test:unit test:conformance\\]") | |
4222 | "task :test => %w[test:unit]")) | |
4223 | #t))))) | |
4224 | (native-inputs | |
4225 | `(("bundler" ,bundler) | |
4226 | ("ruby-test-unit" ,ruby-test-unit) | |
4227 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
4228 | (synopsis "Extensible Markdown to (X)HTML converter") | |
4229 | (description | |
4230 | "Redcarpet is an extensible Ruby library for Markdown processing and | |
4231 | conversion to (X)HTML.") | |
7bf837fd | 4232 | (home-page "https://github.com/vmg/redcarpet") |
d93062fd RW |
4233 | (license license:expat))) |
4234 | ||
09924294 CB |
4235 | (define-public ruby-rerun |
4236 | (package | |
4237 | (name "ruby-rerun") | |
4238 | (version "0.13.0") | |
4239 | (source | |
4240 | (origin | |
4241 | (method url-fetch) | |
4242 | (uri (rubygems-uri "rerun" version)) | |
4243 | (sha256 | |
4244 | (base32 | |
4245 | "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz")))) | |
4246 | (build-system ruby-build-system) | |
4247 | (arguments | |
4248 | '(#:tests? #f)) ; No included tests | |
4249 | (propagated-inputs | |
4250 | `(("ruby-listen" ,ruby-listen))) | |
4251 | (synopsis "Run a process, and restart when some monitored files change") | |
4252 | (description | |
52beae7b | 4253 | "Rerun is a tool to launch programs, then monitor the file system, and |
09924294 CB |
4254 | restart the program when any of the monitored files change. It's written in |
4255 | Ruby, but can be used for all programs.") | |
4256 | (home-page "https://github.com/alexch/rerun/") | |
4257 | (license license:expat))) | |
4258 | ||
8d85543b MB |
4259 | (define-public ruby-maxitest |
4260 | (package | |
4261 | (name "ruby-maxitest") | |
4262 | (version "3.6.0") | |
4263 | (home-page "https://github.com/grosser/maxitest") | |
4264 | (source (origin | |
4265 | ;; Pull from git because the gem does not contain tests. | |
4266 | (method git-fetch) | |
4267 | (uri (git-reference | |
4268 | (url home-page) | |
4269 | (commit (string-append "v" version)))) | |
4270 | (file-name (git-file-name name version)) | |
4271 | (sha256 | |
4272 | (base32 | |
4273 | "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8")))) | |
4274 | (build-system ruby-build-system) | |
4275 | (arguments | |
4276 | '(#:test-target "default" | |
4277 | #:phases (modify-phases %standard-phases | |
4278 | (replace 'replace-git-ls-files | |
4279 | (lambda _ | |
4280 | (substitute* "maxitest.gemspec" | |
4281 | (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`") | |
4282 | "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`")) | |
4283 | #t)) | |
4284 | (add-before 'check 'remove-version-constraints | |
4285 | (lambda _ | |
4286 | ;; Don't use specific versions of dependencies, instead | |
4287 | ;; take whatever is available in Guix. | |
4288 | (delete-file "Gemfile.lock") | |
4289 | #t)) | |
4290 | (add-before 'check 'add-mtest-on-PATH | |
4291 | (lambda _ | |
4292 | ;; Tests use 'mtest' which is not automatically added on | |
4293 | ;; PATH. | |
4294 | (setenv "PATH" (string-append (getcwd) "/bin:" | |
4295 | (getenv "PATH"))) | |
4296 | #t))))) | |
4297 | (native-inputs | |
4298 | `(("ps" ,procps) | |
4299 | ("ruby-bump" ,ruby-bump) | |
4300 | ("ruby-byebug" ,ruby-byebug) | |
4301 | ("ruby-rspec" ,ruby-rspec) | |
4302 | ("ruby-wwtd" ,ruby-wwtd))) | |
4303 | (propagated-inputs | |
4304 | `(("ruby-minitest" ,ruby-minitest))) | |
4305 | (synopsis "Minitest with extra features") | |
4306 | (description | |
4307 | "Maxitest is a wrapper around Minitest with extra functionality such | |
4308 | as timeouts, an @command{mtest} executable that can run tests by line | |
4309 | number, support for interrupted tests, better backtraces, and more.") | |
4310 | (license license:expat))) | |
4311 | ||
4f2a52ae RW |
4312 | (define-public ruby-mocha |
4313 | (package | |
4314 | (name "ruby-mocha") | |
2fc3cc24 | 4315 | (version "1.11.2") |
4f2a52ae RW |
4316 | (source (origin |
4317 | (method url-fetch) | |
4318 | (uri (rubygems-uri "mocha" version)) | |
4319 | (sha256 | |
4320 | (base32 | |
2fc3cc24 | 4321 | "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4")))) |
4f2a52ae RW |
4322 | (build-system ruby-build-system) |
4323 | (arguments | |
4324 | `(#:phases | |
4325 | (modify-phases %standard-phases | |
2fc3cc24 MB |
4326 | (add-before 'check 'remove-rubocop-dependency |
4327 | (lambda _ | |
4328 | ;; Disable dependency on Rubocop, which is just a linter, | |
4329 | ;; and would introduce a circular dependency. | |
4330 | (substitute* "mocha.gemspec" | |
4331 | ((".*rubocop.*") | |
4332 | "true\n")) | |
4333 | #t))))) | |
4f2a52ae | 4334 | (native-inputs |
2fc3cc24 | 4335 | `(("ruby-introspection" ,ruby-introspection))) |
4f2a52ae RW |
4336 | (synopsis "Mocking and stubbing library for Ruby") |
4337 | (description | |
4338 | "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which | |
4339 | allows mocking and stubbing of methods on real (non-mock) classes.") | |
4340 | (home-page "http://gofreerange.com/mocha/docs") | |
e3febab5 MB |
4341 | ;; Mocha can be used with either license at the users choice. |
4342 | (license (list license:expat license:ruby)))) | |
4f2a52ae | 4343 | |
cf646acf CB |
4344 | (define-public ruby-mocha-on-bacon |
4345 | (package | |
4346 | (name "ruby-mocha-on-bacon") | |
4347 | (version "0.2.3") | |
4348 | (source | |
4349 | (origin | |
4350 | (method url-fetch) | |
4351 | (uri (rubygems-uri "mocha-on-bacon" version)) | |
4352 | (sha256 | |
4353 | (base32 | |
4354 | "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp")))) | |
4355 | (build-system ruby-build-system) | |
4356 | (arguments | |
4357 | ;; rubygems.org release missing tests | |
4358 | '(#:tests? #f)) | |
4359 | (propagated-inputs `(("ruby-mocha" ,ruby-mocha))) | |
4360 | (synopsis "Mocha adapter for Bacon") | |
4361 | (description | |
4362 | "This package provides a Mocha adapter for Bacon, allowing you to use the | |
4363 | Mocha stubbing and mocking library with Bacon, a small RSpec clone.") | |
4364 | (home-page | |
4365 | "https://github.com/alloy/mocha-on-bacon") | |
4366 | (license license:expat))) | |
4367 | ||
2c84ba7e RW |
4368 | (define-public ruby-net-ssh |
4369 | (package | |
4370 | (name "ruby-net-ssh") | |
5803f872 | 4371 | (version "4.2.0") |
2c84ba7e RW |
4372 | (source (origin |
4373 | (method url-fetch) | |
4374 | (uri (rubygems-uri "net-ssh" version)) | |
4375 | (sha256 | |
4376 | (base32 | |
5803f872 | 4377 | "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx")))) |
2c84ba7e RW |
4378 | (build-system ruby-build-system) |
4379 | (native-inputs | |
a7938625 MB |
4380 | `(("bundler" ,bundler) |
4381 | ("ruby-mocha" ,ruby-mocha) | |
2c84ba7e RW |
4382 | ("ruby-test-unit" ,ruby-test-unit))) |
4383 | (synopsis "Ruby implementation of the SSH2 client protocol") | |
4384 | (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2 | |
4385 | client protocol. It allows you to write programs that invoke and interact | |
4386 | with processes on remote servers, via SSH2.") | |
4387 | (home-page "https://github.com/net-ssh/net-ssh") | |
4388 | (license license:expat))) | |
4389 | ||
d38755cb DM |
4390 | (define-public ruby-net-scp |
4391 | (package | |
4392 | (name "ruby-net-scp") | |
4393 | ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4. | |
4394 | (version "1.2.2.rc2") | |
4395 | (source | |
4396 | (origin | |
e405f996 TGR |
4397 | (method git-fetch) |
4398 | (uri (git-reference | |
b0e7b699 | 4399 | (url "https://github.com/net-ssh/net-scp") |
e405f996 TGR |
4400 | (commit (string-append "v" version)))) |
4401 | (file-name (git-file-name name version)) | |
d38755cb | 4402 | (sha256 |
e405f996 | 4403 | (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx")))) |
d38755cb DM |
4404 | (build-system ruby-build-system) |
4405 | (native-inputs | |
4406 | `(("bundler" ,bundler) | |
4407 | ("ruby-test-unit" ,ruby-test-unit) | |
4408 | ("ruby-mocha" ,ruby-mocha))) | |
4409 | (propagated-inputs | |
4410 | `(("ruby-net-ssh" ,ruby-net-ssh))) | |
4411 | (synopsis "Pure-Ruby SCP client library") | |
4412 | (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP | |
4413 | client protocol.") | |
4414 | (home-page "https://github.com/net-ssh/net-scp") | |
4415 | (license license:expat))) | |
4416 | ||
2206e948 DT |
4417 | (define-public ruby-minitest |
4418 | (package | |
4419 | (name "ruby-minitest") | |
88a105c1 | 4420 | (version "5.11.3") |
2206e948 | 4421 | (source (origin |
e83c6d00 DT |
4422 | (method url-fetch) |
4423 | (uri (rubygems-uri "minitest" version)) | |
2206e948 DT |
4424 | (sha256 |
4425 | (base32 | |
88a105c1 | 4426 | "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq")))) |
2206e948 | 4427 | (build-system ruby-build-system) |
2206e948 DT |
4428 | (native-inputs |
4429 | `(("ruby-hoe" ,ruby-hoe))) | |
4430 | (synopsis "Small test suite library for Ruby") | |
4431 | (description "Minitest provides a complete suite of Ruby testing | |
4432 | facilities supporting TDD, BDD, mocking, and benchmarking.") | |
4433 | (home-page "https://github.com/seattlerb/minitest") | |
4434 | (license license:expat))) | |
4435 | ||
1db6e09f RW |
4436 | ;; This is the last release of Minitest 4, which is used by some packages. |
4437 | (define-public ruby-minitest-4 | |
4438 | (package (inherit ruby-minitest) | |
4439 | (version "4.7.5") | |
4440 | (source (origin | |
4441 | (method url-fetch) | |
4442 | (uri (rubygems-uri "minitest" version)) | |
4443 | (sha256 | |
4444 | (base32 | |
4445 | "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy")))) | |
4446 | (arguments | |
4447 | `(#:phases | |
4448 | (modify-phases %standard-phases | |
4449 | (add-after 'unpack 'remove-unsupported-method | |
4450 | (lambda _ | |
4451 | (substitute* "Rakefile" | |
4452 | (("self\\.rubyforge_name = .*") "")) | |
9a7017eb BW |
4453 | #t)) |
4454 | (add-after 'build 'exclude-failing-tests | |
4455 | (lambda _ | |
4456 | ;; Some tests are failing on Ruby 2.4 due to the deprecation of | |
4457 | ;; Fixnum. | |
4458 | (delete-file "test/minitest/test_minitest_spec.rb") | |
4459 | #t))))))) | |
1db6e09f | 4460 | |
450a3f7f CB |
4461 | (define-public ruby-minitest-around |
4462 | (package | |
4463 | (name "ruby-minitest-around") | |
4464 | (version "0.5.0") | |
4465 | (source | |
4466 | (origin | |
4467 | (method url-fetch) | |
4468 | (uri (rubygems-uri "minitest-around" version)) | |
4469 | (sha256 | |
4470 | (base32 | |
4471 | "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr")))) | |
4472 | (build-system ruby-build-system) | |
4473 | (arguments | |
4474 | '(#:phases | |
4475 | (modify-phases %standard-phases | |
4476 | (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions | |
4477 | (lambda _ | |
4478 | (substitute* "minitest-around.gemspec" | |
4479 | (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n")) | |
4480 | #t))))) | |
4481 | (propagated-inputs | |
4482 | `(("ruby-minitest" ,ruby-minitest))) | |
4483 | (native-inputs | |
4484 | `(("bundler" ,bundler) | |
4485 | ("ruby-cucumber" ,ruby-cucumber) | |
4486 | ("ruby-bump" ,ruby-bump) | |
4487 | ("ruby-test-construct" ,ruby-test-construct))) | |
4488 | (synopsis "Run code around tests in Minitest") | |
4489 | (description | |
4490 | "This library provides a way to run code around tests in Minitest, | |
4491 | written using either the unit test or spec style.") | |
4492 | (home-page "https://github.com/splattael/minitest-around") | |
4493 | (license license:expat))) | |
4494 | ||
35130835 DT |
4495 | (define-public ruby-minitest-sprint |
4496 | (package | |
4497 | (name "ruby-minitest-sprint") | |
4498 | (version "1.1.0") | |
4499 | (source (origin | |
e83c6d00 DT |
4500 | (method url-fetch) |
4501 | (uri (rubygems-uri "minitest-sprint" version)) | |
35130835 DT |
4502 | (sha256 |
4503 | (base32 | |
e83c6d00 | 4504 | "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1")))) |
35130835 | 4505 | (build-system ruby-build-system) |
35130835 DT |
4506 | (native-inputs |
4507 | `(("ruby-hoe" ,ruby-hoe) | |
4508 | ("ruby-minitest" ,ruby-minitest))) | |
4509 | (synopsis "Fast test suite runner for minitest") | |
4510 | (description "Minitest-sprint is a test runner for minitest that makes it | |
4511 | easier to re-run individual failing tests.") | |
4512 | (home-page "https://github.com/seattlerb/minitest-sprint") | |
4513 | (license license:expat))) | |
4514 | ||
0808e361 DT |
4515 | (define-public ruby-minitest-bacon |
4516 | (package | |
4517 | (name "ruby-minitest-bacon") | |
6f9652b0 | 4518 | (version "1.0.3") |
0808e361 | 4519 | (source (origin |
e83c6d00 DT |
4520 | (method url-fetch) |
4521 | (uri (rubygems-uri "minitest-bacon" version)) | |
0808e361 DT |
4522 | (sha256 |
4523 | (base32 | |
6f9652b0 | 4524 | "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj")))) |
0808e361 | 4525 | (build-system ruby-build-system) |
0808e361 DT |
4526 | (native-inputs |
4527 | `(("ruby-hoe" ,ruby-hoe))) | |
4528 | (inputs | |
4529 | `(("ruby-minitest" ,ruby-minitest))) | |
4530 | (synopsis "Bacon compatibility library for minitest") | |
4531 | (description "Minitest-bacon extends minitest with bacon-like | |
4532 | functionality, making it easier to migrate test suites from bacon to minitest.") | |
4533 | (home-page "https://github.com/seattlerb/minitest-bacon") | |
4534 | (license license:expat))) | |
4535 | ||
39dc0eb5 BW |
4536 | (define-public ruby-minitest-focus |
4537 | (package | |
4538 | (name "ruby-minitest-focus") | |
4539 | (version "1.1.2") | |
4540 | (source | |
4541 | (origin | |
4542 | (method url-fetch) | |
4543 | (uri (rubygems-uri "minitest-focus" version)) | |
4544 | (sha256 | |
4545 | (base32 | |
4546 | "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0")))) | |
4547 | (build-system ruby-build-system) | |
4548 | (propagated-inputs | |
4549 | `(("ruby-minitest" ,ruby-minitest))) | |
4550 | (native-inputs | |
4551 | `(("ruby-hoe" ,ruby-hoe))) | |
4552 | (synopsis "Allows a few specific tests to be focused on") | |
4553 | (description | |
4554 | "@code{minitest-focus} gives the ability focus on a few tests with ease | |
4555 | without having to use command-line arguments. It introduces a @code{focus} | |
4556 | class method for use in testing classes, specifying that the next defined test | |
4557 | is to be run.") | |
4558 | (home-page "https://github.com/seattlerb/minitest-focus") | |
4559 | (license license:expat))) | |
4560 | ||
99fc5cd5 BW |
4561 | (define-public ruby-minitest-pretty-diff |
4562 | ;; Use git reference because gem is out of date and does not contain testing | |
4563 | ;; script. There are no releases on GitHub. | |
4564 | (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572")) | |
4565 | (package | |
4566 | (name "ruby-minitest-pretty-diff") | |
4567 | (version (string-append "0.1-1." (string-take commit 8))) | |
4568 | (source (origin | |
4569 | (method git-fetch) | |
4570 | (uri (git-reference | |
b0e7b699 | 4571 | (url "https://github.com/adammck/minitest-pretty_diff") |
99fc5cd5 BW |
4572 | (commit commit))) |
4573 | (file-name (string-append name "-" version "-checkout")) | |
4574 | (sha256 | |
4575 | (base32 | |
4576 | "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r")))) | |
4577 | (build-system ruby-build-system) | |
4578 | (arguments | |
4579 | `(#:phases | |
4580 | (modify-phases %standard-phases | |
4581 | (replace 'check | |
4582 | (lambda _ | |
9923d5a4 | 4583 | (invoke "script/test")))))) |
99fc5cd5 BW |
4584 | (native-inputs |
4585 | `(("bundler" ,bundler) | |
4586 | ("ruby-turn" ,ruby-turn))) | |
4587 | (synopsis "Pretty-print hashes and arrays in MiniTest") | |
4588 | (description | |
4589 | "@code{minitest-pretty_diff} monkey-patches | |
4590 | @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before | |
4591 | diffing them. This makes it easier to spot differences between nested | |
4592 | structures when tests fail.") | |
4593 | (home-page "https://github.com/adammck/minitest-pretty_diff") | |
4594 | (license license:expat)))) | |
4595 | ||
685d0d2f BW |
4596 | (define-public ruby-minitest-moar |
4597 | (package | |
4598 | (name "ruby-minitest-moar") | |
4599 | (version "0.0.4") | |
4600 | (source | |
4601 | (origin | |
4602 | (method url-fetch) | |
4603 | (uri (rubygems-uri "minitest-moar" version)) | |
4604 | (sha256 | |
4605 | (base32 | |
4606 | "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x")))) | |
4607 | (build-system ruby-build-system) | |
4608 | (arguments | |
4609 | `(#:phases | |
4610 | (modify-phases %standard-phases | |
4611 | (add-before 'check 'clean-dependencies | |
4612 | (lambda _ | |
4613 | ;; Remove all gems defined in the Gemfile because these are not | |
4614 | ;; truly needed. | |
4615 | (substitute* "Gemfile" | |
4616 | (("gem .*") "")) | |
4617 | ;; Remove byebug as not needed to run tests. | |
4618 | (substitute* "test/test_helper.rb" | |
4619 | (("require 'byebug'") "")) | |
4620 | #t))))) | |
4621 | (native-inputs | |
4622 | `(("bundler" ,bundler) | |
4623 | ("ruby-minitest" ,ruby-minitest))) | |
4624 | (synopsis "Extra features and changes to MiniTest") | |
4625 | (description "@code{MiniTest Moar} add some additional features and | |
4626 | changes some default behaviours in MiniTest. For instance, Moar replaces the | |
4627 | MiniTest @code{Object#stub} with a global @code{stub} method.") | |
4628 | (home-page "https://github.com/dockyard/minitest-moar") | |
4629 | (license license:expat))) | |
4630 | ||
e07ef1d6 BW |
4631 | (define-public ruby-minitest-bonus-assertions |
4632 | (package | |
4633 | (name "ruby-minitest-bonus-assertions") | |
c9e261b7 | 4634 | (version "3.0") |
e07ef1d6 BW |
4635 | (source |
4636 | (origin | |
4637 | (method url-fetch) | |
4638 | (uri (rubygems-uri "minitest-bonus-assertions" version)) | |
4639 | (sha256 | |
4640 | (base32 | |
c9e261b7 | 4641 | "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a")))) |
e07ef1d6 BW |
4642 | (build-system ruby-build-system) |
4643 | (arguments | |
4644 | `(#:phases | |
4645 | (modify-phases %standard-phases | |
4646 | (add-before 'check 'clean-dependencies | |
4647 | (lambda _ | |
4648 | ;; Remove unneeded require statement that would entail another | |
4649 | ;; dependency. | |
4650 | (substitute* "test/minitest_config.rb" | |
4651 | (("require 'minitest/bisect'") "")) | |
4652 | #t))))) | |
4653 | (native-inputs | |
4654 | `(("ruby-hoe" ,ruby-hoe) | |
4655 | ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff) | |
4656 | ("ruby-minitest-focus" ,ruby-minitest-focus) | |
4657 | ("ruby-minitest-moar" ,ruby-minitest-moar))) | |
4658 | (synopsis "Bonus assertions for @code{Minitest}") | |
4659 | (description | |
4660 | "Minitest bonus assertions provides extra MiniTest assertions. For | |
4661 | instance, it provides @code{assert_true}, @code{assert_false} and | |
4662 | @code{assert_set_equal}.") | |
4663 | (home-page "https://github.com/halostatue/minitest-bonus-assertions") | |
4664 | (license license:expat))) | |
4665 | ||
e2c9a9cc CB |
4666 | (define-public ruby-minitest-reporters |
4667 | (package | |
4668 | (name "ruby-minitest-reporters") | |
4669 | (version "1.3.6") | |
4670 | (source | |
4671 | (origin | |
4672 | (method url-fetch) | |
4673 | (uri (rubygems-uri "minitest-reporters" version)) | |
4674 | (sha256 | |
4675 | (base32 | |
4676 | "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay")))) | |
4677 | (build-system ruby-build-system) | |
4678 | (arguments | |
4679 | '(#:phases | |
4680 | (modify-phases %standard-phases | |
4681 | ;; Remove the requirement on Rubocop, as it isn't useful to run, and | |
4682 | ;; including it as an input can lead to circular dependencies. | |
4683 | (add-after 'unpack 'remove-rubocop-from-Rakefile | |
4684 | (lambda _ | |
4685 | (substitute* "Rakefile" | |
4686 | (("require 'rubocop/rake\\_task'") "") | |
4687 | (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each")) | |
4688 | #t)) | |
4689 | (add-after 'extract-gemspec 'remove-rubocop-from-gemspec | |
4690 | (lambda _ | |
4691 | (substitute* "minitest-reporters.gemspec" | |
4692 | ((".*%q<rubocop>.*") "\n")) | |
4693 | #t))))) | |
4694 | (propagated-inputs | |
4695 | `(("ruby-ansi" ,ruby-ansi) | |
4696 | ("ruby-builder" ,ruby-builder) | |
4697 | ("ruby-minitest" ,ruby-minitest) | |
4698 | ("ruby-progressbar" ,ruby-progressbar))) | |
4699 | (native-inputs | |
4700 | `(("bundler" ,bundler) | |
4701 | ("ruby-maruku" ,ruby-maruku))) | |
4702 | (synopsis "Enhanced reporting for Minitest tests") | |
4703 | (description | |
4704 | "@code{minitest/reporters} provides a custom Minitest runner to improve | |
4705 | how the test state is reported. A number of different reporters are | |
4706 | available, including a spec reporter, progress bar reporter, a HTML | |
4707 | reporter.") | |
4708 | (home-page "https://github.com/kern/minitest-reporters") | |
4709 | (license license:expat))) | |
4710 | ||
e582fa93 BW |
4711 | (define-public ruby-minitest-rg |
4712 | (package | |
4713 | (name "ruby-minitest-rg") | |
4714 | (version "5.2.0") | |
4715 | (source | |
4716 | (origin | |
4717 | (method url-fetch) | |
4718 | (uri (rubygems-uri "minitest-rg" version)) | |
4719 | (sha256 | |
4720 | (base32 | |
4721 | "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354")))) | |
4722 | (build-system ruby-build-system) | |
4723 | (arguments | |
4724 | ;; Some tests fail even outside Guix, so disable tests. | |
4725 | ;; https://github.com/blowmage/minitest-rg/issues/12 | |
4726 | ;; https://github.com/blowmage/minitest-rg/pull/13 | |
4727 | `(#:tests? #f)) | |
4728 | (propagated-inputs | |
4729 | `(("ruby-minitest" ,ruby-minitest))) | |
4730 | (synopsis "Coloured output for Minitest") | |
4731 | (description | |
4732 | "@code{minitest-rg} changes the colour of the output from Minitest.") | |
8e486e80 | 4733 | (home-page "https://blowmage.com/minitest-rg/") |
e582fa93 BW |
4734 | (license license:expat))) |
4735 | ||
ff9d33a9 CB |
4736 | (define-public ruby-minitest-global-expectations |
4737 | (package | |
4738 | (name "ruby-minitest-global-expectations") | |
4739 | (version "1.0.1") | |
4740 | (source | |
4741 | (origin | |
4742 | (method url-fetch) | |
4743 | (uri (rubygems-uri "minitest-global_expectations" | |
4744 | version)) | |
4745 | (sha256 | |
4746 | (base32 | |
4747 | "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x")))) | |
4748 | (build-system ruby-build-system) | |
4749 | (propagated-inputs | |
4750 | `(("ruby-minitest" ,ruby-minitest))) | |
4751 | (synopsis "Adjust minitest behaviour for calling expectation methods") | |
4752 | (description | |
4753 | "Minitest-global_expectations allows continued use of expectation methods | |
4754 | on all objects. Calling expectation methods on all objects was deprecated in | |
4755 | minitest 5.12, and is planned to be removed from minitest 6.") | |
4756 | (home-page "https://github.com/jeremyevans/minitest-global_expectations") | |
4757 | (license license:expat))) | |
4758 | ||
2a96dbe6 BW |
4759 | (define-public ruby-minitest-hooks |
4760 | (package | |
4761 | (name "ruby-minitest-hooks") | |
eaaf8b12 | 4762 | (version "1.4.2") |
2a96dbe6 BW |
4763 | (source |
4764 | (origin | |
4765 | (method url-fetch) | |
4766 | (uri (rubygems-uri "minitest-hooks" version)) | |
4767 | (sha256 | |
4768 | (base32 | |
eaaf8b12 | 4769 | "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc")))) |
2a96dbe6 BW |
4770 | (build-system ruby-build-system) |
4771 | (arguments | |
4772 | '(#:test-target "spec")) | |
4773 | (native-inputs | |
4774 | `(("ruby-sequel" ,ruby-sequel) | |
4775 | ("ruby-sqlite3" ,ruby-sqlite3))) | |
4776 | (synopsis "Hooks for the minitest framework") | |
4777 | (description | |
4778 | "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all}, | |
4779 | @code{around_all} hooks for Minitest. This allows, for instance, running each | |
4780 | suite of specs inside a database transaction, running each spec inside its own | |
4781 | savepoint inside that transaction. This can significantly speed up testing | |
4782 | for specs that share expensive database setup code.") | |
7bf837fd | 4783 | (home-page "https://github.com/jeremyevans/minitest-hooks") |
2a96dbe6 BW |
4784 | (license license:expat))) |
4785 | ||
afbbdf77 DT |
4786 | (define-public ruby-daemons |
4787 | (package | |
4788 | (name "ruby-daemons") | |
f03153db | 4789 | (version "1.2.5") |
afbbdf77 DT |
4790 | (source (origin |
4791 | (method url-fetch) | |
e83c6d00 | 4792 | (uri (rubygems-uri "daemons" version)) |
afbbdf77 DT |
4793 | (sha256 |
4794 | (base32 | |
f03153db | 4795 | "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring")))) |
afbbdf77 DT |
4796 | (build-system ruby-build-system) |
4797 | (arguments | |
4798 | `(#:tests? #f)) ; no test suite | |
4799 | (synopsis "Daemonize Ruby programs") | |
4800 | (description "Daemons provides a way to wrap existing Ruby scripts to be | |
4801 | run as a daemon and to be controlled by simple start/stop/restart commands.") | |
4802 | (home-page "https://github.com/thuehlinger/daemons") | |
4803 | (license license:expat))) | |
b03eb6ac CB |
4804 | |
4805 | (define-public ruby-data_uri | |
4806 | (package | |
4807 | (name "ruby-data_uri") | |
4808 | (version "0.1.0") | |
4809 | (source | |
4810 | (origin | |
4811 | (method url-fetch) | |
4812 | (uri (rubygems-uri "data_uri" version)) | |
4813 | (sha256 | |
4814 | (base32 | |
4815 | "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky")))) | |
4816 | (build-system ruby-build-system) | |
4817 | (synopsis "URI class for parsing data URIs") | |
4818 | (description | |
4819 | "Data @acronym{URI, universal resource idenfitier}s allow resources to be | |
4820 | embedded inside a URI. The URI::Data class provides support for parsing these | |
4821 | URIs using the normal URI.parse method.") | |
4822 | (home-page "https://github.com/dball/data_uri") | |
4823 | (license license:expat))) | |
66e20863 | 4824 | |
72c785f9 MB |
4825 | (define-public ruby-deep-merge |
4826 | (package | |
4827 | (name "ruby-deep-merge") | |
4828 | (version "1.2.1") | |
4829 | (home-page "https://github.com/danielsdeleo/deep_merge") | |
4830 | ;; The Rubygem source does not contain the gemspec required for tests. | |
4831 | (source (origin | |
4832 | (method git-fetch) | |
4833 | (uri (git-reference (url home-page) (commit version))) | |
4834 | (file-name (git-file-name name version)) | |
4835 | (sha256 | |
4836 | (base32 | |
4837 | "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931")))) | |
4838 | (build-system ruby-build-system) | |
4839 | (native-inputs | |
4840 | `(("ruby-minitest" ,ruby-minitest))) | |
4841 | (synopsis "Recursively merge hashes") | |
4842 | (description | |
4843 | "Deep Merge is a set of utility functions for @code{Hash}. It permits | |
4844 | you to merge elements inside a hash together recursively.") | |
4845 | (license license:expat))) | |
4846 | ||
66e20863 DT |
4847 | (define-public ruby-git |
4848 | (package | |
4849 | (name "ruby-git") | |
ceaff59e | 4850 | (version "1.3.0") |
66e20863 DT |
4851 | (source (origin |
4852 | (method url-fetch) | |
e83c6d00 | 4853 | (uri (rubygems-uri "git" version)) |
66e20863 DT |
4854 | (sha256 |
4855 | (base32 | |
ceaff59e | 4856 | "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3")))) |
66e20863 DT |
4857 | (build-system ruby-build-system) |
4858 | (arguments | |
e83c6d00 DT |
4859 | `(#:tests? #f ; no tests |
4860 | #:phases (modify-phases %standard-phases | |
4861 | (add-after 'install 'patch-git-binary | |
4862 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
66e20863 DT |
4863 | ;; Make the default git binary an absolute path to the |
4864 | ;; store. | |
e83c6d00 DT |
4865 | (let ((git (string-append (assoc-ref inputs "git") |
4866 | "/bin/git")) | |
3cb3fa67 CB |
4867 | (config (string-append |
4868 | (assoc-ref outputs "out") | |
4869 | "/lib/ruby/vendor_ruby/gems/git-" | |
4870 | ,version "/lib/git/config.rb"))) | |
e83c6d00 | 4871 | (substitute* (list config) |
66e20863 DT |
4872 | (("'git'") |
4873 | (string-append "'" git "'"))) | |
e83c6d00 | 4874 | #t)))))) |
66e20863 DT |
4875 | (inputs |
4876 | `(("git" ,git))) | |
4877 | (synopsis "Ruby wrappers for Git") | |
4878 | (description "Ruby/Git is a Ruby library that can be used to create, read | |
4879 | and manipulate Git repositories by wrapping system calls to the git binary.") | |
4880 | (home-page "https://github.com/schacon/ruby-git") | |
4881 | (license license:expat))) | |
71d3e2c2 | 4882 | |
95598153 MB |
4883 | (define-public ruby-hocon |
4884 | (package | |
4885 | (name "ruby-hocon") | |
fd13ec5f | 4886 | (version "1.3.1") |
95598153 MB |
4887 | (home-page "https://github.com/puppetlabs/ruby-hocon") |
4888 | (source (origin | |
4889 | (method git-fetch) | |
4890 | (uri (git-reference (url home-page) (commit version))) | |
4891 | (file-name (git-file-name name version)) | |
4892 | (sha256 | |
4893 | (base32 | |
fd13ec5f | 4894 | "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr")))) |
95598153 MB |
4895 | (build-system ruby-build-system) |
4896 | (arguments | |
4897 | '(#:phases (modify-phases %standard-phases | |
4898 | (replace 'check | |
4899 | (lambda* (#:key tests? #:allow-other-keys) | |
4900 | (if tests? | |
4901 | (invoke "rspec") | |
4902 | (format #t "test suite not run~%")) | |
4903 | #t))))) | |
4904 | (native-inputs | |
4905 | `(("bundler" ,bundler) | |
4906 | ("ruby-rspec" ,ruby-rspec))) | |
4907 | (synopsis "HOCON config library") | |
4908 | (description | |
4909 | "This package provides Ruby support for the @acronym{HOCON, | |
4910 | Human-Optimized Config Object Notation} configuration file format. It | |
4911 | supports parsing and modifying HOCON and JSON files, and rendering parsed | |
4912 | objects back to a @code{String}.") | |
4913 | (license license:asl2.0))) | |
4914 | ||
71d3e2c2 DT |
4915 | (define-public ruby-slop |
4916 | (package | |
4917 | (name "ruby-slop") | |
d14e5eaa | 4918 | (version "4.5.0") |
71d3e2c2 DT |
4919 | (source (origin |
4920 | (method url-fetch) | |
e83c6d00 | 4921 | (uri (rubygems-uri "slop" version)) |
71d3e2c2 DT |
4922 | (sha256 |
4923 | (base32 | |
d14e5eaa | 4924 | "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p")))) |
71d3e2c2 DT |
4925 | (build-system ruby-build-system) |
4926 | (native-inputs | |
4927 | `(("ruby-minitest" ,ruby-minitest))) | |
4928 | (synopsis "Ruby command line option parser") | |
4929 | (description "Slop provides a Ruby domain specific language for gathering | |
4930 | options and parsing command line flags.") | |
4931 | (home-page "https://github.com/leejarvis/slop") | |
4932 | (license license:expat))) | |
e778a549 | 4933 | |
5337f8b9 DT |
4934 | (define-public ruby-slop-3 |
4935 | (package (inherit ruby-slop) | |
4936 | (version "3.6.0") | |
4937 | (source (origin | |
4938 | (method url-fetch) | |
4939 | (uri (rubygems-uri "slop" version)) | |
4940 | (sha256 | |
4941 | (base32 | |
4942 | "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n")))))) | |
4943 | ||
ca914b5b CB |
4944 | (define-public ruby-multi-xml |
4945 | (package | |
4946 | (name "ruby-multi-xml") | |
4947 | (version "0.6.0") | |
4948 | (source | |
4949 | (origin | |
4950 | (method url-fetch) | |
4951 | (uri (rubygems-uri "multi_xml" version)) | |
4952 | (sha256 | |
4953 | (base32 | |
4954 | "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj")))) | |
4955 | (build-system ruby-build-system) | |
4956 | (arguments | |
4957 | '(#:tests? #f)) ; No included tests | |
4958 | (synopsis "Swappable XML backends for Ruby") | |
4959 | (description | |
4960 | "@code{MultiXml} provides swappable XML backends utilizing either LibXML, | |
4961 | Nokogiri, Ox, or REXML.") | |
4962 | (home-page "https://github.com/sferik/multi_xml") | |
4963 | (license license:expat))) | |
4964 | ||
e778a549 DT |
4965 | (define-public ruby-multipart-post |
4966 | (package | |
4967 | (name "ruby-multipart-post") | |
4968 | (version "2.0.0") | |
4969 | (source (origin | |
4970 | (method url-fetch) | |
e83c6d00 | 4971 | (uri (rubygems-uri "multipart-post" version)) |
e778a549 DT |
4972 | (sha256 |
4973 | (base32 | |
e83c6d00 | 4974 | "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x")))) |
e778a549 DT |
4975 | (build-system ruby-build-system) |
4976 | (native-inputs | |
4977 | `(("bundler" ,bundler))) | |
4978 | (synopsis "Multipart POST library for Ruby") | |
4979 | (description "Multipart-Post Adds multipart POST capability to Ruby's | |
4980 | net/http library.") | |
4981 | (home-page "https://github.com/nicksieger/multipart-post") | |
4982 | (license license:expat))) | |
f8da3af0 | 4983 | |
9a97e7ce CB |
4984 | (define-public ruby-multi-json |
4985 | (package | |
4986 | (name "ruby-multi-json") | |
1b6f5475 | 4987 | (version "1.13.1") |
9a97e7ce CB |
4988 | (source |
4989 | (origin | |
b872b47b | 4990 | (method git-fetch) |
1b6f5475 BW |
4991 | ;; Tests are not distributed at rubygems.org so download from GitHub |
4992 | ;; instead. | |
b872b47b EF |
4993 | (uri (git-reference |
4994 | (url "https://github.com/intridea/multi_json") | |
4995 | (commit (string-append "v" version)))) | |
4996 | (file-name (git-file-name name version)) | |
9a97e7ce CB |
4997 | (sha256 |
4998 | (base32 | |
b872b47b | 4999 | "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4")))) |
9a97e7ce CB |
5000 | (build-system ruby-build-system) |
5001 | (arguments | |
1b6f5475 BW |
5002 | `(#:phases |
5003 | (modify-phases %standard-phases | |
5004 | (add-after 'unpack 'remove-signing-key-reference | |
5005 | (lambda _ | |
5006 | (substitute* "multi_json.gemspec" | |
5007 | ((".*spec.signing_key.*") "")) | |
5008 | #t))))) | |
5009 | (native-inputs | |
5010 | `(("bundler" ,bundler) | |
5011 | ("ruby-rspec" ,ruby-rspec) | |
5012 | ("ruby-yard" ,ruby-yard) | |
5013 | ("ruby-json-pure" ,ruby-json-pure) | |
5014 | ("ruby-oj" ,ruby-oj) | |
5015 | ("ruby-yajl-ruby" ,ruby-yajl-ruby))) | |
9a97e7ce CB |
5016 | (synopsis "Common interface to multiple JSON libraries for Ruby") |
5017 | (description | |
5018 | "This package provides a common interface to multiple JSON libraries, | |
5019 | including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem, | |
5020 | NSJSONSerialization, gson.rb, JrJackson, and OkJson.") | |
1b6f5475 | 5021 | (home-page "https://github.com/intridea/multi_json") |
9a97e7ce CB |
5022 | (license license:expat))) |
5023 | ||
5edef88b BW |
5024 | (define-public ruby-multi-test |
5025 | (package | |
5026 | (name "ruby-multi-test") | |
5027 | (version "0.1.2") | |
5028 | (source | |
5029 | (origin | |
5030 | (method url-fetch) | |
5031 | (uri (rubygems-uri "multi_test" version)) | |
5032 | (sha256 | |
5033 | (base32 | |
5034 | "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd")))) | |
5035 | (build-system ruby-build-system) | |
5036 | (arguments | |
5037 | '(;; Tests require different sets of specific gem versions to be available, | |
5038 | ;; and there is no gemfile that specifies the newest versions of | |
5039 | ;; dependencies to be tested. | |
5040 | #:tests? #f)) | |
5041 | (synopsis | |
5042 | "Interface to testing libraries loaded into a running Ruby process") | |
5043 | (description | |
5044 | "@code{multi_test} provides a uniform interface onto whatever testing | |
5045 | libraries that have been loaded into a running Ruby process to help control | |
5046 | rogue test/unit/autorun requires.") | |
5047 | (home-page "https://github.com/cucumber/multi_test") | |
9a97e7ce CB |
5048 | (license license:expat))) |
5049 | ||
f8da3af0 DT |
5050 | (define-public ruby-arel |
5051 | (package | |
5052 | (name "ruby-arel") | |
aecd533d | 5053 | (version "9.0.0") |
f8da3af0 DT |
5054 | (source (origin |
5055 | (method url-fetch) | |
5056 | (uri (rubygems-uri "arel" version)) | |
5057 | (sha256 | |
5058 | (base32 | |
aecd533d | 5059 | "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0")))) |
f8da3af0 DT |
5060 | (build-system ruby-build-system) |
5061 | (arguments '(#:tests? #f)) ; no tests | |
5062 | (home-page "https://github.com/rails/arel") | |
5063 | (synopsis "SQL AST manager for Ruby") | |
6f23e2fb TGR |
5064 | (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for |
5065 | Ruby. It simplifies the generation of complex SQL queries and adapts to | |
5066 | various relational database implementations.") | |
f8da3af0 | 5067 | (license license:expat))) |
616eaead | 5068 | |
554bf4f6 CB |
5069 | (define-public ruby-marcel |
5070 | (package | |
5071 | (name "ruby-marcel") | |
5072 | (version "0.3.3") | |
5073 | (source | |
5074 | (origin | |
5075 | (method url-fetch) | |
5076 | (uri (rubygems-uri "marcel" version)) | |
5077 | (sha256 | |
5078 | (base32 | |
5079 | "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx")))) | |
5080 | (build-system ruby-build-system) | |
5081 | (arguments | |
5082 | '(;; No included tests | |
5083 | #:tests? #f)) | |
5084 | (propagated-inputs | |
5085 | `(("ruby-mimemagic" ,ruby-mimemagic))) | |
5086 | (synopsis "MIME type detection using magic numbers, filenames and extensions") | |
5087 | (description | |
5088 | "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail | |
5089 | Extensions} type detection using magic numbers, filenames, and extensions") | |
5090 | (home-page "https://github.com/basecamp/marcel") | |
5091 | (license license:expat))) | |
5092 | ||
616eaead | 5093 | (define-public ruby-minitar |
bfaf8efd BW |
5094 | ;; We package from the GitHub source to fix the security issue reported at |
5095 | ;; https://github.com/halostatue/minitar/issues/16. | |
5096 | (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4")) | |
5097 | (package | |
5098 | (name "ruby-minitar") | |
5099 | (version (string-append "0.5.4-1." (string-take commit 8))) | |
5100 | (source | |
5101 | (origin | |
5102 | (method git-fetch) | |
5103 | (uri (git-reference | |
b0e7b699 | 5104 | (url "https://github.com/halostatue/minitar") |
bfaf8efd BW |
5105 | (commit commit))) |
5106 | (file-name (string-append name "-" version "-checkout")) | |
5107 | (sha256 | |
5108 | (base32 | |
5109 | "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv")))) | |
5110 | (build-system ruby-build-system) | |
5111 | (arguments | |
5112 | '(#:tests? #f)) ; missing a gemspec | |
5113 | (synopsis "Ruby library and utility for handling tar archives") | |
5114 | (description | |
5115 | "Archive::Tar::Minitar is a pure-Ruby library and command-line utility | |
616eaead | 5116 | that provides the ability to deal with POSIX tar archive files.") |
bfaf8efd BW |
5117 | (home-page "http://www.github.com/atoulme/minitar") |
5118 | (license (list license:gpl2+ license:ruby))))) | |
bea1c0e2 DT |
5119 | |
5120 | (define-public ruby-mini-portile | |
5121 | (package | |
5122 | (name "ruby-mini-portile") | |
5123 | (version "0.6.2") | |
5124 | (source | |
5125 | (origin | |
5126 | (method url-fetch) | |
5127 | (uri (rubygems-uri "mini_portile" version)) | |
5128 | (sha256 | |
5129 | (base32 | |
5130 | "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w")))) | |
5131 | (build-system ruby-build-system) | |
5132 | (arguments | |
5133 | '(#:tests? #f)) ; tests require network access | |
5134 | (synopsis "Ports system for Ruby developers") | |
5135 | (description "Mini-portile is a port/recipe system for Ruby developers. | |
5136 | It provides a standard way to compile against specific versions of libraries | |
5137 | to reproduce user environments.") | |
7bf837fd | 5138 | (home-page "https://github.com/flavorjones/mini_portile") |
bea1c0e2 | 5139 | (license license:expat))) |
e920bfca | 5140 | |
d000fc92 BW |
5141 | (define-public ruby-mini-portile-2 |
5142 | (package (inherit ruby-mini-portile) | |
a88ac044 | 5143 | (version "2.4.0") |
d000fc92 BW |
5144 | (source (origin |
5145 | (method url-fetch) | |
5146 | (uri (rubygems-uri "mini_portile2" version)) | |
5147 | (sha256 | |
5148 | (base32 | |
a88ac044 | 5149 | "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy")))))) |
d000fc92 | 5150 | |
e920bfca DT |
5151 | (define-public ruby-nokogiri |
5152 | (package | |
5153 | (name "ruby-nokogiri") | |
62cc7344 | 5154 | (version "1.10.9") |
e920bfca DT |
5155 | (source (origin |
5156 | (method url-fetch) | |
5157 | (uri (rubygems-uri "nokogiri" version)) | |
5158 | (sha256 | |
5159 | (base32 | |
62cc7344 | 5160 | "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm")))) |
e920bfca DT |
5161 | (build-system ruby-build-system) |
5162 | (arguments | |
5163 | ;; Tests fail because Nokogiri can only test with an installed extension, | |
5164 | ;; and also because many test framework dependencies are missing. | |
7b01f250 | 5165 | `(#:tests? #f |
e920bfca DT |
5166 | #:gem-flags (list "--" "--use-system-libraries" |
5167 | (string-append "--with-xml2-include=" | |
5168 | (assoc-ref %build-inputs "libxml2") | |
5e7f1b0b BW |
5169 | "/include/libxml2" )) |
5170 | #:phases | |
5171 | (modify-phases %standard-phases | |
7b01f250 BW |
5172 | (add-before 'build 'patch-extconf |
5173 | ;; 'pkg-config' is not included in the GEM_PATH during | |
5174 | ;; installation, so we add it directly to the load path. | |
5175 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 5176 | (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))) |
7b01f250 BW |
5177 | (substitute* "ext/nokogiri/extconf.rb" |
5178 | (("gem 'pkg-config'.*") | |
5179 | (string-append "$:.unshift '" | |
3cb3fa67 | 5180 | pkg-config "/lib/ruby/vendor_ruby" |
7b01f250 BW |
5181 | "/gems/pkg-config-" |
5182 | ,(package-version ruby-pkg-config) | |
5183 | "/lib'\n")))) | |
5e7f1b0b | 5184 | #t))))) |
e920bfca | 5185 | (native-inputs |
7b01f250 | 5186 | `(("ruby-hoe" ,ruby-hoe))) |
e920bfca DT |
5187 | (inputs |
5188 | `(("zlib" ,zlib) | |
5189 | ("libxml2" ,libxml2) | |
5190 | ("libxslt" ,libxslt))) | |
5191 | (propagated-inputs | |
7b01f250 BW |
5192 | `(("ruby-mini-portile" ,ruby-mini-portile-2) |
5193 | ("ruby-pkg-config" ,ruby-pkg-config))) | |
e920bfca DT |
5194 | (synopsis "HTML, XML, SAX, and Reader parser for Ruby") |
5195 | (description "Nokogiri (鋸) parses and searches XML/HTML, and features | |
5196 | both CSS3 selector and XPath 1.0 support.") | |
5197 | (home-page "http://www.nokogiri.org/") | |
5198 | (license license:expat))) | |
30b0b725 DT |
5199 | |
5200 | (define-public ruby-method-source | |
5201 | (package | |
5202 | (name "ruby-method-source") | |
ec08f469 | 5203 | (version "1.0.0") |
30b0b725 DT |
5204 | (source |
5205 | (origin | |
5206 | (method url-fetch) | |
5207 | (uri (rubygems-uri "method_source" version)) | |
5208 | (sha256 | |
5209 | (base32 | |
ec08f469 | 5210 | "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp")))) |
30b0b725 | 5211 | (build-system ruby-build-system) |
c8355037 | 5212 | (arguments |
b52bf667 CB |
5213 | `(#:test-target "spec" |
5214 | #:phases | |
5215 | (modify-phases %standard-phases | |
5216 | (add-after 'unpack 'remove-git-ls-files | |
5217 | (lambda* (#:key outputs #:allow-other-keys) | |
5218 | (substitute* "Rakefile" | |
5219 | (("git ls-files") "find . -type f")) | |
5220 | #t))))) | |
30b0b725 | 5221 | (native-inputs |
b52bf667 | 5222 | `(("ruby-rspec" ,ruby-rspec))) |
30b0b725 DT |
5223 | (synopsis "Retrieve the source code for Ruby methods") |
5224 | (description "Method_source retrieves the source code for Ruby methods. | |
5225 | Additionally, it can extract source code from Proc and Lambda objects or just | |
5226 | extract comments.") | |
5227 | (home-page "https://github.com/banister/method_source") | |
5228 | (license license:expat))) | |
2e3fdea4 DT |
5229 | |
5230 | (define-public ruby-coderay | |
5231 | (package | |
5232 | (name "ruby-coderay") | |
5cf0997a | 5233 | (version "1.1.2") |
2e3fdea4 DT |
5234 | (source |
5235 | (origin | |
5236 | (method url-fetch) | |
5237 | (uri (rubygems-uri "coderay" version)) | |
5238 | (sha256 | |
5239 | (base32 | |
5cf0997a | 5240 | "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y")))) |
2e3fdea4 DT |
5241 | (build-system ruby-build-system) |
5242 | (arguments | |
5243 | '(#:tests? #f)) ; missing test files | |
5244 | (synopsis "Ruby syntax highlighting library") | |
5245 | (description "Coderay is a Ruby library that provides syntax highlighting | |
5246 | for select languages.") | |
5247 | (home-page "http://coderay.rubychan.de") | |
5248 | (license license:expat))) | |
96e76083 | 5249 | |
f9083965 MC |
5250 | (define-public ruby-cuke-modeler |
5251 | (package | |
5252 | (name "ruby-cuke-modeler") | |
5253 | (version "3.1.0") | |
5254 | (source | |
5255 | (origin | |
5256 | (method url-fetch) | |
5257 | (uri (rubygems-uri "cuke_modeler" version)) | |
5258 | (sha256 | |
5259 | (base32 | |
5260 | "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb")))) | |
5261 | (build-system ruby-build-system) | |
5262 | (arguments `(#:tests? #f)) ;no test suite in gem | |
5263 | (propagated-inputs | |
5264 | `(("ruby-gherkin" ,ruby-gherkin))) | |
5265 | (synopsis "Gherkin test suite analysis tool") | |
5266 | (description "CukeModeler facilitates modeling a test suite that is | |
5267 | written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by | |
5268 | providing an abstraction layer on top of the Abstract Syntax Tree (AST) that | |
5269 | the @code{cucumber-gherkin} generates when parsing features, as well as | |
5270 | providing models for feature files and directories in order to be able to have | |
5271 | a fully traversable model tree of a test suite's structure. These models can | |
5272 | then be analyzed or manipulated more easily than the underlying AST layer.") | |
5273 | (home-page "https://github.com/enkessler/cuke_modeler") | |
5274 | (license license:expat))) | |
5275 | ||
2156cc9c MB |
5276 | (define-public ruby-parallel-tests |
5277 | (package | |
5278 | (name "ruby-parallel-tests") | |
8a01e2fa | 5279 | (version "3.0.0") |
2156cc9c MB |
5280 | (home-page "https://github.com/grosser/parallel_tests") |
5281 | (source (origin | |
5282 | (method git-fetch) | |
5283 | (uri (git-reference | |
5284 | (url home-page) | |
5285 | (commit (string-append "v" version)))) | |
5286 | (file-name (string-append name version)) | |
5287 | (sha256 | |
5288 | (base32 | |
8a01e2fa | 5289 | "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz")))) |
2156cc9c MB |
5290 | (build-system ruby-build-system) |
5291 | (arguments | |
5292 | '(#:test-target "default" | |
5293 | #:phases (modify-phases %standard-phases | |
5294 | (add-after 'patch-source-shebangs 'patch-shell-invokations | |
5295 | (lambda _ | |
5296 | (substitute* '("lib/parallel_tests/tasks.rb" | |
5297 | "spec/parallel_tests/tasks_spec.rb") | |
5298 | (("/bin/sh") (which "sh")) | |
5299 | (("/bin/bash") (which "bash"))) | |
5300 | #t)) | |
5301 | (add-before 'check 'remove-version-constraints | |
5302 | (lambda _ | |
5303 | ;; Remove hard coded version constraints, instead just | |
5304 | ;; use whatever versions are available in Guix. | |
5305 | (delete-file "Gemfile.lock") | |
5306 | (substitute* "Gemfile" | |
5307 | (("'minitest',.*") | |
5308 | "'minitest'\n") | |
5309 | (("'cucumber',.*") | |
5310 | "'cucumber'\n")) | |
5311 | #t)) | |
5312 | (add-before 'check 'disable-rails-test | |
5313 | (lambda _ | |
5314 | ;; XXX: This test attempts to download and run the test | |
5315 | ;; suites of multiple Rails versions(!) directly. | |
5316 | (delete-file "spec/rails_spec.rb") | |
5317 | #t)) | |
5318 | (add-before 'check 'set-HOME | |
5319 | (lambda _ | |
5320 | ;; Some tests check the output of Bundler, and fail when | |
5321 | ;; Bundler warns that /homeless-shelter does not exist. | |
5322 | (setenv "HOME" "/tmp") | |
5323 | #t))))) | |
5324 | (native-inputs | |
5325 | `(("ruby-bump" ,ruby-bump) | |
5326 | ("ruby-cucumber" ,ruby-cucumber) | |
8a01e2fa | 5327 | ("ruby-cuke-modeler" ,ruby-cuke-modeler) |
2156cc9c MB |
5328 | ("ruby-minitest" ,ruby-minitest) |
5329 | ("ruby-rake" ,ruby-rake) | |
5330 | ("ruby-rspec" ,ruby-rspec) | |
5331 | ("ruby-spinach" ,ruby-spinach))) | |
5332 | (propagated-inputs | |
5333 | `(("ruby-parallel" ,ruby-parallel))) | |
5334 | (synopsis "Run tests in parallel") | |
5335 | (description | |
5336 | "This package can speed up @code{Test::Unit}, @code{RSpec}, | |
5337 | @code{Cucumber}, and @code{Spinach} tests by running them concurrently | |
5338 | across multiple CPU cores.") | |
5339 | (license license:expat))) | |
5340 | ||
54993457 CB |
5341 | (define-public ruby-parser |
5342 | (package | |
5343 | (name "ruby-parser") | |
8c7f4e18 | 5344 | (version "3.0.0.0") |
54993457 CB |
5345 | (source |
5346 | (origin | |
5347 | (method url-fetch) | |
5348 | (uri (rubygems-uri "parser" version)) | |
5349 | (sha256 | |
5350 | (base32 | |
8c7f4e18 | 5351 | "1jixakyzmy0j5c1rb0fjrrdhgnyryvrr6vgcybs14jfw09akv5ml")))) |
54993457 | 5352 | (build-system ruby-build-system) |
6dfe26bf TOF |
5353 | (arguments |
5354 | '(#:tests? #f)) ; tests not included in gem | |
54993457 CB |
5355 | (native-inputs |
5356 | `(("bundler" ,bundler) | |
5357 | ("ruby-cliver" ,ruby-cliver) | |
5358 | ("ruby-simplecov" ,ruby-simplecov) | |
5359 | ("ruby-racc" ,ruby-racc))) | |
5360 | (inputs | |
5361 | `(("ragel" ,ragel))) | |
5362 | (propagated-inputs | |
5363 | `(("ruby-ast" ,ruby-ast))) | |
5364 | (synopsis "Ruby parser written in pure Ruby") | |
5365 | (description | |
5366 | "This package provides a Ruby parser written in pure Ruby.") | |
5367 | (home-page "https://github.com/whitequark/parser") | |
5368 | (license license:expat))) | |
5369 | ||
a8cdfd53 MC |
5370 | (define-public ruby-sexp-processor |
5371 | (package | |
5372 | (name "ruby-sexp-processor") | |
5373 | (version "4.15.0") | |
5374 | (source | |
5375 | (origin | |
5376 | (method url-fetch) | |
5377 | (uri (rubygems-uri "sexp_processor" version)) | |
5378 | (sha256 | |
5379 | (base32 | |
5380 | "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55")))) | |
5381 | (build-system ruby-build-system) | |
5382 | (native-inputs | |
5383 | ;; TODO: Add ruby-minitest-proveit once available. | |
5384 | `(("hoe" ,ruby-hoe))) | |
5385 | (synopsis "ParseTree fork which includes generic S-exp processing tools") | |
5386 | (description "The sexp_processor package is derived from ParseTree, but | |
5387 | contrary to ParseTree, it includes all the generic S-exp processing tools. | |
5388 | Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and | |
5389 | @code{Environment}") | |
5390 | (home-page "https://github.com/seattlerb/sexp_processor") | |
5391 | (license license:expat))) | |
5392 | ||
24be6751 MC |
5393 | (define-public ruby-ruby-parser |
5394 | (package | |
5395 | (name "ruby-ruby-parser") | |
5396 | (version "3.14.2") | |
5397 | (source | |
5398 | (origin | |
5399 | (method url-fetch) | |
5400 | (uri (rubygems-uri "ruby_parser" version)) | |
5401 | (sha256 | |
5402 | (base32 | |
5403 | "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c")))) | |
5404 | (build-system ruby-build-system) | |
5405 | (native-inputs | |
5406 | `(("hoe" ,ruby-hoe) | |
5407 | ("racc" ,ruby-racc) | |
5408 | ("unifdef" ,unifdef))) | |
5409 | (propagated-inputs | |
5410 | `(("ruby-sexp-processor" ,ruby-sexp-processor))) | |
5411 | (home-page "https://github.com/seattlerb/ruby_parser/") | |
5412 | (synopsis "Ruby parser written in pure Ruby") | |
5413 | (description "The ruby_parser (RP) package provides a Ruby parser written | |
5414 | in pure Ruby. It outputs S-expressions which can be manipulated and converted | |
5415 | back to Ruby via the @code{ruby2ruby} library.") | |
5416 | (license license:expat))) | |
5417 | ||
16f423cb CB |
5418 | (define-public ruby-prawn-manual-builder |
5419 | (package | |
5420 | (name "ruby-prawn-manual-builder") | |
1d4f0019 | 5421 | (version "0.3.1") |
16f423cb CB |
5422 | (source |
5423 | (origin | |
5424 | (method url-fetch) | |
5425 | (uri (rubygems-uri "prawn-manual_builder" version)) | |
5426 | (sha256 | |
1d4f0019 | 5427 | (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs")))) |
16f423cb CB |
5428 | (build-system ruby-build-system) |
5429 | (arguments | |
1d4f0019 | 5430 | '(#:tests? #f ; no included tests |
16f423cb CB |
5431 | #:phases |
5432 | (modify-phases %standard-phases | |
5433 | (add-after 'extract-gemspec 'patch-gemspec | |
5434 | (lambda _ | |
5435 | (substitute* ".gemspec" | |
5436 | ;; Loosen the requirement for pdf-inspector | |
5437 | (("~> 1\\.0\\.7") ">= 0"))))))) | |
5438 | (propagated-inputs | |
5439 | `(("ruby-coderay" ,ruby-coderay))) | |
5440 | (synopsis "Tool for writing manuals for Prawn and Prawn accessories") | |
5441 | (description | |
5442 | "This package provides a tool for writing manuals for Prawn and Prawn | |
5443 | accessories") | |
5444 | (home-page "https://github.com/prawnpdf/prawn-manual_builder") | |
cc10ca33 | 5445 | (license %prawn-project-licenses))) |
16f423cb | 5446 | |
268643b9 CB |
5447 | (define-public ruby-progress_bar |
5448 | (package | |
5449 | (name "ruby-progress_bar") | |
5450 | (version "1.1.0") | |
5451 | (source | |
5452 | (origin | |
5453 | (method url-fetch) | |
5454 | (uri (rubygems-uri "progress_bar" version)) | |
5455 | (sha256 | |
5456 | (base32 | |
5457 | "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48")))) | |
5458 | (build-system ruby-build-system) | |
5459 | (arguments | |
5460 | '(#:test-target "spec")) | |
5461 | (propagated-inputs | |
5462 | `(("ruby-highline" ,ruby-highline) | |
5463 | ("ruby-options" ,ruby-options))) | |
5464 | (native-inputs | |
5465 | `(("bundler" ,bundler) | |
5466 | ("ruby-rspec" ,ruby-rspec) | |
5467 | ("ruby-timecop" ,ruby-timecop))) | |
5468 | (synopsis | |
5469 | "Ruby library for displaying progress bars") | |
5470 | (description | |
5471 | "ProgressBar is a simple library for displaying progress bars. The | |
5472 | maximum value is configurable, and additional information can be displayed | |
5473 | like the percentage completion, estimated time remaining, elapsed time and | |
5474 | rate.") | |
5475 | (home-page "https://github.com/paul/progress_bar") | |
5476 | (license license:wtfpl2))) | |
5477 | ||
95f85d44 CB |
5478 | (define-public ruby-dep |
5479 | (package | |
5480 | (name "ruby-dep") | |
5481 | (version "1.5.0") | |
5482 | (source | |
5483 | (origin | |
5484 | (method url-fetch) | |
5485 | (uri (rubygems-uri "ruby_dep" version)) | |
5486 | (sha256 | |
5487 | (base32 | |
5488 | "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5")))) | |
5489 | (build-system ruby-build-system) | |
5490 | (arguments | |
5491 | '(#:tests? #f)) ; No included tests | |
5492 | (synopsis "Creates a version constraint of supported Rubies") | |
5493 | (description | |
5494 | "This package helps create a version constraint of supported Rubies, | |
5495 | suitable for a gemspec file.") | |
5496 | (home-page "https://github.com/e2/ruby_dep") | |
5497 | (license license:expat))) | |
5498 | ||
158a9253 CB |
5499 | (define-public ruby-progressbar |
5500 | (package | |
5501 | (name "ruby-progressbar") | |
2d2a2363 | 5502 | (version "1.10.1") |
158a9253 CB |
5503 | (source |
5504 | (origin | |
5505 | (method url-fetch) | |
5506 | (uri (rubygems-uri "ruby-progressbar" version)) | |
5507 | (sha256 | |
2d2a2363 | 5508 | (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf")))) |
158a9253 CB |
5509 | (build-system ruby-build-system) |
5510 | (arguments | |
5511 | '(;; TODO: There looks to be a circular dependency with ruby-fuubar. | |
5512 | #:tests? #f)) | |
5513 | (synopsis "Text progress bar library for Ruby") | |
5514 | (description | |
5515 | "Ruby/ProgressBar is an flexible text progress bar library for Ruby. | |
5516 | The output can be customized with a formatting system.") | |
5517 | (home-page "https://github.com/jfelchner/ruby-progressbar") | |
5518 | (license license:expat))) | |
5519 | ||
96e76083 DT |
5520 | (define-public ruby-pry |
5521 | (package | |
5522 | (name "ruby-pry") | |
a0d93c17 | 5523 | (version "0.13.1") |
96e76083 DT |
5524 | (source |
5525 | (origin | |
5526 | (method url-fetch) | |
5527 | (uri (rubygems-uri "pry" version)) | |
5528 | (sha256 | |
5529 | (base32 | |
a0d93c17 | 5530 | "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk")))) |
96e76083 DT |
5531 | (build-system ruby-build-system) |
5532 | (arguments | |
5533 | '(#:tests? #f)) ; no tests | |
5534 | (propagated-inputs | |
5535 | `(("ruby-coderay" ,ruby-coderay) | |
1960d4fd | 5536 | ("ruby-method-source" ,ruby-method-source))) |
96e76083 DT |
5537 | (synopsis "Ruby REPL") |
5538 | (description "Pry is an IRB alternative and runtime developer console for | |
5539 | Ruby. It features syntax highlighting, a plugin architecture, runtime | |
5540 | invocation, and source and documentation browsing.") | |
a0d93c17 | 5541 | (home-page "https://cobaltbluemedia.com/pryrepl/") |
96e76083 | 5542 | (license license:expat))) |
1415792a | 5543 | |
def7908a MB |
5544 | (define-public ruby-single-cov |
5545 | (package | |
5546 | (name "ruby-single-cov") | |
5547 | (version "1.3.2") | |
5548 | (home-page "https://github.com/grosser/single_cov") | |
5549 | (source (origin | |
5550 | (method git-fetch) | |
5551 | (uri (git-reference (url home-page) | |
5552 | (commit (string-append "v" version)))) | |
5553 | (file-name (git-file-name name version)) | |
5554 | (sha256 | |
5555 | (base32 | |
5556 | "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7")))) | |
5557 | (build-system ruby-build-system) | |
5558 | (arguments | |
5559 | '(#:test-target "default" | |
5560 | #:phases (modify-phases %standard-phases | |
5561 | (replace 'replace-git-ls-files | |
5562 | (lambda _ | |
5563 | (substitute* "single_cov.gemspec" | |
5564 | (("`git ls-files lib/ bin/ MIT-LICENSE`") | |
5565 | "`find lib/ bin/ MIT-LICENSE -type f | sort`")) | |
5566 | #t)) | |
5567 | (add-before 'check 'remove-version-constraints | |
5568 | (lambda _ | |
5569 | (delete-file "Gemfile.lock") | |
5570 | #t)) | |
5571 | (add-before 'check 'make-files-writable | |
5572 | (lambda _ | |
5573 | ;; Tests need to create local directories and open files | |
5574 | ;; with write permissions. | |
5575 | (for-each make-file-writable | |
5576 | (find-files "specs" #:directories? #t)) | |
5577 | #t)) | |
5578 | (add-before 'check 'disable-failing-test | |
5579 | (lambda _ | |
5580 | ;; XXX: This test copies assets from minitest, but can | |
5581 | ;; not cope with the files being read-only. Just skip | |
5582 | ;; it for now. | |
5583 | (substitute* "specs/single_cov_spec.rb" | |
5584 | (("it \"complains when coverage is bad\"") | |
5585 | "xit \"complains when coverage is bad\"")) | |
5586 | #t))))) | |
5587 | (native-inputs | |
5588 | `(("ruby-bump" ,ruby-bump) | |
5589 | ("ruby-minitest" ,ruby-minitest) | |
5590 | ("ruby-rspec" ,ruby-rspec) | |
5591 | ("ruby-simplecov" ,ruby-simplecov))) | |
5592 | (synopsis "Code coverage reporting tool") | |
5593 | (description | |
5594 | "This package provides actionable code coverage reports for Ruby | |
5595 | projects. It has very little overhead and can be easily integrated with | |
5596 | development tools to catch coverage problems early.") | |
5597 | (license license:expat))) | |
5598 | ||
f30382b4 EF |
5599 | (define-public ruby-oedipus-lex |
5600 | (package | |
5601 | (name "ruby-oedipus-lex") | |
5602 | (version "2.5.2") | |
5603 | (source | |
5604 | (origin | |
5605 | (method url-fetch) | |
5606 | (uri (rubygems-uri "oedipus_lex" version)) | |
5607 | (sha256 | |
5608 | (base32 | |
5609 | "1v1rk78khwq87ar300lwll570zxpkq9rjnpgc9mgsyd6mm9qjz4w")))) | |
5610 | (build-system ruby-build-system) | |
5611 | (native-inputs | |
5612 | `(("ruby-hoe" ,ruby-hoe))) | |
5613 | (synopsis "Ruby lexer") | |
5614 | (description | |
5615 | "Oedipus Lex is a lexer generator in the same family as Rexical and Rex. | |
5616 | It is based primarily on generating code much like you would a hand-written | |
5617 | lexer. It uses StrScanner within a multi-level case statement. As such, | |
5618 | Oedipus matches on the first match, not the longest.") | |
5619 | (home-page "https://github.com/seattlerb/oedipus_lex") | |
5620 | (license license:expat))) | |
5621 | ||
051deeb7 RW |
5622 | (define-public ruby-guard |
5623 | (package | |
5624 | (name "ruby-guard") | |
5625 | (version "2.13.0") | |
5626 | (source (origin | |
3c6128f6 | 5627 | (method git-fetch) |
051deeb7 RW |
5628 | ;; The gem does not include a Rakefile, nor does it contain a |
5629 | ;; gemspec file, nor does it come with the tests. This is why | |
5630 | ;; we fetch the tarball from Github. | |
3c6128f6 EF |
5631 | (uri (git-reference |
5632 | (url "https://github.com/guard/guard") | |
5633 | (commit (string-append "v" version)))) | |
5634 | (file-name (git-file-name name version)) | |
051deeb7 RW |
5635 | (sha256 |
5636 | (base32 | |
3c6128f6 | 5637 | "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs")))) |
051deeb7 RW |
5638 | (build-system ruby-build-system) |
5639 | (arguments | |
5640 | `(#:tests? #f ; tests require cucumber | |
5641 | #:phases | |
5642 | (modify-phases %standard-phases | |
5643 | (add-after 'unpack 'remove-git-ls-files | |
5644 | (lambda* (#:key outputs #:allow-other-keys) | |
5645 | (substitute* "guard.gemspec" | |
5646 | (("git ls-files -z") "find . -type f -print0")) | |
5647 | #t)) | |
5648 | (replace 'build | |
5649 | (lambda _ | |
9923d5a4 | 5650 | (invoke "gem" "build" "guard.gemspec")))))) |
051deeb7 RW |
5651 | (propagated-inputs |
5652 | `(("ruby-formatador" ,ruby-formatador) | |
5653 | ("ruby-listen" ,ruby-listen) | |
5654 | ("ruby-lumberjack" ,ruby-lumberjack) | |
5655 | ("ruby-nenv" ,ruby-nenv) | |
5656 | ("ruby-notiffany" ,ruby-notiffany) | |
5657 | ("ruby-pry" ,ruby-pry) | |
5658 | ("ruby-shellany" ,ruby-shellany) | |
5659 | ("ruby-thor" ,ruby-thor))) | |
5660 | (native-inputs | |
5661 | `(("bundler" ,bundler) | |
5662 | ("ruby-rspec" ,ruby-rspec))) | |
5663 | (synopsis "Tool to handle events on file system modifications") | |
5664 | (description | |
5665 | "Guard is a command line tool to easily handle events on file system | |
5666 | modifications. Guard automates various tasks by running custom rules whenever | |
5667 | file or directories are modified.") | |
3c6128f6 | 5668 | (home-page "https://guardgem.org/") |
051deeb7 RW |
5669 | (license license:expat))) |
5670 | ||
c09bc60d MB |
5671 | (define-public ruby-spinach |
5672 | (package | |
5673 | (name "ruby-spinach") | |
5674 | (version "0.11.0") | |
702a1012 | 5675 | (home-page "https://github.com/codegram/spinach") |
c09bc60d MB |
5676 | (source (origin |
5677 | (method url-fetch) | |
5678 | (uri (rubygems-uri "spinach" version)) | |
5679 | (sha256 | |
5680 | (base32 | |
5681 | "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6")))) | |
5682 | (build-system ruby-build-system) | |
5683 | (arguments | |
5684 | ;; FIXME: Disable tests altogether because they depend on 'capybara' | |
5685 | ;; which in turn depends on many other unpackaged gems. Enable once | |
5686 | ;; capybara is available. | |
5687 | '(#:tests? #f)) | |
5688 | (propagated-inputs | |
5689 | `(("ruby-colorize" ,ruby-colorize) | |
5690 | ("ruby-gherkin-ruby" ,ruby-gherkin-ruby) | |
5691 | ("ruby-json" ,ruby-json))) | |
5692 | (synopsis "Gherkin-based BDD framework") | |
5693 | (description | |
5694 | "Spinach is a high-level @acronym{BDD, Behavior-driven development} | |
5695 | framework that leverages the expressive @code{Gherkin} language to help you | |
5696 | define executable specifications of your code.") | |
5697 | (license license:expat))) | |
5698 | ||
bcbb3cc9 CB |
5699 | (define-public ruby-tilt |
5700 | (package | |
5701 | (name "ruby-tilt") | |
c3f15f54 | 5702 | (version "2.0.10") |
bcbb3cc9 CB |
5703 | (source |
5704 | (origin | |
c3f15f54 MC |
5705 | (method git-fetch) ;the distributed gem lacks tests |
5706 | (uri (git-reference | |
b0e7b699 | 5707 | (url "https://github.com/rtomayko/tilt") |
c3f15f54 MC |
5708 | (commit (string-append "v" version)))) |
5709 | (file-name (git-file-name name version)) | |
bcbb3cc9 CB |
5710 | (sha256 |
5711 | (base32 | |
c3f15f54 | 5712 | "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r")))) |
bcbb3cc9 CB |
5713 | (build-system ruby-build-system) |
5714 | (arguments | |
5715 | '(#:phases | |
5716 | (modify-phases %standard-phases | |
5717 | (add-after 'unpack 'remove-some-dependencies | |
5718 | (lambda _ | |
5719 | (substitute* "Gemfile" | |
5720 | ;; TODO ronn is used for generating the manual | |
5721 | (("gem 'ronn'.*") "\n") | |
5722 | ;; ruby-haml has a runtime dependency on ruby-tilt, so don't | |
5723 | ;; pass it in as a native-input | |
5724 | (("gem 'haml'.*") "\n") | |
5725 | ;; TODO Not all of these gems are packaged for Guix yet: | |
5726 | ;; less, coffee-script, livescript, babel-transpiler, | |
5727 | ;; typescript-node | |
5728 | (("if can_execjs") "if false") | |
5729 | ;; Disable the secondary group to reduce the number of | |
5730 | ;; dependencies. None of the normal approaches work, so patch | |
5731 | ;; the Gemfile instead. | |
5732 | (("group :secondary") "[].each")) | |
5733 | #t))))) | |
cfa4a318 MC |
5734 | (propagated-inputs |
5735 | `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby) | |
5736 | ("ruby-sassc" ,ruby-sassc))) | |
bcbb3cc9 CB |
5737 | (native-inputs |
5738 | `(("bundler" ,bundler) | |
5739 | ("ruby-yard" ,ruby-yard) | |
5740 | ("ruby-builder" ,ruby-builder) | |
5741 | ("ruby-erubis" ,ruby-erubis) | |
cfa4a318 | 5742 | ("ruby-markaby" ,ruby-markaby))) |
bcbb3cc9 CB |
5743 | (synopsis "Generic interface to multiple Ruby template engines") |
5744 | (description | |
5745 | "Tilt is a thin interface over a number of different Ruby template | |
5746 | engines in an attempt to make their usage as generic as possible.") | |
5747 | (home-page "https://github.com/rtomayko/tilt/") | |
5748 | (license license:expat))) | |
5749 | ||
1415792a DT |
5750 | (define-public ruby-thread-safe |
5751 | (package | |
5752 | (name "ruby-thread-safe") | |
313dd5dd | 5753 | (version "0.3.6") |
1415792a DT |
5754 | (source |
5755 | (origin | |
5756 | (method url-fetch) | |
5757 | (uri (rubygems-uri "thread_safe" version)) | |
5758 | (sha256 | |
5759 | (base32 | |
313dd5dd | 5760 | "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy")))) |
1415792a DT |
5761 | (build-system ruby-build-system) |
5762 | (arguments | |
5763 | '(#:tests? #f)) ; needs simplecov, among others | |
5764 | (synopsis "Thread-safe utilities for Ruby") | |
5765 | (description "The thread_safe library provides thread-safe collections and | |
5766 | utilities for Ruby.") | |
5767 | (home-page "https://github.com/ruby-concurrency/thread_safe") | |
5768 | (license license:asl2.0))) | |
08a1b701 DT |
5769 | |
5770 | (define-public ruby-tzinfo | |
5771 | (package | |
5772 | (name "ruby-tzinfo") | |
76e1093b | 5773 | (version "2.0.4") |
08a1b701 DT |
5774 | (source |
5775 | (origin | |
76e1093b EF |
5776 | (method git-fetch) |
5777 | (uri (git-reference | |
5778 | ;; Pull from git because the gem has no tests. | |
5779 | (url "https://github.com/tzinfo/tzinfo") | |
5780 | (commit (string-append "v" version)))) | |
5781 | (file-name (git-file-name name version)) | |
08a1b701 DT |
5782 | (sha256 |
5783 | (base32 | |
76e1093b | 5784 | "0jaq1givdaz5jxz47xngyj3j315n872rk97mnpm5njwm48wy45yh")))) |
08a1b701 | 5785 | (build-system ruby-build-system) |
740fea08 CB |
5786 | (arguments |
5787 | '(#:phases | |
5788 | (modify-phases %standard-phases | |
5789 | (add-after 'unpack 'skip-safe-tests | |
5790 | (lambda _ | |
5791 | (substitute* "test/test_utils.rb" | |
5792 | (("def safe_test\\(options = \\{\\}\\)") | |
5793 | "def safe_test(options = {}) | |
5794 | skip('The Guix build environment has an unsafe load path')")) | |
76e1093b EF |
5795 | #t)) |
5796 | (add-before 'check 'pre-check | |
5797 | (lambda _ | |
5798 | (setenv "HOME" (getcwd)) | |
5799 | (substitute* "Gemfile" | |
5800 | (("simplecov.*") "simplecov'\n")) | |
5801 | #t)) | |
5802 | (replace 'check | |
5803 | (lambda* (#:key tests? test-target #:allow-other-keys) | |
5804 | (when tests? | |
5805 | (invoke "bundler" "exec" "rake" test-target)) | |
740fea08 | 5806 | #t))))) |
08a1b701 | 5807 | (propagated-inputs |
76e1093b EF |
5808 | `(("ruby-concurrent-ruby" ,ruby-concurrent))) |
5809 | (native-inputs | |
5810 | `(("ruby-simplecov" ,ruby-simplecov))) | |
08a1b701 DT |
5811 | (synopsis "Time zone library for Ruby") |
5812 | (description "TZInfo is a Ruby library that provides daylight savings | |
5813 | aware transformations between times in different time zones.") | |
2f3800e5 | 5814 | (home-page "https://tzinfo.github.io") |
1e12924a BW |
5815 | (license license:expat))) |
5816 | ||
5817 | (define-public ruby-tzinfo-data | |
5818 | (package | |
5819 | (name "ruby-tzinfo-data") | |
92513191 | 5820 | (version "1.2017.3") |
1e12924a BW |
5821 | (source |
5822 | (origin | |
bb1e7ed0 | 5823 | (method git-fetch) |
1e12924a BW |
5824 | ;; Download from GitHub because the rubygems version does not contain |
5825 | ;; Rakefile or tests. | |
bb1e7ed0 EF |
5826 | (uri (git-reference |
5827 | (url "https://github.com/tzinfo/tzinfo-data") | |
5828 | (commit (string-append "v" version)))) | |
5829 | (file-name (git-file-name name version)) | |
1e12924a BW |
5830 | (sha256 |
5831 | (base32 | |
bb1e7ed0 | 5832 | "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp")) |
1e12924a BW |
5833 | ;; Remove the known test failure. |
5834 | ;; https://github.com/tzinfo/tzinfo-data/issues/10 | |
5835 | ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128 | |
5836 | (patches (search-patches | |
5837 | "ruby-tzinfo-data-ignore-broken-test.patch")))) | |
5838 | (build-system ruby-build-system) | |
5839 | (propagated-inputs | |
5840 | `(("ruby-tzinfo" ,ruby-tzinfo))) | |
5841 | (synopsis "Data from the IANA Time Zone database") | |
5842 | (description | |
5843 | "This library provides @code{TZInfo::Data}, which contains data from the | |
5844 | IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.") | |
2f3800e5 | 5845 | (home-page "https://tzinfo.github.io") |
08a1b701 | 5846 | (license license:expat))) |
c99e2247 | 5847 | |
48e6851f RW |
5848 | (define-public ruby-rb-inotify |
5849 | (package | |
5850 | (name "ruby-rb-inotify") | |
32bbfea8 | 5851 | (version "0.9.10") |
48e6851f RW |
5852 | (source |
5853 | (origin | |
5854 | (method url-fetch) | |
5855 | (uri (rubygems-uri "rb-inotify" version)) | |
5856 | (sha256 | |
5857 | (base32 | |
32bbfea8 | 5858 | "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71")))) |
48e6851f RW |
5859 | (build-system ruby-build-system) |
5860 | (arguments | |
5861 | '(#:tests? #f ; there are no tests | |
5862 | #:phases | |
5863 | (modify-phases %standard-phases | |
5864 | ;; Building the gemspec with rake is not working here since it is | |
5865 | ;; generated with Jeweler. It is also unnecessary because the | |
5866 | ;; existing gemspec does not use any development tools to generate a | |
5867 | ;; list of files. | |
5868 | (replace 'build | |
5869 | (lambda _ | |
9923d5a4 | 5870 | (invoke "gem" "build" "rb-inotify.gemspec")))))) |
48e6851f RW |
5871 | (propagated-inputs |
5872 | `(("ruby-ffi" ,ruby-ffi))) | |
5873 | (native-inputs | |
5874 | `(("ruby-yard" ,ruby-yard))) | |
5875 | (synopsis "Ruby wrapper for Linux's inotify") | |
5876 | (description "rb-inotify is a simple wrapper over the @code{inotify} Linux | |
5877 | kernel subsystem for monitoring changes to files and directories.") | |
5878 | (home-page "https://github.com/nex3/rb-inotify") | |
5879 | (license license:expat))) | |
5880 | ||
a75bdfce RW |
5881 | (define-public ruby-pry-editline |
5882 | (package | |
5883 | (name "ruby-pry-editline") | |
5884 | (version "1.1.2") | |
5885 | (source (origin | |
5886 | (method url-fetch) | |
5887 | (uri (rubygems-uri "pry-editline" version)) | |
5888 | (sha256 | |
5889 | (base32 | |
5890 | "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z")))) | |
5891 | (build-system ruby-build-system) | |
5892 | (arguments `(#:tests? #f)) ; no tests included | |
5893 | (native-inputs | |
5894 | `(("bundler" ,bundler))) | |
5895 | (synopsis "Open the current REPL line in an editor") | |
5896 | (description | |
5897 | "This gem provides a plugin for the Ruby REPL to enable opening the | |
5898 | current line in an external editor.") | |
5899 | (home-page "https://github.com/tpope/pry-editline") | |
5900 | (license license:expat))) | |
5901 | ||
d3b20a02 RW |
5902 | (define-public ruby-sdoc |
5903 | (package | |
5904 | (name "ruby-sdoc") | |
6700dc33 | 5905 | (version "1.1.0") |
d3b20a02 RW |
5906 | (source (origin |
5907 | (method url-fetch) | |
5908 | (uri (rubygems-uri "sdoc" version)) | |
5909 | (sha256 | |
5910 | (base32 | |
6700dc33 | 5911 | "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd")))) |
d3b20a02 RW |
5912 | (build-system ruby-build-system) |
5913 | (arguments | |
5914 | `(#:phases | |
5915 | (modify-phases %standard-phases | |
fc29d5e6 | 5916 | (add-before 'check 'set-rubylib-and-patch-gemfile |
d3b20a02 | 5917 | (lambda _ |
fdf3a68d | 5918 | (setenv "RUBYLIB" "lib") |
fc29d5e6 BW |
5919 | (substitute* "sdoc.gemspec" |
5920 | (("s.add_runtime_dependency.*") "\n") | |
5921 | (("s.add_dependency.*") "\n")) | |
5922 | (substitute* "Gemfile" | |
5923 | (("gem \"rake\".*") | |
5924 | "gem 'rake'\ngem 'rdoc'\ngem 'json'\n")) | |
d3b20a02 RW |
5925 | #t))))) |
5926 | (propagated-inputs | |
5927 | `(("ruby-json" ,ruby-json))) | |
5928 | (native-inputs | |
5929 | `(("bundler" ,bundler) | |
fdf3a68d BW |
5930 | ("ruby-minitest" ,ruby-minitest) |
5931 | ("ruby-hoe" ,ruby-hoe))) | |
d3b20a02 RW |
5932 | (synopsis "Generate searchable RDoc documentation") |
5933 | (description | |
5934 | "SDoc is an RDoc documentation generator to build searchable HTML | |
5935 | documentation for Ruby code.") | |
7bf837fd | 5936 | (home-page "https://github.com/voloko/sdoc") |
d3b20a02 RW |
5937 | (license license:expat))) |
5938 | ||
70b002aa RW |
5939 | (define-public ruby-tins |
5940 | (package | |
5941 | (name "ruby-tins") | |
fbefd6ff | 5942 | (version "1.15.0") |
70b002aa RW |
5943 | (source (origin |
5944 | (method url-fetch) | |
5945 | (uri (rubygems-uri "tins" version)) | |
5946 | (sha256 | |
5947 | (base32 | |
fbefd6ff | 5948 | "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s")))) |
70b002aa RW |
5949 | (build-system ruby-build-system) |
5950 | ;; This gem needs gem-hadar at development time, but gem-hadar needs tins | |
5951 | ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding | |
5952 | ;; the gemspec. | |
5953 | (arguments | |
5954 | `(#:tests? #f ; there are no tests | |
5955 | #:phases | |
5956 | (modify-phases %standard-phases | |
5957 | (replace 'build | |
5958 | (lambda _ | |
5959 | ;; "lib/spruz" is a symlink. Leaving it in the gemspec file | |
5960 | ;; causes an error. | |
5961 | (substitute* "tins.gemspec" | |
5962 | (("\"lib/spruz\", ") "")) | |
9923d5a4 | 5963 | (invoke "gem" "build" "tins.gemspec")))))) |
70b002aa RW |
5964 | (synopsis "Assorted tools for Ruby") |
5965 | (description "Tins is a Ruby library providing assorted tools.") | |
5966 | (home-page "https://github.com/flori/tins") | |
5967 | (license license:expat))) | |
5968 | ||
bc8277e4 RW |
5969 | (define-public ruby-gem-hadar |
5970 | (package | |
5971 | (name "ruby-gem-hadar") | |
e4fb673a | 5972 | (version "1.11.0") |
bc8277e4 RW |
5973 | (source (origin |
5974 | (method url-fetch) | |
5975 | (uri (rubygems-uri "gem_hadar" version)) | |
5976 | (sha256 | |
5977 | (base32 | |
e4fb673a | 5978 | "160abb3l4n3gkhd86f22n981bhqxkbf5ym6fhsk796pix6696pd5")))) |
bc8277e4 RW |
5979 | (build-system ruby-build-system) |
5980 | ;; This gem needs itself at development time. We disable rebuilding of the | |
5981 | ;; gemspec to avoid this loop. | |
5982 | (arguments | |
5983 | `(#:tests? #f ; there are no tests | |
5984 | #:phases | |
5985 | (modify-phases %standard-phases | |
5986 | (replace 'build | |
5987 | (lambda _ | |
9923d5a4 | 5988 | (invoke "gem" "build" "gem_hadar.gemspec")))))) |
bc8277e4 RW |
5989 | (propagated-inputs |
5990 | `(("git" ,git) | |
5991 | ("ruby-tins" ,ruby-tins) | |
3fd577e3 | 5992 | ("ruby-yard" ,ruby-yard))) |
bc8277e4 RW |
5993 | (synopsis "Library for the development of Ruby gems") |
5994 | (description | |
5995 | "This library contains some useful functionality to support the | |
5996 | development of Ruby gems.") | |
5997 | (home-page "https://github.com/flori/gem_hadar") | |
5998 | (license license:expat))) | |
5999 | ||
d8cafe29 RW |
6000 | (define-public ruby-minitest-tu-shim |
6001 | (package | |
6002 | (name "ruby-minitest-tu-shim") | |
6003 | (version "1.3.3") | |
6004 | (source (origin | |
6005 | (method url-fetch) | |
6006 | (uri (rubygems-uri "minitest_tu_shim" version)) | |
6007 | (sha256 | |
6008 | (base32 | |
6009 | "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn")))) | |
6010 | (build-system ruby-build-system) | |
6011 | (arguments | |
6012 | `(#:phases | |
6013 | (modify-phases %standard-phases | |
6014 | (add-after 'unpack 'fix-test-include-path | |
6015 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 6016 | (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))) |
761e7042 BW |
6017 | (substitute* "Rakefile" |
6018 | (("Hoe\\.add_include_dirs .*") | |
6019 | (string-append "Hoe.add_include_dirs \"" | |
3cb3fa67 | 6020 | minitest "/lib/ruby/vendor_ruby" |
761e7042 BW |
6021 | "/gems/minitest-" |
6022 | ,(package-version ruby-minitest-4) | |
6023 | "/lib" "\"")))) | |
6024 | #t)) | |
d8cafe29 RW |
6025 | (add-before 'check 'fix-test-assumptions |
6026 | (lambda _ | |
6027 | ;; The test output includes the file name, so a couple of tests | |
6028 | ;; fail. Changing the regular expressions slightly fixes this | |
6029 | ;; problem. | |
6030 | (substitute* "test/test_mini_test.rb" | |
6031 | (("output.sub!\\(.*, 'FILE:LINE'\\)") | |
6032 | "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')") | |
6033 | (("gsub\\(/.*, 'FILE:LINE'\\)") | |
6034 | "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")) | |
6035 | #t))))) | |
6036 | (propagated-inputs | |
6037 | `(("ruby-minitest-4" ,ruby-minitest-4))) | |
6038 | (native-inputs | |
6039 | `(("ruby-hoe" ,ruby-hoe))) | |
6040 | (synopsis "Adapter library between minitest and test/unit") | |
6041 | (description | |
6042 | "This library bridges the gap between the small and fast minitest and | |
6043 | Ruby's large and slower test/unit.") | |
6044 | (home-page "https://rubygems.org/gems/minitest_tu_shim") | |
6045 | (license license:expat))) | |
6046 | ||
fd83a212 RW |
6047 | (define-public ruby-term-ansicolor |
6048 | (package | |
6049 | (name "ruby-term-ansicolor") | |
f3a6311a | 6050 | (version "1.6.0") |
fd83a212 RW |
6051 | (source (origin |
6052 | (method url-fetch) | |
6053 | (uri (rubygems-uri "term-ansicolor" version)) | |
6054 | (sha256 | |
6055 | (base32 | |
f3a6311a | 6056 | "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b")))) |
fd83a212 RW |
6057 | (build-system ruby-build-system) |
6058 | ;; Rebuilding the gemspec seems to require git, even though this is not a | |
6059 | ;; git repository, so we just build the gem from the existing gemspec. | |
6060 | (arguments | |
6061 | `(#:phases | |
6062 | (modify-phases %standard-phases | |
39ecb977 CB |
6063 | (add-after 'unpack 'fix-test |
6064 | (lambda - | |
6065 | (substitute* "tests/hsl_triple_test.rb" | |
6066 | (("0\\\\\\.0%") | |
6067 | "0\\.?0?%")))) | |
fd83a212 RW |
6068 | (replace 'build |
6069 | (lambda _ | |
9923d5a4 | 6070 | (invoke "gem" "build" "term-ansicolor.gemspec")))))) |
fd83a212 RW |
6071 | (propagated-inputs |
6072 | `(("ruby-tins" ,ruby-tins))) | |
6073 | (native-inputs | |
6074 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
6075 | ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim))) | |
6076 | (synopsis "Ruby library to control the attributes of terminal output") | |
6077 | (description | |
6078 | "This Ruby library uses ANSI escape sequences to control the attributes | |
6079 | of terminal output.") | |
2f3800e5 | 6080 | (home-page "https://flori.github.io/term-ansicolor/") |
fd83a212 RW |
6081 | ;; There is no mention of the "or later" clause. |
6082 | (license license:gpl2))) | |
6083 | ||
a714c30f CB |
6084 | (define-public ruby-terraform |
6085 | (package | |
6086 | (name "ruby-terraform") | |
6087 | (version "0.22.0") | |
6088 | (source | |
6089 | (origin | |
6090 | (method url-fetch) | |
6091 | (uri (rubygems-uri "ruby-terraform" version)) | |
6092 | (sha256 | |
6093 | (base32 | |
6094 | "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324")))) | |
6095 | (build-system ruby-build-system) | |
6096 | (arguments | |
6097 | '(#:tests? #f)) ; No included tests | |
6098 | (propagated-inputs | |
6099 | `(("ruby-lino" ,ruby-lino))) | |
6100 | (synopsis "Ruby wrapper around the Terraform command line interface") | |
6101 | (description | |
6102 | "This package provides a Ruby wrapper around the Terraform command line | |
6103 | interface so that Terraform can be more easily invoked from Ruby code.") | |
6104 | (home-page "https://github.com/infrablocks/ruby_terraform") | |
6105 | (license license:expat))) | |
6106 | ||
6e376ca4 RW |
6107 | (define-public ruby-pstree |
6108 | (package | |
6109 | (name "ruby-pstree") | |
6110 | (version "0.1.0") | |
6111 | (source (origin | |
6112 | (method url-fetch) | |
6113 | (uri (rubygems-uri "pstree" version)) | |
6114 | (sha256 | |
6115 | (base32 | |
6116 | "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1")))) | |
6117 | (build-system ruby-build-system) | |
6118 | (native-inputs | |
6119 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
6120 | ("bundler" ,bundler))) | |
6121 | (synopsis "Create a process tree data structure") | |
6122 | (description | |
6123 | "This library uses the output of the @code{ps} command to create a | |
6124 | process tree data structure for the current host.") | |
2f3800e5 | 6125 | (home-page "https://github.com/flori/pstree") |
6e376ca4 RW |
6126 | ;; There is no mention of the "or later" clause. |
6127 | (license license:gpl2))) | |
6128 | ||
53239b5f RW |
6129 | (define-public ruby-utils |
6130 | (package | |
6131 | (name "ruby-utils") | |
cd698b6e | 6132 | (version "0.9.0") |
53239b5f RW |
6133 | (source (origin |
6134 | (method url-fetch) | |
6135 | (uri (rubygems-uri "utils" version)) | |
6136 | (sha256 | |
6137 | (base32 | |
cd698b6e | 6138 | "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl")))) |
53239b5f RW |
6139 | (build-system ruby-build-system) |
6140 | (propagated-inputs | |
6141 | `(("ruby-tins" ,ruby-tins) | |
6142 | ("ruby-term-ansicolor" ,ruby-term-ansicolor) | |
6143 | ("ruby-pstree" ,ruby-pstree) | |
6144 | ("ruby-pry-editline" ,ruby-pry-editline))) | |
6145 | (native-inputs | |
6146 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
6147 | ("bundler" ,bundler))) | |
6148 | (synopsis "Command line tools for working with Ruby") | |
6149 | (description | |
6150 | "This package provides assorted command line tools that may be useful | |
6151 | when working with Ruby code.") | |
6152 | (home-page "https://github.com/flori/utils") | |
6153 | ;; There is no mention of the "or later" clause. | |
6154 | (license license:gpl2))) | |
6155 | ||
433f10b5 CB |
6156 | (define-public ruby-jaro-winkler |
6157 | (package | |
6158 | (name "ruby-jaro-winkler") | |
37b23e44 | 6159 | (version "1.5.4") |
433f10b5 CB |
6160 | (source |
6161 | (origin | |
6162 | (method url-fetch) | |
6163 | (uri (rubygems-uri "jaro_winkler" version)) | |
6164 | (sha256 | |
37b23e44 | 6165 | (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh")))) |
433f10b5 CB |
6166 | (build-system ruby-build-system) |
6167 | (arguments | |
37b23e44 | 6168 | '(#:tests? #f)) ; no included tests |
433f10b5 CB |
6169 | (synopsis "Ruby implementation of Jaro-Winkler distance algorithm") |
6170 | (description | |
6171 | "@code{jaro_winkler} is an implementation of Jaro-Winkler distance | |
6172 | algorithm. It is written as a C extension and will fallback to a pure Ruby | |
6173 | implementation on platforms where this is unsupported.") | |
6174 | (home-page "https://github.com/tonytonyjan/jaro_winkler") | |
6175 | (license license:expat))) | |
6176 | ||
c99e2247 DT |
6177 | (define-public ruby-json |
6178 | (package | |
6179 | (name "ruby-json") | |
a281acce | 6180 | (version "2.1.0") |
c99e2247 DT |
6181 | (source |
6182 | (origin | |
6183 | (method url-fetch) | |
6184 | (uri (rubygems-uri "json" version)) | |
6185 | (sha256 | |
6186 | (base32 | |
a281acce | 6187 | "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp")))) |
c99e2247 DT |
6188 | (build-system ruby-build-system) |
6189 | (arguments '(#:tests? #f)) ; dependency cycle with sdoc | |
6190 | (synopsis "JSON library for Ruby") | |
6191 | (description "This Ruby library provides a JSON implementation written as | |
6192 | a native C extension.") | |
6193 | (home-page "http://json-jruby.rubyforge.org/") | |
6194 | (license (list license:ruby license:gpl2)))) ; GPL2 only | |
5ff89a1b | 6195 | |
763624f5 RW |
6196 | (define-public ruby-json-pure |
6197 | (package | |
6198 | (name "ruby-json-pure") | |
1c65d99f | 6199 | (version "2.2.0") |
763624f5 RW |
6200 | (source (origin |
6201 | (method url-fetch) | |
6202 | (uri (rubygems-uri "json_pure" version)) | |
6203 | (sha256 | |
6204 | (base32 | |
1c65d99f | 6205 | "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439")))) |
763624f5 RW |
6206 | (build-system ruby-build-system) |
6207 | (arguments | |
ac01cb07 | 6208 | `(#:phases |
763624f5 | 6209 | (modify-phases %standard-phases |
ac01cb07 | 6210 | (add-after 'unpack 'fix-rakefile |
763624f5 | 6211 | (lambda _ |
ac01cb07 BW |
6212 | (substitute* "Rakefile" |
6213 | ;; Since this is not a git repository, do not call 'git'. | |
6214 | (("`git ls-files`") "`find . -type f |sort`") | |
6215 | ;; Loosen dependency constraint. | |
6216 | (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'")) | |
6217 | #t)) | |
6218 | (add-after 'replace-git-ls-files 'regenerate-gemspec | |
6219 | (lambda _ | |
6220 | ;; Regenerate gemspec so loosened dependency constraints are | |
6221 | ;; propagated. | |
17cfb7ae CB |
6222 | (invoke "rake" "gemspec"))) |
6223 | (add-after 'regenerate-gemspec 'fix-json-java.gemspec | |
6224 | (lambda _ | |
6225 | ;; This gemspec doesn't look to be generated by the above | |
6226 | ;; command, so patch it separately. | |
6227 | (substitute* "json-java.gemspec" | |
6228 | (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]") | |
6229 | "%q<test-unit>.freeze, [\">= 2.0\"]")) | |
6230 | #t))))) | |
763624f5 | 6231 | (native-inputs |
ac01cb07 | 6232 | `(("bundler" ,bundler) |
0c9f73cd TGR |
6233 | ("ragel" ,ragel) |
6234 | ("ruby-simplecov" ,ruby-simplecov) | |
6235 | ("ruby-test-unit" ,ruby-test-unit))) | |
763624f5 RW |
6236 | (synopsis "JSON implementation in pure Ruby") |
6237 | (description | |
6238 | "This package provides a JSON implementation written in pure Ruby.") | |
1c65d99f | 6239 | (home-page "https://flori.github.com/json/") |
763624f5 RW |
6240 | (license license:ruby))) |
6241 | ||
2a8581ac CB |
6242 | (define-public ruby-jwt |
6243 | (package | |
6244 | (name "ruby-jwt") | |
6245 | (version "2.1.0") | |
6246 | (source | |
6247 | (origin | |
6248 | (method url-fetch) | |
6249 | (uri (rubygems-uri "jwt" version)) | |
6250 | (sha256 | |
6251 | (base32 | |
6252 | "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky")))) | |
6253 | (build-system ruby-build-system) | |
6254 | (arguments | |
6255 | '(#:test-target "test" | |
6256 | #:phases | |
6257 | (modify-phases %standard-phases | |
6258 | (add-after 'unpack 'remove-unnecessary-dependencies | |
6259 | (lambda _ | |
6260 | (substitute* "spec/spec_helper.rb" | |
6261 | (("require 'simplecov.*") "\n") | |
6262 | ;; Use [].each to disable running the SimpleCov configuration | |
6263 | ;; block | |
6264 | (("SimpleCov\\.configure") "[].each") | |
6265 | (("require 'codeclimate-test-reporter'") "") | |
6266 | (("require 'codacy-coverage'") "") | |
6267 | (("Codacy::Reporter\\.start") "")) | |
6268 | #t))))) | |
6269 | (native-inputs | |
6270 | `(("bundler" ,bundler) | |
6271 | ("ruby-rspec" ,ruby-rspec) | |
6272 | ("ruby-rbnacl" ,ruby-rbnacl))) | |
6273 | (synopsis "Ruby implementation of the JSON Web Token standard") | |
6274 | (description | |
6275 | "This package provides a pure Ruby implementation of the RFC 7519 OAuth | |
6276 | @acronym{JWT, JSON Web Token} standard.") | |
6277 | (home-page "https://github.com/jwt/ruby-jwt") | |
6278 | (license license:expat))) | |
6279 | ||
16b324cd RW |
6280 | ;; Even though this package only provides bindings for a Mac OSX API it is |
6281 | ;; required by "ruby-listen" at runtime. | |
6282 | (define-public ruby-rb-fsevent | |
6283 | (package | |
6284 | (name "ruby-rb-fsevent") | |
b0ef15ed | 6285 | (version "0.10.3") |
16b324cd RW |
6286 | (source (origin |
6287 | (method url-fetch) | |
6288 | (uri (rubygems-uri "rb-fsevent" version)) | |
6289 | (sha256 | |
6290 | (base32 | |
b0ef15ed | 6291 | "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8")))) |
16b324cd RW |
6292 | (build-system ruby-build-system) |
6293 | ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs | |
6294 | ;; "listen", which needs "rb-fsevent" at runtime. | |
6295 | (arguments `(#:tests? #f)) | |
6296 | (synopsis "FSEvents API with signals catching") | |
6297 | (description | |
6298 | "This library provides Ruby bindings for the Mac OSX FSEvents API.") | |
6299 | (home-page "https://rubygems.org/gems/rb-fsevent") | |
6300 | (license license:expat))) | |
6301 | ||
b86be2ad RW |
6302 | (define-public ruby-listen |
6303 | (package | |
6304 | (name "ruby-listen") | |
12341d34 | 6305 | (version "3.2.0") |
b86be2ad RW |
6306 | (source |
6307 | (origin | |
35602819 CB |
6308 | ;; The gem does not include a Rakefile, so fetch from the Git |
6309 | ;; repository. | |
6310 | (method git-fetch) | |
6311 | (uri (git-reference | |
b0e7b699 | 6312 | (url "https://github.com/guard/listen") |
35602819 CB |
6313 | (commit (string-append "v" version)))) |
6314 | (file-name (git-file-name name version)) | |
b86be2ad RW |
6315 | (sha256 |
6316 | (base32 | |
12341d34 | 6317 | "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24")))) |
b86be2ad | 6318 | (build-system ruby-build-system) |
35602819 CB |
6319 | (arguments |
6320 | `(#:test-target "spec" | |
6321 | #:phases | |
6322 | (modify-phases %standard-phases | |
6323 | (add-after 'unpack 'fix-files-in-gemspec | |
6324 | (lambda _ | |
6325 | (substitute* "listen.gemspec" | |
6326 | (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`")) | |
6327 | #t)) | |
6328 | (add-before 'check 'remove-unnecessary-dependencies' | |
6329 | (lambda _ | |
6330 | (substitute* "Rakefile" | |
6331 | ;; Rubocop is for code linting, and is unnecessary for running | |
6332 | ;; the tests. | |
6333 | ((".*rubocop.*") "")) | |
6334 | #t))))) | |
6335 | (native-inputs | |
6336 | `(("bundler" ,bundler) | |
6337 | ("ruby-rspec" ,ruby-rspec))) | |
6338 | (inputs | |
6339 | `(;; ruby-thor is used for the command line interface, and is referenced | |
6340 | ;; in the wrapper, and therefore just needs to be an input. | |
6341 | ("ruby-thor" ,ruby-thor))) | |
b86be2ad | 6342 | (propagated-inputs |
35602819 CB |
6343 | `(("ruby-rb-fsevent" ,ruby-rb-fsevent) |
6344 | ("ruby-rb-inotify" ,ruby-rb-inotify) | |
6345 | ("ruby-dep" ,ruby-dep))) | |
b86be2ad RW |
6346 | (synopsis "Listen to file modifications") |
6347 | (description "The Listen gem listens to file modifications and notifies | |
6348 | you about the changes.") | |
6349 | (home-page "https://github.com/guard/listen") | |
6350 | (license license:expat))) | |
6351 | ||
8d3c5ff6 CB |
6352 | (define-public ruby-loofah |
6353 | (package | |
6354 | (name "ruby-loofah") | |
8bb7ebc3 | 6355 | (version "2.3.1") |
8d3c5ff6 CB |
6356 | (source |
6357 | (origin | |
6358 | (method url-fetch) | |
6359 | (uri (rubygems-uri "loofah" version)) | |
6360 | (sha256 | |
6361 | (base32 | |
8bb7ebc3 | 6362 | "0npqav026zd7r4qdidq9x5nxcp2dzg71bnp421xxx7sngbxf2xbd")))) |
8d3c5ff6 CB |
6363 | (build-system ruby-build-system) |
6364 | (arguments | |
6365 | '(#:phases | |
6366 | (modify-phases %standard-phases | |
6367 | (add-after 'unpack 'remove-unnecessary-dependencies | |
6368 | (lambda _ | |
6369 | ;; concourse is a development tool which is unused, so remove it | |
6370 | ;; so it's not required. | |
8d3c5ff6 | 6371 | (substitute* "Rakefile" |
8bb7ebc3 EF |
6372 | (("require \"concourse\"") "") |
6373 | (("Concourse\\.new.*") "task :concourse do\n")) | |
8d3c5ff6 CB |
6374 | #t))))) |
6375 | (native-inputs | |
6376 | `(("ruby-hoe" ,ruby-hoe) | |
6377 | ("ruby-rr" ,ruby-rr))) | |
6378 | (propagated-inputs | |
6379 | `(("ruby-nokogiri" ,ruby-nokogiri) | |
6380 | ("ruby-crass" ,ruby-crass))) | |
6381 | (synopsis "Ruby library for manipulating and transforming HTML/XML") | |
6382 | (description | |
6383 | "Loofah is a general library for manipulating and transforming HTML/XML | |
6384 | documents and fragments. It's built on top of Nokogiri and libxml2.") | |
6385 | (home-page "https://github.com/flavorjones/loofah") | |
6386 | (license license:expat))) | |
6387 | ||
5ff89a1b DT |
6388 | (define-public ruby-activesupport |
6389 | (package | |
6390 | (name "ruby-activesupport") | |
bcf1fe5b | 6391 | (version "5.2.2.1") |
5ff89a1b DT |
6392 | (source |
6393 | (origin | |
6394 | (method url-fetch) | |
6395 | (uri (rubygems-uri "activesupport" version)) | |
6396 | (sha256 | |
6397 | (base32 | |
bcf1fe5b | 6398 | "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb")))) |
5ff89a1b DT |
6399 | (build-system ruby-build-system) |
6400 | (arguments | |
2af45e50 BW |
6401 | `(#:phases |
6402 | (modify-phases %standard-phases | |
6403 | (replace 'check | |
6404 | (lambda _ | |
9923d5a4 TGR |
6405 | ;; There are no tests, instead attempt to load the library. |
6406 | (invoke "ruby" "-Ilib" "-r" "active_support")))))) | |
5ff89a1b | 6407 | (propagated-inputs |
2af45e50 BW |
6408 | `(("ruby-concurrent" ,ruby-concurrent) |
6409 | ("ruby-i18n" ,ruby-i18n) | |
5ff89a1b | 6410 | ("ruby-minitest" ,ruby-minitest) |
606ee9a1 BW |
6411 | ("ruby-tzinfo" ,ruby-tzinfo) |
6412 | ("ruby-tzinfo-data" ,ruby-tzinfo-data))) | |
5ff89a1b DT |
6413 | (synopsis "Ruby on Rails utility library") |
6414 | (description "ActiveSupport is a toolkit of support libraries and Ruby | |
6415 | core extensions extracted from the Rails framework. It includes support for | |
6416 | multibyte strings, internationalization, time zones, and testing.") | |
6417 | (home-page "http://www.rubyonrails.org") | |
6418 | (license license:expat))) | |
f847ad7b | 6419 | |
3996f0aa RW |
6420 | (define-public ruby-crass |
6421 | (package | |
6422 | (name "ruby-crass") | |
a84a185a MB |
6423 | (version "1.0.6") |
6424 | (home-page "https://github.com/rgrove/crass") | |
3996f0aa | 6425 | (source (origin |
a84a185a MB |
6426 | ;; The gem does not contain tests, so pull from git. |
6427 | (method git-fetch) | |
6428 | (uri (git-reference | |
6429 | (url home-page) | |
6430 | (commit (string-append "v" version)))) | |
6431 | (file-name (git-file-name name version)) | |
3996f0aa RW |
6432 | (sha256 |
6433 | (base32 | |
a84a185a | 6434 | "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40")))) |
3996f0aa | 6435 | (build-system ruby-build-system) |
3996f0aa RW |
6436 | (synopsis "Pure Ruby CSS parser") |
6437 | (description | |
6438 | "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.") | |
3996f0aa RW |
6439 | (license license:expat))) |
6440 | ||
c2c4e5b2 | 6441 | (define-public ruby-nokogumbo |
2e366b0a MB |
6442 | (package |
6443 | (name "ruby-nokogumbo") | |
6444 | (version "2.0.2") | |
6445 | (source (origin | |
6446 | ;; We use the git reference, because there's no Rakefile in the | |
6447 | ;; published gem and the tarball on Github is outdated. | |
6448 | (method git-fetch) | |
6449 | (uri (git-reference | |
b0e7b699 | 6450 | (url "https://github.com/rubys/nokogumbo") |
2e366b0a MB |
6451 | (commit (string-append "v" version)))) |
6452 | (file-name (string-append name "-" version "-checkout")) | |
6453 | (sha256 | |
6454 | (base32 | |
6455 | "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx")))) | |
6456 | (build-system ruby-build-system) | |
6457 | (native-inputs | |
6458 | `(("ruby-rake-compiler" ,ruby-rake-compiler))) | |
6459 | (inputs | |
6460 | `(("gumbo-parser" ,gumbo-parser))) | |
6461 | (propagated-inputs | |
6462 | `(("ruby-nokogiri" ,ruby-nokogiri))) | |
6463 | (synopsis "Ruby bindings to the Gumbo HTML5 parser") | |
6464 | (description | |
6465 | "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and | |
c2c4e5b2 | 6466 | access the result as a Nokogiri parsed document.") |
2e366b0a MB |
6467 | (home-page "https://github.com/rubys/nokogumbo/") |
6468 | (license license:asl2.0))) | |
c2c4e5b2 | 6469 | |
d56ff88b RW |
6470 | (define-public ruby-sanitize |
6471 | (package | |
6472 | (name "ruby-sanitize") | |
f362b53c MB |
6473 | (version "5.1.0") |
6474 | (home-page "https://github.com/rgrove/sanitize") | |
d56ff88b | 6475 | (source (origin |
f362b53c | 6476 | (method git-fetch) |
d56ff88b | 6477 | ;; The gem does not include the Rakefile, so we download the |
f362b53c MB |
6478 | ;; source from Github. |
6479 | (uri (git-reference | |
6480 | (url home-page) | |
6481 | (commit (string-append "v" version)))) | |
6482 | (file-name (git-file-name name version)) | |
6483 | (patches (search-patches "ruby-sanitize-system-libxml.patch")) | |
d56ff88b RW |
6484 | (sha256 |
6485 | (base32 | |
f362b53c | 6486 | "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0")))) |
d56ff88b RW |
6487 | (build-system ruby-build-system) |
6488 | (propagated-inputs | |
6489 | `(("ruby-crass" ,ruby-crass) | |
6490 | ("ruby-nokogiri" ,ruby-nokogiri) | |
6491 | ("ruby-nokogumbo" ,ruby-nokogumbo))) | |
6492 | (native-inputs | |
f362b53c | 6493 | `(("ruby-minitest" ,ruby-minitest))) |
d56ff88b RW |
6494 | (synopsis "Whitelist-based HTML and CSS sanitizer") |
6495 | (description | |
6496 | "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of | |
6497 | acceptable elements, attributes, and CSS properties, Sanitize will remove all | |
6498 | unacceptable HTML and/or CSS from a string.") | |
d56ff88b RW |
6499 | (license license:expat))) |
6500 | ||
ed4b6b18 BW |
6501 | (define-public ruby-oj |
6502 | (package | |
6503 | (name "ruby-oj") | |
93dfdec5 | 6504 | (version "3.10.1") |
ed4b6b18 BW |
6505 | (source |
6506 | (origin | |
b09ef660 | 6507 | (method git-fetch) |
ed4b6b18 BW |
6508 | ;; Version on rubygems.org does not contain Rakefile, so download from |
6509 | ;; GitHub instead. | |
b09ef660 EF |
6510 | (uri (git-reference |
6511 | (url "https://github.com/ohler55/oj") | |
6512 | (commit (string-append "v" version)))) | |
6513 | (file-name (git-file-name name version)) | |
ed4b6b18 BW |
6514 | (sha256 |
6515 | (base32 | |
93dfdec5 | 6516 | "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw")))) |
ed4b6b18 BW |
6517 | (build-system ruby-build-system) |
6518 | (arguments | |
6519 | '(#:test-target "test_all" | |
6520 | #:phases | |
6521 | (modify-phases %standard-phases | |
6522 | (add-before 'check 'disable-bundler | |
6523 | (lambda _ | |
6524 | (substitute* "Rakefile" | |
6525 | (("Bundler\\.with_clean_env") "1.times") | |
6526 | (("bundle exec ") ""))))))) | |
6527 | (native-inputs | |
6528 | `(("bundler" ,bundler) | |
6529 | ("ruby-rspec" ,ruby-rspec) | |
6530 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
6531 | (synopsis "JSON parser for Ruby optimized for speed") | |
6532 | (description | |
6533 | "Oj is a JSON parser and generator for Ruby, where the encoding and | |
6534 | decoding of JSON is implemented as a C extension to Ruby.") | |
b09ef660 | 6535 | (home-page "http://www.ohler.com/oj/") |
ed4b6b18 BW |
6536 | (license (list license:expat ; Ruby code |
6537 | license:bsd-3)))) ; extension code | |
6538 | ||
f847ad7b DT |
6539 | (define-public ruby-ox |
6540 | (package | |
6541 | (name "ruby-ox") | |
263c0dbf | 6542 | (version "2.6.0") |
f847ad7b DT |
6543 | (source |
6544 | (origin | |
6545 | (method url-fetch) | |
6546 | (uri (rubygems-uri "ox" version)) | |
6547 | (sha256 | |
6548 | (base32 | |
263c0dbf | 6549 | "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83")))) |
f847ad7b DT |
6550 | (build-system ruby-build-system) |
6551 | (arguments | |
6552 | '(#:tests? #f)) ; no tests | |
6553 | (synopsis "Optimized XML library for Ruby") | |
6554 | (description | |
6555 | "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby | |
6556 | written as a native C extension. It was designed to be an alternative to | |
6557 | Nokogiri and other Ruby XML parsers for generic XML parsing and as an | |
6558 | alternative to Marshal for Object serialization. ") | |
6559 | (home-page "http://www.ohler.com/ox") | |
6560 | (license license:expat))) | |
4a9e0585 | 6561 | |
0c4e7625 RW |
6562 | (define-public ruby-redcloth |
6563 | (package | |
6564 | (name "ruby-redcloth") | |
2a91494e | 6565 | (version "4.3.2") |
0c4e7625 RW |
6566 | (source (origin |
6567 | (method url-fetch) | |
6568 | (uri (rubygems-uri "RedCloth" version)) | |
6569 | (sha256 | |
6570 | (base32 | |
2a91494e | 6571 | "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy")))) |
0c4e7625 RW |
6572 | (build-system ruby-build-system) |
6573 | (arguments | |
6574 | `(#:tests? #f ; no tests | |
6575 | #:phases | |
6576 | (modify-phases %standard-phases | |
6577 | ;; Redcloth has complicated rake tasks to build various versions for | |
6578 | ;; multiple targets using RVM. We don't want this so we just use the | |
6579 | ;; existing gemspec. | |
6580 | (replace 'build | |
6581 | (lambda _ | |
9923d5a4 | 6582 | (invoke "gem" "build" "redcloth.gemspec")))))) |
0c4e7625 RW |
6583 | (native-inputs |
6584 | `(("bundler" ,bundler) | |
6585 | ("ruby-diff-lcs" ,ruby-diff-lcs) | |
6586 | ("ruby-rspec-2" ,ruby-rspec-2))) | |
6587 | (synopsis "Textile markup language parser for Ruby") | |
6588 | (description | |
6589 | "RedCloth is a Ruby parser for the Textile markup language.") | |
6590 | (home-page "http://redcloth.org") | |
6591 | (license license:expat))) | |
6592 | ||
4a9e0585 DT |
6593 | (define-public ruby-pg |
6594 | (package | |
6595 | (name "ruby-pg") | |
ab40e861 | 6596 | (version "1.2.3") |
4a9e0585 DT |
6597 | (source |
6598 | (origin | |
6599 | (method url-fetch) | |
6600 | (uri (rubygems-uri "pg" version)) | |
6601 | (sha256 | |
6602 | (base32 | |
ab40e861 | 6603 | "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj")))) |
4a9e0585 DT |
6604 | (build-system ruby-build-system) |
6605 | (arguments | |
6606 | '(#:test-target "spec")) | |
6607 | (native-inputs | |
6608 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
6609 | ("ruby-hoe" ,ruby-hoe) | |
6610 | ("ruby-rspec" ,ruby-rspec))) | |
6611 | (inputs | |
ffc4869e | 6612 | `(("postgresql" ,postgresql))) |
4a9e0585 DT |
6613 | (synopsis "Ruby interface to PostgreSQL") |
6614 | (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works | |
4db80f8b | 6615 | with PostgreSQL 9.0 and later.") |
4a9e0585 DT |
6616 | (home-page "https://bitbucket.org/ged/ruby-pg") |
6617 | (license license:ruby))) | |
468e5657 DT |
6618 | |
6619 | (define-public ruby-byebug | |
6620 | (package | |
6621 | (name "ruby-byebug") | |
d5489a61 | 6622 | (version "9.0.6") |
468e5657 DT |
6623 | (source |
6624 | (origin | |
6625 | (method url-fetch) | |
6626 | (uri (rubygems-uri "byebug" version)) | |
6627 | (sha256 | |
6628 | (base32 | |
d5489a61 | 6629 | "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0")))) |
468e5657 DT |
6630 | (build-system ruby-build-system) |
6631 | (arguments | |
6632 | '(#:tests? #f)) ; no tests | |
6633 | (synopsis "Debugger for Ruby 2") | |
6634 | (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2 | |
6635 | TracePoint C API for execution control and the Debug Inspector C API for call | |
6636 | stack navigation. The core component provides support that front-ends can | |
6637 | build on. It provides breakpoint handling and bindings for stack frames among | |
6638 | other things and it comes with a command line interface.") | |
7bf837fd | 6639 | (home-page "https://github.com/deivid-rodriguez/byebug") |
468e5657 | 6640 | (license license:bsd-2))) |
64b6ccc3 | 6641 | |
7aa00628 MC |
6642 | ;;; TODO: Make it the default byebug in core-updates. |
6643 | (define-public ruby-byebug-11 | |
6644 | (package | |
6645 | (inherit ruby-byebug) | |
6646 | (name "ruby-byebug") | |
6647 | (version "11.1.3") | |
6648 | (source | |
6649 | (origin | |
6650 | (method git-fetch) | |
6651 | (uri (git-reference | |
b0e7b699 | 6652 | (url "https://github.com/deivid-rodriguez/byebug") |
7aa00628 MC |
6653 | (commit (string-append "v" version)))) |
6654 | (file-name (git-file-name name version)) | |
6655 | (sha256 | |
6656 | (base32 | |
6657 | "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij")) | |
6658 | (modules '((guix build utils))) | |
6659 | (snippet | |
6660 | '(begin | |
6661 | ;; Remove wrappers that try to setup a bundle environment. | |
6662 | (with-directory-excursion "bin" | |
6663 | (for-each delete-file '("bundle" "rake" "rubocop")) | |
6664 | ;; ruby-minitest doesn't come with a launcher, so fix the one | |
6665 | ;; provided. | |
6666 | (substitute* "minitest" | |
6667 | (("load File\\.expand_path\\(\"bundle\".*") "") | |
6668 | (("require \"bundler/setup\".*") ""))) | |
6669 | #t)))) | |
6670 | (arguments | |
6671 | `(#:tests? #t | |
6672 | #:phases | |
6673 | (modify-phases %standard-phases | |
6674 | (add-after 'unpack 'skip-tmp-path-sensitive-test | |
6675 | (lambda _ | |
6676 | (substitute* "test/commands/where_test.rb" | |
6677 | (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*") | |
6678 | "unless true\n")) | |
6679 | #t)) | |
6680 | (add-before 'build 'compile | |
6681 | (lambda _ | |
6682 | (invoke "rake" "compile"))) | |
6683 | (add-before 'check 'set-home | |
6684 | (lambda _ | |
6685 | (setenv "HOME" (getcwd)) | |
6686 | #t))))) | |
6687 | (native-inputs | |
6688 | `(("bundler" ,bundler) | |
6689 | ("ruby-chandler" ,ruby-chandler) | |
6690 | ("ruby-minitest" ,ruby-minitest) | |
6691 | ("ruby-pry" ,ruby-pry) | |
6692 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
6693 | ("ruby-rubocop" ,ruby-rubocop) | |
6694 | ("ruby-yard" ,ruby-yard))))) | |
6695 | ||
5799bc2b RW |
6696 | (define-public ruby-netrc |
6697 | (package | |
6698 | (name "ruby-netrc") | |
6699 | (version "0.11.0") | |
6700 | (source (origin | |
6701 | (method url-fetch) | |
6702 | (uri (rubygems-uri "netrc" version)) | |
6703 | (sha256 | |
6704 | (base32 | |
6705 | "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y")))) | |
6706 | (build-system ruby-build-system) | |
6707 | (arguments | |
6708 | `(#:phases | |
6709 | (modify-phases %standard-phases | |
6710 | (replace 'check | |
6711 | ;; There is no Rakefile and minitest can only run one file at once, | |
6712 | ;; so we have to iterate over all test files. | |
6713 | (lambda _ | |
b23c1f50 MW |
6714 | (for-each (lambda (file) |
6715 | (invoke "ruby" "-Itest" file)) | |
6716 | (find-files "./test" "test_.*\\.rb")) | |
6717 | #t))))) | |
5799bc2b RW |
6718 | (native-inputs |
6719 | `(("ruby-minitest" ,ruby-minitest))) | |
6720 | (synopsis "Library to read and update netrc files") | |
6721 | (description | |
6722 | "This library can read and update netrc files, preserving formatting | |
6723 | including comments and whitespace.") | |
6724 | (home-page "https://github.com/geemus/netrc") | |
6725 | (license license:expat))) | |
6726 | ||
3a6989ce RW |
6727 | (define-public ruby-unf-ext |
6728 | (package | |
6729 | (name "ruby-unf-ext") | |
14db8f19 | 6730 | (version "0.0.7.6") |
3a6989ce RW |
6731 | (source (origin |
6732 | (method url-fetch) | |
6733 | (uri (rubygems-uri "unf_ext" version)) | |
6734 | (sha256 | |
6735 | (base32 | |
14db8f19 | 6736 | "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf")))) |
3a6989ce | 6737 | (build-system ruby-build-system) |
b809cc9a RW |
6738 | (arguments |
6739 | `(#:phases | |
6740 | (modify-phases %standard-phases | |
6741 | (add-after 'build 'build-ext | |
14db8f19 MB |
6742 | (lambda _ (invoke "rake" "compile:unf_ext"))) |
6743 | (add-before 'check 'lose-rake-compiler-dock-dependency | |
6744 | (lambda _ | |
6745 | ;; rake-compiler-dock is listed in the gemspec, but only | |
6746 | ;; required when cross-compiling. | |
6747 | (substitute* "unf_ext.gemspec" | |
6748 | ((".*rake-compiler-dock.*") "")) | |
6749 | #t))))) | |
3a6989ce RW |
6750 | (native-inputs |
6751 | `(("bundler" ,bundler) | |
6752 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
6753 | ("ruby-test-unit" ,ruby-test-unit))) | |
6754 | (synopsis "Unicode normalization form support library") | |
6755 | (description | |
6756 | "This package provides unicode normalization form support for Ruby.") | |
6757 | (home-page "https://github.com/knu/ruby-unf_ext") | |
6758 | (license license:expat))) | |
6759 | ||
2632a067 | 6760 | (define-public ruby-tdiff |
5071f17b BW |
6761 | ;; Use a newer than released snapshot so that rspec-2 is not required. |
6762 | (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2")) | |
6763 | (package | |
6764 | (name "ruby-tdiff") | |
6765 | (version (string-append "0.3.3-1." (string-take commit 8))) | |
6766 | (source (origin | |
6767 | (method git-fetch) | |
6768 | (uri (git-reference | |
b0e7b699 | 6769 | (url "https://github.com/postmodern/tdiff") |
5071f17b BW |
6770 | (commit commit))) |
6771 | (file-name (string-append name "-" version "-checkout")) | |
6772 | (sha256 | |
6773 | (base32 | |
6774 | "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4")))) | |
6775 | (build-system ruby-build-system) | |
6776 | (native-inputs | |
6777 | `(("ruby-rspec" ,ruby-rspec) | |
6778 | ("ruby-yard" ,ruby-yard) | |
6779 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) | |
6780 | (synopsis "Calculate the differences between two tree-like structures") | |
6781 | (description | |
6782 | "This library provides functions to calculate the differences between two | |
2632a067 | 6783 | tree-like structures. It is similar to Ruby's built-in @code{TSort} module.") |
5071f17b BW |
6784 | (home-page "https://github.com/postmodern/tdiff") |
6785 | (license license:expat)))) | |
2632a067 | 6786 | |
f60f5002 | 6787 | (define-public ruby-nokogiri-diff |
5b0c223a BW |
6788 | ;; Use a newer than released snapshot so that rspec-2 is not required. |
6789 | (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5")) | |
6790 | (package | |
6791 | (name "ruby-nokogiri-diff") | |
6792 | (version (string-append "0.2.0-1." (string-take commit 8))) | |
6793 | (source (origin | |
6794 | (method git-fetch) | |
6795 | (uri (git-reference | |
b0e7b699 | 6796 | (url "https://github.com/postmodern/nokogiri-diff") |
5b0c223a BW |
6797 | (commit commit))) |
6798 | (file-name (string-append name "-" version "-checkout")) | |
6799 | (sha256 | |
6800 | (base32 | |
6801 | "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf")))) | |
6802 | (build-system ruby-build-system) | |
6803 | (propagated-inputs | |
6804 | `(("ruby-tdiff" ,ruby-tdiff) | |
6805 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
6806 | (native-inputs | |
6807 | `(("ruby-rspec" ,ruby-rspec) | |
6808 | ("ruby-yard" ,ruby-yard) | |
6809 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) | |
6810 | (synopsis "Calculate the differences between two XML/HTML documents") | |
6811 | (description | |
6812 | "@code{Nokogiri::Diff} adds the ability to calculate the | |
f60f5002 | 6813 | differences (added or removed nodes) between two XML/HTML documents.") |
5b0c223a BW |
6814 | (home-page "https://github.com/postmodern/nokogiri-diff") |
6815 | (license license:expat)))) | |
f60f5002 | 6816 | |
6dc21310 CB |
6817 | (define-public ruby-racc |
6818 | (package | |
6819 | (name "ruby-racc") | |
6820 | (version "1.4.14") | |
6821 | (source | |
6822 | (origin | |
6823 | (method url-fetch) | |
6824 | (uri (rubygems-uri "racc" version)) | |
6825 | (sha256 | |
6826 | (base32 | |
6827 | "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl")))) | |
6828 | (build-system ruby-build-system) | |
6829 | (native-inputs | |
6830 | `(("ruby-hoe" ,ruby-hoe) | |
6831 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
6832 | (synopsis "LALR(1) parser generator for Ruby") | |
6833 | (description | |
6834 | "Racc is a LALR(1) parser generator. It is written in Ruby itself, and | |
6835 | generates Ruby program.") | |
6836 | (home-page "http://i.loveruby.net/en/projects/racc/") | |
6837 | (license (list | |
6838 | ;; Generally licensed under the LGPL2.1, and some files also | |
6839 | ;; available under the same license as Ruby. | |
6840 | license:lgpl2.1 | |
6841 | license:ruby)))) | |
6842 | ||
64b6ccc3 DT |
6843 | (define-public ruby-rack |
6844 | (package | |
6845 | (name "ruby-rack") | |
288d2480 | 6846 | (version "2.0.6") |
64b6ccc3 DT |
6847 | (source |
6848 | (origin | |
83870c32 | 6849 | (method git-fetch) |
1db791d5 | 6850 | ;; Download from GitHub so that the patch can be applied. |
83870c32 EF |
6851 | (uri (git-reference |
6852 | (url "https://github.com/rack/rack") | |
6853 | (commit version))) | |
6854 | (file-name (git-file-name name version)) | |
64b6ccc3 DT |
6855 | (sha256 |
6856 | (base32 | |
83870c32 | 6857 | "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6")) |
1db791d5 BW |
6858 | ;; Ignore test which fails inside the build environment but works |
6859 | ;; outside. | |
6860 | (patches (search-patches "ruby-rack-ignore-failing-test.patch")))) | |
64b6ccc3 DT |
6861 | (build-system ruby-build-system) |
6862 | (arguments | |
6863 | '(#:phases | |
6864 | (modify-phases %standard-phases | |
6865 | (add-before 'check 'fix-tests | |
6866 | (lambda _ | |
6867 | ;; A few of the tests use the length of a file on disk for | |
6868 | ;; Content-Length and Content-Range headers. However, this file | |
6869 | ;; has a shebang in it which an earlier phase patches, growing | |
6870 | ;; the file size from 193 to 239 bytes when the store prefix is | |
6871 | ;; "/gnu/store". | |
6872 | (let ((size-diff (- (string-length (which "ruby")) | |
6873 | (string-length "/usr/bin/env ruby")))) | |
6874 | (substitute* '("test/spec_file.rb") | |
6875 | (("193") | |
6876 | (number->string (+ 193 size-diff))) | |
6877 | (("bytes(.)22-33" all delimiter) | |
6878 | (string-append "bytes" | |
6879 | delimiter | |
6880 | (number->string (+ 22 size-diff)) | |
6881 | "-" | |
6882 | (number->string (+ 33 size-diff)))))) | |
83870c32 EF |
6883 | #t)) |
6884 | (add-before 'reset-gzip-timestamps 'make-files-writable | |
6885 | (lambda* (#:key outputs #:allow-other-keys) | |
6886 | ;; Make sure .gz files are writable so that the | |
6887 | ;; 'reset-gzip-timestamps' phase can do its work. | |
6888 | (let ((out (assoc-ref outputs "out"))) | |
6889 | (for-each make-file-writable | |
6890 | (find-files out "\\.gz$")) | |
6891 | #t)))))) | |
64b6ccc3 | 6892 | (native-inputs |
1db791d5 BW |
6893 | `(("ruby-minitest" ,ruby-minitest) |
6894 | ("ruby-minitest-sprint" ,ruby-minitest-sprint) | |
6895 | ("which" ,which))) | |
6896 | (propagated-inputs | |
6897 | `(("ruby-concurrent" ,ruby-concurrent))) | |
64b6ccc3 DT |
6898 | (synopsis "Unified web application interface for Ruby") |
6899 | (description "Rack provides a minimal, modular and adaptable interface for | |
6900 | developing web applications in Ruby. By wrapping HTTP requests and responses, | |
6901 | it unifies the API for web servers, web frameworks, and software in between | |
6902 | into a single method call.") | |
2f3800e5 | 6903 | (home-page "https://rack.github.io/") |
64b6ccc3 | 6904 | (license license:expat))) |
62e4cc5a | 6905 | |
20a0f804 BW |
6906 | (define-public ruby-rack-test |
6907 | (package | |
6908 | (name "ruby-rack-test") | |
6909 | (version "0.8.3") | |
6910 | (source | |
6911 | (origin | |
6912 | (method url-fetch) | |
6913 | (uri (rubygems-uri "rack-test" version)) | |
6914 | (sha256 | |
6915 | (base32 | |
6916 | "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g")))) | |
6917 | (build-system ruby-build-system) | |
6918 | (arguments | |
6919 | ;; Disable tests because of circular dependencies: requires sinatra, | |
6920 | ;; which requires rack-protection, which requires rack-test. Instead | |
6921 | ;; simply require the library. | |
6922 | `(#:phases | |
6923 | (modify-phases %standard-phases | |
6924 | (replace 'check | |
6925 | (lambda _ | |
6926 | (invoke "ruby" "-Ilib" "-r" "rack/test")))))) | |
6927 | (propagated-inputs | |
6928 | `(("ruby-rack" ,ruby-rack))) | |
6929 | (synopsis "Testing API for Rack applications") | |
6930 | (description | |
6931 | "Rack::Test is a small, simple testing API for Rack applications. It can | |
6932 | be used on its own or as a reusable starting point for Web frameworks and | |
6933 | testing libraries to build on.") | |
6934 | (home-page "https://github.com/rack-test/rack-test") | |
6935 | (license license:expat))) | |
6936 | ||
a0a7e690 BW |
6937 | (define-public ruby-rack-protection |
6938 | (package | |
6939 | (name "ruby-rack-protection") | |
d51c11fe | 6940 | (version "2.0.8.1") |
a0a7e690 BW |
6941 | (source |
6942 | (origin | |
6943 | (method url-fetch) | |
6944 | (uri (rubygems-uri "rack-protection" version)) | |
6945 | (sha256 | |
6946 | (base32 | |
d51c11fe | 6947 | "1zyj97bfr1shfgwk4ddmdbw0mdkm4qdyh9s1hl0k7accf3kxx1yi")))) |
a0a7e690 BW |
6948 | (build-system ruby-build-system) |
6949 | (arguments | |
fafeeaa2 | 6950 | '(;; Tests missing from the gem. |
a0a7e690 BW |
6951 | #:tests? #f)) |
6952 | (propagated-inputs | |
6953 | `(("ruby-rack" ,ruby-rack))) | |
6954 | (native-inputs | |
6955 | `(("bundler" ,bundler) | |
6956 | ("ruby-rspec" ,ruby-rspec-2) | |
6957 | ("ruby-rack-test" ,ruby-rack-test))) | |
6958 | (synopsis "Rack middleware that protects against typical web attacks") | |
6959 | (description "Rack middleware that can be used to protect against typical | |
6960 | web attacks. It can protect all Rack apps, including Rails. For instance, it | |
6961 | protects against cross site request forgery, cross site scripting, | |
6962 | clickjacking, directory traversal, session hijacking and IP spoofing.") | |
6963 | (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection") | |
6964 | (license license:expat))) | |
6965 | ||
6edabcb2 CB |
6966 | (define-public ruby-rainbow |
6967 | (package | |
6968 | (name "ruby-rainbow") | |
6969 | (version "3.0.0") | |
6970 | (source | |
6971 | (origin | |
6972 | (method url-fetch) | |
6973 | (uri (rubygems-uri "rainbow" version)) | |
6974 | (sha256 | |
6975 | (base32 | |
6976 | "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk")))) | |
6977 | (build-system ruby-build-system) | |
6978 | (arguments | |
6979 | '(#:phases | |
6980 | (modify-phases %standard-phases | |
6981 | ;; Run rspec directly, to avoid requiring Rubocop which is used from | |
6982 | ;; the Rakefile. | |
6983 | (replace 'check | |
6984 | (lambda* (#:key tests? #:allow-other-keys) | |
6985 | (when tests? | |
6986 | (invoke "rspec")) | |
6987 | #t))))) | |
6988 | (native-inputs | |
6989 | `(("bundler" ,bundler) | |
6990 | ("ruby-rspec" ,ruby-rspec))) | |
6991 | (synopsis "Colorize printed text on ANSI terminals") | |
6992 | (description | |
6993 | "@code{rainbow} provides a string presenter object to colorize strings by | |
6994 | wrapping them in ANSI escape codes.") | |
6995 | (home-page "https://github.com/sickill/rainbow") | |
79193b20 CB |
6996 | (license license:expat))) |
6997 | ||
6188d643 CB |
6998 | (define-public ruby-rr |
6999 | (package | |
7000 | (name "ruby-rr") | |
7001 | (version "1.2.1") | |
7002 | (source | |
7003 | (origin | |
7004 | (method url-fetch) | |
7005 | (uri (rubygems-uri "rr" version)) | |
7006 | (sha256 | |
7007 | (base32 | |
7008 | "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp")))) | |
7009 | (build-system ruby-build-system) | |
7010 | (arguments | |
7011 | '(#:tests? #f)) ; test files not included | |
7012 | (native-inputs | |
7013 | `(("bundler" ,bundler) | |
7014 | ("ruby-rspec" ,ruby-rspec))) | |
7015 | (synopsis "Ruby test double framework") | |
7016 | (description | |
7017 | "RR is a test double framework that features a rich selection of double | |
7018 | techniques and a terse syntax.") | |
7019 | (home-page "https://rr.github.io/rr/") | |
7020 | (license license:expat))) | |
7021 | ||
79193b20 CB |
7022 | (define-public ruby-rest-client |
7023 | (package | |
7024 | (name "ruby-rest-client") | |
7025 | (version "2.0.2") | |
7026 | (source | |
7027 | (origin | |
7028 | (method url-fetch) | |
7029 | (uri (rubygems-uri "rest-client" version)) | |
7030 | (sha256 | |
7031 | (base32 | |
7032 | "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j")))) | |
7033 | (build-system ruby-build-system) | |
7034 | (arguments | |
7035 | '(#:phases | |
7036 | (modify-phases %standard-phases | |
7037 | (add-before 'check 'remove-unnecessary-development-dependencies | |
7038 | (lambda _ | |
7039 | (substitute* "rest-client.gemspec" | |
7040 | ;; Remove rubocop as it's unused. Rubocop also indirectly | |
7041 | ;; depends on this package through ruby-parser and ruby-ast so | |
7042 | ;; this avoids a dependency loop. | |
7043 | ((".*rubocop.*") "\n") | |
7044 | ;; Remove pry as it's unused, it's a debugging tool | |
7045 | ((".*pry.*") "\n") | |
7046 | ;; Remove an unnecessarily strict rdoc dependency | |
7047 | ((".*rdoc.*") "\n")) | |
7048 | #t)) | |
7049 | (add-before 'check 'delete-network-dependent-tests | |
7050 | (lambda _ | |
7051 | (delete-file "spec/integration/request_spec.rb") | |
7052 | (delete-file "spec/integration/httpbin_spec.rb") | |
7053 | #t))))) | |
7054 | (propagated-inputs | |
7055 | `(("ruby-http-cookie" ,ruby-http-cookie) | |
7056 | ("ruby-mime-types" ,ruby-mime-types) | |
7057 | ("ruby-netrc" ,ruby-netrc))) | |
7058 | (native-inputs | |
7059 | `(("bundler" ,bundler) | |
eea094cc TGR |
7060 | ("ruby-webmock" ,ruby-webmock-2) |
7061 | ("ruby-rspec" ,ruby-rspec))) | |
79193b20 CB |
7062 | (synopsis "Simple HTTP and REST client for Ruby") |
7063 | (description | |
7064 | "@code{rest-client} provides a simple HTTP and REST client for Ruby, | |
7065 | inspired by the Sinatra microframework style of specifying actions: | |
7066 | @code{get}, @code{put}, @code{post}, @code{delete}.") | |
7067 | (home-page "https://github.com/rest-client/rest-client") | |
6edabcb2 CB |
7068 | (license license:expat))) |
7069 | ||
5c4c28f8 MC |
7070 | (define-public ruby-rubocop-ast |
7071 | (package | |
7072 | (name "ruby-rubocop-ast") | |
6e3a8519 | 7073 | (version "1.4.1") |
5c4c28f8 MC |
7074 | (source |
7075 | (origin | |
7076 | (method git-fetch) ;no test suite in distributed gem | |
7077 | (uri (git-reference | |
8ed4c468 | 7078 | (url "https://github.com/rubocop-hq/rubocop-ast") |
5c4c28f8 MC |
7079 | (commit (string-append "v" version)))) |
7080 | (file-name (git-file-name name version)) | |
7081 | (sha256 | |
7082 | (base32 | |
6e3a8519 | 7083 | "1x2m7k4bn4zvvwmj7imzmv0dav6xnrbcvssad1m5lkprx7h5lzkq")))) |
5c4c28f8 MC |
7084 | (build-system ruby-build-system) |
7085 | (arguments | |
7086 | `(#:test-target "spec" | |
7087 | #:phases (modify-phases %standard-phases | |
6e3a8519 | 7088 | (add-before 'build 'generate-lexer |
5c4c28f8 | 7089 | (lambda _ |
6e3a8519 EF |
7090 | (setenv "RUBOCOP_VERSION" "none") |
7091 | (invoke "rake" "generate"))) | |
5c4c28f8 MC |
7092 | (replace 'replace-git-ls-files |
7093 | (lambda _ | |
7094 | (substitute* "rubocop-ast.gemspec" | |
7095 | (("`git ls-files(.*)`" _ files) | |
7096 | (format #f "`find ~a -type f| sort`" files))) | |
7097 | #t))))) | |
7098 | (native-inputs | |
7099 | `(("ruby-bump" ,ruby-bump) | |
6e3a8519 EF |
7100 | ("ruby-oedipus-lex" ,ruby-oedipus-lex) |
7101 | ("ruby-pry" ,ruby-pry) | |
7102 | ("ruby-racc" ,ruby-racc) | |
7103 | ("ruby-rake" ,ruby-rake) | |
7104 | ("ruby-rspec" ,ruby-rspec) | |
7105 | ("ruby-simplecov" ,ruby-simplecov))) | |
5c4c28f8 MC |
7106 | (propagated-inputs |
7107 | `(("ruby-parser" ,ruby-parser))) | |
7108 | (synopsis "RuboCop's AST extensions and NodePattern functionality") | |
7109 | (description "Rubocop::AST extends @code{ruby-parser} with classes used | |
7110 | by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular: | |
7111 | @itemize | |
7112 | @item @code{RuboCop::AST::Node} | |
7113 | @item @code{RuboCop::AST::NodePattern} | |
7114 | @end itemize") | |
7115 | (home-page "https://rubocop.org/") | |
7116 | (license license:expat))) | |
7117 | ||
e098bdae MC |
7118 | (define-public ruby-rexml |
7119 | (package | |
7120 | (name "ruby-rexml") | |
7121 | (version "3.2.4") | |
7122 | (source | |
7123 | (origin | |
7124 | (method git-fetch) ;no tests in distributed gem | |
7125 | (uri (git-reference | |
8ed4c468 | 7126 | (url "https://github.com/ruby/rexml") |
e098bdae MC |
7127 | (commit (string-append "v" version)))) |
7128 | (file-name (git-file-name name version)) | |
7129 | (sha256 | |
7130 | (base32 | |
7131 | "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i")))) | |
7132 | (build-system ruby-build-system) | |
7133 | (synopsis "XML toolkit for Ruby") | |
7134 | (description "Inspired by Electric XML library for Java, REXML aims to be | |
7135 | easy-to-use API, small and fast. It supports both tree and stream document | |
7136 | parsing.") | |
7137 | (home-page "https://github.com/ruby/rexml") | |
7138 | (license license:bsd-2))) | |
7139 | ||
93ec41c6 MC |
7140 | (define-public ruby-character-set |
7141 | (package | |
7142 | (name "ruby-character-set") | |
7143 | (version "1.4.0") | |
7144 | (source | |
7145 | (origin | |
7146 | (method url-fetch) | |
7147 | (uri (rubygems-uri "character_set" version)) | |
7148 | (sha256 | |
7149 | (base32 | |
7150 | "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3")))) | |
7151 | (build-system ruby-build-system) | |
7152 | (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser | |
7153 | (synopsis "Ruby library to manipulate Unicode") | |
7154 | (description "CharacterSet is a C-extended Ruby library to work with sets | |
7155 | of Unicode code points. It can read and write these sets in various formats | |
7156 | and implements the @code{stdlib} @code{Set} interface for them. It also | |
7157 | offers an alternate paradigm of @code{String} processing which grants much | |
7158 | better performance than @code{Regexp} and @code{String} methods from the | |
7159 | @code{stdlib} where applicable. Many parts can be used independently, e.g.: | |
7160 | @itemize | |
7161 | @item @code{CharacterSet::Character} | |
7162 | @item @code{CharacterSet::Parser} | |
7163 | @item @code{CharacterSet::Writer} | |
7164 | @item @code{RangeCompressor} | |
7165 | @end itemize") | |
7166 | (home-page "https://github.com/jaynetics/character_set") | |
7167 | (license license:expat))) | |
7168 | ||
ac75f1df MC |
7169 | (define-public ruby-range-compressor |
7170 | (package | |
7171 | (name "ruby-range-compressor") | |
7172 | (version "1.0.0") | |
7173 | (source | |
7174 | (origin | |
7175 | (method git-fetch) | |
7176 | (uri (git-reference | |
8ed4c468 | 7177 | (url "https://github.com/janosch-x/range_compressor") |
ac75f1df MC |
7178 | (commit (string-append "v" version)))) |
7179 | (file-name (git-file-name name version)) | |
7180 | (sha256 | |
7181 | (base32 | |
7182 | "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54")))) | |
7183 | (build-system ruby-build-system) | |
7184 | (arguments | |
7185 | `(#:test-target "spec" | |
7186 | #:phases (modify-phases %standard-phases | |
7187 | (add-after 'extract-gemspec 'strip-version-requirements | |
7188 | (lambda _ | |
7189 | (substitute* "range_compressor.gemspec" | |
7190 | (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) | |
7191 | (string-append stripped "\n"))) | |
7192 | #t))))) | |
7193 | (native-inputs | |
7194 | `(("ruby-rspec" ,ruby-rspec))) | |
7195 | (synopsis "Simple arrays of objects to arrays of ranges compressor") | |
7196 | (description "RangeCompresses is a tiny library that allows compressing | |
7197 | arrays of objects into arrays of ranges. For example, it can turn the | |
7198 | following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.") | |
7199 | (home-page "https://github.com/janosch-x/range_compressor") | |
7200 | (license license:expat))) | |
7201 | ||
8aba0333 MC |
7202 | (define-public ruby-regexp-property-values |
7203 | (package | |
7204 | (name "ruby-regexp-property-values") | |
7205 | (version "1.0.0") | |
7206 | (source | |
7207 | (origin | |
7208 | (method git-fetch) | |
7209 | (uri (git-reference ;no test suite in distributed gem | |
8ed4c468 | 7210 | (url "https://github.com/jaynetics/regexp_property_values") |
8aba0333 MC |
7211 | (commit (string-append "v" version)))) |
7212 | (file-name (git-file-name name version)) | |
7213 | (sha256 | |
7214 | (base32 | |
7215 | "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j")))) | |
7216 | (build-system ruby-build-system) | |
7217 | (arguments | |
7218 | '(#:test-target "default")) | |
7219 | (native-inputs | |
7220 | `(("ruby-character-set" ,ruby-character-set) | |
7221 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
7222 | ("ruby-range-compressor" ,ruby-range-compressor) | |
7223 | ("ruby-rspec" ,ruby-rspec))) | |
7224 | (synopsis "Inspect Ruby's regex engine property values") | |
7225 | (description "This small library lets you see which property values are | |
7226 | supported by the regular expression engine of the Ruby version you are running | |
7227 | and can directly read out their code point ranges. In other words, it | |
7228 | determines all supported values for @code{\\p{value}} expressions and what | |
7229 | they match.") | |
7230 | (home-page "https://github.com/jaynetics/regexp_property_values") | |
7231 | (license license:expat))) | |
7232 | ||
b6f2a8d1 MC |
7233 | (define-public ruby-regexp-parser |
7234 | (package | |
7235 | (name "ruby-regexp-parser") | |
86d635b8 | 7236 | (version "2.0.0") |
b6f2a8d1 MC |
7237 | (source |
7238 | (origin | |
7239 | (method git-fetch) ;bin/test missing from gem | |
7240 | (uri (git-reference | |
8ed4c468 | 7241 | (url "https://github.com/ammar/regexp_parser") |
b6f2a8d1 MC |
7242 | (commit (string-append "v" version)))) |
7243 | (file-name (git-file-name name version)) | |
7244 | (sha256 | |
7245 | (base32 | |
86d635b8 | 7246 | "09ddxdwlml30q6j4rqf06bbjj1mwx00rs0bksnyblhv85anrqz3k")))) |
b6f2a8d1 MC |
7247 | (build-system ruby-build-system) |
7248 | (arguments | |
7249 | '(#:test-target "default" | |
7250 | #:phases (modify-phases %standard-phases | |
7251 | (add-before 'build 'compile-scanner.rb | |
7252 | (lambda _ | |
7253 | (invoke "rake" "build") | |
7254 | ;; XXX: This is needed otherwise the install | |
7255 | ;; phase fails to delete the installed cached | |
7256 | ;; gem file. | |
7257 | (delete-file-recursively "pkg") | |
7258 | #t))))) | |
7259 | (native-inputs | |
7260 | `(("ragel" ,ragel) | |
7261 | ("ruby-regexp-property-values" ,ruby-regexp-property-values) | |
7262 | ("ruby-rspec" ,ruby-rspec))) | |
7263 | (synopsis "A regular expression parser library for Ruby ") | |
7264 | (description "A Ruby gem for tokenizing, parsing, and transforming regular | |
7265 | expressions. It comprises the following components: | |
7266 | @itemize | |
7267 | @item A scanner/tokenizer based on Ragel, | |
7268 | @item A lexer that produces a stream of token objects, | |
7269 | @item A parser that produces a tree of Expression objects. | |
7270 | @end itemize") | |
7271 | (home-page "https://github.com/ammar/regexp_parser") | |
7272 | (license license:expat))) | |
7273 | ||
12ed6da4 MC |
7274 | (define-public ruby-test-queue |
7275 | (package | |
7276 | (name "ruby-test-queue") | |
7277 | (version "0.4.2") | |
7278 | (source | |
7279 | (origin | |
7280 | (method url-fetch) | |
7281 | (uri (rubygems-uri "test-queue" version)) | |
7282 | (sha256 | |
7283 | (base32 | |
7284 | "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f")))) | |
7285 | (build-system ruby-build-system) | |
7286 | (arguments | |
7287 | '(#:phases | |
7288 | (modify-phases %standard-phases | |
7289 | (replace 'check | |
7290 | (lambda* (#:key tests? #:allow-other-keys) | |
7291 | (when tests? | |
7292 | (invoke "rspec")) | |
7293 | #t))))) | |
7294 | (native-inputs | |
7295 | `(("ruby-rspec" ,ruby-rspec))) | |
7296 | (synopsis "Minitest/RSpec parallel test runner for CI environments") | |
7297 | (description "The test-queue module is a parallel test runner, | |
7298 | built using a centralized queue to ensure optimal distribution of | |
7299 | tests between workers. It is specifically optimized for Continuous | |
7300 | Integration (CI) environments: build statistics from each run are | |
7301 | stored locally and used to sort the queue at the beginning of the next | |
7302 | run.") | |
7303 | (home-page "https://github.com/tmm1/test-queue") | |
7304 | (license license:expat))) | |
7305 | ||
5d8fe6de CB |
7306 | (define-public ruby-rubocop |
7307 | (package | |
7308 | (name "ruby-rubocop") | |
301d1bac | 7309 | (version "1.10.0") |
5d8fe6de CB |
7310 | (source |
7311 | (origin | |
c164c402 MC |
7312 | (method git-fetch) ;no tests in distributed gem |
7313 | (uri (git-reference | |
8ed4c468 | 7314 | (url "https://github.com/rubocop-hq/rubocop") |
c164c402 MC |
7315 | (commit (string-append "v" version)))) |
7316 | (file-name (git-file-name name version)) | |
5d8fe6de CB |
7317 | (sha256 |
7318 | (base32 | |
301d1bac | 7319 | "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29")))) |
5d8fe6de CB |
7320 | (build-system ruby-build-system) |
7321 | (arguments | |
c164c402 MC |
7322 | '(#:test-target "default" |
7323 | #:phases | |
7324 | (modify-phases %standard-phases | |
c164c402 MC |
7325 | (add-before 'check 'set-home |
7326 | (lambda _ | |
7327 | (setenv "HOME" (getcwd)) | |
7328 | #t)) | |
301d1bac EF |
7329 | ;; Rubocop depends on itself for tests, directly and indirectly. By |
7330 | ;; regenerating the TODO list we test rubocop against itself and | |
7331 | ;; forgo adjusting the test suite to our environment each release. | |
7332 | (replace 'check | |
7333 | (lambda* (#:key tests? #:allow-other-keys) | |
7334 | (when tests? | |
7335 | (make-file-writable ".rubocop_todo.yml") | |
7336 | (invoke "./exe/rubocop" "--auto-gen-config")) | |
7337 | #t)) | |
c164c402 MC |
7338 | (add-before 'check 'make-adoc-files-writable |
7339 | (lambda _ | |
7340 | (let ((adoc-files (find-files "docs/modules/ROOT/pages" | |
7341 | "\\.adoc$"))) | |
7342 | (for-each make-file-writable adoc-files)) | |
7343 | #t))))) | |
7344 | (native-inputs | |
7345 | `(("ruby-bump" ,ruby-bump) | |
301d1bac | 7346 | ("ruby-memory-profiler" ,ruby-memory-profiler) |
c164c402 | 7347 | ("ruby-pry" ,ruby-pry) |
301d1bac | 7348 | ("ruby-rake" ,ruby-rake) |
c164c402 | 7349 | ("ruby-rspec" ,ruby-rspec) |
301d1bac EF |
7350 | ("ruby-rubocop-minimal" ,ruby-rubocop-minimal) |
7351 | ("ruby-rubocop-performance-minimal" ,ruby-rubocop-performance-minimal) | |
7352 | ("ruby-rubocop-rspec-minimal" ,ruby-rubocop-rspec-minimal) | |
7353 | ("ruby-simplecov" ,ruby-simplecov) | |
7354 | ("ruby-stackprof" ,ruby-stackprof) | |
c164c402 | 7355 | ("ruby-test-queue" ,ruby-test-queue) |
301d1bac | 7356 | ("ruby-webmock" ,ruby-webmock) |
c164c402 | 7357 | ("ruby-yard" ,ruby-yard))) |
5d8fe6de | 7358 | (propagated-inputs |
c164c402 MC |
7359 | `(("ruby-parallel" ,ruby-parallel) |
7360 | ("ruby-parser" ,ruby-parser) | |
5d8fe6de | 7361 | ("ruby-rainbow" ,ruby-rainbow) |
c164c402 MC |
7362 | ("ruby-regexp-parser" ,ruby-regexp-parser) |
7363 | ("ruby-rexml" ,ruby-rexml) | |
7364 | ("ruby-rubocop-ast" ,ruby-rubocop-ast) | |
5d8fe6de | 7365 | ("ruby-progressbar" ,ruby-progressbar) |
5d8fe6de CB |
7366 | ("ruby-unicode-display-width" ,ruby-unicode-display-width))) |
7367 | (synopsis "Ruby code style checking tool") | |
7368 | (description | |
7369 | "@code{rubocop} is a Ruby code style checking tool. It aims to enforce | |
7370 | the community-driven Ruby Style Guide.") | |
7371 | (home-page "https://github.com/rubocop-hq/rubocop") | |
7372 | (license license:expat))) | |
7373 | ||
301d1bac EF |
7374 | (define-public ruby-rubocop-minimal |
7375 | (hidden-package | |
7376 | (package | |
7377 | (inherit ruby-rubocop) | |
7378 | (arguments | |
7379 | (substitute-keyword-arguments (package-arguments ruby-rubocop) | |
7380 | ((#:tests? _ #f) #f))) | |
7381 | (propagated-inputs '()) | |
7382 | (native-inputs '())))) | |
7383 | ||
6ef85256 BW |
7384 | (define-public ruby-contest |
7385 | (package | |
7386 | (name "ruby-contest") | |
7387 | (version "0.1.3") | |
7388 | (source | |
7389 | (origin | |
7390 | (method url-fetch) | |
7391 | (uri (rubygems-uri "contest" version)) | |
7392 | (sha256 | |
7393 | (base32 | |
7394 | "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf")))) | |
7395 | (build-system ruby-build-system) | |
7396 | (synopsis "Write declarative tests using nested contexts") | |
7397 | (description | |
7398 | "Contest allows writing declarative @code{Test::Unit} tests using nested | |
7399 | contexts without performance penalties.") | |
7400 | (home-page "https://github.com/citrusbyte/contest") | |
7401 | (license license:expat))) | |
7402 | ||
c4550f75 BW |
7403 | (define-public ruby-creole |
7404 | (package | |
7405 | (name "ruby-creole") | |
7406 | (version "0.5.0") | |
7407 | (source | |
7408 | (origin | |
7409 | (method url-fetch) | |
7410 | (uri (rubygems-uri "creole" version)) | |
7411 | (sha256 | |
7412 | (base32 | |
7413 | "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm")))) | |
7414 | (build-system ruby-build-system) | |
7415 | (native-inputs | |
7416 | `(("ruby-bacon" ,ruby-bacon))) | |
7417 | (synopsis "Creole markup language converter") | |
7418 | (description | |
7419 | "Creole is a lightweight markup language and this library for converting | |
7420 | creole to @code{HTML}.") | |
7421 | (home-page "https://github.com/minad/creole") | |
7422 | (license license:ruby))) | |
7423 | ||
6aaa815e PP |
7424 | (define-public ruby-docile |
7425 | (package | |
7426 | (name "ruby-docile") | |
7427 | (version "1.1.5") | |
7428 | (source | |
7429 | (origin | |
7430 | (method url-fetch) | |
7431 | (uri (rubygems-uri "docile" version)) | |
7432 | (sha256 | |
7433 | (base32 | |
7434 | "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx")))) | |
7435 | (build-system ruby-build-system) | |
7436 | (arguments | |
7437 | '(#:tests? #f)) ; needs github-markup, among others | |
7438 | (synopsis "Ruby EDSL helper library") | |
7439 | (description "Docile is a Ruby library that provides an interface for | |
7440 | creating embedded domain specific languages (EDSLs) that manipulate existing | |
7441 | Ruby classes.") | |
7442 | (home-page "https://ms-ati.github.io/docile/") | |
7443 | (license license:expat))) | |
7444 | ||
fab8fed3 MC |
7445 | (define-public ruby-middleware |
7446 | (package | |
7447 | (name "ruby-middleware") | |
7448 | (version "0.1.0") | |
7449 | (source | |
7450 | (origin | |
7451 | (method url-fetch) | |
7452 | (uri (rubygems-uri "middleware" version)) | |
7453 | (sha256 | |
7454 | (base32 | |
7455 | "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl")))) | |
7456 | (build-system ruby-build-system) | |
7457 | (arguments '(#:tests? #f)) ;no test suite | |
7458 | (synopsis "Implementation of a middleware abstraction for Ruby") | |
7459 | (description "Middleware is a generalized implementation of a middleware | |
7460 | abstraction for Ruby.") | |
7461 | (home-page "https://github.com/mitchellh/middleware") | |
7462 | (license license:expat))) | |
7463 | ||
1d537c71 MC |
7464 | (define-public ruby-benchmark-ips |
7465 | (package | |
7466 | (name "ruby-benchmark-ips") | |
7467 | (version "2.8.2") | |
7468 | (source | |
7469 | (origin | |
7470 | (method url-fetch) | |
7471 | (uri (rubygems-uri "benchmark-ips" version)) | |
7472 | (sha256 | |
7473 | (base32 | |
7474 | "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw")))) | |
7475 | (build-system ruby-build-system) | |
7476 | (native-inputs | |
7477 | `(("ruby-hoe" ,ruby-hoe))) | |
7478 | (synopsis "Iterations per second enhancement for the Ruby Benchmark module") | |
7479 | (description "Benchmark-ips enhances the Ruby Benchmark module with the | |
7480 | iterations per second count. For short snippets of code, it can automatically | |
7481 | figure out how many times to run the code to get interesting data.") | |
7482 | (home-page "https://github.com/evanphx/benchmark-ips") | |
7483 | (license license:expat))) | |
7484 | ||
fc5d1c5a MC |
7485 | (define-public ruby-ffi-rzmq-core |
7486 | (package | |
7487 | (name "ruby-ffi-rzmq-core") | |
7488 | (version "1.0.7") | |
7489 | (source | |
7490 | (origin | |
7491 | (method url-fetch) | |
7492 | (uri (rubygems-uri "ffi-rzmq-core" version)) | |
7493 | (sha256 | |
7494 | (base32 | |
7495 | "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5")))) | |
7496 | (build-system ruby-build-system) | |
7497 | (arguments | |
7498 | `(#:phases | |
7499 | (modify-phases %standard-phases | |
7500 | (add-after 'unpack 'patch-libzmq-search-path | |
7501 | (lambda* (#:key inputs #:allow-other-keys) | |
7502 | (let ((zeromq (assoc-ref inputs "zeromq"))) | |
7503 | (substitute* "lib/ffi-rzmq-core/libzmq.rb" | |
7504 | (("/usr/local/lib") | |
7505 | (string-append zeromq "/lib"))) | |
7506 | #t))) | |
7507 | (replace 'check | |
7508 | (lambda _ | |
7509 | (invoke "rspec")))))) | |
7510 | (native-inputs | |
7511 | `(("ruby-rspec" ,ruby-rspec))) | |
7512 | (inputs | |
7513 | `(("zeromq" ,zeromq))) | |
7514 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
7515 | (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library") | |
7516 | (description "This library only provides the FFI wrapper for the ZeroMQ | |
7517 | networking library. It can be used to implement a Ruby API for the ZeroMQ | |
7518 | library.") | |
7519 | (home-page "https://github.com/chuckremes/ffi-rzmq-core") | |
7520 | (license license:expat))) | |
7521 | ||
7a503516 MC |
7522 | (define-public ruby-ffi-rzmq |
7523 | (package | |
7524 | (name "ruby-ffi-rzmq") | |
7525 | (version "2.0.7") | |
7526 | (source | |
7527 | (origin | |
7528 | (method url-fetch) | |
7529 | (uri (rubygems-uri "ffi-rzmq" version)) | |
7530 | (sha256 | |
7531 | (base32 | |
7532 | "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg")))) | |
7533 | (build-system ruby-build-system) | |
7534 | (arguments '(#:tests? #t | |
7535 | #:phases (modify-phases %standard-phases | |
7536 | (replace 'check | |
7537 | (lambda _ | |
7538 | (invoke "rspec")))))) | |
7539 | (native-inputs | |
7540 | `(("ruby-rspec" ,ruby-rspec))) | |
7541 | (propagated-inputs | |
7542 | `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core))) | |
7543 | (synopsis "High-level Ruby wrapper for the ZeroMQ networking library") | |
7544 | (description "This library provides a high-level API that wraps the ZeroMQ | |
7545 | networking library using the Ruby foreign function interface (FFI). It is a | |
7546 | pure Ruby wrapper, hence is compatible with any Ruby runtime that has support | |
7547 | for FFI.") | |
7548 | (home-page "https://github.com/chuckremes/ffi-rzmq") | |
7549 | (license license:expat))) | |
7550 | ||
03a0f98a MC |
7551 | (define-public ruby-sawyer |
7552 | (package | |
7553 | (name "ruby-sawyer") | |
7554 | (version "0.8.2") | |
7555 | (source | |
7556 | (origin | |
7557 | (method url-fetch) | |
7558 | (uri (rubygems-uri "sawyer" version)) | |
7559 | (sha256 | |
7560 | (base32 | |
7561 | "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz")))) | |
7562 | (build-system ruby-build-system) | |
7563 | (propagated-inputs | |
7564 | `(("ruby-addressable" ,ruby-addressable) | |
7565 | ("ruby-faraday" ,ruby-faraday))) | |
7566 | (synopsis "Experimental hypermedia agent for Ruby") | |
7567 | (description "Sawyer is an experimental hypermedia agent for Ruby built on | |
7568 | top of Faraday.") | |
7569 | (home-page "https://github.com/lostisland/sawyer") | |
7570 | (license license:expat))) | |
7571 | ||
aa3c76b1 MC |
7572 | (define-public ruby-octokit |
7573 | (package | |
7574 | (name "ruby-octokit") | |
7575 | (version "4.18.0") | |
7576 | (source | |
7577 | (origin | |
7578 | (method url-fetch) | |
7579 | (uri (rubygems-uri "octokit" version)) | |
7580 | (sha256 | |
7581 | (base32 | |
7582 | "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6")))) | |
7583 | (build-system ruby-build-system) | |
7584 | (arguments '(#:tests? #f)) ;no test suite in the gem release | |
7585 | (propagated-inputs | |
7586 | `(("ruby-faraday" ,ruby-faraday) | |
7587 | ("ruby-sawyer" ,ruby-sawyer))) | |
7588 | (synopsis "Ruby toolkit for the GitHub API") | |
7589 | (description "Octokit wraps the GitHub API in a flat API client that | |
7590 | follows Ruby conventions and requires little knowledge of REST.") | |
7591 | (home-page "https://github.com/octokit/octokit.rb") | |
7592 | (license license:expat))) | |
7593 | ||
1157d2f8 MC |
7594 | (define-public ruby-chandler |
7595 | (package | |
7596 | (name "ruby-chandler") | |
7597 | (version "0.9.0") | |
7598 | (source | |
7599 | (origin | |
7600 | (method url-fetch) | |
7601 | (uri (rubygems-uri "chandler" version)) | |
7602 | (sha256 | |
7603 | (base32 | |
7604 | "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr")))) | |
7605 | (build-system ruby-build-system) | |
7606 | (native-inputs | |
7607 | `(("ruby-rubocop" ,ruby-rubocop))) | |
7608 | (propagated-inputs | |
7609 | `(("ruby-netrc" ,ruby-netrc) | |
7610 | ("ruby-octokit" ,ruby-octokit))) | |
7611 | (synopsis "Sync CHANGELOG entries to GitHub's release notes") | |
7612 | (description "Chandler syncs a project's CHANGELOG file entries to | |
7613 | GitHub's release notes to remove the need of manually entering release | |
7614 | notes.") | |
7615 | (home-page "https://github.com/mattbrictson/chandler") | |
7616 | (license license:expat))) | |
7617 | ||
acb28876 MC |
7618 | (define-public ruby-pry-byebug |
7619 | (package | |
7620 | (name "ruby-pry-byebug") | |
7621 | (version "3.9.0") | |
7622 | (source | |
7623 | (origin | |
7624 | (method git-fetch) | |
7625 | (uri (git-reference | |
b0e7b699 | 7626 | (url "https://github.com/deivid-rodriguez/pry-byebug") |
acb28876 MC |
7627 | (commit (string-append "v" version)))) |
7628 | (file-name (git-file-name name version)) | |
7629 | (sha256 | |
7630 | (base32 | |
7631 | "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc")))) | |
7632 | (build-system ruby-build-system) | |
7633 | (arguments | |
7634 | `(#:phases (modify-phases %standard-phases | |
7635 | (add-before 'check 'set-home | |
7636 | (lambda _ | |
7637 | (setenv "HOME" (getcwd)) | |
7638 | #t))))) | |
7639 | (native-inputs | |
7640 | `(("ruby-chandler" ,ruby-chandler) | |
7641 | ("ruby-rubocop" ,ruby-rubocop) | |
7642 | ("ruby-simplecov" ,ruby-simplecov))) | |
7643 | (propagated-inputs | |
7644 | `(("ruby-byebug" ,ruby-byebug-11) | |
7645 | ("ruby-pry" ,ruby-pry))) | |
7646 | (synopsis "Step-by-step debugging and stack navigation in Pry") | |
7647 | (description "This package adds step-by-step debugging and stack | |
7648 | navigation capabilities to @code{pry}, using @code{byebug}.") | |
7649 | (home-page "https://github.com/deivid-rodriguez/pry-byebug") | |
7650 | (license license:expat))) | |
7651 | ||
4f8c551c EF |
7652 | (define-public ruby-stackprof |
7653 | (package | |
7654 | (name "ruby-stackprof") | |
7655 | (version "0.2.16") | |
7656 | (source | |
7657 | (origin | |
7658 | (method url-fetch) | |
7659 | (uri (rubygems-uri "stackprof" version)) | |
7660 | (sha256 | |
7661 | (base32 | |
7662 | "147rb66p3n062vc433afqhkd99iazvkrqnghxgh871r62yhha93f")))) | |
7663 | (build-system ruby-build-system) | |
7664 | (native-inputs | |
7665 | `(("ruby-mocha" ,ruby-mocha) | |
7666 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
7667 | (synopsis "Sampling profiler for Ruby code") | |
7668 | (description | |
7669 | "@code{stackprof} is a fast sampling profiler for Ruby code, with cpu, | |
7670 | wallclock and object allocation samplers.") | |
7671 | (home-page "http://github.com/tmm1/stackprof") | |
7672 | (license license:expat))) | |
7673 | ||
4d31fe6b MC |
7674 | (define-public ruby-binding-of-caller |
7675 | (package | |
7676 | (name "ruby-binding-of-caller") | |
7677 | (version "0.8.0") | |
7678 | (source | |
7679 | (origin | |
7680 | (method url-fetch) | |
7681 | (uri (rubygems-uri "binding_of_caller" version)) | |
7682 | (sha256 | |
7683 | (base32 | |
7684 | "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g")))) | |
7685 | (build-system ruby-build-system) | |
7686 | ;; Attempting to run the test suite fails with a rake deprecation error | |
7687 | ;; (see: https://github.com/banister/binding_of_caller/issues/76). | |
7688 | (arguments '(#:tests? #f)) | |
7689 | (propagated-inputs | |
7690 | `(("ruby-debug-inspector" ,ruby-debug-inspector))) | |
7691 | (synopsis "Retrieve the binding of a method's caller") | |
7692 | (description "The @code{binding_of_caller} module provides the | |
7693 | @code{Binding#of_caller} method. It allows accessing bindings from upper | |
7694 | frames in the call stack and can evaluate code in that context.") | |
7695 | (home-page "https://github.com/banister/binding_of_caller") | |
7696 | (license license:expat))) | |
7697 | ||
f4699abc MC |
7698 | (define-public ruby-pry-stack-explorer |
7699 | (package | |
7700 | (name "ruby-pry-stack-explorer") | |
7701 | (version "0.5.1") | |
7702 | (source | |
7703 | (origin | |
7704 | (method url-fetch) | |
7705 | (uri (rubygems-uri "pry-stack_explorer" version)) | |
7706 | (sha256 | |
7707 | (base32 | |
7708 | "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0")))) | |
7709 | (build-system ruby-build-system) | |
7710 | (arguments '(#:tests? #f)) ;no test suite in gem release | |
7711 | (propagated-inputs | |
7712 | `(("ruby-binding-of-caller" ,ruby-binding-of-caller) | |
7713 | ("ruby-pry" ,ruby-pry))) | |
7714 | (synopsis "Call-stack navigation plugin for the Pry REPL") | |
7715 | (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that | |
7716 | add support to navigate the call-stack.") | |
7717 | (home-page "https://github.com/pry/pry-stack_explorer") | |
7718 | (license license:expat))) | |
7719 | ||
1f014c97 MC |
7720 | (define-public ruby-varint |
7721 | (package | |
7722 | (name "ruby-varint") | |
7723 | (version "0.1.1") | |
7724 | (source | |
7725 | (origin | |
7726 | (method url-fetch) | |
7727 | (uri (rubygems-uri "varint" version)) | |
7728 | (sha256 | |
7729 | (base32 | |
7730 | "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac")))) | |
7731 | (build-system ruby-build-system) | |
7732 | (arguments '(#:tests? #f)) ;no test suite | |
7733 | (synopsis "Variable length integers (varint) C extension for Ruby") | |
7734 | (description "This package provides a small C extension to speed up | |
7735 | variable length integers (varint) in Ruby Protocol Buffers.") | |
7736 | (home-page "https://github.com/liquidm/varint") | |
7737 | (license license:bsd-3))) | |
7738 | ||
1b214174 MC |
7739 | (define-public ruby-ruby-prof |
7740 | (package | |
7741 | (name "ruby-ruby-prof") | |
7742 | (version "1.4.1") | |
7743 | (source | |
7744 | (origin | |
7745 | (method url-fetch) | |
7746 | (uri (rubygems-uri "ruby-prof" version)) | |
7747 | (sha256 | |
7748 | (base32 | |
7749 | "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27")))) | |
7750 | (build-system ruby-build-system) | |
7751 | (arguments | |
7752 | `(#:phases | |
7753 | (modify-phases %standard-phases | |
7754 | (add-after 'unpack 'patch-rakefile | |
7755 | ;; This fixes the following error: "NameError: uninitialized | |
7756 | ;; constant Bundler::GemHelper" (see: | |
7757 | ;; https://github.com/ruby-prof/ruby-prof/issues/274). | |
7758 | (lambda _ | |
7759 | (substitute* "Rakefile" | |
7760 | ((".*require \"bundler/setup\".*" all) | |
7761 | (string-append all " require 'bundler/gem_tasks'\n"))) | |
7762 | #t)) | |
661ad8d7 MC |
7763 | ;; The LineNumbersTest test fails non-deterministically (see: |
7764 | ;; https://github.com/ruby-prof/ruby-prof/issues/276). | |
7765 | (add-after 'extract-gemspec 'delete-flaky-test | |
7766 | (lambda _ | |
7767 | (delete-file "test/line_number_test.rb") | |
7768 | (substitute* "ruby-prof.gemspec" | |
7769 | (("\"test/line_number_test\\.rb\"\\.freeze, ") "")) | |
7770 | #t)) | |
1b214174 MC |
7771 | (add-before 'check 'compile |
7772 | (lambda _ | |
7773 | (invoke "rake" "compile")))))) | |
7774 | (native-inputs | |
7775 | `(("bundler" ,bundler) | |
7776 | ("ruby-minitest" ,ruby-minitest) | |
7777 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
7778 | ("ruby-rdoc" ,ruby-rdoc))) | |
7779 | (synopsis "Fast code profiler for Ruby") | |
7780 | (description "RubyProf is a fast code profiler for Ruby. Its features | |
7781 | include: | |
7782 | @table @asis | |
7783 | @item Speed | |
7784 | Being a C extension, it is many times faster than the standard Ruby profiler. | |
7785 | @item Measurement Modes | |
7786 | It can measure program wall time, process time, object allocations and memory | |
7787 | usage. | |
7788 | @item Reports | |
7789 | A variety of text and cross-referenced HTML reports can be generated. | |
7790 | @item Threads | |
7791 | Profiling multiple threads simultaneously is supported. | |
7792 | @end table") | |
7793 | (home-page "https://github.com/ruby-prof/ruby-prof") | |
7794 | (license license:bsd-2))) | |
7795 | ||
f499e124 EF |
7796 | (define-public ruby-memory-profiler |
7797 | (package | |
7798 | (name "ruby-memory-profiler") | |
7799 | (version "1.0.0") | |
7800 | (source | |
7801 | (origin | |
7802 | (method git-fetch) | |
7803 | (uri (git-reference | |
7804 | (url "https://github.com/SamSaffron/memory_profiler") | |
7805 | (commit (string-append "v" version)))) | |
7806 | (file-name (git-file-name name version)) | |
7807 | (sha256 | |
7808 | (base32 | |
7809 | "07yqv11q68xg2fqkrhs6ysngryk8b9zq6qzh24rgx9xqv6qfnj0w")))) | |
7810 | (build-system ruby-build-system) | |
7811 | (native-inputs | |
7812 | `(("ruby-rake" ,ruby-rake))) | |
7813 | (synopsis "Memory profiling routines for Ruby") | |
7814 | (description | |
7815 | "This package provides memory profiling routines for Ruby.") | |
7816 | (home-page "https://github.com/SamSaffron/memory_profiler") | |
7817 | (license license:expat))) | |
7818 | ||
dff5392f MC |
7819 | (define-public ruby-cucumber-messages |
7820 | (package | |
7821 | (name "ruby-cucumber-messages") | |
7822 | (version "12.2.0") | |
7823 | (source (origin | |
7824 | (method git-fetch) | |
7825 | (uri (git-reference | |
b0e7b699 | 7826 | (url "https://github.com/cucumber/messages-ruby") |
dff5392f MC |
7827 | (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c"))) |
7828 | (file-name (git-file-name name version)) | |
7829 | (sha256 | |
7830 | (base32 | |
7831 | "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a")))) | |
7832 | (build-system ruby-build-system) | |
7833 | (arguments | |
7834 | `(#:phases (modify-phases %standard-phases | |
7835 | (add-after 'unpack 'patch-protobuf.rb | |
7836 | (lambda _ | |
7837 | (substitute* "rake/protobuf.rb" | |
7838 | (("load 'protobuf/tasks/compile.rake'") | |
7839 | "require 'protobuf/tasks'")) | |
7840 | #t)) | |
7841 | (add-before 'build 'compile | |
7842 | (lambda _ | |
7843 | (substitute* "Makefile" | |
7844 | (("bundle exec ") "") | |
7845 | (("include default.mk.*" all) | |
7846 | (string-append "#" all))) | |
7847 | (invoke "make"))) | |
7848 | (replace 'check | |
7849 | (lambda _ | |
7850 | (invoke "rspec")))))) | |
7851 | (propagated-inputs | |
7852 | `(("ruby-protobuf" ,ruby-protobuf-cucumber))) | |
7853 | (native-inputs | |
7854 | `(("ruby-rspec" ,ruby-rspec))) | |
7855 | (home-page "https://github.com/cucumber/messages-ruby") | |
7856 | (synopsis "Cucumber Messages for Ruby (Protocol Buffers)") | |
7857 | (description "Cucumber Messages for Ruby is a library which allows | |
7858 | serialization and deserialization of the protocol buffer messages used in | |
7859 | Cucumber.") | |
7860 | (license license:expat))) | |
7861 | ||
44514637 | 7862 | (define-public ruby-gherkin |
62e4cc5a | 7863 | (package |
44514637 | 7864 | (name "ruby-gherkin") |
cfef316f MC |
7865 | (version "14.0.1") |
7866 | (source (origin | |
7867 | (method git-fetch) | |
7868 | (uri (git-reference | |
7869 | (url "https://github.com/cucumber/gherkin-ruby") | |
7870 | (commit (string-append "v" version)))) | |
7871 | (file-name (git-file-name name version)) | |
7872 | (sha256 | |
7873 | (base32 | |
7874 | "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb")))) | |
62e4cc5a PP |
7875 | (build-system ruby-build-system) |
7876 | (native-inputs | |
cfef316f MC |
7877 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages) |
7878 | ("ruby-rspec" ,ruby-rspec))) | |
62e4cc5a | 7879 | (arguments |
cfef316f | 7880 | `(#:test-target "spec")) |
62e4cc5a | 7881 | (synopsis "Gherkin parser for Ruby") |
44514637 | 7882 | (description "Gherkin is a parser and compiler for the Gherkin language. |
aada5f6f CB |
7883 | It is intended be used by all Cucumber implementations to parse |
7884 | @file{.feature} files.") | |
cfef316f | 7885 | (home-page "https://github.com/cucumber/gherkin-ruby") |
62e4cc5a | 7886 | (license license:expat))) |
cd89fecb | 7887 | |
8f85018d MB |
7888 | (define-public ruby-gherkin-ruby |
7889 | (package | |
7890 | (name "ruby-gherkin-ruby") | |
7891 | (version "0.3.2") | |
702a1012 | 7892 | (home-page "https://github.com/codegram/gherkin-ruby") |
8f85018d MB |
7893 | (source (origin |
7894 | (method url-fetch) | |
7895 | (uri (rubygems-uri "gherkin-ruby" version)) | |
7896 | (sha256 | |
7897 | (base32 | |
7898 | "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1")))) | |
7899 | (build-system ruby-build-system) | |
7900 | (synopsis "Pure Ruby Gherkin parser") | |
7901 | (description | |
7902 | "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than | |
7903 | 200 lines of code.") | |
7904 | ;; XXX: No license information anywhere but Readme.md. | |
7905 | (license license:expat))) | |
7906 | ||
15b16c2c CB |
7907 | (define-public ruby-aruba |
7908 | (package | |
7909 | (name "ruby-aruba") | |
cf7201c4 | 7910 | (version "0.14.14") |
15b16c2c CB |
7911 | (source |
7912 | (origin | |
7913 | (method url-fetch) | |
7914 | (uri (rubygems-uri "aruba" version)) | |
7915 | (sha256 | |
7916 | (base32 | |
cf7201c4 | 7917 | "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn")))) |
15b16c2c CB |
7918 | (build-system ruby-build-system) |
7919 | (arguments | |
7920 | '(#:test-target "spec" | |
7921 | #:phases | |
7922 | (modify-phases %standard-phases | |
7923 | (add-after 'unpack 'patch | |
7924 | (lambda _ | |
7925 | (substitute* "spec/aruba/api_spec.rb" | |
7926 | ;; This resolves some errors in the specs | |
7927 | ;; | |
7928 | ;; undefined method `parse' for Time:Class | |
7929 | (("require 'spec_helper'") | |
7930 | "require 'spec_helper'\nrequire 'time'")) | |
7931 | ;; Avoid shebang issues in this spec file | |
7932 | (substitute* "spec/aruba/matchers/command_spec.rb" | |
7933 | (("/usr/bin/env bash") | |
7934 | (which "bash"))) | |
7935 | #t)) | |
7936 | (add-before 'check 'remove-unnecessary-dependencies | |
7937 | (lambda _ | |
7938 | (substitute* "Gemfile" | |
7939 | ((".*byebug.*") "\n") | |
7940 | ((".*pry.*") "\n") | |
7941 | ((".*yaml.*") "\n") | |
7942 | ((".*bcat.*") "\n") | |
7943 | ((".*kramdown.*") "\n") | |
7944 | ((".*rubocop.*") "\n") | |
7945 | ((".*cucumber-pro.*") "\n") | |
7946 | ((".*cucumber.*") "\n") | |
7947 | ((".*license_finder.*") "\n") | |
7948 | ((".*rake.*") "gem 'rake'\n") | |
15b16c2c | 7949 | ((".*relish.*") "\n")) |
15b16c2c CB |
7950 | (substitute* "aruba.gemspec" |
7951 | (("spec\\.add\\_runtime\\_dependency 'cucumber'.*") | |
7952 | "spec.add_runtime_dependency 'cucumber'")) | |
7953 | #t)) | |
7954 | (add-before 'check 'set-home | |
7955 | (lambda _ (setenv "HOME" "/tmp") #t))))) | |
7956 | (native-inputs | |
7957 | `(("bundler" ,bundler) | |
7958 | ("ruby-rspec" ,ruby-rspec) | |
cf7201c4 CB |
7959 | ("ruby-fuubar" ,ruby-fuubar) |
7960 | ("ruby-simplecov" ,ruby-simplecov))) | |
15b16c2c CB |
7961 | (propagated-inputs |
7962 | `(("ruby-childprocess" ,ruby-childprocess) | |
7963 | ("ruby-contracts" ,ruby-contracts) | |
7964 | ("ruby-cucumber" ,ruby-cucumber) | |
7965 | ("ruby-ffi" ,ruby-ffi) | |
7966 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
7967 | ("ruby-thor" ,ruby-thor) | |
7968 | ("ruby-yard" ,ruby-yard))) | |
7969 | (synopsis "Test command-line applications with Cucumber, RSpec or Minitest") | |
7970 | (description | |
7971 | "Aruba is an extension for Cucumber, RSpec and Minitest for testing | |
7972 | command-line applications. It supports applications written in any | |
7973 | language.") | |
7974 | (home-page "https://github.com/cucumber/aruba") | |
7975 | (license license:expat))) | |
7976 | ||
7977 | ;; A version of ruby-aruba without tests run so that circular dependencies can | |
7978 | ;; be avoided. | |
7979 | (define ruby-aruba-without-tests | |
7980 | (package | |
7981 | (inherit ruby-aruba) | |
7982 | (arguments '(#:tests? #f)) | |
7983 | (propagated-inputs | |
7984 | `(("ruby-cucumber" ,ruby-cucumber-without-tests) | |
7985 | ,@(alist-delete "ruby-cucumber" | |
7986 | (package-propagated-inputs ruby-aruba)))) | |
7987 | (native-inputs '()))) | |
7988 | ||
fd6577b4 MC |
7989 | (define-public ruby-sys-uname |
7990 | (package | |
7991 | (name "ruby-sys-uname") | |
7992 | (version "1.2.1") | |
7993 | (source | |
7994 | (origin | |
7995 | (method url-fetch) | |
7996 | (uri (rubygems-uri "sys-uname" version)) | |
7997 | (sha256 | |
7998 | (base32 | |
7999 | "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0")))) | |
8000 | (build-system ruby-build-system) | |
8001 | (arguments | |
8002 | `(#:test-target "spec")) | |
8003 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
8004 | (native-inputs `(("ruby-rspec" ,ruby-rspec))) | |
8005 | (synopsis "Ruby interface for gathering system information") | |
8006 | (description "The sys-uname library provides an interface for gathering | |
8007 | information about your current platform. It allows retrieving information | |
8008 | such as the OS name, OS version, system name, etc.") | |
8009 | (home-page "https://github.com/djberg96/sys-uname") | |
8010 | (license license:asl2.0))) | |
8011 | ||
ac3ec612 MC |
8012 | (define-public ruby-cucumber-create-meta |
8013 | (package | |
8014 | (name "ruby-cucumber-create-meta") | |
8015 | (version "1.0.0") | |
8016 | (source | |
8017 | (origin | |
8018 | (method url-fetch) | |
8019 | (uri (rubygems-uri "cucumber-create-meta" version)) | |
8020 | (sha256 | |
8021 | (base32 | |
8022 | "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw")))) | |
8023 | (build-system ruby-build-system) | |
8024 | (arguments | |
8025 | `(#:phases (modify-phases %standard-phases | |
8026 | (add-after 'extract-gemspec 'relax-version-requirements | |
8027 | (lambda _ | |
8028 | (substitute* ".gemspec" | |
8029 | ((" 12\\.2") | |
8030 | " 12.1")) | |
8031 | #t)) | |
8032 | (replace 'check | |
8033 | (lambda _ | |
8034 | (invoke "rspec")))))) | |
8035 | (native-inputs | |
8036 | `(("ruby-rspec" ,ruby-rspec))) | |
8037 | (propagated-inputs | |
8038 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages) | |
8039 | ("ruby-sys-uname" ,ruby-sys-uname))) | |
8040 | (synopsis "Function to create @code{Meta} messages for Cucumber Ruby") | |
8041 | (description "The @code{createMeta} utility function allows generating | |
8042 | system-specific @code{Meta} messages for Cucumber Ruby.") | |
8043 | (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby") | |
8044 | (license license:expat))) | |
8045 | ||
f3574624 MC |
8046 | (define-public ruby-cucumber-html-formatter |
8047 | (package | |
8048 | (name "ruby-cucumber-html-formatter") | |
8049 | (version "7.0.0") | |
8050 | (source | |
8051 | (origin | |
8052 | (method url-fetch) | |
8053 | (uri (rubygems-uri "cucumber-html-formatter" version)) | |
8054 | (sha256 | |
8055 | (base32 | |
8056 | "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62")))) | |
8057 | (build-system ruby-build-system) | |
8058 | (arguments | |
8059 | `(#:phases (modify-phases %standard-phases | |
8060 | (replace 'check | |
8061 | (lambda _ | |
8062 | (invoke "rspec")))))) | |
8063 | (native-inputs | |
8064 | `(("ruby-rspec" ,ruby-rspec))) | |
8065 | (propagated-inputs | |
8066 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages))) | |
8067 | (synopsis "HTML formatter for Cucumber") | |
8068 | (description "Cucumber HTML Formatter produces a HTML report for Cucumber | |
8069 | runs. It is built on top of cucumber-react and works with any Cucumber | |
8070 | implementation with a protocol buffer formatter that outputs Cucumber | |
8071 | messages.") | |
8072 | (home-page "https://github.com/cucumber/cucumber/tree/\ | |
8073 | master/html-formatter/ruby") | |
8074 | (license license:expat))) | |
8075 | ||
15b16c2c CB |
8076 | (define-public ruby-cucumber |
8077 | (package | |
8078 | (name "ruby-cucumber") | |
92ebbaad | 8079 | (version "4.1.0") |
15b16c2c CB |
8080 | (source |
8081 | (origin | |
8082 | (method git-fetch) | |
8083 | (uri (git-reference | |
b0e7b699 | 8084 | (url "https://github.com/cucumber/cucumber-ruby") |
15b16c2c CB |
8085 | (commit (string-append "v" version)))) |
8086 | (file-name (git-file-name name version)) | |
8087 | (sha256 | |
8088 | (base32 | |
92ebbaad | 8089 | "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549")))) |
15b16c2c CB |
8090 | (build-system ruby-build-system) |
8091 | (arguments | |
fa8e4dbf | 8092 | '(#:test-target "default" |
15b16c2c CB |
8093 | #:phases |
8094 | (modify-phases %standard-phases | |
fa8e4dbf MC |
8095 | (add-after 'unpack 'disable-rubocop |
8096 | ;; Rubocop lint check fails with our more recent version. | |
8097 | (lambda _ | |
8098 | (substitute* "Rakefile" | |
8099 | (("spec cucumber rubocop") | |
8100 | "spec cucumber")) | |
8101 | #t)) | |
92ebbaad | 8102 | (add-after 'extract-gemspec 'strip-version-requirements |
15b16c2c | 8103 | (lambda _ |
fa8e4dbf | 8104 | (delete-file "Gemfile") ;do not use Bundler |
92ebbaad MC |
8105 | (substitute* "cucumber.gemspec" |
8106 | (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) | |
8107 | (string-append stripped "\n"))) | |
fa8e4dbf MC |
8108 | #t)) |
8109 | (add-before 'check 'set-home | |
8110 | (lambda _ | |
8111 | (setenv "HOME" (getcwd)) | |
15b16c2c CB |
8112 | #t))))) |
8113 | (propagated-inputs | |
8114 | `(("ruby-builder" ,ruby-builder) | |
8115 | ("ruby-cucumber-core" ,ruby-cucumber-core) | |
92ebbaad MC |
8116 | ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta) |
8117 | ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter) | |
8118 | ("ruby-cucumber-messages" ,ruby-cucumber-messages) | |
15b16c2c | 8119 | ("ruby-cucumber-wire" ,ruby-cucumber-wire) |
15b16c2c CB |
8120 | ("ruby-diff-lcs" ,ruby-diff-lcs) |
8121 | ("ruby-gherkin" ,ruby-gherkin) | |
8122 | ("ruby-multi-json" ,ruby-multi-json) | |
8123 | ("ruby-multi-test" ,ruby-multi-test))) | |
8124 | (native-inputs | |
92ebbaad | 8125 | `(;; Use a untested version of aruba, to avoid a circular dependency, as |
15b16c2c | 8126 | ;; ruby-aruba depends on ruby-cucumber. |
1628d57b | 8127 | ("ruby-aruba" ,ruby-aruba-without-tests) |
15b16c2c CB |
8128 | ("ruby-rspec" ,ruby-rspec) |
8129 | ("ruby-pry" ,ruby-pry) | |
92ebbaad MC |
8130 | ("ruby-nokogiri" ,ruby-nokogiri) |
8131 | ("ruby-rubocop" ,ruby-rubocop))) | |
15b16c2c | 8132 | (synopsis "Describe automated tests in plain language") |
92ebbaad MC |
8133 | (description "Cucumber is a tool for running automated tests written in |
8134 | plain language. It's designed to support a Behaviour Driven Development (BDD) | |
15b16c2c CB |
8135 | software development workflow.") |
8136 | (home-page "https://cucumber.io/") | |
8137 | (license license:expat))) | |
8138 | ||
8139 | (define ruby-cucumber-without-tests | |
8140 | (package (inherit ruby-cucumber) | |
8141 | (arguments | |
8142 | '(#:tests? #f)) | |
8143 | (native-inputs | |
8144 | '()))) | |
8145 | ||
f048ef52 MC |
8146 | (define-public ruby-coveralls |
8147 | (package | |
8148 | (name "ruby-coveralls") | |
8149 | (version "0.8.23") | |
8150 | (source | |
8151 | (origin | |
8152 | (method url-fetch) | |
8153 | (uri (rubygems-uri "coveralls" version)) | |
8154 | (sha256 | |
8155 | (base32 | |
8156 | "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc")))) | |
8157 | (build-system ruby-build-system) | |
8158 | ;; The test suite depends on ruby-vcr, which cannot be included in Guix | |
fe9993b1 MC |
8159 | ;; because of its nonfree, Hippocratic-derived license. |
8160 | (arguments | |
8161 | `(#:tests? #f | |
8162 | #:phases (modify-phases %standard-phases | |
8163 | (add-after 'extract-gemspec 'strip-version-requirements | |
8164 | ;; Keeping strict version requirements can cause problems | |
8165 | ;; to users of the library, such as: Gem::ConflictError: | |
8166 | ;; Unable to activate coveralls-0.8.23, because | |
8167 | ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1). | |
8168 | (lambda _ | |
8169 | (substitute* "coveralls-ruby.gemspec" | |
8170 | (("(.*add_.*dependency\\([^,]+), .*" _ stripped) | |
8171 | (string-append stripped ")\n"))) | |
8172 | #t))))) | |
f048ef52 MC |
8173 | (propagated-inputs |
8174 | `(("ruby-json" ,ruby-json) | |
8175 | ("ruby-term-ansicolor" ,ruby-term-ansicolor) | |
8176 | ("ruby-thor" ,ruby-thor) | |
8177 | ("ruby-tins" ,ruby-tins))) | |
8178 | (synopsis "Ruby implementation of the Coveralls API") | |
8179 | (description "This package provides a Ruby implementation of the Coveralls | |
8180 | API.") | |
8181 | (home-page "https://coveralls.io") | |
8182 | (license license:expat))) | |
f2a1b7fa MC |
8183 | |
8184 | (define-public ruby-unindent | |
8185 | (package | |
8186 | (name "ruby-unindent") | |
8187 | (version "1.0") | |
8188 | (source | |
8189 | (origin | |
8190 | (method url-fetch) | |
8191 | (uri (rubygems-uri "unindent" version)) | |
8192 | (sha256 | |
8193 | (base32 | |
8194 | "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd")))) | |
8195 | (build-system ruby-build-system) | |
8196 | (synopsis "Ruby method to unindent strings") | |
8197 | (description "This module provides a @code{String#unindent} Ruby method to | |
8198 | unindent strings, which can be useful to unindent multiline strings embedded | |
8199 | in already-indented code.") | |
8200 | (home-page "https://github.com/mynyml/unindent") | |
8201 | (license license:expat))) | |
f048ef52 | 8202 | |
cd89fecb PP |
8203 | (define-public ruby-cucumber-core |
8204 | (package | |
8205 | (name "ruby-cucumber-core") | |
95a5d992 | 8206 | (version "7.1.0") |
cd89fecb PP |
8207 | (source |
8208 | (origin | |
95a5d992 MC |
8209 | (method git-fetch) |
8210 | (uri (git-reference | |
b0e7b699 | 8211 | (url "https://github.com/cucumber/cucumber-ruby-core") |
95a5d992 MC |
8212 | (commit (string-append "v" version)))) |
8213 | (file-name (git-file-name name version)) | |
cd89fecb PP |
8214 | (sha256 |
8215 | (base32 | |
95a5d992 | 8216 | "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn")))) |
cd89fecb | 8217 | (build-system ruby-build-system) |
95a5d992 MC |
8218 | (arguments |
8219 | `(#:test-target "spec" | |
8220 | #:phases | |
8221 | (modify-phases %standard-phases | |
8222 | (add-after 'extract-gemspec 'relax-version-requirements | |
8223 | (lambda _ | |
8224 | (substitute* "cucumber-core.gemspec" | |
8225 | (("'cucumber-tag-expressions',.*") | |
8226 | "'cucumber-tag-expressions', '>=2.0.0'\n")) | |
8227 | #t))))) | |
8228 | (native-inputs | |
8229 | `(("ruby-rspec" ,ruby-rspec) | |
8230 | ("ruby-coveralls" ,ruby-coveralls) | |
8231 | ("ruby-rubocop" ,ruby-rubocop) | |
8232 | ("ruby-simplecov" ,ruby-simplecov) | |
8233 | ("ruby-unindent" ,ruby-unindent))) | |
cd89fecb | 8234 | (propagated-inputs |
95a5d992 | 8235 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages) |
5cd047e8 CB |
8236 | ("ruby-gherkin" ,ruby-gherkin) |
8237 | ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions))) | |
cd89fecb PP |
8238 | (synopsis "Core library for the Cucumber BDD app") |
8239 | (description "Cucumber is a tool for running automated tests | |
8240 | written in plain language. Because they're written in plain language, | |
8241 | they can be read by anyone on your team. Because they can be read by | |
8242 | anyone, you can use them to help improve communication, collaboration | |
8243 | and trust on your team.") | |
8244 | (home-page "https://cucumber.io/") | |
8245 | (license license:expat))) | |
212d563d | 8246 | |
fb1a8954 CB |
8247 | (define-public ruby-cucumber-expressions |
8248 | (package | |
8249 | (name "ruby-cucumber-expressions") | |
4ada4a42 | 8250 | (version "10.2.0") |
fb1a8954 CB |
8251 | (source |
8252 | (origin | |
4ada4a42 MC |
8253 | (method git-fetch) |
8254 | (uri (git-reference | |
b0e7b699 | 8255 | (url "https://github.com/cucumber/cucumber-expressions-ruby") |
4ada4a42 MC |
8256 | (commit (string-append "v" version)))) |
8257 | (file-name (git-file-name name version)) | |
fb1a8954 CB |
8258 | (sha256 |
8259 | (base32 | |
4ada4a42 | 8260 | "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd")))) |
fb1a8954 CB |
8261 | (build-system ruby-build-system) |
8262 | (arguments | |
8263 | '(#:test-target "spec")) | |
8264 | (native-inputs | |
4ada4a42 | 8265 | `(("ruby-rspec" ,ruby-rspec) |
fb1a8954 CB |
8266 | ("ruby-simplecov" ,ruby-simplecov))) |
8267 | (synopsis "Simpler alternative to Regular Expressions") | |
8268 | (description "Cucumber Expressions offer similar functionality to Regular | |
8269 | Expressions, with a syntax that is easier to read and write. Cucumber | |
8270 | Expressions are extensible with parameter types.") | |
8271 | (home-page "https://github.com/cucumber/cucumber-expressions-ruby") | |
8272 | (license license:expat))) | |
8273 | ||
ce872770 CB |
8274 | (define-public ruby-cucumber-wire |
8275 | (package | |
8276 | (name "ruby-cucumber-wire") | |
6516827e | 8277 | (version "3.1.0") |
ce872770 CB |
8278 | (source |
8279 | (origin | |
8280 | (method url-fetch) | |
8281 | (uri (rubygems-uri "cucumber-wire" version)) | |
8282 | (sha256 | |
8283 | (base32 | |
6516827e | 8284 | "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k")))) |
ce872770 CB |
8285 | (build-system ruby-build-system) |
8286 | (arguments | |
6516827e | 8287 | '(#:tests? #f ;tests use cucumber, causing a cycle |
ce872770 CB |
8288 | #:phases |
8289 | (modify-phases %standard-phases | |
6516827e | 8290 | (add-after 'extract-gemspec 'relax-version-requirements |
ce872770 | 8291 | (lambda _ |
6516827e MC |
8292 | (substitute* ".gemspec" |
8293 | ((" 10\\.1") " 10.2")) | |
ce872770 | 8294 | #t))))) |
6516827e MC |
8295 | (propagated-inputs |
8296 | `(("ruby-cucumber-core" ,ruby-cucumber-core) | |
8297 | ("ruby-cucumber-expressions" ,ruby-cucumber-expressions) | |
8298 | ("ruby-cucumber-messages" ,ruby-cucumber-messages))) | |
ce872770 | 8299 | (synopsis "Cucumber wire protocol plugin") |
6516827e MC |
8300 | (description "Cucumber's wire protocol allows step definitions to be |
8301 | implemented and invoked on any platform.") | |
ce872770 CB |
8302 | (home-page "https://github.com/cucumber/cucumber-ruby-wire") |
8303 | (license license:expat))) | |
8304 | ||
0ce8f344 CB |
8305 | (define-public ruby-cucumber-tag-expressions |
8306 | (package | |
8307 | (name "ruby-cucumber-tag-expressions") | |
0d2c45ce | 8308 | (version "3.0.0") |
0ce8f344 CB |
8309 | (source |
8310 | (origin | |
0d2c45ce MC |
8311 | (method git-fetch) |
8312 | (uri (git-reference | |
b0e7b699 | 8313 | (url "https://github.com/cucumber/tag-expressions-ruby") |
0d2c45ce MC |
8314 | (commit (string-append "v" version)))) |
8315 | (file-name (git-file-name name version)) | |
0ce8f344 CB |
8316 | (sha256 |
8317 | (base32 | |
0d2c45ce | 8318 | "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx")))) |
0ce8f344 CB |
8319 | (build-system ruby-build-system) |
8320 | (arguments | |
0d2c45ce | 8321 | `(#:test-target "spec")) |
0ce8f344 CB |
8322 | (native-inputs |
8323 | `(("ruby-rspec" ,ruby-rspec))) | |
8324 | (synopsis "Cucumber tag expressions for Ruby") | |
0d2c45ce MC |
8325 | (description "Cucumber tag expression parser for Ruby. A tag expression |
8326 | is an infix boolean expression used by Cucumber.") | |
0ce8f344 CB |
8327 | (home-page "https://github.com/cucumber/tag-expressions-ruby") |
8328 | (license license:expat))) | |
8329 | ||
73a5aff7 CB |
8330 | (define-public ruby-bindex |
8331 | (package | |
8332 | (name "ruby-bindex") | |
8333 | (version "0.5.0") | |
8334 | (source | |
8335 | (origin | |
8336 | (method url-fetch) | |
8337 | (uri (rubygems-uri "bindex" version)) | |
8338 | (sha256 | |
8339 | (base32 | |
8340 | "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i")))) | |
8341 | (build-system ruby-build-system) | |
8342 | (arguments | |
8343 | '(#:test-target "default")) | |
8344 | (native-inputs | |
8345 | `(("bundler" ,bundler) | |
8346 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
8347 | (synopsis "Provides access for bindings relating to Ruby exceptions") | |
8348 | (description | |
8349 | "@code{bindex} provides a way to access the bindings that relate to | |
8350 | exceptions in Ruby, providing more information about the context in which the | |
8351 | exception occurred.") | |
8352 | (home-page "https://github.com/gsamokovarov/bindex") | |
8353 | (license license:expat))) | |
8354 | ||
212d563d PP |
8355 | (define-public ruby-bio-logger |
8356 | (package | |
8357 | (name "ruby-bio-logger") | |
8358 | (version "1.0.1") | |
8359 | (source | |
8360 | (origin | |
8361 | (method url-fetch) | |
8362 | (uri (rubygems-uri "bio-logger" version)) | |
8363 | (sha256 | |
8364 | (base32 | |
8365 | "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28")))) | |
8366 | (build-system ruby-build-system) | |
8367 | (arguments | |
8368 | `(#:tests? #f)) ; rake errors, missing shoulda | |
8369 | (propagated-inputs | |
8370 | `(("ruby-log4r" ,ruby-log4r))) | |
8371 | (synopsis "Log4r wrapper for Ruby") | |
8372 | (description "Bio-logger is a wrapper around Log4r adding extra logging | |
8373 | features such as filtering and fine grained logging.") | |
8374 | (home-page "https://github.com/pjotrp/bioruby-logger-plugin") | |
8375 | (license license:expat))) | |
07f61cb2 | 8376 | |
2db0f9c8 BW |
8377 | (define-public ruby-yajl-ruby |
8378 | (package | |
8379 | (name "ruby-yajl-ruby") | |
8380 | (version "1.4.1") | |
8381 | (source | |
8382 | (origin | |
8383 | (method url-fetch) | |
8384 | (uri (rubygems-uri "yajl-ruby" version)) | |
8385 | (sha256 | |
8386 | (base32 | |
8387 | "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf")))) | |
8388 | (build-system ruby-build-system) | |
8389 | (arguments | |
8390 | '(#:test-target "spec" | |
8391 | #:phases | |
8392 | (modify-phases %standard-phases | |
8393 | (add-before 'check 'patch-test-to-update-load-path | |
8394 | (lambda _ | |
8395 | (substitute* "spec/parsing/large_number_spec.rb" | |
8396 | (("require \"yajl\"") | |
8397 | "$LOAD_PATH << 'lib'; require 'yajl'")) | |
8398 | #t))))) | |
8399 | (native-inputs | |
8400 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
8401 | ("ruby-rspec" ,ruby-rspec))) | |
8402 | (synopsis "Streaming JSON parsing and encoding library for Ruby") | |
8403 | (description | |
8404 | "Ruby C bindings to the Yajl JSON stream-based parser library. The API | |
8405 | is compatible with the JSON gem, so yajl-ruby can act as a drop in | |
8406 | replacement. | |
8407 | ||
8408 | A modified copy of yajl is used, and included in the package.") | |
8409 | (home-page "https://github.com/brianmario/yajl-ruby") | |
8410 | (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h | |
8411 | license:bsd-3)))) ; Included, modified copy of yajl | |
8412 | ||
07f61cb2 | 8413 | (define-public ruby-yard |
6499893e BW |
8414 | (package |
8415 | (name "ruby-yard") | |
7eb8ff0b | 8416 | (version "0.9.25") |
6499893e BW |
8417 | (source |
8418 | (origin | |
f3fd70c0 | 8419 | (method git-fetch) |
6499893e | 8420 | ;; Tests do not pass if we build from the distributed gem. |
f3fd70c0 | 8421 | (uri (git-reference |
65a61239 MC |
8422 | (url "https://github.com/lsegal/yard") |
8423 | (commit (string-append "v" version)))) | |
f3fd70c0 | 8424 | (file-name (git-file-name name version)) |
6499893e BW |
8425 | (sha256 |
8426 | (base32 | |
7eb8ff0b | 8427 | "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa")))) |
6499893e BW |
8428 | (build-system ruby-build-system) |
8429 | (arguments | |
65a61239 MC |
8430 | ;; Note: Tests are willfully disabled to alleviate dependency cycle |
8431 | ;; problems. | |
479c0324 MC |
8432 | `(#:tests? #f |
8433 | #:phases (modify-phases %standard-phases | |
8434 | (add-after 'unpack 'do-not-set-date-in-gemspec | |
8435 | ;; Fix a reproducibility issue (see: | |
8436 | ;; https://github.com/lsegal/yard/issues/1343). | |
8437 | (lambda _ | |
8438 | (substitute* "yard.gemspec" | |
8439 | ((".*s\\.date.*") "")) | |
8440 | #t))))) | |
6499893e | 8441 | (synopsis "Documentation generation tool for Ruby") |
65a61239 MC |
8442 | (description "YARD is a documentation generation tool for the Ruby |
8443 | programming language. It enables the user to generate consistent, usable | |
8444 | documentation that can be exported to a number of formats very easily, and | |
8445 | also supports extending for custom Ruby constructs such as custom class level | |
8446 | definitions.") | |
2f3800e5 | 8447 | (home-page "https://yardoc.org") |
6499893e | 8448 | (license license:expat))) |
2cbcd23a | 8449 | |
df32ab11 MC |
8450 | (define-public ruby-yard-with-tests |
8451 | (package | |
8452 | (inherit ruby-yard) | |
8453 | (name "ruby-yard-with-tests") | |
8454 | (arguments | |
8455 | (substitute-keyword-arguments (package-arguments ruby-yard) | |
8456 | ((#:tests? _ #t) #t) | |
8457 | ((#:test-target _ "default") "default") | |
8458 | ((#:phases phases '%standard-phases) | |
8459 | `(modify-phases ,phases | |
8460 | (add-before 'check 'prepare-for-tests | |
8461 | (lambda* (#:key tests? #:allow-other-keys) | |
8462 | (when tests? | |
8463 | (substitute* "Rakefile" | |
8464 | ((".*[Ss]amus.*") "")) | |
8465 | ;; Delete the Gemfile to avoid errors relating to it. | |
8466 | (delete-file "Gemfile") | |
8467 | ;; $HOME needs to be set to somewhere writeable for tests to | |
8468 | ;; run. | |
8469 | (setenv "HOME" "/tmp")) | |
8470 | #t)))))) | |
8471 | (native-inputs | |
8472 | `(("ruby-rspec" ,ruby-rspec) | |
8473 | ("ruby-rack" ,ruby-rack) | |
8474 | ("ruby-redcloth" ,ruby-redcloth) | |
8475 | ("ruby-asciidoc" ,ruby-asciidoctor))))) | |
8476 | ||
908df675 MC |
8477 | (define-public ruby-spectroscope |
8478 | (package | |
8479 | (name "ruby-spectroscope") | |
8480 | (version "0.1.0") | |
8481 | (source | |
8482 | (origin | |
8483 | (method url-fetch) | |
8484 | (uri (rubygems-uri "spectroscope" version)) | |
8485 | (sha256 | |
8486 | (base32 | |
8487 | "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y")))) | |
8488 | (build-system ruby-build-system) | |
8489 | (arguments | |
8490 | `(#:phases | |
8491 | (modify-phases %standard-phases | |
8492 | (replace 'check | |
8493 | (lambda _ | |
8494 | (with-output-to-file ".test" | |
8495 | (lambda _ | |
8496 | (display | |
8497 | "\ | |
8498 | require 'ae/should' | |
8499 | require 'rspec' | |
8500 | ||
8501 | include RSpec | |
8502 | ||
8503 | Test.run :default do |run| | |
8504 | run.files << 'spec/*_spec.rb' | |
8505 | end"))) | |
8506 | (invoke "ruby" "-Ilib" "-rrubytest" ".test")))))) | |
8507 | (native-inputs | |
8508 | `(("ruby-ae" ,ruby-ae) | |
8509 | ("ruby-rspec" ,ruby-rspec))) | |
8510 | (propagated-inputs | |
8511 | `(("ruby-rubytest" ,ruby-rubytest))) | |
8512 | (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest") | |
8513 | (description "Spectroscope is a Behavior-Driven Development (BDD) | |
8514 | framework built on RubyTest, designed to emulate RSpec in most respects. It | |
8515 | is assertion framework independent so any number of assertion systems can be | |
8516 | used, such as Assay or AE.") | |
8517 | (home-page "http://rubyworks.github.com/spectroscope/") | |
8518 | (license license:bsd-2))) | |
8519 | ||
24ffd91b MC |
8520 | (define-public ruby-tomparse |
8521 | (package | |
8522 | (name "ruby-tomparse") | |
8523 | (version "0.4.2") | |
8524 | (source | |
8525 | (origin | |
8526 | (method url-fetch) | |
8527 | (uri (rubygems-uri "tomparse" version)) | |
8528 | (sha256 | |
8529 | (base32 | |
8530 | "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8")))) | |
8531 | (build-system ruby-build-system) | |
8532 | ;; TODO: Tests require citron and rulebow, not yet packaged. | |
8533 | (arguments '(#:tests? #f)) | |
8534 | (synopsis "TomDoc parser for Ruby") | |
8535 | (description "TomParse is a TomDoc parser for Ruby. It takes a code | |
8536 | comment as input and parses it into a convenient object-oriented structure in | |
8537 | accordance with the TomDoc standard. See | |
8538 | @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the | |
8539 | TomDoc format.") | |
8540 | (home-page "http://rubyworks.github.com/tomparse/") | |
8541 | (license license:bsd-2))) | |
8542 | ||
257dee50 MC |
8543 | (define-public ruby-yard-tomdoc |
8544 | (package | |
8545 | (name "ruby-yard-tomdoc") | |
8546 | (version "0.7.1") | |
8547 | (source | |
8548 | (origin | |
8549 | (method url-fetch) | |
8550 | (uri (rubygems-uri "yard-tomdoc" version)) | |
8551 | (sha256 | |
8552 | (base32 | |
8553 | "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z")))) | |
8554 | (build-system ruby-build-system) | |
8555 | (arguments | |
8556 | `(#:phases (modify-phases %standard-phases | |
8557 | (replace 'check | |
8558 | (lambda _ | |
8559 | (invoke "rubytest" "-Ilib" "-Itest" "test/")))))) | |
8560 | (native-inputs | |
8561 | `(("ruby-rubytest-cli" ,ruby-rubytest-cli) | |
8562 | ("ruby-spectroscope" ,ruby-spectroscope) | |
8563 | ("ruby-ae" ,ruby-ae))) | |
8564 | (propagated-inputs | |
8565 | `(("ruby-tomparse" ,ruby-tomparse) | |
8566 | ("ruby-yard" ,ruby-yard))) | |
8567 | (synopsis "TomDoc syntax for YARD") | |
8568 | (description "This module adds support for the TomDoc documentation format | |
8569 | to YARD, a documentation generation tool for Ruby.") | |
8570 | (home-page "http://rubyworks.github.com/yard-tomdoc/") | |
8571 | (license license:expat))) | |
8572 | ||
ad686ef3 RW |
8573 | (define-public ruby-clap |
8574 | (package | |
8575 | (name "ruby-clap") | |
8576 | (version "1.0.0") | |
8577 | (source (origin | |
8578 | (method url-fetch) | |
8579 | (uri (rubygems-uri "clap" version)) | |
8580 | (sha256 | |
8581 | (base32 | |
8582 | "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q")))) | |
8583 | (build-system ruby-build-system) | |
8584 | ;; Clap needs cutest for running tests, but cutest needs clap. | |
8585 | (arguments `(#:tests? #f)) | |
8586 | (synopsis "Command line argument parsing for simple applications") | |
8587 | (description | |
8588 | "Clap provides command line argument parsing features. It covers the | |
8589 | simple case of executing code based on the flags or parameters passed.") | |
8590 | (home-page "https://github.com/djanowski/cutest") | |
0c80451e RW |
8591 | (license license:expat))) |
8592 | ||
8593 | (define-public ruby-cutest | |
8594 | (package | |
8595 | (name "ruby-cutest") | |
8596 | (version "1.2.2") | |
8597 | (source (origin | |
8598 | (method url-fetch) | |
8599 | (uri (rubygems-uri "cutest" version)) | |
8600 | (sha256 | |
8601 | (base32 | |
8602 | "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32")))) | |
8603 | (build-system ruby-build-system) | |
8604 | (propagated-inputs | |
8605 | `(("ruby-clap" ,ruby-clap))) | |
8606 | (synopsis "Run tests in separate processes") | |
8607 | (description | |
8608 | "Cutest runs tests in separate processes to avoid shared state.") | |
8609 | (home-page "https://github.com/djanowski/cutest") | |
ad686ef3 RW |
8610 | (license license:expat))) |
8611 | ||
ac09beba RW |
8612 | (define-public ruby-pygmentize |
8613 | (package | |
8614 | (name "ruby-pygmentize") | |
8615 | (version "0.0.3") | |
8616 | (source (origin | |
8617 | (method url-fetch) | |
8618 | (uri (rubygems-uri "pygmentize" version)) | |
8619 | (sha256 | |
8620 | (base32 | |
8621 | "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb")))) | |
8622 | (build-system ruby-build-system) | |
8623 | (arguments | |
8624 | `(#:phases | |
8625 | (modify-phases %standard-phases | |
8626 | (add-after 'unpack 'fix-pygmentize-path | |
8627 | (lambda _ | |
8628 | (substitute* "lib/pygmentize.rb" | |
8629 | (("\"/usr/bin/env python.*") | |
8630 | (string-append "\"" (which "pygmentize") "\"\n"))) | |
8631 | #t)) | |
8632 | (add-after 'build 'do-not-use-vendor-directory | |
8633 | (lambda _ | |
8634 | ;; Remove bundled pygments sources | |
8635 | ;; FIXME: ruby-build-system does not support snippets. | |
8636 | (delete-file-recursively "vendor") | |
8637 | (substitute* "pygmentize.gemspec" | |
8638 | (("\"vendor/\\*\\*/\\*\",") "")) | |
8639 | #t))))) | |
8640 | (inputs | |
8641 | `(("pygments" ,python-pygments))) | |
8642 | (native-inputs | |
8643 | `(("ruby-cutest" ,ruby-cutest) | |
8644 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
8645 | (synopsis "Thin Ruby wrapper around pygmentize") | |
8646 | (description | |
8647 | "Pygmentize provides a simple way to call pygmentize from within a Ruby | |
8648 | application.") | |
8649 | (home-page "https://github.com/djanowski/pygmentize") | |
8650 | (license license:expat))) | |
8651 | ||
2cbcd23a DT |
8652 | (define-public ruby-eventmachine |
8653 | (package | |
8654 | (name "ruby-eventmachine") | |
c207fa5e | 8655 | (version "1.2.7") |
2cbcd23a DT |
8656 | (source |
8657 | (origin | |
8658 | (method url-fetch) | |
8659 | (uri (rubygems-uri "eventmachine" version)) | |
8660 | (sha256 | |
8661 | (base32 | |
c207fa5e | 8662 | "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r")))) |
2cbcd23a DT |
8663 | (build-system ruby-build-system) |
8664 | (arguments | |
c5d269fb | 8665 | '(#:tests? #f)) ; test suite tries to connect to google.com |
2cbcd23a DT |
8666 | (native-inputs |
8667 | `(("ruby-rake-compiler" ,ruby-rake-compiler))) | |
8668 | (synopsis "Single-threaded network event framework for Ruby") | |
8669 | (description | |
8670 | "EventMachine implements a single-threaded engine for arbitrary network | |
8671 | communications. EventMachine wraps all interactions with sockets, allowing | |
8672 | programs to concentrate on the implementation of network protocols. It can be | |
8673 | used to create both network servers and clients.") | |
24a26227 TGR |
8674 | ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted. |
8675 | (home-page "https://github.com/eventmachine/eventmachine") | |
2cbcd23a | 8676 | (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT |
7d3a1a2d | 8677 | |
e218b0c8 BW |
8678 | (define-public ruby-ruby-engine |
8679 | (package | |
8680 | (name "ruby-ruby-engine") | |
77d098bf | 8681 | (version "2.0.0") |
e218b0c8 BW |
8682 | (source |
8683 | (origin | |
8684 | (method url-fetch) | |
8685 | (uri (rubygems-uri "ruby_engine" version)) | |
8686 | (sha256 | |
8687 | (base32 | |
77d098bf | 8688 | "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm")))) |
e218b0c8 BW |
8689 | (build-system ruby-build-system) |
8690 | (arguments | |
8691 | `(#:phases | |
8692 | (modify-phases %standard-phases | |
77d098bf | 8693 | (add-after 'extract-gemspec 'clean-up |
e218b0c8 BW |
8694 | (lambda _ |
8695 | (delete-file "Gemfile.lock") | |
8696 | (substitute* "ruby_engine.gemspec" | |
8697 | ;; Remove unnecessary imports that would entail further | |
8698 | ;; dependencies. | |
8699 | ((".*<rdoc.*") "") | |
8700 | ((".*<rubygems-tasks.*") "") | |
8701 | ;; Remove extraneous .gem file | |
77d098bf MC |
8702 | (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "") |
8703 | (("\"Gemfile.lock\".freeze, ") "") | |
e218b0c8 | 8704 | ;; Soften rake dependency |
77d098bf | 8705 | (("%q<rake>.freeze, \\[\"~> 10.0\"\\]") |
e218b0c8 BW |
8706 | "%q<rake>.freeze, [\">= 10.0\"]") |
8707 | ;; Soften the rspec dependency | |
77d098bf | 8708 | (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]") |
e218b0c8 BW |
8709 | "%q<rspec>.freeze, [\">= 2.4\"]")) |
8710 | (substitute* "Rakefile" | |
8711 | (("require 'rubygems/tasks'") "") | |
8712 | (("Gem::Tasks.new") "")) | |
8713 | ;; Remove extraneous .gem file that otherwise gets installed. | |
77d098bf | 8714 | (delete-file-recursively "pkg") |
e218b0c8 BW |
8715 | #t))))) |
8716 | (native-inputs | |
8717 | `(("bundler" ,bundler) | |
8718 | ("ruby-rake" ,ruby-rake) | |
8719 | ("ruby-rspec" ,ruby-rspec))) | |
8720 | (synopsis "Simplifies checking for Ruby implementation") | |
8721 | (description | |
8722 | "@code{ruby_engine} provides an RubyEngine class that can be used to | |
8723 | check which implementation of Ruby is in use. It can provide the interpreter | |
8724 | name and provides query methods such as @{RubyEngine.mri?}.") | |
8725 | (home-page "https://github.com/janlelis/ruby_engine") | |
8726 | (license license:expat))) | |
8727 | ||
8092e333 BW |
8728 | (define-public ruby-turn |
8729 | (package | |
8730 | (name "ruby-turn") | |
8731 | (version "0.9.7") | |
8732 | (source | |
8733 | (origin | |
8734 | (method url-fetch) | |
8735 | (uri (rubygems-uri "turn" version)) | |
8736 | (sha256 | |
8737 | (base32 | |
8738 | "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw")))) | |
8739 | (build-system ruby-build-system) | |
8740 | (arguments | |
8741 | `(#:phases | |
8742 | (modify-phases %standard-phases | |
8743 | ;; Tests fail because turn changes its environment so can no longer | |
8744 | ;; find test/unit. Instead simply test if the executable runs | |
8745 | ;; without issue. | |
8746 | (replace 'check | |
8747 | (lambda _ | |
9923d5a4 | 8748 | (invoke "ruby" "-Ilib" "bin/turn" "-h")))))) |
8092e333 BW |
8749 | (propagated-inputs |
8750 | `(("ruby-ansi" ,ruby-ansi) | |
8751 | ("ruby-minitest" ,ruby-minitest-4))) | |
8752 | (synopsis "Alternate set of alternative runners for MiniTest") | |
8753 | (description | |
8754 | "TURN provides a set of alternative runners for MiniTest which are both | |
8755 | colorful and informative. TURN displays each test on a separate line with | |
8756 | failures being displayed immediately instead of at the end of the tests. Note | |
8757 | that TURN is no longer being maintained.") | |
f433b662 | 8758 | (home-page "https://rubygems.org/gems/turn") |
8092e333 BW |
8759 | (license license:expat))) |
8760 | ||
8279b1d3 CB |
8761 | (define-public ruby-mimemagic |
8762 | (package | |
8763 | (name "ruby-mimemagic") | |
60bc8952 | 8764 | (version "0.3.3") |
8279b1d3 CB |
8765 | (source |
8766 | (origin | |
8767 | (method url-fetch) | |
8768 | (uri (rubygems-uri "mimemagic" version)) | |
8769 | (sha256 | |
60bc8952 | 8770 | (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw")))) |
8279b1d3 CB |
8771 | (build-system ruby-build-system) |
8772 | (arguments | |
8773 | '(#:phases | |
8774 | (modify-phases %standard-phases | |
8775 | ;; This phase breaks the tests, as it patches some of the test data. | |
8776 | (delete 'patch-source-shebangs)))) | |
8777 | (native-inputs | |
8778 | `(("ruby-bacon" ,ruby-bacon))) | |
8779 | (synopsis "Ruby library for MIME detection by extension or content") | |
8780 | (description | |
8781 | "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by | |
8782 | extension or content, using the freedesktop.org.xml shared-mime-info | |
8783 | database.") | |
8784 | (home-page "https://github.com/minad/mimemagic") | |
8785 | (license license:expat))) | |
8786 | ||
32d1c06f BW |
8787 | (define-public ruby-mime-types-data |
8788 | (package | |
8789 | (name "ruby-mime-types-data") | |
f49511db | 8790 | (version "3.2016.0521") |
32d1c06f BW |
8791 | (source |
8792 | (origin | |
8793 | (method url-fetch) | |
8794 | (uri (rubygems-uri "mime-types-data" version)) | |
8795 | (sha256 | |
8796 | (base32 | |
f49511db | 8797 | "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm")))) |
32d1c06f BW |
8798 | (build-system ruby-build-system) |
8799 | (native-inputs | |
8800 | `(("ruby-hoe" ,ruby-hoe))) | |
8801 | (synopsis "Registry for information about MIME media type definitions") | |
8802 | (description | |
8803 | "@code{mime-types-data} provides a registry for information about | |
8804 | Multipurpose Internet Mail Extensions (MIME) media type definitions. It can | |
8805 | be used with the Ruby mime-types library or other software to determine | |
8806 | defined filename extensions for MIME types, or to use filename extensions to | |
8807 | look up the likely MIME type definitions.") | |
8808 | (home-page "https://github.com/mime-types/mime-types-data/") | |
8809 | (license license:expat))) | |
8810 | ||
d39b606c BW |
8811 | (define-public ruby-mime-types |
8812 | (package | |
8813 | (name "ruby-mime-types") | |
803bcc81 | 8814 | (version "3.1") |
d39b606c BW |
8815 | (source |
8816 | (origin | |
8817 | (method url-fetch) | |
8818 | (uri (rubygems-uri "mime-types" version)) | |
8819 | (sha256 | |
8820 | (base32 | |
803bcc81 | 8821 | "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m")))) |
d39b606c BW |
8822 | (build-system ruby-build-system) |
8823 | (propagated-inputs | |
8824 | `(("ruby-mime-types-data" ,ruby-mime-types-data))) | |
8825 | (native-inputs | |
8826 | `(("ruby-hoe" ,ruby-hoe) | |
8827 | ("ruby-fivemat" ,ruby-fivemat) | |
8828 | ("ruby-minitest-focus" ,ruby-minitest-focus) | |
8829 | ("ruby-minitest-rg" ,ruby-minitest-rg) | |
803bcc81 BW |
8830 | ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions) |
8831 | ("ruby-minitest-hooks" ,ruby-minitest-hooks))) | |
d39b606c BW |
8832 | (synopsis "Library and registry for MIME content type definitions") |
8833 | (description "The mime-types library provides a library and registry for | |
8834 | information about Multipurpose Internet Mail Extensions (MIME) content type | |
8835 | definitions. It can be used to determine defined filename extensions for MIME | |
8836 | types, or to use filename extensions to look up the likely MIME type | |
8837 | definitions.") | |
8838 | (home-page "https://github.com/mime-types/ruby-mime-types") | |
8839 | (license license:expat))) | |
8840 | ||
ae17c6c3 EF |
8841 | (define-public ruby-mini-mime |
8842 | (package | |
8843 | (name "ruby-mini-mime") | |
8844 | (version "1.0.2") | |
8845 | (source | |
8846 | (origin | |
8847 | (method url-fetch) | |
8848 | (uri (rubygems-uri "mini_mime" version)) | |
8849 | (sha256 | |
8850 | (base32 | |
8851 | "1axm0rxyx3ss93wbmfkm78a6x03l8y4qy60rhkkiq0aza0vwq3ha")))) | |
8852 | (build-system ruby-build-system) | |
8853 | (synopsis "Lightweight mime type lookup toy") | |
8854 | (description "This package provides a lightweight mime type lookup toy.") | |
8855 | (home-page "https://github.com/discourse/mini_mime") | |
8856 | (license license:expat))) | |
8857 | ||
eb5e0bd9 BW |
8858 | (define-public ruby-fivemat |
8859 | (package | |
8860 | (name "ruby-fivemat") | |
c664ebcc | 8861 | (version "1.3.7") |
eb5e0bd9 BW |
8862 | (source |
8863 | (origin | |
8864 | (method url-fetch) | |
8865 | (uri (rubygems-uri "fivemat" version)) | |
8866 | (sha256 | |
8867 | (base32 | |
c664ebcc | 8868 | "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n")))) |
eb5e0bd9 BW |
8869 | (build-system ruby-build-system) |
8870 | (arguments | |
8871 | `(#:tests? #f)) ; no tests | |
8872 | (synopsis "Each test file given its own line of dots") | |
8873 | (description | |
8874 | "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file | |
8875 | its own line of dots during testing. It aims to provide test output that is | |
8876 | neither too verbose nor too minimal.") | |
8877 | (home-page "https://github.com/tpope/fivemat") | |
8878 | (license license:expat))) | |
8879 | ||
4fea500b BW |
8880 | (define-public ruby-sqlite3 |
8881 | (package | |
8882 | (name "ruby-sqlite3") | |
e7cdba61 | 8883 | (version "1.4.2") |
4fea500b BW |
8884 | (source |
8885 | (origin | |
8886 | (method url-fetch) | |
8887 | (uri (rubygems-uri "sqlite3" version)) | |
8888 | (sha256 | |
8889 | (base32 | |
e7cdba61 | 8890 | "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78")))) |
4fea500b BW |
8891 | (build-system ruby-build-system) |
8892 | (arguments | |
8893 | `(#:phases | |
8894 | (modify-phases %standard-phases | |
8895 | (add-before 'check 'add-gemtest-file | |
8896 | ;; This file exists in the repository but is not distributed. | |
9923d5a4 | 8897 | (lambda _ (invoke "touch" ".gemtest")))))) |
4fea500b BW |
8898 | (inputs |
8899 | `(("sqlite" ,sqlite))) | |
8900 | (native-inputs | |
8901 | `(("ruby-hoe" ,ruby-hoe) | |
8902 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
8903 | ("ruby-mini-portile" ,ruby-mini-portile))) | |
8904 | (synopsis "Interface with SQLite3 databases") | |
8905 | (description | |
8906 | "This module allows Ruby programs to interface with the SQLite3 database | |
8907 | engine.") | |
8908 | (home-page | |
8909 | "https://github.com/sparklemotion/sqlite3-ruby") | |
8910 | (license license:bsd-3))) | |
8911 | ||
4dfa39cc BW |
8912 | (define-public ruby-shoulda-context |
8913 | (package | |
8914 | (name "ruby-shoulda-context") | |
e7d1d472 | 8915 | (version "1.2.2") |
4dfa39cc BW |
8916 | (source |
8917 | (origin | |
8918 | (method url-fetch) | |
8919 | (uri (rubygems-uri "shoulda-context" version)) | |
8920 | (sha256 | |
8921 | (base32 | |
e7d1d472 | 8922 | "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc")))) |
4dfa39cc BW |
8923 | (build-system ruby-build-system) |
8924 | (arguments | |
8925 | `(#:phases | |
8926 | (modify-phases %standard-phases | |
8927 | (replace 'check | |
8928 | (lambda _ | |
8929 | ;; Do not run tests to avoid circular dependence with rails. | |
8930 | ;; Instead just import the library to test. | |
9923d5a4 | 8931 | (invoke "ruby" "-Ilib" "-r" "shoulda-context")))))) |
4dfa39cc BW |
8932 | (synopsis "Test::Unit context framework extracted from Shoulda") |
8933 | (description | |
8934 | "@code{shoulda-context} is the context framework extracted from Shoulda. | |
8935 | Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds | |
8936 | context, setup, and should blocks combine to produce natural test method | |
8937 | names.") | |
8938 | (home-page "https://github.com/thoughtbot/shoulda-context") | |
8939 | (license license:expat))) | |
8940 | ||
e4fea008 BW |
8941 | (define-public ruby-shoulda-matchers |
8942 | (package | |
8943 | (name "ruby-shoulda-matchers") | |
d1c1f368 | 8944 | (version "3.1.2") |
e4fea008 BW |
8945 | (source |
8946 | (origin | |
8947 | (method url-fetch) | |
8948 | (uri (rubygems-uri "shoulda-matchers" version)) | |
8949 | (sha256 | |
8950 | (base32 | |
d1c1f368 | 8951 | "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a")))) |
e4fea008 BW |
8952 | (build-system ruby-build-system) |
8953 | (arguments | |
8954 | `(#:phases | |
8955 | (modify-phases %standard-phases | |
e4fea008 BW |
8956 | (replace 'check |
8957 | (lambda _ | |
8958 | ;; Do not run tests to avoid circular dependence with rails. Instead | |
8959 | ;; just import the library to test. | |
9923d5a4 | 8960 | (invoke "ruby" "-Ilib" "-r" "shoulda-matchers")))))) |
e4fea008 BW |
8961 | (propagated-inputs |
8962 | `(("ruby-activesupport" ,ruby-activesupport))) | |
8963 | (synopsis "Collection of testing matchers extracted from Shoulda") | |
8964 | (description | |
8965 | "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that | |
8966 | test common Rails functionality. These tests would otherwise be much longer, | |
8967 | more complex, and error-prone.") | |
8968 | (home-page "https://github.com/thoughtbot/shoulda-matchers") | |
8969 | (license license:expat))) | |
8970 | ||
3885c58b BW |
8971 | (define-public ruby-shoulda-matchers-2 |
8972 | (package | |
8973 | (inherit ruby-shoulda-matchers) | |
8974 | (version "2.8.0") | |
8975 | (source (origin | |
8976 | (method url-fetch) | |
8977 | (uri (rubygems-uri "shoulda-matchers" version)) | |
8978 | (sha256 | |
8979 | (base32 | |
8980 | "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0")))))) | |
8981 | ||
6f390716 BW |
8982 | (define-public ruby-shoulda |
8983 | (package | |
8984 | (name "ruby-shoulda") | |
8985 | (version "3.5.0") | |
8986 | (source | |
8987 | (origin | |
8988 | (method url-fetch) | |
8989 | (uri (rubygems-uri "shoulda" version)) | |
8990 | (sha256 | |
8991 | (base32 | |
8992 | "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy")))) | |
8993 | (build-system ruby-build-system) | |
8994 | (arguments | |
8995 | `(#:phases | |
8996 | (modify-phases %standard-phases | |
8997 | (replace 'check | |
8998 | ;; Don't run tests to avoid circular dependence with rails. Instead | |
8999 | ;; just import the library to test. | |
9923d5a4 | 9000 | (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda")))))) |
6f390716 BW |
9001 | (propagated-inputs |
9002 | `(("ruby-shoulda-context" ,ruby-shoulda-context) | |
9003 | ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2))) | |
9004 | (synopsis "Context framework and matchers for testing") | |
9005 | (description | |
9006 | "@code{shoulda} is a meta-package combining @code{shoulda-context} and | |
9007 | @code{shoulda-matchers} providing tools for writing tests.") | |
9008 | (home-page "https://github.com/thoughtbot/shoulda") | |
9009 | (license license:expat))) | |
9010 | ||
3b44bcdf BW |
9011 | (define-public ruby-unf |
9012 | (package | |
9013 | (name "ruby-unf") | |
9014 | (version "0.1.4") | |
9015 | (source | |
9016 | (origin | |
9017 | (method url-fetch) | |
9018 | (uri (rubygems-uri "unf" version)) | |
9019 | (sha256 | |
9020 | (base32 | |
9021 | "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9")))) | |
9022 | (build-system ruby-build-system) | |
9023 | (arguments | |
9024 | `(#:phases | |
9025 | (modify-phases %standard-phases | |
9026 | (add-before 'check 'add-dependency-to-bundler | |
9027 | (lambda _ | |
9028 | ;; test-unit is required but not provided by the bundler | |
9029 | ;; environment. This is fixed in the upstream repository but fix | |
9030 | ;; has not been released. | |
9031 | (substitute* "Gemfile" | |
9032 | (("^gemspec") "gem 'test-unit'\ngemspec")) | |
9033 | #t))))) | |
9034 | (propagated-inputs | |
9035 | `(("ruby-unf-ext" ,ruby-unf-ext))) | |
9036 | (native-inputs | |
9037 | `(("ruby-shoulda" ,ruby-shoulda) | |
9038 | ("bundler" ,bundler) | |
9039 | ("ruby-test-unit" ,ruby-test-unit))) | |
9040 | (synopsis "Unicode Normalization Form support to Ruby and JRuby") | |
9041 | (description | |
9042 | "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form | |
9043 | support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and | |
9044 | @code{java.text.Normalizer} on JRuby.") | |
9045 | (home-page "https://github.com/knu/ruby-unf") | |
9046 | (license license:bsd-2))) | |
9047 | ||
e32c99d2 CB |
9048 | (define-public ruby-warden |
9049 | (package | |
9050 | (name "ruby-warden") | |
9051 | (version "1.2.8") | |
9052 | (source | |
9053 | (origin | |
9054 | (method url-fetch) | |
9055 | (uri (rubygems-uri "warden" version)) | |
9056 | (sha256 | |
9057 | (base32 | |
9058 | "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454")))) | |
9059 | (build-system ruby-build-system) | |
9060 | (arguments | |
9061 | '(#:tests? #f)) ; No included tests | |
9062 | (propagated-inputs | |
9063 | `(("ruby-rack" ,ruby-rack))) | |
9064 | (synopsis "Rack middleware providing authentication") | |
9065 | (description | |
9066 | "Warden is a Rack-based middleware that provides a mechanism for | |
9067 | authentication in Ruby web applications.") | |
9068 | (home-page "https://github.com/wardencommunity/warden") | |
9069 | (license license:expat))) | |
9070 | ||
e42eecdb CB |
9071 | (define-public ruby-warden-oauth2 |
9072 | (package | |
9073 | (name "ruby-warden-oauth2") | |
9074 | (version "0.0.1") | |
9075 | (source | |
9076 | (origin | |
9077 | (method url-fetch) | |
9078 | (uri (rubygems-uri "warden-oauth2" version)) | |
9079 | (sha256 | |
9080 | (base32 | |
9081 | "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz")))) | |
9082 | (build-system ruby-build-system) | |
9083 | (arguments | |
9084 | '(#:test-target "spec" | |
9085 | #:phases | |
9086 | (modify-phases %standard-phases | |
9087 | (add-after 'unpack 'remove-unnecessary-dependencies | |
9088 | (lambda _ | |
9089 | (substitute* "Gemfile" | |
9090 | ;; All of these gems relate to development, and are unnecessary | |
9091 | ;; when running the tests | |
9092 | (("gem 'guard-bundler'") "") | |
9093 | (("gem 'guard'") "") | |
9094 | (("gem 'guard-rspec'") "") | |
9095 | (("gem 'rb-fsevent'") "") | |
9096 | (("gem 'pry'") "") | |
9097 | (("gem 'growl'") "")) | |
9098 | #t)) | |
9099 | ;; The test suite doesn't work with rspec@2, and this is incompatible | |
9100 | ;; with the current version of Rake, so invoke Rspec directly | |
9101 | (replace 'check | |
9102 | (lambda* (#:key tests? #:allow-other-keys) | |
9103 | (when tests? | |
9104 | (invoke "bundle" "exec" "rspec")) | |
9105 | #t))))) | |
9106 | (propagated-inputs | |
9107 | `(("ruby-warden" ,ruby-warden))) | |
9108 | (native-inputs | |
9109 | `(("bundler" ,bundler) | |
9110 | ("ruby-rspec" ,ruby-rspec-2) | |
9111 | ("ruby-rack-test" ,ruby-rack-test))) | |
9112 | (synopsis "OAuth 2.0 strategies for Warden") | |
9113 | (description | |
9114 | "This library extends Warden to support OAuth 2.0 authorized API | |
9115 | requests.") | |
9116 | (home-page "https://github.com/opperator/warden-oauth2") | |
9117 | (license license:expat))) | |
9118 | ||
a4d61297 | 9119 | (define-public ruby-webmock |
8c7ae384 CB |
9120 | (package |
9121 | (name "ruby-webmock") | |
a4d61297 | 9122 | (version "3.11.2") |
8c7ae384 CB |
9123 | (source |
9124 | (origin | |
9125 | (method url-fetch) | |
9126 | (uri (rubygems-uri "webmock" version)) | |
9127 | (sha256 | |
9128 | (base32 | |
a4d61297 | 9129 | "1hdlbvfw316lkz251qnfk79drmaay7l51kidvicz41nhvw12xz8v")))) |
8c7ae384 CB |
9130 | (build-system ruby-build-system) |
9131 | (native-inputs | |
9132 | `(("bundler" ,bundler) | |
9133 | ("ruby-rspec" ,ruby-rspec))) | |
9134 | (propagated-inputs | |
9135 | `(("ruby-addressable" ,ruby-addressable) | |
9136 | ("ruby-crack" ,ruby-crack) | |
9137 | ("ruby-hashdiff" ,ruby-hashdiff))) | |
9138 | (synopsis "Allows stubbing and setting expectations on HTTP requests") | |
9139 | (description | |
9140 | "WebMock allows stubbing HTTP requests and setting expectations on HTTP | |
9141 | requests. This is useful when testing software.") | |
9142 | (home-page "https://github.com/bblimke/webmock") | |
9143 | (license license:expat))) | |
9144 | ||
a4d61297 EF |
9145 | (define-public ruby-webmock-2 |
9146 | (package | |
9147 | (inherit ruby-webmock) | |
9148 | (name "ruby-webmock") | |
9149 | (version "2.3.2") | |
9150 | (source | |
9151 | (origin | |
9152 | (method url-fetch) | |
9153 | (uri (rubygems-uri "webmock" version)) | |
9154 | (sha256 | |
9155 | (base32 | |
9156 | "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5")))))) | |
9157 | ||
d8c189ed CB |
9158 | (define-public ruby-unicode-display-width |
9159 | (package | |
9160 | (name "ruby-unicode-display-width") | |
216ccced | 9161 | (version "1.6.0") |
d8c189ed CB |
9162 | (source |
9163 | (origin | |
9164 | (method url-fetch) | |
9165 | (uri (rubygems-uri "unicode-display_width" version)) | |
9166 | (sha256 | |
9167 | (base32 | |
216ccced | 9168 | "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w")))) |
d8c189ed CB |
9169 | (build-system ruby-build-system) |
9170 | (arguments | |
9171 | '(;; Test data not included. | |
9172 | #:tests? #f)) | |
9173 | (synopsis "Determine the monospace display width of Ruby strings") | |
9174 | (description | |
9175 | "@code{Unicode::DisplayWidth} is a Ruby library which can determine the | |
9176 | display width of strings in Ruby.") | |
9177 | (home-page "https://github.com/janlelis/unicode-display_width") | |
9178 | (license license:expat))) | |
9179 | ||
6120589f CB |
9180 | ;; There is another gem called 'ruby-version' so we use an underscore in this |
9181 | ;; name | |
9182 | (define-public ruby_version | |
9183 | (package | |
9184 | (name "ruby_version") | |
1097fdbe | 9185 | (version "1.0.2") |
6120589f CB |
9186 | (source |
9187 | (origin | |
9188 | (method url-fetch) | |
9189 | (uri (rubygems-uri "ruby_version" version)) | |
9190 | (sha256 | |
9191 | (base32 | |
1097fdbe | 9192 | "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j")))) |
6120589f CB |
9193 | (build-system ruby-build-system) |
9194 | (arguments | |
1097fdbe | 9195 | `(#:phases |
6120589f CB |
9196 | (modify-phases %standard-phases |
9197 | (add-before 'check 'fix-dependencies | |
9198 | (lambda _ | |
9199 | ;; Remove the Gemfile.lock, as we want to use Guix packages at | |
9200 | ;; whatever versions. | |
9201 | (delete-file "Gemfile.lock") | |
1097fdbe MC |
9202 | ;; Remove the included gem files as they unnecessary. |
9203 | (delete-file-recursively "pkg/") | |
9204 | ;; Accept any version of rake, rdoc and rspec | |
6120589f | 9205 | (substitute* "ruby_version.gemspec" |
6120589f | 9206 | (("%q<rake.*") "%q<rake>)\n") |
1097fdbe | 9207 | (("%q<rdoc.*") "%q<rdoc>)\n") |
6120589f | 9208 | (("%q<rspec.*") "%q<rspec>)\n")) |
1097fdbe | 9209 | ;; Do not use bundler. |
6120589f | 9210 | (substitute* "Rakefile" |
1097fdbe | 9211 | (("Bundler\\.setup.*") "nil\n")) |
6120589f CB |
9212 | #t))))) |
9213 | (native-inputs | |
1097fdbe MC |
9214 | `(("ruby-rdoc" ,ruby-rdoc) |
9215 | ("ruby-rspec" ,ruby-rspec) | |
1628d57b | 9216 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) |
6120589f | 9217 | (synopsis "Ruby library to help check the Ruby version") |
1097fdbe | 9218 | (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify |
6120589f CB |
9219 | checking for the right Ruby version in software.") |
9220 | (home-page "https://github.com/janlelis/ruby_version") | |
9221 | (license license:expat))) | |
9222 | ||
a229acff CB |
9223 | (define-public ruby-websocket-driver |
9224 | (package | |
9225 | (name "ruby-websocket-driver") | |
9d1cf6d4 | 9226 | (version "0.7.1") |
a229acff CB |
9227 | (source |
9228 | (origin | |
9229 | (method url-fetch) | |
9230 | (uri (rubygems-uri "websocket-driver" version)) | |
9231 | (sha256 | |
9d1cf6d4 | 9232 | (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2")))) |
a229acff CB |
9233 | (build-system ruby-build-system) |
9234 | (arguments | |
9d1cf6d4 | 9235 | '(#:tests? #f)) ; no included tests |
a229acff CB |
9236 | (propagated-inputs |
9237 | `(("ruby-websocket-extensions" ,ruby-websocket-extensions))) | |
9238 | (synopsis "WebSocket protocol handler with pluggable I/O") | |
9239 | (description | |
9240 | "@code{websocket-driver} provides a complete implementation of the | |
9241 | WebSocket protocols that can be hooked up to any TCP library") | |
9242 | (home-page "https://github.com/faye/websocket-driver-ruby") | |
9243 | (license license:expat))) | |
9244 | ||
52b015a9 CB |
9245 | (define-public ruby-websocket-extensions |
9246 | (package | |
9247 | (name "ruby-websocket-extensions") | |
9248 | (version "0.1.3") | |
9249 | (source | |
9250 | (origin | |
9251 | (method url-fetch) | |
9252 | (uri (rubygems-uri "websocket-extensions" version)) | |
9253 | (sha256 | |
9254 | (base32 | |
9255 | "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270")))) | |
9256 | (build-system ruby-build-system) | |
9257 | (arguments | |
9258 | '(;; No included tests | |
9259 | #:tests? #f)) | |
9260 | (synopsis "Generic extension manager for WebSocket connections") | |
9261 | (description | |
9262 | "@code{websocket-extensions} provides a container for registering | |
9263 | extension plugins.") | |
9264 | (home-page "https://github.com/faye/websocket-extensions-ruby") | |
9265 | (license license:expat))) | |
9266 | ||
5799aadd BW |
9267 | (define-public ruby-domain-name |
9268 | (package | |
9269 | (name "ruby-domain-name") | |
cce2988d | 9270 | (version "0.5.20190701") |
5799aadd BW |
9271 | (source |
9272 | (origin | |
9273 | (method url-fetch) | |
9274 | (uri (rubygems-uri "domain_name" version)) | |
9275 | (sha256 | |
cce2988d | 9276 | (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0")))) |
5799aadd BW |
9277 | (build-system ruby-build-system) |
9278 | (arguments | |
9279 | `(#:phases | |
9280 | (modify-phases %standard-phases | |
9281 | (add-before 'check 'fix-versions | |
9282 | (lambda _ | |
9283 | ;; Fix NameError that appears to already be fixed upstream. | |
9284 | (substitute* "Rakefile" | |
9285 | (("DomainName::VERSION") | |
9286 | "Bundler::GemHelper.gemspec.version")) | |
9287 | ;; Loosen unnecessarily strict test-unit version specification. | |
9288 | (substitute* "domain_name.gemspec" | |
71596c3c | 9289 | (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0")) |
5799aadd BW |
9290 | #t))))) |
9291 | (propagated-inputs | |
9292 | `(("ruby-unf" ,ruby-unf))) | |
9293 | (native-inputs | |
9294 | `(("ruby-shoulda" ,ruby-shoulda) | |
9295 | ("bundler" ,bundler) | |
9296 | ("ruby-test-unit" ,ruby-test-unit))) | |
9297 | (synopsis "Domain name manipulation library") | |
9298 | (description | |
9299 | "@code{domain_name} is a Domain name manipulation library. It parses a | |
9300 | domain name ready for extracting the registered domain and TLD (Top Level | |
9301 | Domain). It can also be used for cookie domain validation based on the Public | |
9302 | Suffix List.") | |
9303 | (home-page "https://github.com/knu/ruby-domain_name") | |
9304 | (license license:bsd-2))) | |
9305 | ||
d114ceeb BW |
9306 | (define-public ruby-http-cookie |
9307 | (package | |
9308 | (name "ruby-http-cookie") | |
2a2eb07d | 9309 | (version "1.0.3") |
d114ceeb BW |
9310 | (source |
9311 | (origin | |
9312 | (method url-fetch) | |
9313 | (uri (rubygems-uri "http-cookie" version)) | |
9314 | (sha256 | |
9315 | (base32 | |
2a2eb07d | 9316 | "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g")))) |
d114ceeb BW |
9317 | (build-system ruby-build-system) |
9318 | (arguments | |
9319 | `(#:phases | |
9320 | (modify-phases %standard-phases | |
9321 | (add-before 'check 'add-dependency-to-bundler | |
9322 | (lambda _ | |
9323 | ;; Fix NameError | |
9324 | (substitute* "Rakefile" | |
9325 | (("HTTP::Cookie::VERSION") | |
9326 | "Bundler::GemHelper.gemspec.version")) | |
9327 | #t))))) | |
9328 | (propagated-inputs | |
9329 | `(("ruby-domain-name" ,ruby-domain-name))) | |
9330 | (native-inputs | |
9331 | `(("rubysimplecov" ,ruby-simplecov) | |
9332 | ("bundler" ,bundler) | |
9333 | ("ruby-sqlite3" ,ruby-sqlite3) | |
9334 | ("ruby-test-unit" ,ruby-test-unit))) | |
9335 | (synopsis "Handle HTTP Cookies based on RFC 6265") | |
9336 | (description | |
9337 | "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on | |
9338 | RFC 6265. It has been designed with security, standards compliance and | |
9339 | compatibility in mind, to behave just the same as today's major web browsers. | |
9340 | It has built-in support for the legacy @code{cookies.txt} and | |
9341 | @code{cookies.sqlite} formats of Mozilla Firefox.") | |
9342 | (home-page "https://github.com/sparklemotion/http-cookie") | |
9343 | (license license:expat))) | |
9344 | ||
1c8e6fd3 CB |
9345 | (define-public ruby-httpclient |
9346 | (package | |
9347 | (name "ruby-httpclient") | |
9348 | (version "2.8.3") | |
9349 | (source | |
9350 | (origin | |
9351 | (method url-fetch) | |
9352 | (uri (rubygems-uri "httpclient" version)) | |
9353 | (sha256 | |
9354 | (base32 | |
9355 | "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99")))) | |
9356 | (build-system ruby-build-system) | |
9357 | (arguments | |
9358 | '(;; TODO: Some tests currently fail | |
9359 | ;; ------ | |
9360 | ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings, | |
9361 | ;; 2 omissions, 0 notifications | |
9362 | ;; 91.866% passed | |
9363 | ;; ------ | |
9364 | ;; 6.49 tests/s, 22.41 assertions/s | |
9365 | #:tests? #f | |
9366 | #:phases | |
9367 | (modify-phases %standard-phases | |
9368 | (replace 'check | |
9369 | (lambda* (#:key tests? #:allow-other-keys) | |
9370 | (if tests? | |
9923d5a4 TGR |
9371 | (invoke "ruby" |
9372 | "-Ilib" | |
9373 | "test/runner.rb") | |
0076f5a9 | 9374 | #t)))))) |
1c8e6fd3 CB |
9375 | (native-inputs |
9376 | `(("ruby-rack" ,ruby-rack))) | |
9377 | (synopsis | |
9378 | "Make HTTP requests with support for HTTPS, Cookies, authentication and more") | |
9379 | (description | |
9380 | "The @code{httpclient} ruby library provides functionality related to | |
9381 | HTTP. Compared to the @code{net/http} library, @{httpclient} also provides | |
9382 | Cookie, multithreading and authentication (digest, NTLM) support. | |
9383 | ||
9384 | Also provided is a @command{httpclient} command, which can perform HTTP | |
9385 | requests either using arguments or with an interactive prompt.") | |
9386 | (home-page "https://github.com/nahi/httpclient") | |
9387 | (license license:ruby))) | |
9388 | ||
7d3a1a2d BW |
9389 | (define-public ruby-ansi |
9390 | (package | |
9391 | (name "ruby-ansi") | |
9392 | (version "1.5.0") | |
9393 | (source | |
9394 | (origin | |
3d30c332 | 9395 | (method git-fetch) |
7d3a1a2d | 9396 | ;; Fetch from GitHub as the gem does not contain testing code. |
3d30c332 EF |
9397 | (uri (git-reference |
9398 | (url "https://github.com/rubyworks/ansi") | |
9399 | (commit version))) | |
9400 | (file-name (git-file-name name version)) | |
7d3a1a2d BW |
9401 | (sha256 |
9402 | (base32 | |
3d30c332 | 9403 | "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5")))) |
7d3a1a2d BW |
9404 | (build-system ruby-build-system) |
9405 | (arguments | |
9406 | `(#:phases | |
9407 | (modify-phases %standard-phases | |
9408 | ;; Disable testing to break the cycle ansi, ae, ansi, as well as the | |
9409 | ;; cycle ansi, qed, ansi. Instead simply test that the library can | |
9410 | ;; be require'd. | |
9411 | (replace 'check | |
9412 | (lambda _ | |
9923d5a4 | 9413 | (invoke "ruby" "-Ilib" "-r" "ansi"))) |
0899352f MB |
9414 | (add-before 'validate-runpath 'replace-broken-symlink |
9415 | (lambda* (#:key outputs #:allow-other-keys) | |
9416 | (let* ((out (assoc-ref outputs "out")) | |
3cb3fa67 CB |
9417 | (file (string-append |
9418 | out "/lib/ruby/vendor_ruby/gems/ansi-" | |
9419 | ,version "/lib/ansi.yml"))) | |
0899352f MB |
9420 | ;; XXX: This symlink is broken since ruby 2.4. |
9421 | ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html | |
9422 | (delete-file file) | |
9423 | (symlink "../.index" file) | |
9424 | #t)))))) | |
7d3a1a2d BW |
9425 | (synopsis "ANSI escape code related libraries") |
9426 | (description | |
9427 | "This package is a collection of ANSI escape code related libraries | |
9428 | enabling ANSI colorization and stylization of console output. Included in the | |
9429 | library are the @code{Code} module, which defines ANSI codes as constants and | |
9430 | methods, a @code{Mixin} module for including color methods, a @code{Logger}, a | |
9431 | @code{ProgressBar}, and a @code{String} subclass. The library also includes a | |
9432 | @code{Terminal} module which provides information about the current output | |
9433 | device.") | |
3d30c332 | 9434 | (home-page "https://rubyworks.github.io/ansi/") |
7d3a1a2d | 9435 | (license license:bsd-2))) |
7c033c46 BW |
9436 | |
9437 | (define-public ruby-systemu | |
9438 | (package | |
9439 | (name "ruby-systemu") | |
9440 | (version "2.6.5") | |
9441 | (source | |
9442 | (origin | |
9443 | (method url-fetch) | |
9444 | (uri (rubygems-uri "systemu" version)) | |
9445 | (sha256 | |
9446 | (base32 | |
9447 | "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1")))) | |
9448 | (build-system ruby-build-system) | |
9449 | (arguments | |
9450 | `(#:phases | |
9451 | (modify-phases %standard-phases | |
9452 | (add-before 'check 'set-version | |
9453 | (lambda _ | |
9454 | (setenv "VERSION" ,version) | |
9455 | #t))))) | |
9456 | (synopsis "Capture of stdout/stderr and handling of child processes") | |
9457 | (description | |
9458 | "Systemu can be used on any platform to return status, stdout, and stderr | |
9459 | of any command. Unlike other methods like @code{open3} and @code{popen4} | |
9460 | there is no danger of full pipes or threading issues hanging your process or | |
9461 | subprocess.") | |
9462 | (home-page "https://github.com/ahoward/systemu") | |
9463 | (license license:ruby))) | |
3d84a99e BW |
9464 | |
9465 | (define-public ruby-bio-commandeer | |
9466 | (package | |
9467 | (name "ruby-bio-commandeer") | |
37b08547 | 9468 | (version "0.4.0") |
3d84a99e BW |
9469 | (source |
9470 | (origin | |
9471 | (method url-fetch) | |
9472 | (uri (rubygems-uri "bio-commandeer" version)) | |
9473 | (sha256 | |
9474 | (base32 | |
37b08547 | 9475 | "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni")))) |
3d84a99e BW |
9476 | (build-system ruby-build-system) |
9477 | (arguments | |
9478 | `(#:phases | |
9479 | (modify-phases %standard-phases | |
9480 | (replace 'check | |
9481 | ;; Run test without calling 'rake' so that jeweler is | |
9482 | ;; not required as an input. | |
9483 | (lambda _ | |
9923d5a4 | 9484 | (invoke "rspec" "spec/bio-commandeer_spec.rb")))))) |
3d84a99e BW |
9485 | (propagated-inputs |
9486 | `(("ruby-bio-logger" ,ruby-bio-logger) | |
9487 | ("ruby-systemu" ,ruby-systemu))) | |
9488 | (native-inputs | |
9489 | `(("bundler" ,bundler) | |
9490 | ("ruby-rspec" ,ruby-rspec))) | |
9491 | (synopsis "Simplified running of shell commands from within Ruby") | |
9492 | (description | |
9493 | "Bio-commandeer provides an opinionated method of running shell commands | |
9494 | from within Ruby. The advantage of bio-commandeer over other methods of | |
9495 | running external commands is that when something goes wrong, messages printed | |
9496 | to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra | |
9497 | detail to ease debugging.") | |
7bf837fd | 9498 | (home-page "https://github.com/wwood/bioruby-commandeer") |
3d84a99e | 9499 | (license license:expat))) |
7c8131c7 BW |
9500 | |
9501 | (define-public ruby-rubytest | |
9502 | (package | |
9503 | (name "ruby-rubytest") | |
9504 | (version "0.8.1") | |
9505 | (source | |
9506 | (origin | |
9507 | (method url-fetch) | |
9508 | (uri (rubygems-uri "rubytest" version)) | |
9509 | (sha256 | |
9510 | (base32 | |
9511 | "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz")))) | |
9512 | (build-system ruby-build-system) | |
9513 | (arguments | |
9514 | ;; Disable regular testing to break the cycle rubytest, qed, brass, | |
9515 | ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead | |
9516 | ;; simply test that the library can be require'd. | |
9517 | `(#:phases | |
9518 | (modify-phases %standard-phases | |
9519 | (replace 'check | |
9520 | (lambda _ | |
9923d5a4 | 9521 | (invoke "ruby" "-Ilib" "-r" "rubytest")))))) |
7c8131c7 BW |
9522 | (propagated-inputs |
9523 | `(("ruby-ansi" ,ruby-ansi))) | |
9524 | (synopsis "Universal test harness for Ruby") | |
9525 | (description | |
9526 | "Rubytest is a testing meta-framework for Ruby. It can handle any | |
9527 | compliant test framework and can run tests from multiple frameworks in a | |
9528 | single pass.") | |
2f3800e5 | 9529 | (home-page "https://rubyworks.github.io/rubytest") |
7c8131c7 | 9530 | (license license:bsd-2))) |
90fcedf2 BW |
9531 | |
9532 | (define-public ruby-brass | |
9533 | (package | |
9534 | (name "ruby-brass") | |
9535 | (version "1.2.1") | |
9536 | (source | |
9537 | (origin | |
9538 | (method url-fetch) | |
9539 | (uri (rubygems-uri "brass" version)) | |
9540 | (sha256 | |
9541 | (base32 | |
9542 | "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka")))) | |
9543 | (build-system ruby-build-system) | |
9544 | (arguments | |
9545 | ;; Disable tests to break the cycle brass, lemon, ae, qed, brass. | |
9546 | ;; Instead simply test that the library can be require'd. | |
9547 | `(#:phases | |
9548 | (modify-phases %standard-phases | |
9549 | (replace 'check | |
9550 | (lambda _ | |
9923d5a4 | 9551 | (invoke "ruby" "-Ilib" "-r" "brass")))))) |
90fcedf2 BW |
9552 | (synopsis "Basic foundational assertions framework") |
9553 | (description | |
9554 | "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic | |
9555 | foundational assertions framework for other assertion and test frameworks to | |
9556 | make use of.") | |
2f3800e5 | 9557 | (home-page "https://rubyworks.github.io/brass") |
90fcedf2 | 9558 | (license license:bsd-2))) |
120fc74b BW |
9559 | |
9560 | (define-public ruby-qed | |
9561 | (package | |
9562 | (name "ruby-qed") | |
9563 | (version "2.9.2") | |
9564 | (source | |
9565 | (origin | |
9566 | (method url-fetch) | |
9567 | (uri (rubygems-uri "qed" version)) | |
9568 | (sha256 | |
9569 | (base32 | |
9570 | "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr")))) | |
9571 | (build-system ruby-build-system) | |
9572 | (arguments | |
9573 | ;; Disable testing to break the cycle qed, ansi, qed, among others. | |
9574 | ;; Instead simply test that the executable runs using --copyright. | |
9575 | `(#:phases | |
9576 | (modify-phases %standard-phases | |
9577 | (replace 'check | |
9578 | (lambda _ | |
9923d5a4 | 9579 | (invoke "ruby" "-Ilib" "bin/qed" "--copyright")))))) |
120fc74b BW |
9580 | (propagated-inputs |
9581 | `(("ruby-ansi" ,ruby-ansi) | |
9582 | ("ruby-brass" ,ruby-brass))) | |
9583 | (synopsis "Test framework utilizing literate programming techniques") | |
9584 | (description | |
9585 | "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for | |
9586 | @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven | |
9587 | Development} (BDD) utilizing Literate Programming techniques. QED sits | |
9588 | somewhere between lower-level testing tools like @code{Test::Unit} and | |
9589 | requirement specifications systems like Cucumber.") | |
2f3800e5 | 9590 | (home-page "https://rubyworks.github.io/qed") |
120fc74b | 9591 | (license license:bsd-2))) |
9273ee8f | 9592 | |
dbbe88d3 CB |
9593 | (define-public ruby-que |
9594 | (package | |
9595 | (name "ruby-que") | |
9596 | (version "1.0.0.beta3") | |
9597 | (source | |
9598 | (origin | |
9599 | (method url-fetch) | |
9600 | (uri (rubygems-uri "que" version)) | |
9601 | (sha256 | |
9602 | (base32 | |
9603 | "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04")))) | |
9604 | (build-system ruby-build-system) | |
9605 | (arguments | |
9606 | '(#:tests? #f)) ; No included tests | |
9607 | (synopsis "Job queue using PostgreSQL written in Ruby") | |
9608 | (description | |
9609 | "This package provides a job queue that uses PostgreSQL for storing jobs | |
9610 | and locking between worker processes.") | |
9611 | (home-page "https://github.com/chanks/que") | |
9612 | (license license:expat))) | |
9613 | ||
9273ee8f BW |
9614 | (define-public ruby-ae |
9615 | (package | |
9616 | (name "ruby-ae") | |
9617 | (version "1.8.2") | |
9618 | (source | |
9619 | (origin | |
11d1b318 | 9620 | (method git-fetch) |
9273ee8f | 9621 | ;; Fetch from github so tests are included. |
11d1b318 EF |
9622 | (uri (git-reference |
9623 | (url "https://github.com/rubyworks/ae") | |
9624 | (commit version))) | |
9625 | (file-name (git-file-name name version)) | |
9273ee8f BW |
9626 | (sha256 |
9627 | (base32 | |
11d1b318 | 9628 | "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp")))) |
9273ee8f BW |
9629 | (build-system ruby-build-system) |
9630 | (arguments | |
9631 | `(#:phases | |
9632 | (modify-phases %standard-phases | |
9633 | (replace 'check | |
9923d5a4 | 9634 | (lambda _ (invoke "qed"))) |
de6f6efd MB |
9635 | (add-before 'validate-runpath 'replace-broken-symlink |
9636 | (lambda* (#:key outputs #:allow-other-keys) | |
9637 | (let* ((out (assoc-ref outputs "out")) | |
3cb3fa67 CB |
9638 | (file (string-append |
9639 | out "/lib/ruby/vendor_ruby/gems/ae-" | |
9640 | ,version "/lib/ae.yml"))) | |
de6f6efd MB |
9641 | ;; XXX: This symlink is broken since ruby 2.4. |
9642 | ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html | |
9643 | (delete-file file) | |
9644 | (symlink "../.index" file) | |
9645 | #t)))))) | |
9273ee8f BW |
9646 | (propagated-inputs |
9647 | `(("ruby-ansi" ,ruby-ansi))) | |
9648 | (native-inputs | |
9649 | `(("ruby-qed" ,ruby-qed))) | |
9650 | (synopsis "Assertions library") | |
9651 | (description | |
9652 | "Assertive Expressive (AE) is an assertions library specifically designed | |
9653 | for reuse by other test frameworks.") | |
11d1b318 | 9654 | (home-page "https://rubyworks.github.io/ae/") |
9273ee8f | 9655 | (license license:bsd-2))) |
78bb471f BW |
9656 | |
9657 | (define-public ruby-lemon | |
9658 | (package | |
9659 | (name "ruby-lemon") | |
9660 | (version "0.9.1") | |
9661 | (source | |
9662 | (origin | |
9663 | (method url-fetch) | |
9664 | (uri (rubygems-uri "lemon" version)) | |
9665 | (sha256 | |
9666 | (base32 | |
9667 | "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm")))) | |
9668 | (build-system ruby-build-system) | |
9669 | (arguments | |
9670 | `(#:phases | |
9671 | (modify-phases %standard-phases | |
9923d5a4 | 9672 | (replace 'check (lambda _ (invoke "qed")))))) |
78bb471f BW |
9673 | (propagated-inputs |
9674 | `(("ruby-ae" ,ruby-ae) | |
9675 | ("ruby-ansi" ,ruby-ansi) | |
9676 | ("ruby-rubytest" ,ruby-rubytest))) | |
9677 | (native-inputs | |
9678 | `(("ruby-qed" ,ruby-qed))) | |
9679 | (synopsis "Test framework correlating code structure and test unit") | |
9680 | (description | |
9681 | "Lemon is a unit testing framework that enforces highly formal | |
9682 | case-to-class and unit-to-method test construction. This enforcement can help | |
9683 | focus concern on individual units of behavior.") | |
2f3800e5 | 9684 | (home-page "https://rubyworks.github.io/lemon") |
78bb471f | 9685 | (license license:bsd-2))) |
0832804e BW |
9686 | |
9687 | (define-public ruby-rubytest-cli | |
9688 | (package | |
9689 | (name "ruby-rubytest-cli") | |
9690 | (version "0.2.0") | |
9691 | (source | |
9692 | (origin | |
9693 | (method url-fetch) | |
9694 | (uri (rubygems-uri "rubytest-cli" version)) | |
9695 | (sha256 | |
9696 | (base32 | |
9697 | "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p")))) | |
9698 | (build-system ruby-build-system) | |
9699 | (arguments | |
9700 | `(#:tests? #f)) ; no tests | |
9701 | (propagated-inputs | |
9702 | `(("ruby-ansi" ,ruby-ansi) | |
9703 | ("ruby-rubytest" ,ruby-rubytest))) | |
9704 | (synopsis "Command-line interface for rubytest") | |
9705 | (description | |
9706 | "Rubytest CLI is a command-line interface for running tests for | |
9707 | Rubytest-based test frameworks. It provides the @code{rubytest} executable.") | |
2f3800e5 | 9708 | (home-page "https://rubyworks.github.io/rubytest-cli") |
0832804e | 9709 | (license license:bsd-2))) |
72ccbfe3 BW |
9710 | |
9711 | (define-public ruby-hashery | |
9712 | (package | |
9713 | (name "ruby-hashery") | |
cba96208 | 9714 | (version "2.1.2") |
72ccbfe3 BW |
9715 | (source |
9716 | (origin | |
9717 | (method url-fetch) | |
9718 | (uri (rubygems-uri "hashery" version)) | |
9719 | (sha256 | |
9720 | (base32 | |
cba96208 | 9721 | "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj")))) |
72ccbfe3 BW |
9722 | (build-system ruby-build-system) |
9723 | (arguments | |
9724 | `(#:phases | |
9725 | (modify-phases %standard-phases | |
9726 | (replace 'check | |
9727 | (lambda _ | |
9923d5a4 TGR |
9728 | (invoke "qed") |
9729 | (invoke "rubytest" "-Ilib" "-Itest" "test/")))))) | |
72ccbfe3 BW |
9730 | (native-inputs |
9731 | `(("ruby-rubytest-cli" ,ruby-rubytest-cli) | |
9732 | ("ruby-qed" ,ruby-qed) | |
9733 | ("ruby-lemon" ,ruby-lemon))) | |
9734 | (synopsis "Hash-like classes with extra features") | |
9735 | (description | |
9736 | "The Hashery is a tight collection of @code{Hash}-like classes. | |
9737 | Included are the auto-sorting @code{Dictionary} class, the efficient | |
9738 | @code{LRUHash}, the flexible @code{OpenHash} and the convenient | |
9739 | @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which | |
9740 | defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's | |
9741 | standard @code{Hash} making it possible to subclass and augment to fit any | |
9742 | specific use case.") | |
2f3800e5 | 9743 | (home-page "https://rubyworks.github.io/hashery") |
72ccbfe3 | 9744 | (license license:bsd-2))) |
1f1d71e0 BW |
9745 | |
9746 | (define-public ruby-rc4 | |
9747 | (package | |
9748 | (name "ruby-rc4") | |
9749 | (version "0.1.5") | |
9750 | (source | |
9751 | (origin | |
9752 | (method url-fetch) | |
9753 | (uri (rubygems-uri "ruby-rc4" version)) | |
9754 | (sha256 | |
9755 | (base32 | |
9756 | "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00")))) | |
9757 | (build-system ruby-build-system) | |
9758 | (arguments | |
9759 | `(#:phases | |
9760 | (modify-phases %standard-phases | |
9761 | (replace 'check | |
9762 | (lambda _ | |
9923d5a4 | 9763 | (invoke "rspec" "spec/rc4_spec.rb")))))) |
1f1d71e0 BW |
9764 | (native-inputs |
9765 | `(("ruby-rspec" ,ruby-rspec-2))) | |
9766 | (synopsis "Implementation of the RC4 algorithm") | |
9767 | (description | |
9768 | "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.") | |
9769 | (home-page "https://github.com/caiges/Ruby-RC4") | |
9770 | (license license:expat))) | |
f3e085a8 BW |
9771 | |
9772 | (define-public ruby-afm | |
9773 | (package | |
9774 | (name "ruby-afm") | |
9775 | (version "0.2.2") | |
9776 | (source | |
9777 | (origin | |
9778 | (method url-fetch) | |
9779 | (uri (rubygems-uri "afm" version)) | |
9780 | (sha256 | |
9781 | (base32 | |
9782 | "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8")))) | |
9783 | (build-system ruby-build-system) | |
9784 | (native-inputs | |
9785 | `(("bundler" ,bundler))) | |
9786 | (synopsis "Read Adobe Font Metrics (afm) files") | |
9787 | (description | |
9788 | "This library provides methods to read @dfn{Adobe Font Metrics} (afm) | |
9789 | files and use the data therein.") | |
7bf837fd | 9790 | (home-page "https://github.com/halfbyte/afm") |
f3e085a8 | 9791 | (license license:expat))) |
acb6be42 BW |
9792 | |
9793 | (define-public ruby-ascii85 | |
9794 | (package | |
9795 | (name "ruby-ascii85") | |
5854082a | 9796 | (version "1.0.3") |
acb6be42 BW |
9797 | (source |
9798 | (origin | |
9799 | (method url-fetch) | |
9800 | (uri (rubygems-uri "Ascii85" version)) | |
9801 | (sha256 | |
9802 | (base32 | |
5854082a | 9803 | "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs")))) |
acb6be42 BW |
9804 | (build-system ruby-build-system) |
9805 | (native-inputs | |
9806 | `(("bundler" ,bundler))) | |
9807 | (synopsis "Encode and decode Ascii85 binary-to-text encoding") | |
9808 | (description | |
9809 | "This library provides methods to encode and decode Ascii85 | |
9810 | binary-to-text encoding. The main modern use of Ascii85 is in PostScript and | |
9811 | @dfn{Portable Document Format} (PDF) file formats.") | |
9812 | (home-page "https://github.com/datawraith/ascii85gem") | |
9813 | (license license:expat))) | |
edf8caae BW |
9814 | |
9815 | (define-public ruby-ttfunk | |
9816 | (package | |
9817 | (name "ruby-ttfunk") | |
4179ed93 | 9818 | (version "1.6.2.1") |
edf8caae BW |
9819 | (source |
9820 | (origin | |
4e110825 | 9821 | (method git-fetch) |
edf8caae | 9822 | ;; fetch from github as the gem does not contain testing code |
4e110825 EF |
9823 | (uri (git-reference |
9824 | (url "https://github.com/prawnpdf/ttfunk") | |
9825 | (commit version))) | |
9826 | (file-name (git-file-name name version)) | |
edf8caae BW |
9827 | (sha256 |
9828 | (base32 | |
4179ed93 | 9829 | "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z")))) |
edf8caae BW |
9830 | (build-system ruby-build-system) |
9831 | (arguments | |
9832 | `(#:test-target "spec" | |
9833 | #:phases | |
9834 | (modify-phases %standard-phases | |
afb7a3e8 JL |
9835 | (add-before 'build 'remove-ssh |
9836 | (lambda _ | |
9837 | ;; remove dependency on an ssh key pair that doesn't exist | |
9838 | (substitute* "ttfunk.gemspec" | |
9839 | (("spec.signing_key.*") "")) | |
9840 | #t)) | |
edf8caae BW |
9841 | (add-before 'check 'remove-rubocop |
9842 | (lambda _ | |
9843 | ;; remove rubocop as a dependency as not needed for testing | |
9844 | (substitute* "ttfunk.gemspec" | |
9845 | (("spec.add_development_dependency\\('rubocop'.*") "")) | |
9846 | (substitute* "Rakefile" | |
9847 | (("require 'rubocop/rake_task'") "") | |
afb7a3e8 | 9848 | (("RuboCop::RakeTask.new") "")) |
edf8caae BW |
9849 | #t))))) |
9850 | (native-inputs | |
9851 | `(("ruby-rspec" ,ruby-rspec) | |
afb7a3e8 | 9852 | ("ruby-yard" ,ruby-yard) |
edf8caae BW |
9853 | ("bundler" ,bundler))) |
9854 | (synopsis "Font metrics parser for the Prawn PDF generator") | |
9855 | (description | |
9856 | "TTFunk is a TrueType font parser written in pure Ruby. It is used as | |
9857 | part of the Prawn PDF generator.") | |
9858 | (home-page "https://github.com/prawnpdf/ttfunk") | |
9859 | ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE | |
9860 | ;; for details." | |
4179ed93 | 9861 | (license %prawn-project-licenses))) |
cbdd428c | 9862 | |
9270298f BW |
9863 | (define-public ruby-puma |
9864 | (package | |
9865 | (name "ruby-puma") | |
63755fcd | 9866 | (version "3.9.1") |
9270298f BW |
9867 | (source |
9868 | (origin | |
a6cffe6e | 9869 | (method git-fetch) |
9270298f | 9870 | ;; Fetch from GitHub because distributed gem does not contain tests. |
a6cffe6e EF |
9871 | (uri (git-reference |
9872 | (url "https://github.com/puma/puma") | |
9873 | (commit (string-append "v" version)))) | |
9874 | (file-name (git-file-name name version)) | |
9270298f BW |
9875 | (sha256 |
9876 | (base32 | |
a6cffe6e | 9877 | "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f")))) |
9270298f BW |
9878 | (build-system ruby-build-system) |
9879 | (arguments | |
63755fcd BW |
9880 | `(#:tests? #f ; Tests require an out-dated version of minitest. |
9881 | #:phases | |
9270298f BW |
9882 | (modify-phases %standard-phases |
9883 | (add-before 'build 'fix-gemspec | |
9884 | (lambda _ | |
9885 | (substitute* "puma.gemspec" | |
9886 | (("git ls-files") "find * |sort")) | |
9887 | #t))))) | |
9270298f BW |
9888 | (synopsis "Simple, concurrent HTTP server for Ruby/Rack") |
9889 | (description | |
9890 | "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server | |
9891 | for Ruby/Rack applications. Puma is intended for use in both development and | |
9892 | production environments. In order to get the best throughput, it is highly | |
9893 | recommended that you use a Ruby implementation with real threads like Rubinius | |
9894 | or JRuby.") | |
a6cffe6e | 9895 | (home-page "https://puma.io/") |
9270298f BW |
9896 | (license license:expat))) |
9897 | ||
b0813490 BW |
9898 | (define-public ruby-hoe-git |
9899 | (package | |
9900 | (name "ruby-hoe-git") | |
9901 | (version "1.6.0") | |
9902 | (source | |
9903 | (origin | |
9904 | (method url-fetch) | |
9905 | (uri (rubygems-uri "hoe-git" version)) | |
9906 | (sha256 | |
9907 | (base32 | |
9908 | "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650")))) | |
9909 | (build-system ruby-build-system) | |
9910 | (propagated-inputs | |
07095a30 | 9911 | `(("ruby-hoe" ,ruby-hoe))) |
b0813490 BW |
9912 | (synopsis "Hoe plugins for tighter Git integration") |
9913 | (description | |
9914 | "This package provides a set of Hoe plugins for tighter Git integration. | |
9915 | It provides tasks to automate release tagging and pushing and changelog | |
9916 | generation.") | |
7bf837fd | 9917 | (home-page "https://github.com/jbarnette/hoe-git") |
b0813490 BW |
9918 | (license license:expat))) |
9919 | ||
cbdd428c BW |
9920 | (define-public ruby-sequel |
9921 | (package | |
9922 | (name "ruby-sequel") | |
65a7f09c | 9923 | (version "4.49.0") |
cbdd428c BW |
9924 | (source |
9925 | (origin | |
9926 | (method url-fetch) | |
9927 | (uri (rubygems-uri "sequel" version)) | |
9928 | (sha256 | |
9929 | (base32 | |
65a7f09c | 9930 | "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8")))) |
cbdd428c BW |
9931 | (build-system ruby-build-system) |
9932 | (arguments | |
9933 | '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks. | |
9934 | (synopsis "Database toolkit for Ruby") | |
9935 | (description "Sequel provides thread safety, connection pooling and a | |
9936 | concise DSL for constructing SQL queries and table schemas. It includes a | |
9937 | comprehensive ORM layer for mapping records to Ruby objects and handling | |
9938 | associated records.") | |
e2b70d90 | 9939 | (home-page "https://sequel.jeremyevans.net") |
cbdd428c | 9940 | (license license:expat))) |
3cc78097 BW |
9941 | |
9942 | (define-public ruby-timecop | |
9943 | (package | |
9944 | (name "ruby-timecop") | |
3d4a5eb5 | 9945 | (version "0.9.1") |
3cc78097 BW |
9946 | (source |
9947 | (origin | |
9948 | (method url-fetch) | |
9949 | (uri (rubygems-uri "timecop" version)) | |
9950 | (sha256 | |
9951 | (base32 | |
3d4a5eb5 | 9952 | "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp")))) |
3cc78097 BW |
9953 | (build-system ruby-build-system) |
9954 | (arguments | |
9955 | `(#:phases | |
9956 | (modify-phases %standard-phases | |
9957 | (add-before 'check 'set-check-rubylib | |
9958 | (lambda _ | |
9959 | ;; Set RUBYLIB so timecop tests finds its own lib. | |
9960 | (setenv "RUBYLIB" "lib") | |
9961 | #t))))) | |
9962 | (native-inputs | |
9963 | `(("bundler" ,bundler) | |
9964 | ("ruby-minitest-rg" ,ruby-minitest-rg) | |
9965 | ("ruby-mocha" ,ruby-mocha) | |
9966 | ("ruby-activesupport" ,ruby-activesupport))) | |
66e07664 | 9967 | (synopsis "Test mocks for time-dependent functions") |
3cc78097 BW |
9968 | (description |
9969 | "Timecop provides \"time travel\" and \"time freezing\" capabilities, | |
9970 | making it easier to test time-dependent code. It provides a unified method to | |
9971 | mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single | |
9972 | call.") | |
9973 | (home-page "https://github.com/travisjeffery/timecop") | |
9974 | (license license:expat))) | |
9975 | ||
dae620b8 BW |
9976 | (define-public ruby-concurrent |
9977 | (package | |
9978 | (name "ruby-concurrent") | |
1007640a | 9979 | (version "1.1.5") |
dae620b8 BW |
9980 | (source |
9981 | (origin | |
8fcba3be | 9982 | (method git-fetch) |
dae620b8 BW |
9983 | ;; Download from GitHub because the rubygems version does not contain |
9984 | ;; Rakefile. | |
8fcba3be MB |
9985 | (uri (git-reference |
9986 | (url "https://github.com/ruby-concurrency/concurrent-ruby") | |
9987 | (commit (string-append "v" version)))) | |
9988 | (file-name (git-file-name name version)) | |
dae620b8 BW |
9989 | (sha256 |
9990 | (base32 | |
1007640a | 9991 | "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj")))) |
dae620b8 BW |
9992 | (build-system ruby-build-system) |
9993 | (arguments | |
1007640a | 9994 | `(#:test-target "ci" |
dae620b8 BW |
9995 | #:phases |
9996 | (modify-phases %standard-phases | |
520e89eb | 9997 | (add-before 'replace-git-ls-files 'remove-extra-gemspecs |
dae620b8 BW |
9998 | (lambda _ |
9999 | ;; Delete extra gemspec files so 'first-gemspec' chooses the | |
10000 | ;; correct one. | |
10001 | (delete-file "concurrent-ruby-edge.gemspec") | |
10002 | (delete-file "concurrent-ruby-ext.gemspec") | |
10003 | #t)) | |
1007640a | 10004 | (replace 'replace-git-ls-files |
520e89eb | 10005 | (lambda _ |
1007640a MB |
10006 | ;; XXX: The default substitution made by this phase is not fully |
10007 | ;; compatible with "git ls-files". The latter produces file names | |
10008 | ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]" | |
10009 | ;; which gives "./lib/foo". That difference in turn breaks the | |
10010 | ;; comparison against a glob pattern in this script. | |
10011 | (substitute* "concurrent-ruby.gemspec" | |
10012 | (("git ls-files") "find * -type f | sort")) | |
10013 | #t)) | |
10014 | (add-before 'build 'remove-jar-from-gemspec | |
520e89eb | 10015 | (lambda _ |
1007640a MB |
10016 | ;; The gemspec wants to include a JAR file that we do not build |
10017 | ;; nor need. | |
10018 | (substitute* "concurrent-ruby.gemspec" | |
10019 | (("'lib/concurrent/concurrent_ruby.jar'") | |
10020 | "")) | |
10021 | #t)) | |
10022 | (add-before 'build 'remove-rake_compiler_dock-dependency | |
10023 | (lambda _ | |
10024 | ;; This library is only used when building for non-MRI targets. | |
10025 | (substitute* "Rakefile" | |
10026 | (("require 'rake_compiler_dock'") | |
10027 | "")) | |
520e89eb | 10028 | #t)) |
9019b37f BW |
10029 | (add-before 'check 'remove-timecop-dependency |
10030 | ;; Remove timecop-dependent tests as having timecop as a depedency | |
10031 | ;; causes circular depedencies. | |
10032 | (lambda _ | |
10033 | (delete-file "spec/concurrent/executor/timer_set_spec.rb") | |
10034 | (delete-file "spec/concurrent/scheduled_task_spec.rb") | |
10035 | #t))))) | |
dae620b8 BW |
10036 | (native-inputs |
10037 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
9019b37f | 10038 | ("ruby-rspec" ,ruby-rspec))) |
dae620b8 BW |
10039 | (synopsis "Concurrency tools for Ruby") |
10040 | (description | |
10041 | "This library provides modern concurrency tools including agents, | |
10042 | futures, promises, thread pools, actors, supervisors, and more. It is | |
10043 | inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency | |
10044 | patterns.") | |
10045 | (home-page "http://www.concurrent-ruby.com") | |
10046 | (license license:expat))) | |
2de61e34 BW |
10047 | |
10048 | (define-public ruby-pkg-config | |
10049 | (package | |
10050 | (name "ruby-pkg-config") | |
884a80dd | 10051 | (version "1.2.5") |
2de61e34 BW |
10052 | (source |
10053 | (origin | |
10054 | (method url-fetch) | |
10055 | (uri (rubygems-uri "pkg-config" version)) | |
10056 | (sha256 | |
10057 | (base32 | |
884a80dd | 10058 | "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar")))) |
2de61e34 BW |
10059 | (build-system ruby-build-system) |
10060 | (arguments | |
10061 | ;; Tests require extra files not included in the gem. | |
10062 | `(#:tests? #f)) | |
10063 | (synopsis "Detect libraries for compiling Ruby native extensions") | |
10064 | (description | |
10065 | "@code{pkg-config} can be used in your extconf.rb to properly detect need | |
10066 | libraries for compiling Ruby native extensions.") | |
10067 | (home-page "https://github.com/ruby-gnome2/pkg-config") | |
10068 | (license license:lgpl2.0+))) | |
6689c636 MFM |
10069 | |
10070 | (define-public ruby-net-http-digest-auth | |
10071 | (package | |
10072 | (name "ruby-net-http-digest-auth") | |
ba074a85 | 10073 | (version "1.4.1") |
6689c636 MFM |
10074 | (source |
10075 | (origin | |
10076 | (method url-fetch) | |
10077 | (uri (rubygems-uri "net-http-digest_auth" version)) | |
10078 | (sha256 | |
10079 | (base32 | |
ba074a85 | 10080 | "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb")))) |
6689c636 MFM |
10081 | (build-system ruby-build-system) |
10082 | (native-inputs | |
10083 | `(("ruby-hoe" ,ruby-hoe))) | |
10084 | (synopsis "RFC 2617 HTTP digest authentication library") | |
10085 | (description | |
10086 | "This library implements HTTP's digest authentication scheme based on | |
10087 | RFC 2617. This enables the use of the digest authentication scheme instead | |
10088 | of the more insecure basic authentication scheme.") | |
7bf837fd | 10089 | (home-page "https://github.com/drbrain/net-http-digest_auth") |
6689c636 | 10090 | (license license:expat))) |
06116573 | 10091 | |
10092 | (define-public ruby-mail | |
10093 | (package | |
10094 | (name "ruby-mail") | |
ab4b6ae6 | 10095 | (version "2.7.1") |
06116573 | 10096 | (source |
10097 | (origin | |
10098 | (method url-fetch) | |
10099 | (uri (rubygems-uri "mail" version)) | |
10100 | (sha256 | |
10101 | (base32 | |
ab4b6ae6 | 10102 | "00wwz6ys0502dpk8xprwcqfwyf3hmnx6lgxaiq6vj43mkx43sapc")))) |
06116573 | 10103 | (build-system ruby-build-system) |
10104 | (propagated-inputs | |
ab4b6ae6 | 10105 | `(("ruby-mini-mime" ,ruby-mini-mime))) |
06116573 | 10106 | (arguments |
ab4b6ae6 | 10107 | '(#:tests? #f)) ; no rakefile |
06116573 | 10108 | (synopsis "Mail library for Ruby") |
10109 | (description | |
10110 | "Mail is an internet library for Ruby that is designed to handle email | |
10111 | generation, parsing and sending. The purpose of this library is to provide | |
10112 | a single point of access to handle all email functions, including sending | |
10113 | and receiving emails. All network type actions are done through proxy | |
10114 | methods to @code{Net::SMTP}, @code{Net::POP3} etc. | |
10115 | ||
10116 | Mail has been designed with a very simple object oriented system that | |
10117 | really opens up the email messages you are parsing, if you know what you | |
10118 | are doing, you can fiddle with every last bit of your email directly.") | |
10119 | (home-page "https://github.com/mikel/mail") | |
10120 | (license license:expat))) | |
9b4c8e1b | 10121 | |
4d372cb9 CB |
10122 | (define-public ruby-mathn |
10123 | (package | |
10124 | (name "ruby-mathn") | |
10125 | (version "0.1.0") | |
10126 | (source | |
10127 | (origin | |
10128 | (method url-fetch) | |
10129 | (uri (rubygems-uri "mathn" version)) | |
10130 | (sha256 | |
10131 | (base32 | |
10132 | "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p")))) | |
10133 | (build-system ruby-build-system) | |
10134 | (native-inputs | |
10135 | `(("bundler" ,bundler) | |
10136 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
10137 | (synopsis "Extends math operations for increased precision") | |
10138 | (description | |
10139 | "This gem makes mathematical operations more precise in Ruby and | |
10140 | integrates other mathematical standard libraries. Prior to Ruby 2.5, | |
10141 | @code{mathn} was part of the Ruby standard library.") | |
10142 | (home-page "https://github.com/ruby/mathn") | |
10143 | (license license:bsd-2))) | |
10144 | ||
9b4c8e1b BW |
10145 | (define-public ruby-code-statistics |
10146 | (package | |
10147 | (name "ruby-code-statistics") | |
10148 | (version "0.2.13") | |
10149 | (source | |
10150 | (origin | |
10151 | (method url-fetch) | |
10152 | (uri (rubygems-uri "code_statistics" version)) | |
10153 | (sha256 | |
10154 | (base32 | |
10155 | "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93")))) | |
10156 | (build-system ruby-build-system) | |
10157 | (arguments | |
10158 | `(#:tests? #f)) ; Not all test code is included in gem. | |
10159 | (synopsis "Port of the rails 'rake stats' method") | |
10160 | (description | |
10161 | "This gem is a port of the rails 'rake stats' method so it can be made | |
10162 | more robust and work for non rails projects.") | |
702a1012 | 10163 | (home-page "https://github.com/danmayer/code_statistics") |
9b4c8e1b | 10164 | (license license:expat))) |
f90c25c1 CL |
10165 | |
10166 | (define-public ruby-rubypants | |
10167 | (package | |
10168 | (name "ruby-rubypants") | |
10169 | (version "0.6.0") | |
10170 | (source (origin | |
10171 | (method url-fetch) | |
10172 | (uri (rubygems-uri "rubypants" version)) | |
10173 | (sha256 | |
10174 | (base32 | |
10175 | "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh")))) | |
10176 | (build-system ruby-build-system) | |
10177 | (arguments | |
10178 | '(#:tests? #f)) ; need Codecov | |
10179 | (synopsis "Port of the smart-quotes library SmartyPants") | |
10180 | (description | |
10181 | "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The | |
10182 | original SmartyPants is a web publishing plug-in for Movable Type, Blosxom, | |
10183 | and BBEdit that easily translates plain ASCII punctuation characters into | |
10184 | smart typographic punctuation HTML entities.") | |
10185 | (home-page "https://github.com/jmcnevin/rubypants") | |
10186 | (license license:bsd-2))) | |
beb34835 CL |
10187 | |
10188 | (define-public ruby-org-ruby | |
10189 | (package | |
10190 | (name "ruby-org-ruby") | |
10191 | (version "0.9.12") | |
10192 | (source (origin | |
10193 | (method url-fetch) | |
10194 | (uri (rubygems-uri "org-ruby" version)) | |
10195 | (sha256 | |
10196 | (base32 | |
10197 | "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk")))) | |
10198 | (build-system ruby-build-system) | |
10199 | (arguments | |
10200 | '(#:tests? #f)) ; no rakefile | |
10201 | (propagated-inputs | |
10202 | `(("ruby-rubypants" ,ruby-rubypants))) | |
10203 | (synopsis "Org-mode parser written in Ruby") | |
10204 | (description | |
10205 | "Org-ruby is an org-mode parser written in Ruby. The most significant | |
10206 | thing this library does today is convert org-mode files to HTML or Textile or | |
10207 | Markdown.") | |
10208 | (home-page "https://github.com/wallyqs/org-ruby") | |
10209 | (license license:expat))) | |
670ee20a BW |
10210 | |
10211 | (define-public ruby-rake | |
10212 | (package | |
10213 | (name "ruby-rake") | |
c997403a | 10214 | (version "13.0.1") |
670ee20a BW |
10215 | (source |
10216 | (origin | |
10217 | (method url-fetch) | |
10218 | (uri (rubygems-uri "rake" version)) | |
10219 | (sha256 | |
10220 | (base32 | |
c997403a | 10221 | "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9")))) |
670ee20a BW |
10222 | (build-system ruby-build-system) |
10223 | (native-inputs | |
10224 | `(("bundler" ,bundler))) | |
10225 | (synopsis "Rake is a Make-like program implemented in Ruby") | |
10226 | (description | |
10227 | "Rake is a Make-like program where tasks and dependencies are specified | |
10228 | in standard Ruby syntax.") | |
10229 | (home-page "https://github.com/ruby/rake") | |
10230 | (license license:expat))) | |
45498f51 | 10231 | |
51420124 | 10232 | (define-public ruby-childprocess |
45498f51 DM |
10233 | (package |
10234 | (name "ruby-childprocess") | |
459e4a1a | 10235 | (version "3.0.0") |
45498f51 DM |
10236 | (source |
10237 | (origin | |
10238 | (method url-fetch) | |
10239 | (uri (rubygems-uri "childprocess" version)) | |
10240 | (sha256 | |
10241 | (base32 | |
459e4a1a | 10242 | "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5")))) |
45498f51 DM |
10243 | (build-system ruby-build-system) |
10244 | (arguments | |
10245 | `(#:tests? #f)) | |
10246 | (native-inputs | |
10247 | `(("bundler" ,bundler) | |
10248 | ("ruby-rspec" ,ruby-rspec))) | |
10249 | (propagated-inputs | |
10250 | `(("ruby-ffi" ,ruby-ffi))) | |
10251 | (synopsis "Control external programs running in the background, in Ruby") | |
10252 | (description "@code{childprocess} provides a gem to control external | |
10253 | programs running in the background, in Ruby.") | |
459e4a1a | 10254 | (home-page "https://github.com/enkessler/childprocess") |
45498f51 | 10255 | (license license:expat))) |
1f10e28d | 10256 | |
0d16905b JL |
10257 | (define-public ruby-public-suffix |
10258 | (package | |
10259 | (name "ruby-public-suffix") | |
70e4fcfe | 10260 | (version "4.0.5") |
0d16905b JL |
10261 | (source (origin |
10262 | (method url-fetch) | |
10263 | (uri (rubygems-uri "public_suffix" version)) | |
10264 | (sha256 | |
10265 | (base32 | |
70e4fcfe | 10266 | "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g")))) |
0d16905b JL |
10267 | (build-system ruby-build-system) |
10268 | (arguments | |
1f4fc125 CB |
10269 | '(#:phases |
10270 | (modify-phases %standard-phases | |
10271 | ;; Remove the requirement on Rubocop, as it isn't useful to run, and | |
10272 | ;; including it as an input can lead to circular dependencies. | |
10273 | (add-after 'unpack 'remove-rubocop-from-Rakefile | |
10274 | (lambda _ | |
10275 | (substitute* "Rakefile" | |
10276 | (("require \"rubocop/rake\\_task\"") "") | |
10277 | (("RuboCop::RakeTask\\.new") "")) | |
10278 | #t))))) | |
10279 | (native-inputs | |
10280 | `(("bundler" ,bundler) | |
10281 | ("ruby-yard" ,ruby-yard) | |
10282 | ("ruby-mocha" ,ruby-mocha) | |
10283 | ("ruby-minitest-reporters" ,ruby-minitest-reporters))) | |
0d16905b JL |
10284 | (home-page "https://simonecarletti.com/code/publicsuffix-ruby/") |
10285 | (synopsis "Domain name parser") | |
10286 | (description "The gem @code{public_suffix} is a domain name parser, | |
10287 | written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix | |
10288 | is one under which Internet users can (or historically could) directly | |
10289 | register names. Some examples of public suffixes are @code{.com}, | |
10290 | @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of | |
10291 | all known public suffixes.") | |
10292 | (license license:expat))) | |
6f2c4efb JL |
10293 | |
10294 | (define-public ruby-addressable | |
10295 | (package | |
10296 | (name "ruby-addressable") | |
91f7ee87 | 10297 | (version "2.7.0") |
6f2c4efb JL |
10298 | (source (origin |
10299 | (method url-fetch) | |
10300 | (uri (rubygems-uri "addressable" version)) | |
10301 | (sha256 | |
10302 | (base32 | |
91f7ee87 | 10303 | "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy")))) |
6f2c4efb | 10304 | (build-system ruby-build-system) |
0a794b30 CB |
10305 | (arguments |
10306 | '(#:test-target "spec" | |
10307 | #:phases | |
10308 | (modify-phases %standard-phases | |
10309 | (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile | |
10310 | (lambda _ | |
10311 | (substitute* "Gemfile" | |
10312 | (("git: 'https://github.com/sporkmonger/rack-mount.git',") "") | |
10313 | ((".*launchy.*") "") | |
10314 | ((".*rake.*") "gem 'rake'\n") | |
10315 | ((".*redcarpet.*") "")) | |
10316 | #t)) | |
10317 | (add-before 'check 'delete-network-dependent-test | |
10318 | (lambda _ | |
10319 | (delete-file "spec/addressable/net_http_compat_spec.rb") | |
10320 | #t))))) | |
10321 | (native-inputs | |
10322 | `(("ruby-rspec" ,ruby-rspec) | |
10323 | ("bundler" ,bundler) | |
10324 | ("ruby-idn-ruby" ,ruby-idn-ruby) | |
10325 | ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount) | |
1628d57b | 10326 | ("ruby-rspec-its" ,ruby-rspec-its-minimal) |
0a794b30 CB |
10327 | ("ruby-yard" ,ruby-yard) |
10328 | ("ruby-simplecov" ,ruby-simplecov))) | |
6f2c4efb JL |
10329 | (propagated-inputs |
10330 | `(("ruby-public-suffix" ,ruby-public-suffix))) | |
6f2c4efb JL |
10331 | (home-page "https://github.com/sporkmonger/addressable") |
10332 | (synopsis "Alternative URI implementation") | |
10333 | (description "Addressable is a replacement for the URI implementation that | |
10334 | is part of Ruby's standard library. It more closely conforms to RFC 3986, | |
10335 | RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.") | |
10336 | (license license:asl2.0))) | |
9c7f15c0 | 10337 | |
305e9b33 MB |
10338 | (define-public ruby-colorize |
10339 | (package | |
10340 | (name "ruby-colorize") | |
10341 | (version "0.8.1") | |
10342 | (source (origin | |
10343 | (method url-fetch) | |
10344 | (uri (rubygems-uri "colorize" version)) | |
10345 | (sha256 | |
10346 | (base32 | |
10347 | "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b")))) | |
10348 | (build-system ruby-build-system) | |
10349 | (arguments | |
10350 | '(#:phases (modify-phases %standard-phases | |
10351 | (add-before 'check 'remove-codeclimate-dependency | |
10352 | (lambda _ | |
10353 | (substitute* "test/test_colorize.rb" | |
10354 | ;; Do not hook the tests into the online CodeClimate | |
10355 | ;; service which is unnecessary for these tests. | |
10356 | (("require 'codeclimate-test-reporter'") | |
10357 | "") | |
10358 | (("CodeClimate.*") "")) | |
10359 | #t))))) | |
10360 | (synopsis "Add color effects to the @code{String} class") | |
10361 | (description | |
10362 | "This package extends the @code{String} class and adds a | |
10363 | @code{ColorizedString} with methods to set text color, background color, | |
10364 | and text effects.") | |
702a1012 | 10365 | (home-page "https://github.com/fazibear/colorize") |
305e9b33 MB |
10366 | (license license:gpl2+))) |
10367 | ||
9c7f15c0 JL |
10368 | (define-public ruby-colorator |
10369 | (package | |
10370 | (name "ruby-colorator") | |
10371 | (version "1.1.0") | |
10372 | (source (origin | |
10373 | (method url-fetch) | |
10374 | (uri (rubygems-uri "colorator" version)) | |
10375 | (sha256 | |
10376 | (base32 | |
10377 | "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72")))) | |
10378 | (build-system ruby-build-system) | |
10379 | (arguments | |
10380 | ;; No test target | |
10381 | `(#:tests? #f)) | |
10382 | (home-page "http://octopress.org/colorator/") | |
10383 | (synopsis "Terminal color library") | |
10384 | (description "Colorator is a Ruby gem that helps you colorize your text | |
10385 | for the terminal.") | |
10386 | (license license:expat))) | |
78b9c291 JL |
10387 | |
10388 | (define-public ruby-command-line-reporter | |
10389 | (package | |
10390 | (name "ruby-command-line-reporter") | |
b448e408 | 10391 | (version "4.0.1") |
78b9c291 JL |
10392 | (source (origin |
10393 | (method url-fetch) | |
10394 | (uri (rubygems-uri "command_line_reporter" version)) | |
10395 | (sha256 | |
10396 | (base32 | |
b448e408 | 10397 | "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll")))) |
78b9c291 JL |
10398 | (build-system ruby-build-system) |
10399 | (arguments | |
10400 | ;; No Rakefile | |
10401 | `(#:tests? #f | |
10402 | #:phases | |
10403 | (modify-phases %standard-phases | |
10404 | (add-before 'build 'fix-dependencies | |
10405 | (lambda _ | |
10406 | (substitute* ".gemspec" | |
10407 | ;; colored is unmaintained | |
10408 | (("colored") "colorator") | |
10409 | ;; colorator version | |
10410 | (("= 1.2") "= 1.1")) | |
10411 | #t))))) | |
10412 | (propagated-inputs `(("ruby-colorator" ,ruby-colorator))) | |
10413 | (home-page "https://github.com/wbailey/command_line_reporter") | |
10414 | (synopsis "Report production while executing Ruby scripts") | |
10415 | (description "This gem provides a DSL that makes it easy to write reports | |
10416 | of various types in ruby. It eliminates the need to litter your source with | |
10417 | puts statements, instead providing a more readable, expressive interface to | |
10418 | your application.") | |
10419 | (license license:asl2.0))) | |
f22c0387 JL |
10420 | |
10421 | (define-public ruby-command-line-reporter-3 | |
10422 | (package | |
10423 | (inherit ruby-command-line-reporter) | |
10424 | (version "3.3.6") | |
10425 | (source (origin | |
10426 | (method url-fetch) | |
10427 | (uri (rubygems-uri "command_line_reporter" version)) | |
10428 | (sha256 | |
10429 | (base32 | |
10430 | "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71")))))) | |
6bba8ecf | 10431 | |
439d47cd MC |
10432 | (define-public ruby-kpeg |
10433 | (package | |
10434 | (name "ruby-kpeg") | |
10435 | (version "1.1.0") | |
10436 | (source | |
10437 | (origin | |
10438 | (method url-fetch) | |
10439 | (uri (rubygems-uri "kpeg" version)) | |
10440 | (sha256 | |
10441 | (base32 | |
10442 | "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia")))) | |
10443 | (build-system ruby-build-system) | |
10444 | (native-inputs | |
10445 | `(("ruby-hoe" ,ruby-hoe))) | |
10446 | (synopsis "PEG library for Ruby") | |
10447 | (description "KPeg is a simple PEG library for Ruby. It provides an API as | |
10448 | well as native grammar to build the grammar. KPeg supports direct left | |
10449 | recursion of rules via the | |
10450 | @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization} | |
10451 | technique.") | |
10452 | (home-page "https://github.com/evanphx/kpeg") | |
10453 | (license license:expat))) | |
10454 | ||
6bba8ecf JL |
10455 | (define-public ruby-rdoc |
10456 | (package | |
10457 | (name "ruby-rdoc") | |
9304f989 | 10458 | (version "6.2.0") |
6bba8ecf | 10459 | (source |
9304f989 MC |
10460 | (origin |
10461 | (method git-fetch) | |
10462 | (uri (git-reference | |
b0e7b699 | 10463 | (url "https://github.com/ruby/rdoc") |
9304f989 MC |
10464 | (commit (string-append "v" version)))) |
10465 | (file-name (git-file-name name version)) | |
10466 | (sha256 | |
10467 | (base32 | |
10468 | "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6")))) | |
6bba8ecf | 10469 | (build-system ruby-build-system) |
9304f989 MC |
10470 | (arguments |
10471 | `(#:phases | |
10472 | (modify-phases %standard-phases | |
10473 | (add-after 'unpack 'patch-gemspec | |
10474 | ;; TODO: Remove after next release is tagged. | |
10475 | (lambda _ | |
10476 | (substitute* "rdoc.gemspec" | |
10477 | (("\"lib/rdoc/generator/template/darkfish/js/\ | |
10478 | jquery\\.js\", ") "")) | |
10479 | #t)) | |
10480 | (add-before 'build 'generate | |
10481 | ;; 'gem build' doesn't honor Rakefile dependencies (see: | |
10482 | ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977). | |
10483 | (lambda _ | |
10484 | (invoke "rake" "generate")))))) | |
6bba8ecf | 10485 | (native-inputs |
9304f989 MC |
10486 | `(("bundler" ,bundler) |
10487 | ("ruby-kpeg" ,ruby-kpeg) | |
10488 | ("ruby-racc" ,ruby-racc) | |
10489 | ("ruby-rubocop" ,ruby-rubocop))) | |
6bba8ecf JL |
10490 | (home-page "https://ruby.github.io/rdoc/") |
10491 | (synopsis "HTML and command-line documentation utility") | |
10492 | (description "RDoc produces HTML and command-line documentation for Ruby | |
10493 | projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying | |
10494 | documentation from the command-line.") | |
10495 | (license license:gpl2+))) | |
18077ffc JL |
10496 | |
10497 | (define-public ruby-sass-listen | |
10498 | (package | |
10499 | (name "ruby-sass-listen") | |
10500 | (version "4.0.0") | |
10501 | (source (origin | |
10502 | (method url-fetch) | |
10503 | (uri (rubygems-uri "sass-listen" version)) | |
10504 | (sha256 | |
10505 | (base32 | |
10506 | "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df")))) | |
10507 | (build-system ruby-build-system) | |
10508 | (arguments | |
10509 | ;; No test target | |
10510 | `(#:tests? #f)) | |
10511 | (propagated-inputs | |
10512 | `(("ruby-rb-fsevent" ,ruby-rb-fsevent) | |
10513 | ("ruby-rb-inotify" ,ruby-rb-inotify))) | |
10514 | (home-page "https://github.com/sass/listen") | |
10515 | (synopsis "File modification notification library") | |
10516 | (description "The Listen gem listens to file modifications and notifies you | |
10517 | about the changes.") | |
10518 | (license license:expat))) | |
0c8eedc1 JL |
10519 | |
10520 | (define-public ruby-terminfo | |
10521 | (package | |
10522 | (name "ruby-terminfo") | |
10523 | (version "0.1.1") | |
10524 | (source | |
10525 | (origin | |
10526 | (method url-fetch) | |
10527 | (uri (rubygems-uri "ruby-terminfo" version)) | |
10528 | (sha256 | |
10529 | (base32 | |
10530 | "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm")))) | |
10531 | (build-system ruby-build-system) | |
10532 | (arguments | |
10533 | `(#:test-target "test" | |
10534 | ;; Rakefile requires old packages and would need modification to | |
10535 | ;; work with current software. | |
10536 | #:tests? #f)) | |
10537 | (inputs | |
10538 | `(("ncurses" ,ncurses))) | |
10539 | (native-inputs | |
10540 | `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks) | |
10541 | ("ruby-rdoc" ,ruby-rdoc))) | |
10542 | (home-page "http://www.a-k-r.org/ruby-terminfo/") | |
10543 | (synopsis "Terminfo binding for Ruby") | |
10544 | (description "Ruby-terminfo provides terminfo binding for Ruby.") | |
10545 | (license license:bsd-3))) | |
ddc3a667 JL |
10546 | |
10547 | (define-public ruby-diffy | |
10548 | (package | |
10549 | (name "ruby-diffy") | |
10550 | (version "3.2.1") | |
10551 | (source | |
10552 | (origin | |
10553 | (method url-fetch) | |
10554 | (uri (rubygems-uri "diffy" version)) | |
10555 | (sha256 | |
10556 | (base32 | |
10557 | "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg")))) | |
10558 | (build-system ruby-build-system) | |
10559 | (arguments | |
10560 | ;; No tests | |
10561 | `(#:tests? #f)) | |
10562 | (native-inputs | |
10563 | `(("ruby-rspec" ,ruby-rspec))) | |
10564 | (home-page "https://github.com/samg/diffy") | |
10565 | (synopsis "Convenient diffing in ruby") | |
10566 | (description "Diffy provides a convenient way to generate a diff from two | |
10567 | strings or files.") | |
10568 | (license license:expat))) | |
6456beef JL |
10569 | |
10570 | (define-public ruby-sass-spec | |
10571 | (package | |
10572 | (name "ruby-sass-spec") | |
10573 | (version "3.5.4") | |
11df8321 TGR |
10574 | (source |
10575 | (origin | |
10576 | (method git-fetch) | |
10577 | (uri (git-reference | |
b0e7b699 | 10578 | (url "https://github.com/sass/sass-spec") |
11df8321 TGR |
10579 | (commit (string-append "v" version)))) |
10580 | (file-name (git-file-name name version)) | |
10581 | (sha256 | |
10582 | (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr")))) | |
6456beef JL |
10583 | (build-system ruby-build-system) |
10584 | (propagated-inputs | |
10585 | `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3) | |
10586 | ("ruby-diffy" ,ruby-diffy) | |
10587 | ("ruby-terminfo" ,ruby-terminfo))) | |
10588 | (arguments | |
2c7cb711 CB |
10589 | `(;; This package contains tests for a sass implementation, and the to |
10590 | ;; avoid any circular dependencies, the tests are not run here | |
10591 | #:tests? #f | |
10592 | #:phases | |
10593 | (modify-phases %standard-phases | |
10594 | (add-after 'unpack 'patch-test | |
10595 | (lambda _ | |
10596 | (delete-file "spec/values/colors/alpha_hex-3.5/error") | |
10597 | (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css" | |
10598 | (("string") "color"))))))) | |
6456beef JL |
10599 | (home-page "https://github.com/sass/sass-spec") |
10600 | (synopsis "Test suite for Sass") | |
10601 | (description "Sass Spec is a test suite for Sass. Test cases are all in | |
10602 | the @file{spec} directory.") | |
10603 | (license license:expat))) | |
f00f4492 JL |
10604 | |
10605 | (define-public ruby-sass | |
10606 | (package | |
10607 | (name "ruby-sass") | |
11ff2adc | 10608 | (version "3.6.0") |
f00f4492 JL |
10609 | (source (origin |
10610 | (method url-fetch) | |
10611 | (uri (rubygems-uri "sass" version)) | |
10612 | (sha256 | |
10613 | (base32 | |
11ff2adc | 10614 | "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh")))) |
f00f4492 JL |
10615 | (build-system ruby-build-system) |
10616 | (propagated-inputs | |
10617 | `(("ruby-sass-listen" ,ruby-sass-listen))) | |
10618 | (native-inputs | |
11ff2adc CB |
10619 | `(("ruby-sass-spec" ,ruby-sass-spec) |
10620 | ("ruby-mathn" ,ruby-mathn))) | |
3497086b | 10621 | (home-page "https://sass-lang.com/") |
f00f4492 JL |
10622 | (synopsis "CSS extension language") |
10623 | (description "Sass is a CSS extension language. It extends CSS with | |
10624 | features that don't exist yet like variables, nesting, mixins and inheritance.") | |
10625 | (license license:expat))) | |
5e242cb4 | 10626 | |
9efc888d CB |
10627 | (define-public ruby-sassc |
10628 | (package | |
10629 | (name "ruby-sassc") | |
c7358514 | 10630 | (version "2.4.0") |
9efc888d CB |
10631 | (source |
10632 | (origin | |
10633 | (method url-fetch) | |
10634 | (uri (rubygems-uri "sassc" version)) | |
10635 | (sha256 | |
10636 | (base32 | |
c7358514 | 10637 | "0gpqv48xhl8mb8qqhcifcp0pixn206a7imc07g48armklfqa4q2c")))) |
9efc888d CB |
10638 | (build-system ruby-build-system) |
10639 | (arguments | |
3e776b44 CB |
10640 | '(#:modules ((guix build ruby-build-system) |
10641 | (guix build utils) | |
10642 | (ice-9 textual-ports)) | |
10643 | #:phases | |
9efc888d CB |
10644 | (modify-phases %standard-phases |
10645 | ;; TODO: This would be better as a snippet, but the ruby-build-system | |
10646 | ;; doesn't seem to support that | |
10647 | (add-after 'unpack 'remove-libsass | |
10648 | (lambda _ | |
10649 | (delete-file-recursively "ext") | |
3e776b44 CB |
10650 | (with-atomic-file-replacement "sassc.gemspec" |
10651 | (lambda (in out) | |
10652 | (let* ((gemspec (get-string-all in)) | |
10653 | (index (string-contains gemspec "libsass_dir"))) | |
10654 | (display (string-append | |
10655 | (string-take gemspec index) | |
10656 | "\nend\n") | |
10657 | out)))) | |
9efc888d CB |
10658 | #t)) |
10659 | (add-after 'unpack 'dont-check-the-libsass-version | |
10660 | (lambda _ | |
10661 | (substitute* "test/native_test.rb" | |
10662 | (("assert_equal.*Native\\.version") "")) | |
10663 | #t)) | |
10664 | (add-after 'unpack 'remove-git-from-gemspec | |
10665 | (lambda _ | |
10666 | (substitute* "sassc.gemspec" | |
3e776b44 | 10667 | (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")) |
9efc888d CB |
10668 | #t)) |
10669 | (add-after 'unpack 'remove-extensions-from-gemspec | |
10670 | (lambda _ | |
10671 | (substitute* "sassc.gemspec" | |
3e776b44 | 10672 | (("\\[\"ext/extconf.rb\"\\]") "[]")) |
9efc888d CB |
10673 | #t)) |
10674 | (add-after 'unpack 'fix-Rakefile | |
10675 | (lambda _ | |
10676 | (substitute* "Rakefile" | |
3e776b44 | 10677 | (("test: 'compile:libsass'") ":test")) |
9efc888d CB |
10678 | #t)) |
10679 | (add-after 'unpack 'remove-unnecessary-dependencies | |
10680 | (lambda _ | |
10681 | (substitute* "test/test_helper.rb" | |
10682 | (("require \"pry\"") "")) | |
10683 | #t)) | |
10684 | (add-before 'build 'patch-native.rb | |
10685 | (lambda* (#:key inputs #:allow-other-keys) | |
10686 | (substitute* "lib/sassc/native.rb" | |
10687 | ((".*gem_root = spec.gem_dir") "") | |
10688 | (("ffi_lib .*\n") | |
10689 | (string-append | |
10690 | "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'"))) | |
10691 | #t)) | |
10692 | ;; The gemspec still references the libsass files, so just keep the | |
10693 | ;; one in the gem. | |
10694 | (delete 'extract-gemspec)))) | |
10695 | (propagated-inputs | |
10696 | `(("ruby-ffi" ,ruby-ffi) | |
10697 | ("ruby-rake" ,ruby-rake))) | |
10698 | (inputs | |
10699 | `(("libsass" ,libsass))) | |
10700 | (native-inputs | |
10701 | `(("bundler" ,bundler) | |
3e776b44 | 10702 | ("ruby-rake-compiler" ,ruby-rake-compiler) |
9efc888d CB |
10703 | ("ruby-minitest-around" ,ruby-minitest-around) |
10704 | ("ruby-test-construct" ,ruby-test-construct))) | |
10705 | (synopsis "Use libsss from Ruby") | |
10706 | (description | |
10707 | "This library provides Ruby q@acronym{FFI, Foreign Function Interface} | |
10708 | bindings to the libsass library. This enables rendering | |
10709 | @acronym{SASS,Syntactically awesome style sheets} from Ruby code.") | |
10710 | (home-page "https://github.com/sass/sassc-ruby") | |
10711 | (license license:expat))) | |
10712 | ||
5e242cb4 JL |
10713 | (define-public ruby-jekyll-sass-converter |
10714 | (package | |
10715 | (name "ruby-jekyll-sass-converter") | |
d603db90 | 10716 | (version "2.1.0") |
5e242cb4 JL |
10717 | (source (origin |
10718 | (method url-fetch) | |
10719 | (uri (rubygems-uri "jekyll-sass-converter" version)) | |
10720 | (sha256 | |
10721 | (base32 | |
d603db90 | 10722 | "04ncr44wrilz26ayqwlg7379yjnkb29mvx4j04i62b7czmdrc9dv")))) |
5e242cb4 JL |
10723 | (build-system ruby-build-system) |
10724 | (propagated-inputs | |
10725 | `(("ruby-sass" ,ruby-sass))) | |
10726 | (arguments | |
10727 | ;; No rakefile | |
10728 | `(#:tests? #f)) | |
10729 | (home-page "https://github.com/jekyll/jekyll-sass-converter") | |
10730 | (synopsis "Sass converter for Jekyll") | |
10731 | (description "This gem provide built-in support for the Sass converter | |
10732 | in Jekyll.") | |
10733 | (license license:expat))) | |
ceac6f6f JL |
10734 | |
10735 | (define-public ruby-jekyll-watch | |
10736 | (package | |
10737 | (name "ruby-jekyll-watch") | |
6cbba8a3 | 10738 | (version "2.1.2") |
ceac6f6f JL |
10739 | (source (origin |
10740 | (method url-fetch) | |
10741 | (uri (rubygems-uri "jekyll-watch" version)) | |
10742 | (sha256 | |
10743 | (base32 | |
6cbba8a3 | 10744 | "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv")))) |
ceac6f6f JL |
10745 | (build-system ruby-build-system) |
10746 | (propagated-inputs | |
6cbba8a3 | 10747 | `(("ruby-listen" ,ruby-listen))) |
ceac6f6f JL |
10748 | (arguments |
10749 | ;; No rakefile | |
10750 | `(#:tests? #f)) | |
10751 | (home-page "https://github.com/jekyll/jekyll-watch") | |
10752 | (synopsis "Jekyll auto-rebuild support") | |
10753 | (description "This gems add the @code{--watch} switch to the jekyll CLI | |
10754 | interface. It allows Jekyll to rebuild your site when a file changes.") | |
10755 | (license license:expat))) | |
3224a5a8 JL |
10756 | |
10757 | (define-public ruby-parallel | |
10758 | (package | |
10759 | (name "ruby-parallel") | |
c41fba01 CB |
10760 | (version "1.13.0") |
10761 | (source | |
10762 | (origin | |
10763 | (method git-fetch) | |
10764 | (uri (git-reference | |
b0e7b699 | 10765 | (url "https://github.com/grosser/parallel") |
c41fba01 CB |
10766 | (commit (string-append "v" version)))) |
10767 | (file-name (git-file-name name version)) | |
10768 | (sha256 | |
10769 | (base32 | |
10770 | "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv")))) | |
3224a5a8 | 10771 | (build-system ruby-build-system) |
c41fba01 CB |
10772 | (arguments |
10773 | `(;; TODO 3 test failures | |
10774 | ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not | |
10775 | ;; open unnecessary pipes | |
10776 | ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with | |
10777 | ;; SQLite in processes | |
10778 | ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with | |
10779 | ;; SQLite in threads | |
10780 | #:tests? #f | |
10781 | #:test-target "rspec-rerun:spec" | |
10782 | #:phases | |
10783 | (modify-phases %standard-phases | |
10784 | (add-after 'unpack 'patch-Gemfile | |
10785 | (lambda _ | |
10786 | (substitute* "Gemfile" | |
10787 | (("gem 'rspec-legacy_formatters'") "") | |
10788 | (("gem 'activerecord.*$") "gem 'activerecord'\n")))) | |
10789 | (add-before 'check 'delete-Gemfile.lock | |
10790 | (lambda _ | |
10791 | ;; Bundler isn't being used for fetching dependendencies, so | |
10792 | ;; delete the Gemfile.lock | |
10793 | (delete-file "Gemfile.lock") | |
10794 | #t)) | |
10795 | (add-before 'build 'patch-gemspec | |
10796 | (lambda _ | |
10797 | (substitute* "parallel.gemspec" | |
10798 | (("git ls-files") "find")) | |
10799 | #t))))) | |
10800 | (native-inputs | |
10801 | `(("ruby-rspec" ,ruby-rspec) | |
10802 | ("ruby-rspec-rerun" ,ruby-rspec-rerun) | |
10803 | ("bundler" ,bundler) | |
10804 | ("ruby-activerecord" ,ruby-activerecord) | |
10805 | ("ruby-progressbar" ,ruby-progressbar) | |
10806 | ("ruby-bump" ,ruby-bump) | |
10807 | ("procps" ,procps) | |
10808 | ("lsof" ,lsof) | |
10809 | ("ruby-mysql2" ,ruby-mysql2) | |
10810 | ("ruby-sqlite3" ,ruby-sqlite3) | |
10811 | ("ruby-i18n" ,ruby-i18n))) | |
3224a5a8 JL |
10812 | (home-page "https://github.com/grosser/parallel") |
10813 | (synopsis "Parallel processing in Ruby") | |
10814 | (description "Parallel allows you to run any code in parallel Processes | |
10815 | (to use all CPUs) or Threads(to speedup blocking operations). It is best | |
10816 | suited for map-reduce or e.g. parallel downloads/uploads.") | |
10817 | (license license:expat))) | |
83d9f672 JL |
10818 | |
10819 | (define-public ruby-cane | |
10820 | (package | |
10821 | (name "ruby-cane") | |
10822 | (version "3.0.0") | |
10823 | (source (origin | |
10824 | (method url-fetch) | |
10825 | (uri (rubygems-uri "cane" version)) | |
10826 | (sha256 | |
10827 | (base32 | |
10828 | "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih")))) | |
10829 | (build-system ruby-build-system) | |
10830 | (arguments `(#:tests? #f)); No rakefile | |
10831 | (home-page "https://github.com/square/cane") | |
10832 | (propagated-inputs | |
10833 | `(("ruby-parallel" ,ruby-parallel))) | |
10834 | (synopsis "Code quality threshold checking") | |
10835 | (description "Cane fails your build if code quality thresholds are not met.") | |
10836 | (license license:asl2.0))) | |
00d71efc JL |
10837 | |
10838 | (define-public ruby-morecane | |
10839 | (package | |
10840 | (name "ruby-morecane") | |
10841 | (version "0.2.0") | |
10842 | (source (origin | |
10843 | (method url-fetch) | |
10844 | (uri (rubygems-uri "morecane" version)) | |
10845 | (sha256 | |
10846 | (base32 | |
10847 | "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771")))) | |
10848 | (build-system ruby-build-system) | |
10849 | (home-page "https://github.com/yob/morecane") | |
10850 | (arguments `(#:tests? #f)); No rakefile | |
10851 | (propagated-inputs | |
10852 | `(("ruby-parallel" ,ruby-parallel))) | |
10853 | (synopsis "Extra checks for cane") | |
10854 | (description "The cane gem provides a great framework for running quality | |
10855 | checks over your ruby project as part of continuous integration build. It | |
10856 | comes with a few checks out of the box, but also provides an API for loading | |
10857 | custom checks. This gem provides a set of additional checks.") | |
10858 | (license license:expat))) | |
abbe629c JL |
10859 | |
10860 | (define-public ruby-pdf-reader | |
10861 | (package | |
10862 | (name "ruby-pdf-reader") | |
b377dd95 | 10863 | (version "2.4.0") |
abbe629c | 10864 | (source (origin |
34796d7a MC |
10865 | (method git-fetch) ;no test in distributed gem archive |
10866 | (uri (git-reference | |
8ed4c468 | 10867 | (url "https://github.com/yob/pdf-reader") |
34796d7a MC |
10868 | (commit (string-append "v" version)))) |
10869 | (file-name (git-file-name name version)) | |
abbe629c JL |
10870 | (sha256 |
10871 | (base32 | |
34796d7a | 10872 | "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai")))) |
abbe629c | 10873 | (build-system ruby-build-system) |
34796d7a MC |
10874 | (arguments `(#:test-target "spec" |
10875 | #:phases (modify-phases %standard-phases | |
10876 | (add-after 'unpack 'do-not-use-bundler | |
10877 | (lambda _ | |
10878 | (substitute* "spec/spec_helper.rb" | |
10879 | ((".*[Bb]undler.*") "")) | |
10880 | #t))))) | |
abbe629c | 10881 | (native-inputs |
34796d7a | 10882 | `(("ruby-rspec" ,ruby-rspec) |
abbe629c JL |
10883 | ("ruby-cane" ,ruby-cane) |
10884 | ("ruby-morecane" ,ruby-morecane))) | |
10885 | (propagated-inputs | |
10886 | `(("ruby-afm" ,ruby-afm) | |
10887 | ("ruby-ascii85" ,ruby-ascii85) | |
10888 | ("ruby-hashery" ,ruby-hashery) | |
10889 | ("ruby-rc4" ,ruby-rc4) | |
10890 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
10891 | (home-page "https://github.com/yob/pdf-reader") | |
10892 | (synopsis "PDF parser in Ruby") | |
10893 | (description "The PDF::Reader library implements a PDF parser conforming as | |
10894 | much as possible to the PDF specification from Adobe. It provides programmatic | |
10895 | access to the contents of a PDF file with a high degree of flexibility.") | |
10896 | (license license:gpl3+))) | |
461fb859 JL |
10897 | |
10898 | (define-public ruby-pdf-inspector | |
ed2f26f8 MC |
10899 | (let ((revision "1") |
10900 | (commit "00ee4c92ff917118785ebec188e81effc968abeb")) | |
10901 | (package | |
10902 | (name "ruby-pdf-inspector") | |
10903 | (version (git-version "1.3.0" revision commit)) | |
10904 | (source (origin | |
10905 | (method git-fetch) | |
10906 | (uri (git-reference | |
8ed4c468 | 10907 | (url "https://github.com/prawnpdf/pdf-inspector") |
ed2f26f8 MC |
10908 | (commit commit))) |
10909 | (file-name (git-file-name name version)) | |
10910 | (sha256 | |
10911 | (base32 | |
10912 | "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m")))) | |
10913 | (build-system ruby-build-system) | |
10914 | (arguments | |
10915 | `(#:test-target "spec" | |
10916 | #:phases (modify-phases %standard-phases | |
10917 | (add-before 'build 'drop-signing-key-requirement | |
10918 | (lambda _ | |
10919 | (substitute* "pdf-inspector.gemspec" | |
10920 | (("spec.signing_key =.*") | |
10921 | "spec.signing_key = nil")) | |
10922 | #t)) | |
10923 | (replace 'check | |
10924 | (lambda _ | |
10925 | (substitute* "pdf-inspector.gemspec" | |
10926 | ((".*rubocop.*") "") | |
10927 | ((".*yard.*") "")) | |
10928 | (invoke "rspec")))))) | |
10929 | (native-inputs | |
10930 | `(("ruby-rspec" ,ruby-rspec))) | |
10931 | (propagated-inputs | |
10932 | `(("ruby-pdf-reader" ,ruby-pdf-reader))) | |
10933 | (home-page "https://github.com/prawnpdf/pdf-inspector") | |
10934 | (synopsis "Analysis classes for inspecting PDF output") | |
10935 | (description "This library provides a number of PDF::Reader based tools for | |
461fb859 JL |
10936 | use in testing PDF output. Presently, the primary purpose of this tool is to |
10937 | support the tests found in Prawn, a pure Ruby PDF generation library.") | |
ed2f26f8 | 10938 | (license %prawn-project-licenses)))) |
770e3b53 JL |
10939 | |
10940 | (define-public ruby-pdf-core | |
10941 | (package | |
10942 | (name "ruby-pdf-core") | |
10943 | (version "0.8.1") | |
10944 | (source (origin | |
10945 | (method url-fetch) | |
10946 | (uri (rubygems-uri "pdf-core" version)) | |
10947 | (sha256 | |
10948 | (base32 | |
10949 | "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg")))) | |
10950 | (build-system ruby-build-system) | |
10951 | (arguments | |
10952 | ; No test target | |
10953 | `(#:tests? #f)) | |
10954 | (home-page "https://github.com/prawnpdf/pdf-core") | |
10955 | (synopsis "Low level PDF features for Prawn") | |
10956 | (description "This is an experimental gem that extracts low-level PDF | |
10957 | functionality from Prawn.") | |
10958 | (license license:gpl3+))) | |
37fbced7 | 10959 | |
7ad8dd08 | 10960 | (define-public ruby-prawn |
e6c7a601 MC |
10961 | ;; There hasn't been a new release since 2017/03/17. |
10962 | (let ((revision "1") | |
10963 | (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1")) | |
10964 | (package | |
10965 | (name "ruby-prawn") | |
10966 | (version (git-version "2.2.2" revision commit)) | |
10967 | (source (origin | |
10968 | (method git-fetch) | |
10969 | (uri (git-reference | |
8ed4c468 | 10970 | (url "https://github.com/prawnpdf/prawn") |
e6c7a601 MC |
10971 | (commit commit))) |
10972 | (file-name (git-file-name name version)) | |
10973 | (sha256 | |
10974 | (base32 | |
10975 | "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr")))) | |
10976 | (build-system ruby-build-system) | |
10977 | (arguments | |
10978 | `(#:phases | |
10979 | (modify-phases %standard-phases | |
10980 | (add-before 'build 'drop-signing-key-requirement | |
10981 | (lambda _ | |
10982 | (substitute* "prawn.gemspec" | |
10983 | (("spec.signing_key =.*") | |
10984 | "spec.signing_key = nil")) | |
10985 | #t)) | |
10986 | (replace 'check | |
10987 | (lambda* (#:key tests? #:allow-other-keys) | |
10988 | (when tests? | |
10989 | ;; The Prawn manual test fails (see: | |
10990 | ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude | |
10991 | ;; it. | |
10992 | (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb")) | |
10993 | #t))))) | |
10994 | (propagated-inputs | |
10995 | `(("ruby-pdf-core" ,ruby-pdf-core) | |
10996 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
10997 | (native-inputs | |
10998 | `(("ruby-pdf-inspector" ,ruby-pdf-inspector) | |
10999 | ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder) | |
11000 | ("ruby-rspec" ,ruby-rspec) | |
11001 | ("ruby-simplecov" ,ruby-simplecov) | |
11002 | ("ruby-yard" ,ruby-yard))) | |
11003 | (home-page "https://prawnpdf.org/api-docs/2.0/") | |
11004 | (synopsis "PDF generation for Ruby") | |
11005 | (description "Prawn is a pure Ruby PDF generation library.") | |
11006 | (license %prawn-project-licenses)))) | |
197ca8ec JL |
11007 | |
11008 | (define-public ruby-prawn-table | |
11009 | (package | |
11010 | (name "ruby-prawn-table") | |
11011 | (version "0.2.2") | |
11012 | (source (origin | |
11013 | (method url-fetch) | |
11014 | (uri (rubygems-uri "prawn-table" version)) | |
11015 | (sha256 | |
11016 | (base32 | |
11017 | "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k")))) | |
11018 | (build-system ruby-build-system) | |
197ca8ec | 11019 | (propagated-inputs |
0927b039 CB |
11020 | `(("ruby-prawn" ,ruby-prawn) |
11021 | ("ruby-pdf-inspector" ,ruby-pdf-inspector))) | |
11022 | (native-inputs | |
11023 | `(("bundler" ,bundler) | |
11024 | ("ruby-yard" ,ruby-yard) | |
11025 | ("ruby-mocha" ,ruby-mocha) | |
11026 | ("ruby-coderay" ,ruby-coderay) | |
11027 | ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder) | |
11028 | ("ruby-simplecov" ,ruby-simplecov) | |
11029 | ("ruby-rspec-2" ,ruby-rspec-2))) | |
11030 | (arguments | |
11031 | '(;; TODO: 1 test fails | |
11032 | ;; Failure/Error: pdf.page_count.should == 1 | |
11033 | ;; expected: 1 | |
11034 | ;; got: 2 (using ==) | |
11035 | ;; # ./spec/table_spec.rb:1308 | |
11036 | ;; | |
11037 | ;; 225 examples, 1 failure | |
11038 | #:tests? #f | |
11039 | #:phases | |
11040 | (modify-phases %standard-phases | |
11041 | (add-before 'check 'patch-gemspec | |
11042 | (lambda _ | |
11043 | (substitute* "prawn-table.gemspec" | |
11044 | ;; Loosen the requirement for pdf-inspector | |
11045 | (("~> 1\\.1\\.0") ">= 0") | |
11046 | ;; Loosen the requirement for pdf-reader | |
11047 | (("~> 1\\.2") ">= 0")))) | |
11048 | (replace 'check | |
11049 | (lambda* (#:key tests? #:allow-other-keys) | |
11050 | (when tests? | |
11051 | (invoke "rspec")) | |
11052 | #t))))) | |
197ca8ec JL |
11053 | (home-page "https://github.com/prawnpdf/prawn-table") |
11054 | (synopsis "Tables support for Prawn") | |
11055 | (description "This gem provides tables support for Prawn.") | |
11056 | (license license:gpl3+))) | |
03127069 JL |
11057 | |
11058 | (define-public ruby-kramdown | |
11059 | (package | |
11060 | (name "ruby-kramdown") | |
2b5b7809 | 11061 | (version "2.3.0") |
03127069 JL |
11062 | (source (origin |
11063 | (method url-fetch) | |
11064 | (uri (rubygems-uri "kramdown" version)) | |
11065 | (sha256 | |
11066 | (base32 | |
2b5b7809 | 11067 | "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7")))) |
03127069 JL |
11068 | (build-system ruby-build-system) |
11069 | (arguments `(#:tests? #f)); FIXME: some test failures | |
11070 | (native-inputs | |
11071 | `(("ruby-prawn" ,ruby-prawn) | |
11072 | ("ruby-prawn-table" ,ruby-prawn-table))) | |
11073 | (home-page "https://kramdown.gettalong.org/") | |
11074 | (synopsis "Markdown parsing and converting library") | |
11075 | (description "Kramdown is a library for parsing and converting a superset | |
11076 | of Markdown. It is completely written in Ruby, supports standard Markdown | |
11077 | (with some minor modifications) and various extensions that have been made | |
11078 | popular by the PHP @code{Markdown Extra} package and @code{Maruku}.") | |
11079 | (license license:expat))) | |
fa0063bc | 11080 | |
e1cab74a MR |
11081 | (define-public ruby-kramdown-parser-gfm |
11082 | (package | |
11083 | (name "ruby-kramdown-parser-gfm") | |
11084 | (version "1.1.0") | |
11085 | (source | |
11086 | (origin | |
11087 | (method url-fetch) | |
11088 | (uri (rubygems-uri "kramdown-parser-gfm" version)) | |
11089 | (sha256 | |
11090 | (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv")))) | |
11091 | (build-system ruby-build-system) | |
11092 | (arguments | |
11093 | `(#:tests? #f)) ;no rakefile | |
11094 | (propagated-inputs | |
11095 | `(("ruby-kramdown" ,ruby-kramdown))) | |
11096 | (synopsis "Kramdown parser for the GFM dialect of Markdown") | |
11097 | (description | |
11098 | "This is a parser for kramdown that converts Markdown documents in the | |
11099 | GFM dialect to HTML.") | |
11100 | (home-page "https://github.com/kramdown/parser-gfm") | |
11101 | (license license:expat))) | |
11102 | ||
fa0063bc JL |
11103 | (define-public ruby-http-parser.rb |
11104 | (package | |
11105 | (name "ruby-http-parser.rb") | |
11106 | (version "0.6.0") | |
11107 | (source | |
11108 | (origin | |
11109 | (method url-fetch) | |
11110 | (uri (rubygems-uri "http_parser.rb" version)) | |
11111 | (sha256 | |
11112 | (base32 | |
11113 | "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi")))) | |
11114 | (build-system ruby-build-system) | |
11115 | (arguments | |
11116 | ;; No tests | |
11117 | `(#:tests? #f)) | |
11118 | (native-inputs | |
11119 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
11120 | ("ruby-rspec" ,ruby-rspec))) | |
11121 | (home-page "https://github.com/tmm1/http_parser.rb") | |
11122 | (synopsis "HTTP parser un Ruby") | |
11123 | (description "This gem is a simple callback-based HTTP request/response | |
11124 | parser for writing http servers, clients and proxies.") | |
11125 | (license license:expat))) | |
5e2f74bd JL |
11126 | |
11127 | (define-public ruby-em-websocket | |
11128 | (package | |
11129 | (name "ruby-em-websocket") | |
11130 | (version "0.5.1") | |
11131 | (source | |
11132 | (origin | |
11133 | (method url-fetch) | |
11134 | (uri (rubygems-uri "em-websocket" version)) | |
11135 | (sha256 | |
11136 | (base32 | |
11137 | "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3")))) | |
11138 | (build-system ruby-build-system) | |
11139 | (arguments | |
11140 | ;; No tests | |
11141 | `(#:tests? #f)) | |
11142 | (propagated-inputs | |
11143 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
11144 | ("ruby-http-parser.rb" ,ruby-http-parser.rb))) | |
11145 | (native-inputs | |
11146 | `(("bundler" ,bundler) | |
11147 | ("ruby-rspec" ,ruby-rspec))) | |
11148 | (home-page "https://github.com/igrigorik/em-websocket") | |
11149 | (synopsis "EventMachine based WebSocket server") | |
11150 | (description "Em-websocket is an EventMachine based WebSocket server | |
11151 | implementation.") | |
11152 | (license license:expat))) | |
4ce0414b JL |
11153 | |
11154 | (define-public ruby-rouge | |
11155 | (package | |
11156 | (name "ruby-rouge") | |
22d6b534 | 11157 | (version "3.21.0") |
4ce0414b JL |
11158 | (source (origin |
11159 | (method url-fetch) | |
11160 | (uri (rubygems-uri "rouge" version)) | |
11161 | (sha256 | |
11162 | (base32 | |
22d6b534 | 11163 | "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s")))) |
4ce0414b JL |
11164 | (build-system ruby-build-system) |
11165 | (arguments `(#:tests? #f)); No rakefile | |
11166 | (home-page "http://rouge.jneen.net/") | |
11167 | (synopsis "Code highlighter") | |
11168 | (description "Rouge is a code highlighter written in Ruby. It supports more | |
11169 | than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output | |
11170 | is compatible with stylesheets designed for pygments.") | |
11171 | (license (list | |
11172 | ;; rouge is licensed under expat | |
11173 | license:expat | |
11174 | ;; pygments is licensed under bsd-2 | |
11175 | license:bsd-2)))) | |
2c5028bd | 11176 | |
2e072e37 JL |
11177 | (define-public ruby-hashie |
11178 | (package | |
11179 | (name "ruby-hashie") | |
11180 | (version "3.6.0") | |
11181 | (source (origin | |
11182 | (method url-fetch) | |
11183 | (uri (rubygems-uri "hashie" version)) | |
11184 | (sha256 | |
11185 | (base32 | |
11186 | "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh")))) | |
11187 | (build-system ruby-build-system) | |
11188 | (native-inputs | |
11189 | `(("bundler" ,bundler))) | |
11190 | (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory | |
11191 | (home-page "https://github.com/intridea/hashie") | |
11192 | (synopsis "Extensions to Ruby Hashes") | |
11193 | (description "Hashie is a collection of classes and mixins that make Ruby | |
11194 | hashes more powerful.") | |
11195 | (license license:expat))) | |
73bfc125 JL |
11196 | |
11197 | (define-public ruby-heredoc-unindent | |
11198 | (package | |
11199 | (name "ruby-heredoc-unindent") | |
11200 | (version "1.2.0") | |
11201 | (source (origin | |
11202 | (method url-fetch) | |
11203 | (uri (rubygems-uri "heredoc_unindent" version)) | |
11204 | (sha256 | |
11205 | (base32 | |
11206 | "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw")))) | |
11207 | (build-system ruby-build-system) | |
11208 | (native-inputs | |
11209 | `(("ruby-hoe" ,ruby-hoe))) | |
11210 | (home-page "https://github.com/adrianomitre/heredoc_unindent") | |
11211 | (synopsis "Heredoc indentation cleaner") | |
11212 | (description "This gem removes common margin from indented strings, such | |
11213 | as the ones produced by indented heredocs. In other words, it strips out | |
4f66ae28 | 11214 | leading whitespace chars at the beginning of each line, but only as much as |
73bfc125 JL |
11215 | the line with the smallest margin. |
11216 | ||
11217 | It is acknowledged that many strings defined by heredocs are just code and | |
11218 | fact is that most parsers are insensitive to indentation. If, however, the | |
11219 | strings are to be used otherwise, be it for printing or testing, the extra | |
11220 | indentation will probably be an issue and hence this gem.") | |
11221 | (license license:expat))) | |
f8ae2ee5 JL |
11222 | |
11223 | (define-public ruby-safe-yaml | |
11224 | (package | |
11225 | (name "ruby-safe-yaml") | |
7fa83fa8 | 11226 | (version "1.0.5") |
28cf8dab CB |
11227 | (source |
11228 | (origin | |
28cf8dab CB |
11229 | (method git-fetch) |
11230 | (uri (git-reference | |
b0e7b699 | 11231 | (url "https://github.com/dtao/safe_yaml") |
28cf8dab CB |
11232 | (commit version))) |
11233 | (file-name (git-file-name name version)) | |
11234 | (sha256 | |
11235 | (base32 | |
7fa83fa8 | 11236 | "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg")))) |
f8ae2ee5 JL |
11237 | (build-system ruby-build-system) |
11238 | (native-inputs | |
11239 | `(("ruby-rspec" ,ruby-rspec) | |
11240 | ("ruby-hashie" ,ruby-hashie) | |
11241 | ("ruby-heredoc-unindent" ,ruby-heredoc-unindent))) | |
28cf8dab CB |
11242 | (arguments |
11243 | '(#:test-target "spec" | |
11244 | #:phases | |
11245 | (modify-phases %standard-phases | |
11246 | (add-before 'check 'set-TZ | |
11247 | (lambda _ | |
11248 | ;; This test is dependent on the timezone | |
11249 | ;; spec/transform/to_date_spec.rb:35 | |
11250 | ;; # SafeYAML::Transform::ToDate converts times to the local | |
11251 | ;; timezone | |
11252 | (setenv "TZ" "UTC-11") | |
11253 | #t))))) | |
f8ae2ee5 JL |
11254 | (home-page "https://github.com/dtao/safe_yaml") |
11255 | (synopsis "YAML parser") | |
11256 | (description "The SafeYAML gem provides an alternative implementation of | |
11257 | YAML.load suitable for accepting user input in Ruby applications.") | |
11258 | (license license:expat))) | |
f1ec4d76 JL |
11259 | |
11260 | (define-public ruby-mercenary | |
11261 | (package | |
11262 | (name "ruby-mercenary") | |
8367ab5d | 11263 | (version "0.4.0") |
f1ec4d76 JL |
11264 | (source (origin |
11265 | (method url-fetch) | |
11266 | (uri (rubygems-uri "mercenary" version)) | |
11267 | (sha256 | |
11268 | (base32 | |
8367ab5d | 11269 | "0f2i827w4lmsizrxixsrv2ssa3gk1b7lmqh8brk8ijmdb551wnmj")))) |
f1ec4d76 JL |
11270 | (build-system ruby-build-system) |
11271 | (arguments `(#:test-target "spec")) | |
11272 | (native-inputs | |
11273 | `(("bundler" ,bundler))) | |
11274 | (home-page "https://github.com/jekyll/mercenary") | |
11275 | (synopsis "Command-line apps library in Ruby") | |
11276 | (description "Mercenary is a lightweight and flexible library for writing | |
11277 | command-line apps in Ruby.") | |
11278 | (license license:expat))) | |
a13d451e JL |
11279 | |
11280 | (define-public ruby-liquid | |
11281 | (package | |
11282 | (name "ruby-liquid") | |
11283 | (version "4.0.0") | |
11284 | (source (origin | |
11285 | (method url-fetch) | |
11286 | (uri (rubygems-uri "liquid" version)) | |
11287 | (sha256 | |
11288 | (base32 | |
11289 | "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y")))) | |
11290 | (build-system ruby-build-system) | |
11291 | (arguments `(#:tests? #f)); No rakefile | |
11292 | (home-page "https://shopify.github.io/liquid/") | |
11293 | (synopsis "Template language") | |
11294 | (description "Liquid is a template language written in Ruby. It is used | |
11295 | to load dynamic content on storefronts.") | |
11296 | (license license:expat))) | |
49395112 JL |
11297 | |
11298 | (define-public ruby-forwardable-extended | |
11299 | (package | |
11300 | (name "ruby-forwardable-extended") | |
11301 | (version "2.6.0") | |
11302 | (source (origin | |
11303 | (method url-fetch) | |
11304 | (uri (rubygems-uri "forwardable-extended" version)) | |
11305 | (sha256 | |
11306 | (base32 | |
11307 | "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v")))) | |
11308 | (build-system ruby-build-system) | |
11309 | (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters | |
11310 | (home-page "https://github.com/envygeeks/forwardable-extended") | |
11311 | (synopsis "Delegation to hashes and instance variables in Forwardable") | |
11312 | (description "Forwardable Extended provides more @code{Forwardable} | |
11313 | methods for your source as @code{Forwardable::Extended}.") | |
11314 | (license license:expat))) | |
37296113 JL |
11315 | |
11316 | (define-public ruby-pathutil | |
11317 | (package | |
11318 | (name "ruby-pathutil") | |
feaaa603 | 11319 | (version "0.16.2") |
37296113 JL |
11320 | (source (origin |
11321 | (method url-fetch) | |
11322 | (uri (rubygems-uri "pathutil" version)) | |
11323 | (sha256 | |
11324 | (base32 | |
feaaa603 | 11325 | "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4")))) |
37296113 JL |
11326 | (build-system ruby-build-system) |
11327 | (propagated-inputs | |
11328 | `(("ruby-forwardable-extended" ,ruby-forwardable-extended))) | |
11329 | (native-inputs | |
11330 | `(("bundler" ,bundler) | |
11331 | ("ruby-rspec" ,ruby-rspec))) | |
11332 | ;; Fails with: cannot load such file -- | |
11333 | ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task | |
11334 | (arguments `(#:tests? #f)) | |
11335 | (home-page "https://github.com/envygeeks/pathutil") | |
11336 | (synopsis "Extended implementation of Pathname") | |
11337 | (description "Pathutil tries to be a faster pure Ruby implementation of | |
11338 | Pathname.") | |
11339 | (license license:expat))) | |
49e1dde5 | 11340 | |
d4be9f84 E |
11341 | (define-public ruby-terminal-table |
11342 | (package | |
11343 | (name "ruby-terminal-table") | |
11344 | (version "2.0.0") | |
11345 | (source | |
11346 | (origin | |
11347 | (method url-fetch) | |
11348 | (uri (rubygems-uri "terminal-table" version)) | |
11349 | (sha256 | |
11350 | (base32 | |
11351 | "18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh")))) | |
11352 | (arguments | |
11353 | '(#:phases | |
11354 | (modify-phases %standard-phases | |
11355 | (add-before 'check 'remove-gemfile-lock | |
11356 | (lambda _ | |
11357 | (delete-file "Gemfile.lock"))) | |
11358 | (add-before 'check 'remove-unnecessary-dependencies | |
11359 | (lambda _ | |
11360 | (substitute* "terminal-table.gemspec" | |
11361 | (("s.add_runtime_dependency.*") "\n") | |
11362 | (("s.add_development_dependency.*") "\n")) | |
11363 | (substitute* "Gemfile" | |
11364 | ((".*tins.*") "\n")))) | |
11365 | (replace 'check | |
11366 | (lambda* (#:key tests? #:allow-other-keys) | |
11367 | (when tests? | |
11368 | (invoke "rspec"))))))) | |
11369 | (build-system ruby-build-system) | |
11370 | (propagated-inputs | |
11371 | `(("ruby-unicode-display-width" ,ruby-unicode-display-width))) | |
11372 | (native-inputs | |
11373 | `(("ruby-rspec" ,ruby-rspec))) | |
11374 | (home-page "https://github.com/tj/terminal-table") | |
11375 | (synopsis "Simple, feature rich ASCII table generation library") | |
11376 | (description | |
11377 | "Terminal Table is a fast and simple, yet feature rich | |
11378 | table generator written in Ruby. It supports ASCII and | |
11379 | Unicode formatted tables.") | |
11380 | (license license:expat))) | |
11381 | ||
49e1dde5 JL |
11382 | (define-public jekyll |
11383 | (package | |
11384 | (name "jekyll") | |
53e2d815 | 11385 | (version "4.2.0") |
49e1dde5 JL |
11386 | (source (origin |
11387 | (method url-fetch) | |
11388 | (uri (rubygems-uri "jekyll" version)) | |
11389 | (sha256 | |
11390 | (base32 | |
53e2d815 | 11391 | "0cqkh78jw8scrajyx5nla0vwm9fvp2qql3kdcvvplcq9mazy8snq")))) |
49e1dde5 JL |
11392 | (build-system ruby-build-system) |
11393 | (arguments | |
fcf82fd3 | 11394 | ;; No rakefile, but a test subdirectory. |
49e1dde5 JL |
11395 | `(#:tests? #f |
11396 | #:phases | |
11397 | (modify-phases %standard-phases | |
11398 | (add-before 'build 'fix-i18n | |
11399 | (lambda _ | |
11400 | (substitute* ".gemspec" | |
b7e76699 MR |
11401 | (("~> 0.7") ">= 0.7") |
11402 | (("~> 1.14") ">= 1.14")) | |
49e1dde5 JL |
11403 | #t))))) |
11404 | (propagated-inputs | |
11405 | `(("ruby-addressable" ,ruby-addressable) | |
11406 | ("ruby-colorator" ,ruby-colorator) | |
11407 | ("ruby-em-websocket" ,ruby-em-websocket) | |
11408 | ("ruby-i18n" ,ruby-i18n) | |
11409 | ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter) | |
11410 | ("ruby-jekyll-watch" ,ruby-jekyll-watch) | |
7df90fd5 | 11411 | ("ruby-kramdown" ,ruby-kramdown-parser-gfm) |
49e1dde5 JL |
11412 | ("ruby-liquid" ,ruby-liquid) |
11413 | ("ruby-mercenary" ,ruby-mercenary) | |
11414 | ("ruby-pathutil" ,ruby-pathutil) | |
53e2d815 E |
11415 | ("ruby-rouge" ,ruby-rouge) |
11416 | ("ruby-safe-yaml" ,ruby-safe-yaml) | |
11417 | ("ruby-sassc" ,ruby-sassc) | |
11418 | ("ruby-terminal-table" ,ruby-terminal-table))) | |
49e1dde5 JL |
11419 | (home-page "https://jekyllrb.com/") |
11420 | (synopsis "Static site generator") | |
11421 | (description "Jekyll is a simple, blog aware, static site generator.") | |
11422 | (license license:expat))) | |
37a0f470 JL |
11423 | |
11424 | (define-public ruby-jekyll-paginate-v2 | |
11425 | (package | |
11426 | (name "ruby-jekyll-paginate-v2") | |
ed9142a6 | 11427 | (version "3.0.0") |
37a0f470 JL |
11428 | (source (origin |
11429 | (method url-fetch) | |
11430 | (uri (rubygems-uri "jekyll-paginate-v2" version)) | |
11431 | (sha256 | |
11432 | (base32 | |
ed9142a6 | 11433 | "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0")))) |
37a0f470 JL |
11434 | (build-system ruby-build-system) |
11435 | (propagated-inputs | |
11436 | `(("jekyll" ,jekyll))) | |
11437 | (home-page "https://github.com/sverrirs/jekyll-paginate-v2") | |
11438 | (synopsis "Pagination Generator for Jekyll 3") | |
11439 | (description "The Pagination Generator forms the core of the pagination | |
11440 | logic in Jekyll. It calculates and generates the pagination pages.") | |
11441 | (license license:expat))) | |
909eae21 CB |
11442 | |
11443 | (define-public ruby-faraday | |
11444 | (package | |
11445 | (name "ruby-faraday") | |
11446 | (version "0.15.4") | |
11447 | (source | |
11448 | (origin | |
11449 | (method url-fetch) | |
11450 | (uri (rubygems-uri "faraday" version)) | |
11451 | (sha256 | |
11452 | (base32 | |
11453 | "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0")))) | |
11454 | (build-system ruby-build-system) | |
11455 | (arguments | |
11456 | '(#:tests? #f)) | |
11457 | (propagated-inputs | |
11458 | `(("ruby-multipart-post" ,ruby-multipart-post))) | |
11459 | (synopsis "Ruby HTTP/REST API client library") | |
11460 | (description | |
11461 | "Faraday is a HTTP/REST API client library which provides a common | |
11462 | interface over different adapters.") | |
11463 | (home-page "https://github.com/lostisland/faraday") | |
11464 | (license license:expat))) | |
a058cbfd CB |
11465 | |
11466 | (define-public ruby-nio4r | |
11467 | (package | |
11468 | (name "ruby-nio4r") | |
7923b9bf | 11469 | (version "2.5.2") |
a058cbfd CB |
11470 | (source |
11471 | (origin | |
11472 | (method url-fetch) | |
11473 | (uri (rubygems-uri "nio4r" version)) | |
11474 | (sha256 | |
11475 | (base32 | |
7923b9bf | 11476 | "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c")))) |
a058cbfd CB |
11477 | (build-system ruby-build-system) |
11478 | (arguments | |
11479 | '(#:phases | |
11480 | (modify-phases %standard-phases | |
11481 | (add-after 'unpack 'remove-unnecessary-dependencies | |
11482 | (lambda _ | |
11483 | (substitute* "spec/spec_helper.rb" | |
11484 | ;; Coveralls is for uploading test coverage information to an | |
11485 | ;; online service, and thus unnecessary for building the Guix | |
11486 | ;; package | |
11487 | (("require \"coveralls\"") "") | |
11488 | (("Coveralls\\.wear!") "") | |
11489 | ;; Remove rspec/retry as we are not retrying the tests | |
11490 | (("require \"rspec/retry\"") "") | |
11491 | (("config\\.display_try_failure_messages = true") "") | |
11492 | (("config\\.verbose_retry = true") "")) | |
11493 | #t)) | |
11494 | (add-before 'check 'compile | |
11495 | (lambda _ | |
11496 | (invoke "rake" "compile") | |
11497 | #t)) | |
11498 | (replace 'check | |
11499 | (lambda* (#:key tests? #:allow-other-keys) | |
11500 | (when tests? | |
11501 | (invoke "rspec")) | |
11502 | #t))))) | |
11503 | (native-inputs | |
11504 | `(("bundler" ,bundler) | |
11505 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
11506 | ("ruby-rspec" ,ruby-rspec) | |
11507 | ("ruby-rubocop" ,ruby-rubocop))) | |
11508 | (synopsis "New I/O for Ruby") | |
11509 | (description | |
11510 | "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby | |
11511 | for scalable network clients and servers.") | |
11512 | (home-page "https://github.com/socketry/nio4r") | |
11513 | (license license:expat))) | |
f9da1ada CB |
11514 | |
11515 | (define-public ruby-globalid | |
11516 | (package | |
11517 | (name "ruby-globalid") | |
11518 | (version "0.4.2") | |
11519 | (source | |
11520 | (origin | |
11521 | (method url-fetch) | |
11522 | (uri (rubygems-uri "globalid" version)) | |
11523 | (sha256 | |
11524 | (base32 | |
11525 | "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1")))) | |
11526 | (build-system ruby-build-system) | |
11527 | (arguments | |
11528 | '(;; No included tests | |
11529 | #:tests? #f)) | |
11530 | (propagated-inputs | |
11531 | `(("ruby-activesupport" ,ruby-activesupport))) | |
11532 | (synopsis "Generate URIs idenfitying model instances in Ruby") | |
11533 | (description | |
11534 | "@code{GlobalID} provides a way to generate URIs from a model in Ruby that | |
11535 | uniquely identify it.") | |
11536 | (home-page "https://rubyonrails.org/") | |
11537 | (license license:expat))) | |
15606d98 CB |
11538 | |
11539 | (define-public ruby-sprockets | |
11540 | (package | |
11541 | (name "ruby-sprockets") | |
11542 | (version "3.7.2") | |
11543 | (source | |
11544 | (origin | |
11545 | (method url-fetch) | |
11546 | (uri (rubygems-uri "sprockets" version)) | |
11547 | (sha256 | |
11548 | (base32 | |
11549 | "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay")))) | |
11550 | (build-system ruby-build-system) | |
11551 | (arguments | |
11552 | '(;; No included tests | |
11553 | #:tests? #f)) | |
11554 | (propagated-inputs | |
11555 | `(("ruby-concurrent" ,ruby-concurrent) | |
11556 | ("ruby-rack" ,ruby-rack))) | |
11557 | (synopsis "Sprockets is a Rack-based asset packaging system") | |
11558 | (description | |
11559 | "Sprockets is a Rack-based asset packaging system that concatenates and | |
11560 | serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") | |
11561 | (home-page "https://github.com/rails/sprockets") | |
11562 | (license license:expat))) | |
acb9e3d8 | 11563 | |
49994222 NG |
11564 | (define-public ruby-mustache |
11565 | (package | |
11566 | (name "ruby-mustache") | |
11567 | (version "1.1.1") | |
11568 | (source | |
11569 | (origin | |
11570 | (method url-fetch) | |
11571 | (uri (rubygems-uri "mustache" version)) | |
11572 | (sha256 | |
11573 | (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch")))) | |
11574 | (build-system ruby-build-system) | |
11575 | (native-inputs | |
11576 | `(("ruby-simplecov" ,ruby-simplecov))) | |
11577 | (synopsis "framework-agnostic way to render logic-free views") | |
11578 | (description | |
11579 | "Mustache is a framework-agnostic way to render logic-free views. | |
11580 | Think of Mustache as a replacement for your views. Instead of views | |
11581 | consisting of ERB or HAML with random helpers and arbitrary logic, | |
11582 | your views are broken into two parts: a Ruby class and an HTML | |
11583 | template.") | |
11584 | (home-page "https://github.com/mustache/mustache") | |
11585 | (license license:expat))) | |
11586 | ||
acb9e3d8 PN |
11587 | (define-public ruby-mustermann |
11588 | (package | |
11589 | (name "ruby-mustermann") | |
11590 | (version "1.0.3") | |
11591 | (source | |
11592 | (origin | |
11593 | (method url-fetch) | |
11594 | (uri (rubygems-uri "mustermann" version)) | |
11595 | (sha256 | |
11596 | (base32 | |
11597 | "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1")))) | |
11598 | (build-system ruby-build-system) | |
11599 | (arguments | |
11600 | ;; No tests. | |
11601 | '(#:tests? #f)) | |
11602 | (synopsis "Library implementing patterns that behave like regular expressions") | |
11603 | (description "Given a string pattern, Mustermann will turn it into an | |
11604 | object that behaves like a regular expression and has comparable performance | |
11605 | characteristics.") | |
11606 | (home-page "https://github.com/sinatra/mustermann") | |
11607 | (license license:expat))) | |
3bb094e2 | 11608 | |
9539d6bd GL |
11609 | (define-public ruby-html-proofer |
11610 | (package | |
11611 | (name "ruby-html-proofer") | |
11612 | (version "3.18.5") | |
11613 | (source | |
11614 | (origin | |
11615 | (method git-fetch) | |
11616 | (uri (git-reference | |
11617 | (url "https://github.com/gjtorikian/html-proofer") | |
11618 | (commit (string-append "v" version)))) | |
11619 | (file-name (git-file-name name version)) | |
11620 | (sha256 | |
11621 | (base32 | |
11622 | "1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb")))) | |
11623 | (build-system ruby-build-system) | |
11624 | (arguments | |
11625 | `(;; FIXME: Tests depend on rubocop-standard. | |
11626 | #:tests? #f)) | |
11627 | (native-inputs | |
11628 | `(("ruby-awesome-print" ,ruby-awesome-print) | |
11629 | ("ruby-redcarpet" ,ruby-redcarpet) | |
11630 | ("ruby-rspec" ,ruby-rspec) | |
11631 | ("ruby-rubocop" ,ruby-rubocop) | |
11632 | ("ruby-rubocop-performance" ,ruby-rubocop-performance) | |
11633 | ("ruby-pry-byebug" ,ruby-pry-byebug))) | |
11634 | (propagated-inputs | |
11635 | `(("ruby-addressable" ,ruby-addressable) | |
11636 | ("ruby-mercenary" ,ruby-mercenary) | |
11637 | ("ruby-nokogumbo" ,ruby-nokogumbo) | |
11638 | ("ruby-parallel" ,ruby-parallel) | |
11639 | ("ruby-rainbow" ,ruby-rainbow) | |
11640 | ("ruby-typhoeus" ,ruby-typhoeus) | |
11641 | ("ruby-yell" ,ruby-yell))) | |
11642 | (synopsis "Test your rendered HTML files to make sure they're accurate") | |
11643 | (description | |
11644 | "HTMLProofer is a set of tests to validate your HTML output. These | |
11645 | tests check if your image references are legitimate, if they have alt tags, | |
11646 | if your internal links are working, and so on. It's intended to be an | |
11647 | all-in-one checker for your output.") | |
11648 | (home-page "https://github.com/gjtorikian/html-proofer") | |
11649 | (license license:expat))) | |
11650 | ||
7bddb6aa BL |
11651 | (define-public ruby-htmlentities |
11652 | (package | |
11653 | (name "ruby-htmlentities") | |
11654 | (version "4.3.4") | |
11655 | (source | |
11656 | (origin | |
11657 | (method url-fetch) | |
11658 | (uri (rubygems-uri "htmlentities" version)) | |
11659 | (sha256 | |
11660 | (base32 | |
11661 | "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj")))) | |
11662 | (build-system ruby-build-system) | |
11663 | (arguments | |
11664 | `(#:phases | |
11665 | (modify-phases %standard-phases | |
11666 | (replace 'check | |
11667 | (lambda _ | |
11668 | (map (lambda (file) | |
11669 | (invoke "ruby" "-Itest" file)) | |
11670 | (find-files "./test" ".*_test\\.rb"))))))) | |
11671 | (synopsis "Encode and decode (X)HTML entities") | |
11672 | (description | |
11673 | "This package provides a module for encoding and decoding (X)HTML | |
11674 | entities.") | |
11675 | (home-page "https://github.com/threedaymonk/htmlentities") | |
11676 | (license license:expat))) | |
11677 | ||
3bb094e2 PN |
11678 | (define-public ruby-sinatra |
11679 | (package | |
11680 | (name "ruby-sinatra") | |
7af92924 | 11681 | (version "2.0.8.1") |
3bb094e2 PN |
11682 | (source |
11683 | (origin | |
11684 | (method url-fetch) | |
11685 | (uri (rubygems-uri "sinatra" version)) | |
11686 | (sha256 | |
11687 | (base32 | |
7af92924 | 11688 | "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q")))) |
3bb094e2 | 11689 | (build-system ruby-build-system) |
7af92924 MC |
11690 | (arguments |
11691 | `(#:phases | |
11692 | (modify-phases %standard-phases | |
11693 | ;; See: https://github.com/sinatra/sinatra/issues/1578. | |
11694 | (add-after 'extract-gemspec 'fix-slow-doc-generation | |
11695 | (lambda _ | |
11696 | (substitute* "sinatra.gemspec" | |
11697 | (("\"README.rdoc\"\\.freeze," all) | |
11698 | (string-append all " \"--exclude=.*\\.md\".freeze,"))) | |
11699 | #t))))) | |
3bb094e2 PN |
11700 | (propagated-inputs |
11701 | `(("ruby-mustermann" ,ruby-mustermann) | |
11702 | ("ruby-rack" ,ruby-rack) | |
11703 | ("ruby-rack-protection" ,ruby-rack-protection) | |
11704 | ("ruby-tilt" ,ruby-tilt))) | |
11705 | (synopsis "DSL for quick web applications creation in Ruby") | |
11706 | (description | |
11707 | "Sinatra is a DSL for quickly creating web applications in Ruby with | |
11708 | minimal effort.") | |
11709 | (home-page "http://sinatrarb.com/") | |
11710 | (license license:expat))) | |
6e87695b PN |
11711 | |
11712 | (define-public ruby-thin | |
11713 | (package | |
11714 | (name "ruby-thin") | |
11715 | (version "1.7.2") | |
11716 | (source | |
11717 | (origin | |
11718 | (method url-fetch) | |
11719 | (uri (rubygems-uri "thin" version)) | |
11720 | (sha256 | |
11721 | (base32 | |
11722 | "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f")))) | |
11723 | (build-system ruby-build-system) | |
11724 | (arguments | |
11725 | ;; No tests. | |
11726 | '(#:tests? #f)) | |
11727 | (propagated-inputs | |
11728 | `(("ruby-daemons" ,ruby-daemons) | |
11729 | ("ruby-eventmachine" ,ruby-eventmachine) | |
11730 | ("ruby-rack" ,ruby-rack))) | |
11731 | (synopsis "Thin and fast web server for Ruby") | |
11732 | (description "Thin is a Ruby web server that glues together 3 Ruby libraries: | |
11733 | @itemize | |
11734 | @item the Mongrel parser, | |
11735 | @item Event Machine, a network I/O library with high scalability, performance | |
11736 | and stability, | |
11737 | @item Rack, a minimal interface between webservers and Ruby frameworks. | |
11738 | @end itemize\n") | |
60783303 | 11739 | (home-page "https://github.com/macournoyer/thin") |
6e87695b | 11740 | (license license:ruby))) |
be6016db PN |
11741 | |
11742 | (define-public ruby-skinny | |
11743 | (package | |
11744 | (name "ruby-skinny") | |
11745 | (version "0.2.4") | |
11746 | (source | |
11747 | (origin | |
11748 | (method url-fetch) | |
11749 | (uri (rubygems-uri "skinny" version)) | |
11750 | (sha256 | |
11751 | (base32 | |
11752 | "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9")))) | |
11753 | (build-system ruby-build-system) | |
11754 | (arguments | |
11755 | '(#:tests? #f ; No included tests | |
11756 | #:phases | |
11757 | (modify-phases %standard-phases | |
11758 | (add-before 'build 'patch-gemspec | |
11759 | (lambda _ | |
11760 | (substitute* ".gemspec" | |
11761 | (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"") | |
11762 | "<eventmachine>, [\">= 1.0.0\"") | |
11763 | (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, [")) | |
11764 | #t))))) | |
11765 | (propagated-inputs | |
11766 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
11767 | ("ruby-thin" ,ruby-thin))) | |
11768 | (synopsis "Simple, upgradable WebSockets for Ruby Thin") | |
11769 | (description "Skinny is a simple, upgradable WebSockets for Ruby, using | |
11770 | the Thin library.") | |
11771 | (home-page "https://github.com/sj26/skinny") | |
11772 | (license license:expat))) | |
df747c8d | 11773 | |
9c566d1b MB |
11774 | (define-public ruby-sys-filesystem |
11775 | (package | |
11776 | (name "ruby-sys-filesystem") | |
11777 | (version "1.3.4") | |
11778 | (source (origin | |
11779 | (method url-fetch) | |
11780 | (uri (rubygems-uri "sys-filesystem" version)) | |
11781 | (sha256 | |
11782 | (base32 | |
11783 | "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01")))) | |
11784 | (build-system ruby-build-system) | |
11785 | (arguments | |
11786 | '(#:phases (modify-phases %standard-phases | |
11787 | (add-before 'check 'set-HOME | |
11788 | (lambda _ | |
11789 | ;; Some tests attempt to stat $HOME. Let them. | |
11790 | (setenv "HOME" "/tmp") | |
11791 | #t))))) | |
11792 | (propagated-inputs | |
11793 | `(("ruby-ffi" ,ruby-ffi))) | |
11794 | (native-inputs | |
11795 | `(("ruby-mkmf-lite" ,ruby-mkmf-lite))) | |
11796 | (synopsis "Gather file system information") | |
11797 | (description | |
11798 | "The @code{sys-filesystem} library provides a cross-platform interface | |
11799 | for gathering file system information, such as disk space and mount points.") | |
11800 | (home-page "https://github.com/djberg96/sys-filesystem") | |
11801 | (license license:asl2.0))) | |
11802 | ||
df747c8d PN |
11803 | (define-public mailcatcher |
11804 | (package | |
11805 | (name "mailcatcher") | |
11806 | (version "0.7.1") | |
11807 | (source | |
11808 | (origin | |
11809 | (method url-fetch) | |
11810 | (uri (rubygems-uri "mailcatcher" version)) | |
11811 | (sha256 | |
11812 | (base32 | |
11813 | "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n")))) | |
11814 | (build-system ruby-build-system) | |
11815 | (arguments | |
11816 | ;; Tests require web/assets which is not included in the output. We | |
11817 | ;; might be able to fix this by adding the Git repository to the GEM_PATH | |
11818 | ;; of the tests. See ruby-mysql2. | |
11819 | '(#:tests? #f | |
11820 | #:phases | |
11821 | (modify-phases %standard-phases | |
11822 | (add-before 'build 'patch-gemspec | |
11823 | (lambda _ | |
11824 | (substitute* ".gemspec" | |
11825 | (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1") | |
11826 | "<eventmachine>, [\">= 1.0.9.1") | |
11827 | (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5") | |
11828 | (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0") | |
11829 | (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2")) | |
11830 | #t)) | |
11831 | (add-before 'build 'loosen-dependency-contraint | |
11832 | (lambda _ | |
11833 | (substitute* "lib/mail_catcher.rb" | |
11834 | (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"") | |
11835 | (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"") | |
11836 | (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"") | |
11837 | (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")) | |
11838 | #t))))) | |
11839 | (inputs | |
11840 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
11841 | ("ruby-mail" ,ruby-mail) | |
11842 | ("ruby-rack" ,ruby-rack) | |
11843 | ("ruby-sinatra" ,ruby-sinatra) | |
11844 | ("ruby-skinny" ,ruby-skinny) | |
11845 | ("ruby-sqlite3" ,ruby-sqlite3) | |
11846 | ("ruby-thin" ,ruby-thin))) | |
11847 | (synopsis "SMTP server which catches messages to display them a browser") | |
11848 | (description | |
11849 | "MailCatcher runs a super simple SMTP server which catches any message | |
11850 | sent to it to display in a web interface. Run mailcatcher, set your favourite | |
11851 | app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, | |
11852 | then check out http://127.0.0.1:1080 to see the mail.") | |
11853 | (home-page "https://mailcatcher.me") | |
11854 | (license license:expat))) | |
fc4f7c45 MK |
11855 | |
11856 | (define-public ruby-backport | |
11857 | (package | |
11858 | (name "ruby-backport") | |
b62863b8 | 11859 | (version "1.1.2") |
fc4f7c45 MK |
11860 | (source |
11861 | (origin | |
b62863b8 | 11862 | ;; The gem does not include test code, so fetch from the Git repository. |
fc4f7c45 MK |
11863 | (method git-fetch) |
11864 | (uri (git-reference | |
b0e7b699 | 11865 | (url "https://github.com/castwide/backport") |
fc4f7c45 MK |
11866 | (commit (string-append "v" version)))) |
11867 | (file-name (git-file-name name version)) | |
11868 | (sha256 | |
b62863b8 | 11869 | (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2")))) |
fc4f7c45 MK |
11870 | (build-system ruby-build-system) |
11871 | (arguments | |
11872 | `(#:test-target "spec")) | |
11873 | (native-inputs | |
11874 | `(("bundler" ,bundler) | |
11875 | ("ruby-rspec" ,ruby-rspec))) | |
11876 | (inputs | |
11877 | `(("ruby-simplecov" ,ruby-simplecov))) | |
11878 | (synopsis "Pure Ruby library for event-driven IO") | |
11879 | (description | |
11880 | "This package provides a pure Ruby library for event-driven IO.") | |
11881 | (home-page "https://github.com/castwide/backport") | |
11882 | (license license:expat))) | |
369faa59 JL |
11883 | |
11884 | (define-public ruby-json-schema | |
11885 | (package | |
11886 | (name "ruby-json-schema") | |
11887 | (version "2.8.1") | |
11888 | (source | |
11889 | (origin | |
11890 | (method url-fetch) | |
11891 | (uri (rubygems-uri "json-schema" version)) | |
11892 | (sha256 | |
11893 | (base32 | |
11894 | "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5")))) | |
11895 | (build-system ruby-build-system) | |
11896 | (arguments | |
11897 | `(#:tests? #f ; no tests | |
11898 | #:phases | |
11899 | (modify-phases %standard-phases | |
11900 | (replace 'build | |
11901 | (lambda _ | |
11902 | (invoke "gem" "build" ".gemspec")))))) | |
11903 | (propagated-inputs | |
11904 | `(("ruby-addressable" ,ruby-addressable))) | |
11905 | (synopsis "Ruby JSON Schema Validator") | |
11906 | (description "This library provides Ruby with an interface for validating | |
11907 | JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy | |
11908 | support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1 | |
11909 | is also included.") | |
11910 | (home-page "https://github.com/ruby-json-schema/json-schema") | |
11911 | (license license:expat))) | |
44881cad JL |
11912 | |
11913 | (define-public swagger-diff | |
11914 | (package | |
11915 | (name "swagger-diff") | |
11916 | (version "1.1.2") | |
11917 | (source | |
11918 | (origin | |
11919 | (method url-fetch) | |
11920 | (uri (rubygems-uri "swagger-diff" version)) | |
11921 | (sha256 | |
11922 | (base32 | |
11923 | "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn")))) | |
11924 | (build-system ruby-build-system) | |
11925 | (arguments | |
11926 | `(#:test-target "spec" | |
11927 | #:phases | |
11928 | (modify-phases %standard-phases | |
11929 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
11930 | ;; bit unnecessary. | |
11931 | (add-after 'unpack 'dont-run-rubocop | |
11932 | (lambda _ | |
11933 | (substitute* "Rakefile" | |
11934 | ((".*rubocop.*") "") | |
11935 | ((".*RuboCop.*") "")) | |
11936 | #t))))) | |
11937 | (propagated-inputs | |
11938 | `(("ruby-json-schema" ,ruby-json-schema))) | |
11939 | (native-inputs | |
11940 | `(("bundler" ,bundler) | |
11941 | ("ruby-rspec-core" ,ruby-rspec-core) | |
11942 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
11943 | (synopsis | |
11944 | "Compare Open API Initiative specification files") | |
11945 | (description | |
11946 | "Swagger::Diff is a utility for comparing two different Open API | |
11947 | Initiative (OAI) specifications (formerly known as Swagger specifications). | |
11948 | It is intended to determine whether a newer API specification is | |
11949 | backwards-compatible with an older API specification.") | |
11950 | (home-page "https://github.com/civisanalytics/swagger-diff") | |
11951 | (license license:bsd-3))) | |
9e065a8a BL |
11952 | |
11953 | (define-public ruby-reverse-markdown | |
11954 | (package | |
11955 | (name "ruby-reverse-markdown") | |
11956 | (version "1.1.0") | |
11957 | (source | |
11958 | (origin | |
11959 | (method url-fetch) | |
11960 | (uri (rubygems-uri "reverse_markdown" version)) | |
11961 | (sha256 | |
11962 | (base32 | |
11963 | "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg")))) | |
11964 | (build-system ruby-build-system) | |
11965 | (propagated-inputs | |
11966 | `(("ruby-nokogiri" ,ruby-nokogiri))) | |
11967 | (native-inputs | |
11968 | `(("bundler" ,bundler) | |
11969 | ("ruby-rspec" ,ruby-rspec) | |
11970 | ("ruby-kramdown" ,ruby-kramdown) | |
11971 | ("ruby-simplecov" ,ruby-simplecov))) | |
11972 | (arguments | |
11973 | `(#:phases | |
11974 | (modify-phases %standard-phases | |
11975 | (replace 'check | |
11976 | (lambda* (#:key tests? #:allow-other-keys) | |
11977 | (when tests? | |
11978 | (invoke "rspec")) | |
11979 | #t))))) | |
11980 | (synopsis "Convert HTML into Markdown") | |
11981 | (description | |
11982 | "This Ruby module allows you to map simple HTML back into | |
11983 | Markdown---e.g., if you want to import existing HTML data in your | |
11984 | application.") | |
11985 | (home-page "https://github.com/xijo/reverse_markdown") | |
11986 | (license license:wtfpl2))) | |
11987 | ||
a9e2de7e BL |
11988 | (define-public ruby-solargraph |
11989 | (package | |
11990 | (name "ruby-solargraph") | |
11991 | (version "0.36.0") | |
11992 | (source | |
11993 | (origin | |
11994 | (method url-fetch) | |
11995 | (uri (rubygems-uri "solargraph" version)) | |
11996 | (sha256 | |
11997 | (base32 | |
11998 | "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i")))) | |
11999 | (build-system ruby-build-system) | |
12000 | (propagated-inputs | |
12001 | `(("ruby-backport" ,ruby-backport) | |
12002 | ("bundler" ,bundler) | |
12003 | ("ruby-htmlentities" ,ruby-htmlentities) | |
12004 | ("ruby-jaro-winkler" ,ruby-jaro-winkler) | |
12005 | ("ruby-maruku" ,ruby-maruku) | |
12006 | ("ruby-nokogiri" ,ruby-nokogiri) | |
12007 | ("ruby-parser" ,ruby-parser) | |
12008 | ("ruby-reverse-markdown" ,ruby-reverse-markdown) | |
12009 | ("ruby-rubocop" ,ruby-rubocop) | |
12010 | ("ruby-thor" ,ruby-thor) | |
12011 | ("ruby-tilt" ,ruby-tilt) | |
12012 | ("ruby-yard" ,ruby-yard))) | |
12013 | (native-inputs | |
12014 | `(("ruby-rspec" ,ruby-rspec) | |
12015 | ("ruby-pry" ,ruby-pry) | |
12016 | ("ruby-simplecov" ,ruby-simplecov) | |
a4d61297 | 12017 | ("ruby-webmock" ,ruby-webmock))) |
a9e2de7e BL |
12018 | ;; FIXME: can't figure out how to run the tests properly: |
12019 | ||
12020 | ;; An error occurred while loading spec_helper. | |
12021 | ;; Failure/Error: return gem_original_require(path) | |
12022 | ;; LoadError: | |
12023 | ;; cannot load such file -- spec_helper | |
12024 | (arguments | |
12025 | '(#:tests? #f | |
12026 | #:phases | |
12027 | (modify-phases %standard-phases | |
12028 | (replace 'check | |
12029 | (lambda* (#:key tests? #:allow-other-keys) | |
12030 | (when tests? | |
12031 | (invoke "rspec")) | |
12032 | #t))))) | |
12033 | (synopsis | |
12034 | "IDE tools for code completion, inline documentation, and static analysis") | |
12035 | (description | |
12036 | "Solargraph provides a comprehensive suite of tools for Ruby | |
12037 | programming: intellisense, diagnostics, inline documentation, and type | |
12038 | checking.") | |
12039 | (home-page "https://solargraph.org/") | |
12040 | (license license:expat))) | |
0c558aa9 DNB |
12041 | |
12042 | (define-public ruby-wayback-machine-downloader | |
12043 | (package | |
12044 | (name "ruby-wayback-machine-downloader") | |
12045 | (version "2.2.1") | |
12046 | (source | |
12047 | (origin | |
12048 | (method url-fetch) | |
12049 | (uri (rubygems-uri | |
12050 | "wayback_machine_downloader" | |
12051 | version)) | |
12052 | (sha256 | |
12053 | (base32 | |
12054 | "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2")))) | |
12055 | (build-system ruby-build-system) | |
12056 | (arguments | |
12057 | '(#:tests? #f)) ; no tests | |
12058 | (synopsis "Download archived websites from the Wayback Machine") | |
12059 | (description | |
12060 | "Wayback Machine Downloader is a command line tool for downloading | |
12061 | websites from the Internet Archive's Wayback Machine (archive.org). | |
12062 | It allows fine grained control over what to download by specifying | |
12063 | which snapshots to consider and what files to include.") | |
12064 | (home-page | |
12065 | "https://github.com/hartator/wayback-machine-downloader") | |
12066 | (license license:expat))) | |
e6483f8c MB |
12067 | |
12068 | (define-public ruby-wwtd | |
12069 | (package | |
12070 | (name "ruby-wwtd") | |
12071 | (version "1.4.1") | |
702a1012 | 12072 | (home-page "https://github.com/grosser/wwtd") |
e6483f8c MB |
12073 | (source (origin |
12074 | (method git-fetch) | |
12075 | (uri (git-reference | |
12076 | (url home-page) | |
12077 | (commit (string-append "v" version)))) | |
12078 | (file-name (git-file-name name version)) | |
12079 | (sha256 | |
12080 | (base32 | |
12081 | "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2")) | |
12082 | (modules '((guix build utils))) | |
12083 | (snippet | |
12084 | '(begin | |
12085 | ;; Remove bundled library. | |
12086 | (delete-file "spec/rake-12.3.0.gem") | |
12087 | #t)))) | |
12088 | (build-system ruby-build-system) | |
12089 | (arguments | |
12090 | '(;; XXX: Tests need multiple versions of ruby, wants to run | |
12091 | ;; `bundle install`, etc. | |
12092 | #:tests? #f | |
12093 | #:phases (modify-phases %standard-phases | |
12094 | (replace 'replace-git-ls-files | |
12095 | (lambda _ | |
12096 | (substitute* "wwtd.gemspec" | |
12097 | (("git ls-files lib/ bin/`") | |
12098 | "find lib/ bin/ -type f |sort`")) | |
12099 | #t)) | |
12100 | (add-before 'check 'remove-version-constraints | |
12101 | (lambda _ | |
12102 | (delete-file "Gemfile.lock") | |
12103 | #t)) | |
12104 | (replace 'check | |
12105 | (lambda* (#:key tests? #:allow-other-keys) | |
12106 | (if tests? | |
12107 | (invoke "rspec" "spec/") | |
12108 | (format #t "test suite not run~%")) | |
12109 | #t))))) | |
12110 | (native-inputs | |
12111 | `(("ruby-bump" ,ruby-bump) | |
12112 | ("ruby-rspec" ,ruby-rspec))) | |
12113 | (synopsis "Run @file{.travis.yml} files locally") | |
12114 | (description | |
12115 | "WWTD is a @dfn{Travis Simulator} that lets you run test matrices | |
12116 | defined in @file{.travis.yml} on your local machine, using @code{rvm}, | |
12117 | @code{rbenv}, or @code{chruby} to test different versions of Ruby.") | |
12118 | (license license:expat))) | |
40afc2f4 HP |
12119 | |
12120 | (define-public ruby-rugged | |
12121 | (package | |
12122 | (name "ruby-rugged") | |
12123 | (version "1.1.0") | |
12124 | (home-page "https://www.rubydoc.info/gems/rugged") | |
12125 | (source | |
12126 | (origin | |
12127 | (method url-fetch) | |
12128 | (uri (rubygems-uri "rugged" version)) | |
12129 | (sha256 | |
12130 | (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy")))) | |
12131 | (build-system ruby-build-system) | |
12132 | (arguments | |
12133 | `(#:tests? #f | |
12134 | #:gem-flags (list "--" "--use-system-libraries"))) | |
12135 | (inputs | |
12136 | `(("libgit2" ,libgit2))) | |
12137 | (native-inputs | |
12138 | `(("ruby-minitest" ,ruby-minitest) | |
12139 | ("ruby-pry" ,ruby-pry) | |
12140 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
12141 | (synopsis "Ruby bindings to the libgit2 linkable C Git library") | |
12142 | (description "Rugged is a library for accessing libgit2 in Ruby. It gives | |
12143 | you the speed and portability of libgit2 with the beauty of the Ruby | |
12144 | language.") | |
12145 | (license license:expat))) | |
dbe02ce5 GL |
12146 | |
12147 | (define-public ruby-yell | |
12148 | (package | |
12149 | (name "ruby-yell") | |
12150 | (version "2.2.2") | |
12151 | (source | |
12152 | (origin | |
12153 | (method url-fetch) | |
12154 | (uri (rubygems-uri "yell" version)) | |
12155 | (sha256 | |
12156 | (base32 | |
12157 | "1g16kcdhdfvczn7x81jiq6afg3bdxmb73skqjyjlkp5nqcy6y5hx")))) | |
12158 | (build-system ruby-build-system) | |
12159 | (arguments | |
12160 | `(#:phases | |
12161 | (modify-phases %standard-phases | |
12162 | (replace 'check | |
12163 | (lambda _ | |
12164 | (invoke "rake" "examples")))))) ; there is no test target. | |
12165 | (synopsis | |
12166 | "Extensible logging library for Ruby") | |
12167 | (description | |
12168 | "Yell is a comprehensive logging replacement for Ruby. It defines | |
12169 | multiple adapters, various log level combinations and message formatting | |
12170 | options.") | |
12171 | (home-page "https://github.com/rudionrails/yell") | |
12172 | (license license:expat))) |