Commit | Line | Data |
---|---|---|
6ef8c59a | 1 | ;;; GNU Guix --- Functional package management for GNU |
37ab3aba | 2 | ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl> |
402b03e6 | 3 | ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> |
f586c877 | 4 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
37ab3aba | 5 | ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org> |
6742c6f6 | 6 | ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net> |
cba53c60 | 7 | ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com> |
3c986a7d | 8 | ;;; Copyright © 2017 Nikita <nikita@n0.is> |
3cc8e029 | 9 | ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com> |
b872b47b | 10 | ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
a7b7817d | 11 | ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
6a9d2266 | 12 | ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> |
433e3154 | 13 | ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net> |
4db80f8b | 14 | ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com> |
8ef06557 | 15 | ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com> |
3355e49c | 16 | ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz> |
fc4f7c45 | 17 | ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com> |
369faa59 | 18 | ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org> |
9e065a8a | 19 | ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com> |
9c4cb1ef | 20 | ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca> |
0c558aa9 | 21 | ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de> |
fd248cb8 | 22 | ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de> |
a8cdfd53 | 23 | ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
6ef8c59a PP |
24 | ;;; |
25 | ;;; This file is part of GNU Guix. | |
26 | ;;; | |
27 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
28 | ;;; under the terms of the GNU General Public License as published by | |
29 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
30 | ;;; your option) any later version. | |
31 | ;;; | |
32 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
33 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
34 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
35 | ;;; GNU General Public License for more details. | |
36 | ;;; | |
37 | ;;; You should have received a copy of the GNU General Public License | |
38 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
39 | ||
40 | (define-module (gnu packages ruby) | |
41 | #:use-module ((guix licenses) #:prefix license:) | |
42 | #:use-module (gnu packages) | |
1db791d5 | 43 | #:use-module (gnu packages base) |
933dad91 | 44 | #:use-module (gnu packages bison) |
24be6751 | 45 | #:use-module (gnu packages c) |
15b16c2c | 46 | #:use-module (gnu packages check) |
6ef8c59a | 47 | #:use-module (gnu packages compression) |
2a9ce5cb | 48 | #:use-module (gnu packages crypto) |
4a9e0585 | 49 | #:use-module (gnu packages databases) |
255d1bbe | 50 | #:use-module (gnu packages dbm) |
c41fba01 | 51 | #:use-module (gnu packages rails) |
6ef8c59a | 52 | #:use-module (gnu packages readline) |
6ef8c59a | 53 | #:use-module (gnu packages autotools) |
c84dd8d4 | 54 | #:use-module (gnu packages haskell-xyz) |
ad79eb55 | 55 | #:use-module (gnu packages java) |
6ef8c59a | 56 | #:use-module (gnu packages libffi) |
f3d7bb93 | 57 | #:use-module (gnu packages libidn) |
c41fba01 CB |
58 | #:use-module (gnu packages linux) |
59 | #:use-module (gnu packages lsof) | |
34138e42 | 60 | #:use-module (gnu packages maths) |
0c8eedc1 | 61 | #:use-module (gnu packages ncurses) |
fe5dd5f4 | 62 | #:use-module (gnu packages networking) |
3ca43524 | 63 | #:use-module (gnu packages node) |
dff5392f | 64 | #:use-module (gnu packages protobuf) |
ac09beba | 65 | #:use-module (gnu packages python) |
44d10b1f | 66 | #:use-module (gnu packages python-xyz) |
763624f5 | 67 | #:use-module (gnu packages ragel) |
30f08487 | 68 | #:use-module (gnu packages rsync) |
cd0322a3 | 69 | #:use-module (gnu packages sqlite) |
cc2b77df | 70 | #:use-module (gnu packages tls) |
66e20863 | 71 | #:use-module (gnu packages version-control) |
6ef8c59a PP |
72 | #:use-module (guix packages) |
73 | #:use-module (guix download) | |
bda0c139 | 74 | #:use-module (guix git-download) |
6ef8c59a | 75 | #:use-module (guix utils) |
acf735f2 | 76 | #:use-module (guix build-system gnu) |
e920bfca | 77 | #:use-module (gnu packages xml) |
c2c4e5b2 | 78 | #:use-module (gnu packages web) |
15b16c2c CB |
79 | #:use-module (guix build-system ruby) |
80 | #:use-module ((srfi srfi-1) #:select (alist-delete))) | |
6ef8c59a | 81 | |
9622928d MC |
82 | (define %prawn-project-licenses |
83 | ;; This set of licenses applies to most (all?) components of the Prawn | |
84 | ;; project (it is triple licensed). | |
85 | (list license:ruby | |
86 | license:gpl2+ | |
87 | license:gpl3+)) | |
88 | ||
6ef8c59a PP |
89 | (define-public ruby |
90 | (package | |
91 | (name "ruby") | |
4914c157 | 92 | (version "2.6.5") |
6ef8c59a PP |
93 | (source |
94 | (origin | |
95 | (method url-fetch) | |
6becfdff MW |
96 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" |
97 | (version-major+minor version) | |
12d39eb5 | 98 | "/ruby-" version ".tar.xz")) |
6ef8c59a PP |
99 | (sha256 |
100 | (base32 | |
4914c157 | 101 | "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm")) |
65e84e31 BW |
102 | (modules '((guix build utils))) |
103 | (snippet `(begin | |
104 | ;; Remove bundled libffi | |
c033c195 | 105 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") |
65e84e31 | 106 | #t)))) |
6ef8c59a PP |
107 | (build-system gnu-build-system) |
108 | (arguments | |
109 | `(#:test-target "test" | |
fd248cb8 | 110 | #:configure-flags '("--enable-shared") ; dynamic linking |
6ef8c59a | 111 | #:phases |
9656b8be | 112 | (modify-phases %standard-phases |
65e84e31 | 113 | (add-before 'configure 'replace-bin-sh-and-remove-libffi |
9656b8be BW |
114 | (lambda _ |
115 | (substitute* '("Makefile.in" | |
116 | "ext/pty/pty.c" | |
117 | "io.c" | |
118 | "lib/mkmf.rb" | |
119 | "process.c" | |
120 | "test/rubygems/test_gem_ext_configure_builder.rb" | |
121 | "test/rdoc/test_rdoc_parser.rb" | |
122 | "test/ruby/test_rubyoptions.rb" | |
123 | "test/ruby/test_process.rb" | |
124 | "test/ruby/test_system.rb" | |
125 | "tool/rbinstall.rb") | |
126 | (("/bin/sh") (which "sh"))) | |
127 | #t))))) | |
6ef8c59a PP |
128 | (inputs |
129 | `(("readline" ,readline) | |
6ef8c59a PP |
130 | ("openssl" ,openssl) |
131 | ("libffi" ,libffi) | |
4914c157 CB |
132 | ("gdbm" ,gdbm))) |
133 | (propagated-inputs | |
134 | `(("zlib" ,zlib))) | |
6ef8c59a PP |
135 | (native-search-paths |
136 | (list (search-path-specification | |
137 | (variable "GEM_PATH") | |
3cb3fa67 | 138 | (files (list (string-append "lib/ruby/vendor_ruby")))))) |
6becfdff | 139 | (synopsis "Programming language interpreter") |
6ef8c59a PP |
140 | (description "Ruby is a dynamic object-oriented programming language with |
141 | a focus on simplicity and productivity.") | |
bf3be6a5 | 142 | (home-page "https://www.ruby-lang.org") |
6ef8c59a PP |
143 | (license license:ruby))) |
144 | ||
1cc7d340 RP |
145 | (define-public ruby-2.7 |
146 | (package | |
147 | (inherit ruby) | |
148 | (version "2.7.1") | |
149 | (source | |
150 | (origin | |
151 | (method url-fetch) | |
152 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
153 | (version-major+minor version) | |
154 | "/ruby-" version ".tar.gz")) | |
155 | (sha256 | |
156 | (base32 | |
157 | "0674x98f542y02r7n2yv2qhmh97blqhi2mvh2dn5f000vlxlh66l")) | |
158 | (modules '((guix build utils))) | |
159 | (snippet `(begin | |
160 | ;; Remove bundled libffi | |
161 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
162 | #t)))) | |
163 | (arguments | |
164 | `(#:test-target "test" | |
165 | #:configure-flags '("--enable-shared") ; dynamic linking | |
166 | #:phases | |
167 | (modify-phases %standard-phases | |
168 | (add-before 'configure 'replace-bin-sh-and-remove-libffi | |
169 | (lambda _ | |
170 | (substitute* '("configure.ac" | |
171 | "template/Makefile.in" | |
172 | "lib/rubygems/installer.rb" | |
173 | "ext/pty/pty.c" | |
174 | "io.c" | |
175 | "lib/mkmf.rb" | |
176 | "process.c" | |
177 | "test/rubygems/test_gem_ext_configure_builder.rb" | |
178 | "test/rdoc/test_rdoc_parser.rb" | |
179 | "test/ruby/test_rubyoptions.rb" | |
180 | "test/ruby/test_process.rb" | |
181 | "test/ruby/test_system.rb" | |
182 | "tool/rbinstall.rb") | |
183 | (("/bin/sh") (which "sh"))) | |
184 | #t))))) | |
185 | (native-inputs | |
186 | `(("autoconf" ,autoconf))))) | |
187 | ||
227fab3e CB |
188 | (define-public ruby-2.5 |
189 | (package | |
190 | (inherit ruby) | |
a09ff632 | 191 | (version "2.5.8") |
227fab3e CB |
192 | (source |
193 | (origin | |
194 | (method url-fetch) | |
195 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
196 | (version-major+minor version) | |
197 | "/ruby-" version ".tar.xz")) | |
198 | (sha256 | |
199 | (base32 | |
a09ff632 | 200 | "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483")) |
227fab3e CB |
201 | (modules '((guix build utils))) |
202 | (snippet `(begin | |
203 | ;; Remove bundled libffi | |
204 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
205 | #t)))))) | |
206 | ||
93cae02f CB |
207 | (define-public ruby-2.4 |
208 | (package | |
209 | (inherit ruby) | |
dfe211f9 | 210 | (version "2.4.10") |
93cae02f CB |
211 | (source |
212 | (origin | |
213 | (method url-fetch) | |
214 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | |
215 | (version-major+minor version) | |
216 | "/ruby-" version ".tar.xz")) | |
217 | (sha256 | |
218 | (base32 | |
dfe211f9 | 219 | "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm")) |
93cae02f CB |
220 | (modules '((guix build utils))) |
221 | (snippet `(begin | |
222 | ;; Remove bundled libffi | |
223 | (delete-file-recursively "ext/fiddle/libffi-3.2.1") | |
224 | #t)))))) | |
225 | ||
933dad91 RW |
226 | (define-public mruby |
227 | (package | |
228 | (name "mruby") | |
229 | (version "2.0.0") | |
230 | (source | |
231 | (origin | |
232 | (method git-fetch) | |
233 | (uri (git-reference | |
b0e7b699 | 234 | (url "https://github.com/mruby/mruby") |
933dad91 RW |
235 | (commit version))) |
236 | (file-name (git-file-name name version)) | |
237 | (sha256 | |
238 | (base32 | |
239 | "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5")))) | |
240 | (build-system gnu-build-system) | |
241 | (arguments | |
242 | `(#:test-target "test" | |
243 | #:phases | |
244 | (modify-phases %standard-phases | |
245 | (delete 'configure) | |
246 | (add-after 'unpack 'enable-verbose-tests | |
247 | (lambda _ | |
248 | (substitute* "Makefile" | |
249 | (("ruby ./minirake" m) | |
250 | (string-append m " --verbose"))) | |
251 | #t)) | |
252 | (add-after 'unpack 'disable-broken-tests | |
253 | (lambda _ | |
254 | (substitute* "mrbgems/mruby-io/test/io.rb" | |
255 | (("assert\\('IO.popen.+$" m) | |
256 | (string-append m "skip \"Hangs in the Guix build environment\"\n")) | |
257 | (("assert\\('IO#isatty.+$" m) | |
258 | (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n")) | |
259 | ;; This one is really weird. The *expected* output is all wrong. | |
260 | (("assert\\('`cmd`.*" m) | |
261 | (string-append m "skip \"Disable for Guix\"\n")) | |
262 | (("echo foo") | |
263 | (string-append (which "echo") " foo"))) | |
264 | #t)) | |
265 | ;; There is no install target | |
266 | (replace 'install | |
267 | (lambda* (#:key outputs #:allow-other-keys) | |
268 | (let* ((out (assoc-ref outputs "out")) | |
269 | (bin (string-append out "/bin")) | |
270 | (lib (string-append out "/lib"))) | |
271 | (mkdir-p bin) | |
272 | (copy-recursively "build/host/bin" bin) | |
273 | (mkdir-p lib) | |
274 | (copy-recursively "build/host/lib" lib)) | |
275 | #t))))) | |
276 | (native-inputs | |
277 | `(("ruby" ,ruby) | |
278 | ("bison" ,bison))) | |
279 | (home-page "https://github.com/mruby/mruby") | |
280 | (synopsis "Lightweight Ruby") | |
281 | (description "mruby is the lightweight implementation of the Ruby | |
282 | language. Its syntax is Ruby 1.9 compatible. mruby can be linked and | |
283 | embedded within your application.") | |
284 | (license license:expat))) | |
285 | ||
34372d39 RW |
286 | (define-public ruby-commander |
287 | (package | |
288 | (name "ruby-commander") | |
289 | (version "4.4.7") | |
290 | (source | |
291 | (origin | |
292 | (method url-fetch) | |
293 | (uri (rubygems-uri "commander" version)) | |
294 | (sha256 | |
295 | (base32 | |
296 | "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg")))) | |
297 | (build-system ruby-build-system) | |
298 | (arguments | |
299 | `(#:test-target "spec" | |
300 | #:phases | |
301 | (modify-phases %standard-phases | |
302 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
303 | ;; bit unnecessary. | |
304 | (add-after 'unpack 'dont-run-rubocop | |
305 | (lambda _ | |
306 | (substitute* "Rakefile" | |
307 | ((".*rubocop.*") "") | |
308 | ((".*RuboCop.*") "")) | |
309 | #t))))) | |
310 | (propagated-inputs | |
311 | `(("ruby-highline" ,ruby-highline))) | |
312 | (native-inputs | |
313 | `(("bundler" ,bundler) | |
314 | ("ruby-rspec-core" ,ruby-rspec-core) | |
315 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
316 | ("ruby-rspec-mocks" ,ruby-rspec-mocks) | |
317 | ("ruby-simplecov" ,ruby-simplecov))) | |
318 | (home-page "https://github.com/commander-rb/commander") | |
319 | (synopsis "Library for building Ruby command-line executables") | |
320 | (description | |
321 | "Commander aims to be a complete solution for Ruby command-line | |
322 | executables. Commander bridges the gap between other terminal related | |
323 | libraries (OptionParser, HighLine), while providing many new features, and an | |
324 | elegant API.") | |
325 | (license license:expat))) | |
326 | ||
823ed097 CB |
327 | (define-public ruby-highline |
328 | (package | |
329 | (name "ruby-highline") | |
6742c6f6 | 330 | (version "2.0.1") |
823ed097 CB |
331 | (source |
332 | (origin | |
333 | (method url-fetch) | |
334 | (uri (rubygems-uri "highline" version)) | |
335 | (sha256 | |
336 | (base32 | |
6742c6f6 | 337 | "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc")))) |
823ed097 CB |
338 | (build-system ruby-build-system) |
339 | (arguments | |
340 | `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC | |
341 | (native-inputs | |
342 | `(("bundler" ,bundler) | |
343 | ("ruby-code-statistics" ,ruby-code-statistics))) | |
344 | (synopsis | |
345 | "HighLine helps you build command-line interfaces") | |
346 | (description | |
347 | "HighLine provides a high-level IO library that provides validation, | |
348 | type conversion, and more for command-line interfaces. HighLine also includes | |
349 | a menu system for providing multiple options to the user.") | |
350 | (home-page "https://github.com/JEG2/highline") | |
351 | (license (list license:gpl2 license:ruby)))) | |
352 | ||
bda0c139 DT |
353 | (define-public ruby-hoe |
354 | (package | |
355 | (name "ruby-hoe") | |
d0d2dd24 | 356 | (version "3.21.0") |
bda0c139 | 357 | (source (origin |
e83c6d00 DT |
358 | (method url-fetch) |
359 | (uri (rubygems-uri "hoe" version)) | |
bda0c139 DT |
360 | (sha256 |
361 | (base32 | |
d0d2dd24 | 362 | "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4")))) |
bda0c139 | 363 | (build-system ruby-build-system) |
d0d2dd24 CB |
364 | (arguments |
365 | '(#:phases | |
366 | (modify-phases %standard-phases | |
367 | ;; One of the tests fails if the SOURCE_DATE_EPOCH environment | |
368 | ;; variable is set, so unset it for the duration of the tests. | |
369 | ;; | |
370 | ;; TestHoe#test_possibly_better | |
371 | ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]: | |
372 | ;; Expected: 2019-11-12 00:00:00 UTC | |
373 | ;; Actual: 1970-01-01 00:00:00 UTC | |
374 | (add-before 'check 'unset-SOURCE-DATE-EPOCH | |
375 | (lambda _ | |
376 | (unsetenv "SOURCE_DATE_EPOCH") | |
377 | #t)) | |
378 | (add-after 'check 'set-SOURCE-DATE-EPOCH-again | |
379 | (lambda _ | |
380 | (setenv "SOURCE_DATE_EPOCH" "1") | |
381 | #t))))) | |
bda0c139 DT |
382 | (synopsis "Ruby project management helper") |
383 | (description | |
384 | "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage, | |
385 | maintain, and release projects and includes a dynamic plug-in system allowing | |
386 | for easy extensibility. Hoe ships with plug-ins for all the usual project | |
387 | tasks including rdoc generation, testing, packaging, deployment, and | |
388 | announcement.") | |
2f3800e5 | 389 | (home-page "https://www.zenspider.com/projects/hoe.html") |
bda0c139 DT |
390 | (license license:expat))) |
391 | ||
022170dc PP |
392 | (define-public ruby-rake-compiler |
393 | (package | |
394 | (name "ruby-rake-compiler") | |
7ac6bd00 | 395 | (version "1.1.0") |
022170dc PP |
396 | (source (origin |
397 | (method url-fetch) | |
e83c6d00 | 398 | (uri (rubygems-uri "rake-compiler" version)) |
022170dc PP |
399 | (sha256 |
400 | (base32 | |
7ac6bd00 | 401 | "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q")))) |
022170dc PP |
402 | (build-system ruby-build-system) |
403 | (arguments | |
e83c6d00 | 404 | '(#:tests? #f)) ; needs cucumber |
022170dc | 405 | (synopsis "Building and packaging helper for Ruby native extensions") |
e881752c | 406 | (description "Rake-compiler provides a framework for building and |
022170dc PP |
407 | packaging native C and Java extensions in Ruby.") |
408 | (home-page "https://github.com/rake-compiler/rake-compiler") | |
409 | (license license:expat))) | |
410 | ||
30f08487 RW |
411 | (define-public ruby-rsync |
412 | (package | |
413 | (name "ruby-rsync") | |
414 | (version "1.0.9") | |
415 | (source | |
416 | (origin | |
417 | (method url-fetch) | |
418 | (uri (rubygems-uri "rsync" version)) | |
419 | (sha256 | |
420 | (base32 | |
421 | "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv")))) | |
422 | (build-system ruby-build-system) | |
423 | (arguments | |
424 | '(#:test-target "spec" | |
425 | #:phases | |
426 | (modify-phases %standard-phases | |
427 | (add-after 'unpack 'remove-coveralls-requirement | |
428 | (lambda _ | |
429 | (substitute* "spec/spec_helper.rb" | |
430 | (("require 'coveralls'") "") | |
431 | (("Coveralls.wear!") "")) | |
432 | #t))))) | |
433 | (native-inputs | |
434 | `(("bundler" ,bundler) | |
435 | ("rsync" ,rsync) | |
436 | ("ruby-rspec-core" ,ruby-rspec-core) | |
437 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
438 | ("ruby-rspec-mocks" ,ruby-rspec-mocks))) | |
439 | (home-page "https://github.com/jbussdieker/ruby-rsync") | |
440 | (synopsis "Ruby wrapper around rsync") | |
441 | (description | |
442 | "Ruby Rsync is a Ruby library that can synchronize files between remote | |
443 | hosts by wrapping the @file{rsync} binary.") | |
444 | (license license:expat))) | |
445 | ||
acf735f2 DT |
446 | (define-public ruby-i18n |
447 | (package | |
448 | (name "ruby-i18n") | |
92dddf6b | 449 | (version "1.7.0") |
acf735f2 DT |
450 | (source (origin |
451 | (method url-fetch) | |
e83c6d00 | 452 | (uri (rubygems-uri "i18n" version)) |
acf735f2 DT |
453 | (sha256 |
454 | (base32 | |
92dddf6b | 455 | "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl")))) |
acf735f2 DT |
456 | (build-system ruby-build-system) |
457 | (arguments | |
0bfdfd37 | 458 | '(#:tests? #f)) ; no tests |
cbb50182 | 459 | (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent))) |
acf735f2 DT |
460 | (synopsis "Internationalization library for Ruby") |
461 | (description "Ruby i18n is an internationalization and localization | |
462 | solution for Ruby programs. It features translation and localization, | |
463 | interpolation of values to translations, pluralization, customizable | |
464 | transliteration to ASCII, flexible defaults, bulk lookup, lambdas as | |
465 | translation data, custom key/scope separator, custom exception handlers, and | |
466 | an extensible architecture with a swappable backend.") | |
92dddf6b | 467 | (home-page "https://github.com/ruby-i18n/i18n") |
acf735f2 | 468 | (license license:expat))) |
eb0c2dd6 | 469 | |
62b138ca CB |
470 | (define-public ruby-iruby |
471 | (package | |
472 | (name "ruby-iruby") | |
473 | (version "0.3") | |
474 | (source | |
475 | (origin | |
476 | (method url-fetch) | |
477 | (uri (rubygems-uri "iruby" version)) | |
478 | (sha256 | |
479 | (base32 | |
480 | "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn")))) | |
481 | (build-system ruby-build-system) | |
482 | (arguments | |
483 | ;; TODO: Tests currently fail. | |
484 | ;; | |
485 | ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s. | |
486 | ;; | |
487 | ;; 1) Failure: | |
488 | ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]: | |
489 | ;; In [ expected | |
490 | ;; | |
491 | ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips | |
492 | '(#:tests? #f | |
493 | #:phases | |
494 | (modify-phases %standard-phases | |
495 | (add-after 'unpack 'patch-ipython | |
496 | (lambda* (#:key inputs #:allow-other-keys) | |
497 | (substitute* "lib/iruby/command.rb" | |
498 | (("version = `") | |
499 | (string-append | |
500 | "version = `" | |
501 | (assoc-ref inputs "python-ipython") | |
502 | "/bin/")) | |
503 | (("Kernel\\.exec\\('") | |
504 | (string-append | |
505 | "Kernel.exec('" | |
506 | (assoc-ref inputs "python-ipython") | |
507 | "/bin/"))) | |
508 | #t))))) | |
509 | (inputs | |
510 | `(("python-ipython" ,python-ipython))) | |
511 | (propagated-inputs | |
512 | `(("ruby-bond" ,ruby-bond) | |
513 | ("ruby-data_uri" ,ruby-data_uri) | |
514 | ("ruby-mimemagic" ,ruby-mimemagic) | |
515 | ("ruby-multi-json" ,ruby-multi-json) | |
516 | ("ruby-cztop" ,ruby-cztop) | |
517 | ;; Optional inputs | |
518 | ("ruby-pry" ,ruby-pry))) | |
519 | (synopsis "Ruby kernel for Jupyter/IPython") | |
520 | (description | |
521 | "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g. | |
522 | notebook).") | |
523 | (home-page "https://github.com/SciRuby/iruby") | |
524 | (license license:expat))) | |
525 | ||
eb0c2dd6 DT |
526 | ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's |
527 | ;; dependencies use RSpec for their test suites! To avoid these circular | |
528 | ;; dependencies, we disable tests for all of the RSpec-related packages. | |
87688ff3 | 529 | (define-public ruby-rspec-support |
eb0c2dd6 DT |
530 | (package |
531 | (name "ruby-rspec-support") | |
bee67d18 | 532 | (version "3.8.0") |
eb0c2dd6 DT |
533 | (source (origin |
534 | (method url-fetch) | |
e83c6d00 | 535 | (uri (rubygems-uri "rspec-support" version)) |
eb0c2dd6 DT |
536 | (sha256 |
537 | (base32 | |
bee67d18 | 538 | "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609")))) |
eb0c2dd6 DT |
539 | (build-system ruby-build-system) |
540 | (arguments | |
541 | '(#:tests? #f)) ; avoid dependency cycles | |
542 | (synopsis "RSpec support library") | |
543 | (description "Support utilities for RSpec gems.") | |
544 | (home-page "https://github.com/rspec/rspec-support") | |
545 | (license license:expat))) | |
546 | ||
547 | (define-public ruby-rspec-core | |
548 | (package | |
549 | (name "ruby-rspec-core") | |
bee67d18 | 550 | (version "3.8.0") |
eb0c2dd6 DT |
551 | (source (origin |
552 | (method url-fetch) | |
e83c6d00 | 553 | (uri (rubygems-uri "rspec-core" version)) |
eb0c2dd6 DT |
554 | (sha256 |
555 | (base32 | |
bee67d18 | 556 | "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p")))) |
eb0c2dd6 DT |
557 | (build-system ruby-build-system) |
558 | (arguments | |
559 | '(#:tests? #f)) ; avoid dependency cycles | |
560 | (propagated-inputs | |
561 | `(("ruby-rspec-support" ,ruby-rspec-support))) | |
562 | (synopsis "RSpec core library") | |
563 | (description "Rspec-core provides the RSpec test runner and example | |
564 | groups.") | |
565 | (home-page "https://github.com/rspec/rspec-core") | |
566 | (license license:expat))) | |
e6962009 | 567 | |
64c318f2 BW |
568 | (define-public ruby-rspec-core-2 |
569 | (package (inherit ruby-rspec-core) | |
570 | (version "2.14.8") | |
571 | (source (origin | |
572 | (method url-fetch) | |
573 | (uri (rubygems-uri "rspec-core" version)) | |
574 | (sha256 | |
575 | (base32 | |
576 | "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc")))) | |
577 | (propagated-inputs `()))) | |
578 | ||
20c05ea9 | 579 | (define-public ruby-diff-lcs |
e6962009 DT |
580 | (package |
581 | (name "ruby-diff-lcs") | |
e2fcef39 | 582 | (version "1.3") |
e6962009 DT |
583 | (source (origin |
584 | (method url-fetch) | |
e83c6d00 | 585 | (uri (rubygems-uri "diff-lcs" version)) |
e6962009 DT |
586 | (sha256 |
587 | (base32 | |
e2fcef39 | 588 | "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza")))) |
e6962009 DT |
589 | (build-system ruby-build-system) |
590 | (arguments | |
591 | '(#:tests? #f)) ; avoid dependency cycles | |
592 | (synopsis "Compute the difference between two Enumerable sequences") | |
593 | (description "Diff::LCS computes the difference between two Enumerable | |
594 | sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm. | |
595 | It includes utilities to create a simple HTML diff output format and a | |
596 | standard diff-like tool.") | |
597 | (home-page "https://github.com/halostatue/diff-lcs") | |
598 | (license license:expat))) | |
599 | ||
600 | (define-public ruby-rspec-expectations | |
601 | (package | |
602 | (name "ruby-rspec-expectations") | |
bee67d18 | 603 | (version "3.8.2") |
e6962009 DT |
604 | (source (origin |
605 | (method url-fetch) | |
e83c6d00 | 606 | (uri (rubygems-uri "rspec-expectations" version)) |
e6962009 DT |
607 | (sha256 |
608 | (base32 | |
bee67d18 | 609 | "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm")))) |
e6962009 DT |
610 | (build-system ruby-build-system) |
611 | (arguments | |
612 | '(#:tests? #f)) ; avoid dependency cycles | |
613 | (propagated-inputs | |
614 | `(("ruby-rspec-support" ,ruby-rspec-support) | |
20c05ea9 | 615 | ("ruby-diff-lcs" ,ruby-diff-lcs))) |
e881752c | 616 | (synopsis "RSpec expectations library") |
e6962009 DT |
617 | (description "Rspec-expectations provides a simple API to express expected |
618 | outcomes of a code example.") | |
619 | (home-page "https://github.com/rspec/rspec-expectations") | |
620 | (license license:expat))) | |
4f2a0cac | 621 | |
fb157f25 BW |
622 | (define-public ruby-rspec-expectations-2 |
623 | (package (inherit ruby-rspec-expectations) | |
624 | (version "2.14.5") | |
625 | (source (origin | |
626 | (method url-fetch) | |
627 | (uri (rubygems-uri "rspec-expectations" version)) | |
628 | (sha256 | |
629 | (base32 | |
630 | "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9")))) | |
631 | (propagated-inputs | |
632 | `(("ruby-diff-lcs" ,ruby-diff-lcs))))) | |
633 | ||
999ffb26 DM |
634 | (define-public ruby-rspec-its |
635 | (package | |
636 | (name "ruby-rspec-its") | |
b2244c68 | 637 | (version "1.3.0") |
999ffb26 DM |
638 | (source |
639 | (origin | |
3306f02a CB |
640 | (method git-fetch) |
641 | (uri (git-reference | |
b0e7b699 | 642 | (url "https://github.com/rspec/rspec-its") |
3306f02a CB |
643 | (commit (string-append "v" version)))) |
644 | (file-name (git-file-name name version)) | |
999ffb26 DM |
645 | (sha256 |
646 | (base32 | |
b2244c68 | 647 | "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p")))) |
999ffb26 DM |
648 | (build-system ruby-build-system) |
649 | (arguments | |
3306f02a CB |
650 | `(#:test-target "spec" |
651 | #:phases | |
652 | (modify-phases %standard-phases | |
653 | (add-after 'unpack 'dont-install-gems-from-gemfile | |
654 | (lambda _ | |
655 | (substitute* "Gemfile" | |
656 | (("rspec rspec-core rspec-expectations rspec-mocks rspec-support") | |
657 | "")) | |
658 | #t)) | |
7c8eb479 | 659 | (add-before 'build 'loosen-ffi-requirement |
b2244c68 | 660 | (lambda _ |
7c8eb479 | 661 | ;; Accept any version of ruby-ffi. |
b2244c68 | 662 | (substitute* "Gemfile" |
7c8eb479 MB |
663 | ((" gem 'ffi', '~> 1\\.9\\.25'") |
664 | " gem 'ffi'")) | |
b2244c68 | 665 | #t)) |
3306f02a CB |
666 | (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile |
667 | (lambda _ | |
668 | (substitute* "rspec-its.gemspec" | |
669 | (("rake.*") "rake'\n") | |
b2244c68 BH |
670 | (("spec.add_development_dependency 'cucumber'.*") |
671 | "spec.add_development_dependency 'cucumber'\n") | |
3306f02a | 672 | (("bundler.*") "bundler'\n") |
b2244c68 | 673 | (("\"aruba.*") "'aruba'\n")) |
3306f02a | 674 | #t))))) |
999ffb26 DM |
675 | (propagated-inputs |
676 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
677 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
3306f02a CB |
678 | (native-inputs |
679 | `(("bundler" ,bundler) | |
680 | ("ruby-cucumber" ,ruby-cucumber) | |
b2244c68 | 681 | ("ruby-ffi" ,ruby-ffi) |
3306f02a CB |
682 | ("ruby-aruba" ,ruby-aruba))) |
683 | (synopsis "RSpec extension that provides the @code{its} method") | |
684 | (description | |
685 | "RSpec::Its provides the its method as a short-hand to specify the expected | |
686 | value of an attribute. For example, one can use @code{its(:size)\\{should | |
687 | eq(1)\\}}.") | |
999ffb26 DM |
688 | (home-page "https://github.com/rspec/rspec-its") |
689 | (license license:expat))) | |
690 | ||
d7bd7016 MC |
691 | ;;; This variant is used to break a cycle with ruby-protobuf. |
692 | (define-public ruby-rspec-its-minimal | |
693 | (hidden-package | |
694 | (package | |
695 | (inherit ruby-rspec-its) | |
696 | (arguments | |
697 | (substitute-keyword-arguments (package-arguments ruby-rspec-its) | |
698 | ((#:tests? _ #f) #f))) | |
699 | (native-inputs '())))) | |
700 | ||
4f2a0cac DT |
701 | (define-public ruby-rspec-mocks |
702 | (package | |
703 | (name "ruby-rspec-mocks") | |
bee67d18 | 704 | (version "3.8.0") |
4f2a0cac DT |
705 | (source (origin |
706 | (method url-fetch) | |
e83c6d00 | 707 | (uri (rubygems-uri "rspec-mocks" version)) |
4f2a0cac DT |
708 | (sha256 |
709 | (base32 | |
bee67d18 | 710 | "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp")))) |
4f2a0cac DT |
711 | (build-system ruby-build-system) |
712 | (arguments | |
713 | '(#:tests? #f)) ; avoid dependency cycles | |
714 | (propagated-inputs | |
715 | `(("ruby-rspec-support" ,ruby-rspec-support) | |
20c05ea9 | 716 | ("ruby-diff-lcs" ,ruby-diff-lcs))) |
4f2a0cac DT |
717 | (synopsis "RSpec stubbing and mocking library") |
718 | (description "Rspec-mocks provides RSpec's \"test double\" framework, with | |
719 | support for stubbing and mocking.") | |
720 | (home-page "https://github.com/rspec/rspec-mocks") | |
721 | (license license:expat))) | |
d4fde1f2 | 722 | |
6da9adeb BW |
723 | (define-public ruby-rspec-mocks-2 |
724 | (package (inherit ruby-rspec-mocks) | |
725 | (version "2.14.6") | |
726 | (source (origin | |
727 | (method url-fetch) | |
728 | (uri (rubygems-uri "rspec-mocks" version)) | |
729 | (sha256 | |
730 | (base32 | |
731 | "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30")))) | |
732 | (propagated-inputs | |
733 | `(("ruby-diff-lcs" ,ruby-diff-lcs))))) | |
734 | ||
198bc648 CB |
735 | (define-public ruby-rspec-rerun |
736 | (package | |
737 | (name "ruby-rspec-rerun") | |
738 | (version "1.1.0") | |
739 | (source | |
740 | (origin | |
741 | (method url-fetch) | |
742 | (uri (rubygems-uri "rspec-rerun" version)) | |
743 | (sha256 | |
744 | (base32 | |
745 | "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj")))) | |
746 | (build-system ruby-build-system) | |
747 | (arguments | |
748 | '(;; No included tests | |
749 | #:tests? #f)) | |
750 | (propagated-inputs `(("ruby-rspec" ,ruby-rspec))) | |
751 | (synopsis "Track failed RSpec tests to re-run them") | |
752 | (description | |
753 | "This package provides an automated way to track, and then re-run failed | |
754 | RSpec tests.") | |
755 | (home-page "https://github.com/dblock/rspec-rerun") | |
756 | (license license:expat))) | |
757 | ||
9c4cb1ef CD |
758 | (define-public ruby-rspec-wait |
759 | (package | |
760 | (name "ruby-rspec-wait") | |
761 | (version "0.0.9") | |
762 | (source | |
763 | (origin | |
764 | (method url-fetch) | |
765 | (uri (rubygems-uri "rspec-wait" version)) | |
766 | (sha256 | |
767 | (base32 | |
768 | "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww")))) | |
769 | (build-system ruby-build-system) | |
770 | (arguments | |
771 | '(#:phases | |
772 | (modify-phases %standard-phases | |
773 | (replace 'check | |
774 | (lambda _ | |
775 | (invoke "rake" "spec")))))) | |
776 | (native-inputs | |
777 | `(("bundler" ,bundler))) | |
778 | (propagated-inputs | |
779 | `(("ruby-rspec" ,ruby-rspec))) | |
780 | (home-page "https://github.com/laserlemon/rspec-wait") | |
781 | (synopsis "Wait for conditions in RSpec") | |
782 | (description | |
783 | "RSpec::Wait strives to make it easier to test asynchronous or slow | |
784 | interactions.") | |
785 | (license license:expat))) | |
786 | ||
d4fde1f2 DT |
787 | (define-public ruby-rspec |
788 | (package | |
789 | (name "ruby-rspec") | |
bee67d18 | 790 | (version "3.8.0") |
d4fde1f2 DT |
791 | (source (origin |
792 | (method url-fetch) | |
e83c6d00 | 793 | (uri (rubygems-uri "rspec" version)) |
d4fde1f2 DT |
794 | (sha256 |
795 | (base32 | |
bee67d18 | 796 | "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3")))) |
d4fde1f2 DT |
797 | (build-system ruby-build-system) |
798 | (arguments | |
799 | '(#:tests? #f)) ; avoid dependency cycles | |
800 | (propagated-inputs | |
801 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
802 | ("ruby-rspec-mocks" ,ruby-rspec-mocks) | |
803 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
804 | (synopsis "Behavior-driven development framework for Ruby") | |
805 | (description "RSpec is a behavior-driven development (BDD) framework for | |
806 | Ruby. This meta-package includes the RSpec test runner, along with the | |
807 | expectations and mocks frameworks.") | |
35739712 | 808 | (home-page "https://rspec.info/") |
d4fde1f2 | 809 | (license license:expat))) |
2cbc105b | 810 | |
5ac984b3 BW |
811 | (define-public ruby-rspec-2 |
812 | (package (inherit ruby-rspec) | |
813 | (version "2.14.1") | |
814 | (source (origin | |
815 | (method url-fetch) | |
816 | (uri (rubygems-uri "rspec" version)) | |
817 | (sha256 | |
818 | (base32 | |
819 | "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg")))) | |
820 | (propagated-inputs | |
821 | `(("ruby-rspec-core" ,ruby-rspec-core-2) | |
822 | ("ruby-rspec-mocks" ,ruby-rspec-mocks-2) | |
823 | ("ruby-rspec-expectations" ,ruby-rspec-expectations-2))))) | |
824 | ||
2cbc105b DT |
825 | ;; Bundler is yet another source of circular dependencies, so we must disable |
826 | ;; its test suite as well. | |
827 | (define-public bundler | |
828 | (package | |
829 | (name "bundler") | |
cbee8e31 | 830 | (version "2.1.4") |
2cbc105b DT |
831 | (source (origin |
832 | (method url-fetch) | |
e83c6d00 | 833 | (uri (rubygems-uri "bundler" version)) |
2cbc105b DT |
834 | (sha256 |
835 | (base32 | |
cbee8e31 | 836 | "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah")))) |
2cbc105b DT |
837 | (build-system ruby-build-system) |
838 | (arguments | |
839 | '(#:tests? #f)) ; avoid dependency cycles | |
840 | (synopsis "Ruby gem bundler") | |
841 | (description "Bundler automatically downloads and installs a list of gems | |
842 | specified in a \"Gemfile\", as well as their dependencies.") | |
2f3800e5 | 843 | (home-page "https://bundler.io/") |
2cbc105b | 844 | (license license:expat))) |
98b87b82 | 845 | |
cf36174f RW |
846 | (define-public ruby-builder |
847 | (package | |
848 | (name "ruby-builder") | |
42b48db2 | 849 | (version "3.2.3") |
cf36174f RW |
850 | (source (origin |
851 | (method url-fetch) | |
852 | (uri (rubygems-uri "builder" version)) | |
853 | (sha256 | |
854 | (base32 | |
42b48db2 | 855 | "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1")))) |
cf36174f RW |
856 | (build-system ruby-build-system) |
857 | (arguments | |
858 | `(#:phases | |
859 | (modify-phases %standard-phases | |
860 | (add-after 'unpack 'do-not-use-rvm | |
861 | (lambda _ | |
862 | (substitute* "rakelib/tags.rake" | |
863 | (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n")) | |
864 | #t))))) | |
865 | (synopsis "Ruby library to create structured data") | |
866 | (description "Builder provides a number of builder objects that make it | |
867 | easy to create structured data. Currently the following builder objects are | |
868 | supported: XML Markup and XML Events.") | |
869 | (home-page "https://github.com/jimweirich/builder") | |
870 | (license license:expat))) | |
871 | ||
566f71f8 CB |
872 | (define-public ruby-bump |
873 | (package | |
874 | (name "ruby-bump") | |
875 | (version "0.7.0") | |
876 | (source | |
877 | (origin | |
878 | (method url-fetch) | |
879 | (uri (rubygems-uri "bump" version)) | |
880 | (sha256 | |
881 | (base32 | |
882 | "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym")))) | |
883 | (build-system ruby-build-system) | |
884 | (arguments | |
885 | '(;; No included tests | |
886 | #:tests? #f)) | |
887 | (synopsis "Tool for working with Rubygems") | |
888 | (description | |
889 | "Bump provides commands to manage Rubygem versioning, updating to the | |
890 | next patch version for example.") | |
891 | (home-page "https://github.com/gregorym/bump") | |
892 | (license license:expat))) | |
893 | ||
ad79eb55 RW |
894 | (define-public ruby-rjb |
895 | (package | |
896 | (name "ruby-rjb") | |
aeb4e61e | 897 | (version "1.5.5") |
ad79eb55 RW |
898 | (source (origin |
899 | (method url-fetch) | |
900 | (uri (rubygems-uri "rjb" version)) | |
901 | (sha256 | |
902 | (base32 | |
aeb4e61e | 903 | "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca")))) |
ad79eb55 RW |
904 | (build-system ruby-build-system) |
905 | (arguments | |
906 | `(#:tests? #f ; no rakefile | |
907 | #:phases | |
908 | (modify-phases %standard-phases | |
909 | (add-before 'build 'set-java-home | |
910 | (lambda* (#:key inputs #:allow-other-keys) | |
911 | (setenv "JAVA_HOME" (assoc-ref inputs "jdk")) | |
912 | #t))))) | |
913 | (native-inputs | |
d2540f80 | 914 | `(("jdk" ,icedtea "jdk"))) |
ad79eb55 RW |
915 | (synopsis "Ruby-to-Java bridge using the Java Native Interface") |
916 | (description "RJB is a bridge program that connects Ruby and Java via the | |
917 | Java Native Interface.") | |
2f3800e5 | 918 | (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge") |
ad79eb55 RW |
919 | (license license:lgpl2.1+))) |
920 | ||
f9ae2c06 PP |
921 | (define-public ruby-log4r |
922 | (package | |
923 | (name "ruby-log4r") | |
924 | (version "1.1.10") | |
925 | (source | |
926 | (origin | |
927 | (method url-fetch) | |
928 | (uri (rubygems-uri "log4r" version)) | |
929 | (sha256 | |
930 | (base32 | |
931 | "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv")))) | |
932 | (build-system ruby-build-system) | |
933 | (arguments | |
934 | '(#:tests? #f)) ; no Rakefile in gem | |
935 | (synopsis "Flexible logging library for Ruby") | |
936 | (description "Comprehensive and flexible logging library written | |
937 | in Ruby for use in Ruby programs. It features a hierarchical logging | |
938 | system of any number of levels, custom level names, logger | |
939 | inheritance, multiple output destinations per log event, execution | |
940 | tracing, custom formatting, thread safteyness, XML and YAML | |
941 | configuration, and more.") | |
942 | (home-page "http://log4r.rubyforge.org/") | |
943 | (license license:bsd-3))) | |
944 | ||
71a03c29 RW |
945 | (define-public ruby-atoulme-antwrap |
946 | (package | |
947 | (name "ruby-atoulme-antwrap") | |
948 | (version "0.7.5") | |
949 | (source (origin | |
950 | (method url-fetch) | |
951 | (uri (rubygems-uri "atoulme-Antwrap" version)) | |
952 | (sha256 | |
953 | (base32 | |
954 | "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz")))) | |
955 | (build-system ruby-build-system) | |
956 | ;; Test data required for most of the tests are not included. | |
957 | (arguments `(#:tests? #f)) | |
958 | (native-inputs | |
959 | `(("ruby-hoe" ,ruby-hoe))) | |
960 | (inputs | |
961 | `(("ruby-rjb" ,ruby-rjb))) | |
962 | (synopsis "Ruby wrapper for the Ant build tool") | |
963 | (description "Antwrap is a Ruby module that wraps the Apache Ant build | |
964 | tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby | |
965 | script.") | |
966 | (home-page "http://rubyforge.org/projects/antwrap/") | |
967 | (license license:expat))) | |
968 | ||
fe1ddad5 RW |
969 | (define-public ruby-atoulme-saikuro |
970 | (package | |
971 | (name "ruby-atoulme-saikuro") | |
972 | (version "1.2.1") | |
973 | (source (origin | |
974 | (method url-fetch) | |
975 | (uri (rubygems-uri "atoulme-Saikuro" version)) | |
976 | (sha256 | |
977 | (base32 | |
978 | "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19")))) | |
979 | (build-system ruby-build-system) | |
980 | ;; FIXME: There are no unit tests. The tests are demonstrations of the | |
981 | ;; "saikuro" tool. | |
982 | (arguments `(#:tests? #f)) | |
983 | (synopsis "Cyclomatic complexity analyzer") | |
984 | (description "Saikuro is a Ruby cyclomatic complexity analyzer. When | |
985 | given Ruby source code Saikuro will generate a report listing the cyclomatic | |
986 | complexity of each method found. In addition, Saikuro counts the number of | |
987 | lines per method and can generate a listing of the number of tokens on each | |
988 | line of code.") | |
989 | (home-page "http://www.github.com/atoulme/Saikuro") | |
990 | ;; File headers contain the BSD-3 license and the README.rdoc says that | |
991 | ;; "Saikuro uses the BSD license", but the LICENSE file contains the text | |
992 | ;; of the Expat license. | |
993 | (license license:bsd-3))) | |
994 | ||
c84dd8d4 MC |
995 | (define-public ruby-pandoc-ruby |
996 | (package | |
997 | (name "ruby-pandoc-ruby") | |
998 | (version "2.1.4") | |
999 | (source | |
1000 | (origin | |
1001 | (method git-fetch) ;the gem lacks many test files | |
1002 | (uri (git-reference | |
b0e7b699 | 1003 | (url "https://github.com/xwmx/pandoc-ruby") |
c84dd8d4 MC |
1004 | (commit version))) |
1005 | (file-name (git-file-name name version)) | |
1006 | (sha256 | |
1007 | (base32 | |
1008 | "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935")))) | |
1009 | (build-system ruby-build-system) | |
1010 | (arguments | |
1011 | `(#:phases | |
1012 | (modify-phases %standard-phases | |
1013 | (add-after 'unpack 'disable-failing-tests | |
1014 | ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+ | |
1015 | ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39). | |
1016 | (lambda _ | |
1017 | (substitute* "test/test_conversions.rb" | |
1018 | (("next if from == to.*" all) | |
1019 | (string-append | |
1020 | all | |
1021 | " next if ['plain', 'beamer'].include? to\n"))) | |
1022 | #t)) | |
1023 | (add-after 'unpack 'patch-pandoc-path | |
1024 | (lambda* (#:key inputs #:allow-other-keys) | |
1025 | (let ((pandoc (string-append (assoc-ref inputs "ghc-pandoc") | |
1026 | "/bin/pandoc"))) | |
1027 | (substitute* "lib/pandoc-ruby.rb" | |
1028 | (("@@pandoc_path = 'pandoc'") | |
1029 | (format #f "@@pandoc_path = '~a'" pandoc))) | |
1030 | (substitute* "test/test_pandoc_ruby.rb" | |
1031 | (("('|\")pandoc" _ quote) | |
1032 | (string-append quote pandoc)) | |
1033 | (("\\^pandoc") | |
1034 | ".*pandoc")) | |
1035 | #t))) | |
1036 | (add-after 'extract-gemspec 'remove-Gemfile.lock | |
1037 | (lambda _ | |
1038 | (delete-file "Gemfile.lock") | |
1039 | (substitute* "pandoc-ruby.gemspec" | |
1040 | (("Gemfile\\.lock") "")) | |
1041 | #t))))) | |
1042 | (native-inputs | |
1043 | `(("ruby-mocha" ,ruby-mocha))) | |
1044 | (inputs | |
1045 | `(("ghc-pandoc" ,ghc-pandoc))) | |
1046 | (synopsis "Ruby wrapper for Pandoc") | |
1047 | (description "PandocRuby is a wrapper for Pandoc, a Haskell library with | |
1048 | command line tools for converting one markup format to another. Pandoc can | |
1049 | convert documents from a variety of formats including markdown, | |
1050 | reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a | |
1051 | variety of other formats, including markdown, reStructuredText, HTML, LaTeX, | |
1052 | ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki | |
1053 | markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and | |
1054 | more.") | |
1055 | (home-page "https://github.com/xwmx/pandoc-ruby") | |
1056 | (license license:expat))) | |
1057 | ||
fef0564c MC |
1058 | (define-public ruby-slim |
1059 | (package | |
1060 | (name "ruby-slim") | |
1061 | (version "4.1.0") | |
1062 | (source | |
1063 | (origin | |
1064 | (method url-fetch) | |
1065 | (uri (rubygems-uri "slim" version)) | |
1066 | (sha256 | |
1067 | (base32 | |
1068 | "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n")))) | |
1069 | (build-system ruby-build-system) | |
1070 | (arguments | |
1071 | `(#:phases | |
1072 | (modify-phases %standard-phases | |
1073 | ;; See: https://github.com/slim-template/slim/issues/857 and | |
1074 | ;; https://github.com/slim-template/slim/issues/858. | |
1075 | (add-after 'unpack 'skip-broken-tests | |
1076 | (lambda _ | |
1077 | (substitute* "test/core/test_embedded_engines.rb" | |
1078 | (("def test_render_with_markdown") | |
1079 | "def skipped_test_render_with_markdown")) | |
1080 | (substitute* "test/translator/test_translator.rb" | |
1081 | (("raise (\"Missing test for.*)" _ tail) | |
1082 | (string-append "print " tail))) | |
1083 | #t)) | |
1084 | ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/ | |
1085 | ;; 824862bd99d1675bc699d8fc71ba965a785c1f44. | |
1086 | (add-after 'unpack 'prevent-bundler-interference | |
1087 | (lambda _ | |
1088 | (substitute* "Rakefile" | |
1089 | (("require 'bundler/setup'") "nil") | |
1090 | (("Bundler::GemHelper\\.install_tasks") "nil")) | |
1091 | #t))))) | |
1092 | (native-inputs | |
1093 | `(("ruby-rack-test" ,ruby-rack-test) | |
1094 | ("ruby-sinatra" ,ruby-sinatra))) | |
1095 | (propagated-inputs | |
1096 | `(("ruby-temple" ,ruby-temple) | |
1097 | ("ruby-tilt" ,ruby-tilt))) | |
1098 | (synopsis "Minimalist template language for Ruby") | |
1099 | (description "Slim is a template language for Ruby that aims to reduce the | |
1100 | syntax to the minimum while remaining clear.") | |
1101 | (home-page "http://slim-lang.com/") | |
1102 | (license license:expat))) | |
1103 | ||
34138e42 BW |
1104 | (define-public ruby-asciidoctor |
1105 | (package | |
751bf33d | 1106 | (name "ruby-asciidoctor") |
5df1126c | 1107 | (version "2.0.10") |
751bf33d MC |
1108 | (source |
1109 | (origin | |
5df1126c MC |
1110 | (method git-fetch) ;the gem release lacks a Rakefile |
1111 | (uri (git-reference | |
b0e7b699 | 1112 | (url "https://github.com/asciidoctor/asciidoctor") |
5df1126c MC |
1113 | (commit (string-append "v" version)))) |
1114 | (file-name (git-file-name name version)) | |
751bf33d | 1115 | (sha256 |
34138e42 | 1116 | (base32 |
5df1126c | 1117 | "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95")))) |
751bf33d MC |
1118 | (build-system ruby-build-system) |
1119 | (arguments | |
1120 | `(#:test-target "test:all" | |
1121 | #:phases | |
1122 | (modify-phases %standard-phases | |
5df1126c | 1123 | (replace 'replace-git-ls-files |
751bf33d | 1124 | (lambda _ |
5df1126c MC |
1125 | ;; TODO: Remove after the fix of using 'cut' to better mimic the |
1126 | ;; git ls-files output is merged in ruby-build-system. | |
1127 | (substitute* "asciidoctor.gemspec" | |
1128 | (("`git ls-files -z`") | |
1129 | "`find . -type f -print0 |sort -z|cut -zc3-`")) | |
1130 | #t)) | |
1131 | (add-after 'extract-gemspec 'strip-version-requirements | |
1132 | (lambda _ | |
1133 | (delete-file "Gemfile") | |
1134 | (substitute* "asciidoctor.gemspec" | |
1135 | (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) | |
1136 | (string-append stripped "\n"))) | |
751bf33d MC |
1137 | #t))))) |
1138 | (native-inputs | |
5df1126c MC |
1139 | `(("ruby-erubis" ,ruby-erubis) |
1140 | ("ruby-minitest" ,ruby-minitest) | |
751bf33d MC |
1141 | ("ruby-nokogiri" ,ruby-nokogiri) |
1142 | ("ruby-asciimath" ,ruby-asciimath) | |
5df1126c MC |
1143 | ("ruby-coderay" ,ruby-coderay) |
1144 | ("ruby-cucumber" ,ruby-cucumber) | |
1145 | ("ruby-haml" ,ruby-haml) | |
1146 | ("ruby-rouge" ,ruby-rouge) | |
1147 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
1148 | ("ruby-simplecov" ,ruby-simplecov) | |
1149 | ("ruby-slim" ,ruby-slim) | |
1150 | ("ruby-tilt" ,ruby-tilt))) | |
751bf33d MC |
1151 | (synopsis "Converter from AsciiDoc content to other formats") |
1152 | (description "Asciidoctor is a text processor and publishing toolchain for | |
1153 | converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other | |
1154 | formats.") | |
1155 | (home-page "https://asciidoctor.org") | |
1156 | (license license:expat))) | |
34138e42 | 1157 | |
d5840f77 CB |
1158 | (define-public ruby-ast |
1159 | (package | |
1160 | (name "ruby-ast") | |
1161 | (version "2.4.0") | |
1162 | (source | |
1163 | (origin | |
1164 | (method url-fetch) | |
1165 | (uri (rubygems-uri "ast" version)) | |
1166 | (sha256 | |
1167 | (base32 | |
1168 | "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7")))) | |
1169 | (build-system ruby-build-system) | |
1170 | (arguments | |
1171 | '(#:phases | |
1172 | (modify-phases %standard-phases | |
1173 | (add-after 'unpack 'remove-coveralls-requirement | |
1174 | (lambda _ | |
1175 | (substitute* "test/helper.rb" | |
1176 | (("require 'coveralls'") "") | |
1177 | (("Coveralls::SimpleCov::Formatter") "")) | |
1178 | #t)) | |
1179 | (add-after 'extract-gemspec 'remove-unnecessary-requirements | |
1180 | (lambda _ | |
1181 | (substitute* "ast.gemspec" | |
1182 | ((".*coveralls.*") "\n") | |
1183 | (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n") | |
1184 | (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n") | |
1185 | (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n")) | |
1186 | #t))))) | |
1187 | (native-inputs | |
1188 | `(("bundler" ,bundler) | |
1189 | ("ruby-simplecov" ,ruby-simplecov) | |
1190 | ("ruby-json-pure" ,ruby-json-pure) | |
1191 | ("ruby-mime-times" ,ruby-mime-types) | |
1192 | ("ruby-yard" ,ruby-yard) | |
1193 | ("ruby-kramdown" ,ruby-kramdown) | |
1194 | ("ruby-rest-client" ,ruby-rest-client) | |
1195 | ("ruby-bacon" ,ruby-bacon) | |
1196 | ("ruby-bacon-colored-output" ,ruby-bacon-colored-output) | |
1197 | ("ruby-racc" ,ruby-racc))) | |
1198 | (synopsis "Library for working with Abstract Syntax Trees") | |
1199 | (description | |
1200 | "@code{ast} is a Ruby library for working with Abstract Syntax Trees. | |
1201 | It does this through immutable data structures.") | |
1202 | (home-page "https://whitequark.github.io/ast/") | |
1203 | (license license:expat))) | |
1204 | ||
b88502c9 BW |
1205 | (define-public ruby-sporkmonger-rack-mount |
1206 | ;; Testing the addressable gem requires a newer commit than that released, so | |
1207 | ;; use an up to date version. | |
1208 | (let ((revision "1") | |
1209 | (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3")) | |
1210 | (package | |
1211 | (name "ruby-sporkmonger-rack-mount") | |
1212 | (version (git-version "0.8.3" revision commit)) | |
1213 | (source (origin | |
1214 | (method git-fetch) | |
1215 | (uri (git-reference | |
b0e7b699 | 1216 | (url "https://github.com/sporkmonger/rack-mount") |
b88502c9 BW |
1217 | (commit commit))) |
1218 | (file-name (git-file-name name version)) | |
1219 | (sha256 | |
1220 | (base32 | |
1221 | "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq")))) | |
1222 | (build-system ruby-build-system) | |
1223 | (arguments | |
1224 | ;; Tests currently fail so disable them. | |
1225 | ;; https://github.com/sporkmonger/rack-mount/pull/1 | |
1226 | `(#:tests? #f)) | |
1227 | (propagated-inputs `(("ruby-rack" ,ruby-rack))) | |
1228 | (synopsis "Stackable dynamic tree based Rack router") | |
1229 | (description | |
1230 | "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to | |
1231 | continue trying routes if the response returns pass. This allows multiple | |
1232 | routes to be nested or stacked on top of each other.") | |
1233 | (home-page "https://github.com/sporkmonger/rack-mount") | |
1234 | (license license:expat)))) | |
1235 | ||
2f9e0b68 RW |
1236 | (define-public ruby-ci-reporter |
1237 | (package | |
1238 | (name "ruby-ci-reporter") | |
1239 | (version "2.0.0") | |
1240 | (source (origin | |
1241 | (method url-fetch) | |
1242 | (uri (rubygems-uri "ci_reporter" version)) | |
1243 | (sha256 | |
1244 | (base32 | |
1245 | "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg")))) | |
1246 | (build-system ruby-build-system) | |
1247 | (arguments | |
1248 | `(#:test-target "rspec")) | |
1249 | (propagated-inputs | |
1250 | `(("ruby-builder" ,ruby-builder))) | |
1251 | (native-inputs | |
1252 | `(("bundler" ,bundler) | |
1253 | ("ruby-rspec" ,ruby-rspec))) | |
1254 | (synopsis "Generate XML reports of runs test") | |
1255 | (description | |
1256 | "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows | |
1257 | you to generate XML reports of your test runs. The resulting files can be | |
1258 | read by a continuous integration system that understands Ant's JUnit report | |
1259 | format.") | |
1260 | (home-page "https://github.com/nicksieger/ci_reporter") | |
1261 | (license license:expat))) | |
1262 | ||
2ed201c1 CB |
1263 | (define-public ruby-contracts |
1264 | (package | |
1265 | (name "ruby-contracts") | |
1266 | (version "0.16.0") | |
1267 | (source | |
1268 | (origin | |
1269 | (method url-fetch) | |
1270 | (uri (rubygems-uri "contracts" version)) | |
1271 | (sha256 | |
1272 | (base32 | |
1273 | "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a")))) | |
1274 | (build-system ruby-build-system) | |
1275 | (arguments | |
1276 | '(#:test-target "spec" | |
1277 | #:phases | |
1278 | (modify-phases %standard-phases | |
1279 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
1280 | ;; bit unnecessary. | |
1281 | (add-after 'unpack 'dont-run-rubocop | |
1282 | (lambda _ | |
1283 | (substitute* "Rakefile" | |
1284 | ((".*rubocop.*") "") | |
1285 | ((".*RuboCop.*") "")) | |
1286 | #t))))) | |
1287 | (native-inputs | |
1288 | `(("ruby-rspec" ,ruby-rspec))) | |
1289 | (synopsis "Method contracts for Ruby") | |
1290 | (description | |
1291 | "This library provides contracts for Ruby. A contract describes the | |
1292 | correct inputs and output for a method, and will raise an error if a incorrect | |
1293 | value is found.") | |
1294 | (home-page "https://github.com/egonSchiele/contracts.ruby") | |
1295 | (license license:bsd-2))) | |
1296 | ||
6f8bf0eb CB |
1297 | (define-public ruby-crack |
1298 | (package | |
1299 | (name "ruby-crack") | |
1300 | (version "0.4.3") | |
1301 | (source | |
1302 | (origin | |
1303 | (method url-fetch) | |
1304 | (uri (rubygems-uri "crack" version)) | |
1305 | (sha256 | |
1306 | (base32 | |
1307 | "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k")))) | |
1308 | (build-system ruby-build-system) | |
1309 | (arguments | |
1310 | `(#:phases | |
1311 | (modify-phases %standard-phases | |
1312 | (replace 'check | |
1313 | (lambda* (#:key tests? #:allow-other-keys) | |
1314 | (when tests? | |
1315 | (for-each (lambda (file) | |
1316 | (display file)(display "\n") | |
1317 | (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file)) | |
1318 | (find-files "test" ".*rb$"))) | |
1319 | #t))))) | |
1320 | (propagated-inputs | |
1321 | `(("ruby-safe-yaml" ,ruby-safe-yaml))) | |
1322 | (synopsis "Simple JSON and XML parsing for Ruby") | |
1323 | (description | |
1324 | "@code{crack} provides really simple JSON and XML parsing, extracted from | |
1325 | code in Merb and Rails.") | |
1326 | (home-page "https://github.com/jnunemaker/crack") | |
1327 | (license license:expat))) | |
1328 | ||
bef3506e CB |
1329 | (define-public ruby-cliver |
1330 | (package | |
1331 | (name "ruby-cliver") | |
1332 | (version "0.3.2") | |
1333 | (source | |
1334 | (origin | |
1335 | (method url-fetch) | |
1336 | (uri (rubygems-uri "cliver" version)) | |
1337 | (sha256 | |
1338 | (base32 | |
1339 | "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7")))) | |
1340 | (build-system ruby-build-system) | |
1341 | (arguments | |
1342 | '(#:phases | |
1343 | (modify-phases %standard-phases | |
1344 | ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3 | |
1345 | ;; would be nice, but the tests look to be incompatible: | |
1346 | ;; | |
1347 | ;; NoMethodError: undefined method `last_comment' | |
1348 | (replace 'check | |
1349 | (lambda* (#:key tests? #:allow-other-keys) | |
1350 | (when tests? | |
1351 | (invoke "rspec")) | |
1352 | #t))))) | |
1353 | (native-inputs | |
1354 | `(("bundler" ,bundler) | |
1355 | ("ruby-rspec" ,ruby-rspec-2))) | |
1356 | (synopsis "Assertions for command-line dependencies in Ruby") | |
1357 | (description | |
1358 | "@code{cliver} provides a way to detect missing command-line | |
1359 | dependencies, including versions.") | |
1360 | (home-page "https://github.com/yaauie/cliver") | |
1361 | (license license:expat))) | |
1362 | ||
fe5dd5f4 CB |
1363 | (define-public ruby-czmq-ffi-gen |
1364 | (package | |
1365 | (name "ruby-czmq-ffi-gen") | |
1366 | (version "0.13.0") | |
1367 | (source | |
1368 | (origin | |
1369 | (method url-fetch) | |
1370 | (uri (rubygems-uri "czmq-ffi-gen" version)) | |
1371 | (sha256 | |
1372 | (base32 | |
1373 | "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3")))) | |
1374 | (build-system ruby-build-system) | |
1375 | (arguments | |
1376 | '(#:tests? #f ;; Tests are not included in the release on rubygems.org | |
1377 | #:phases | |
1378 | (modify-phases %standard-phases | |
1379 | (add-after 'unpack 'patch-lib_dirs | |
1380 | (lambda* (#:key inputs #:allow-other-keys) | |
1381 | (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb" | |
1382 | (("lib\\_dirs = \\[.*\\]") | |
1383 | (string-append "lib_dirs = ['" | |
1384 | (assoc-ref inputs "czmq") "/lib" | |
1385 | "']"))) | |
1386 | (substitute* "lib/czmq-ffi-gen/libzmq.rb" | |
1387 | (("lib\\_dirs = \\[.*\\]") | |
1388 | (string-append "lib_dirs = ['" | |
1389 | (assoc-ref inputs "zeromq") "/lib" | |
1390 | "']")))))))) | |
1391 | (inputs | |
1392 | `(("zeromq" ,zeromq) | |
1393 | ("czmq" ,czmq))) | |
1394 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
1395 | (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)") | |
1396 | (description | |
1397 | "These Ruby bindings are not intended to be directly used, but rather | |
1398 | used by higher level bindings like those provided by CZTop.") | |
1399 | (home-page | |
1400 | "https://github.com/paddor/czmq-ffi-gen") | |
1401 | (license license:isc))) | |
1402 | ||
d0afff26 CB |
1403 | (define-public ruby-cztop |
1404 | (package | |
1405 | (name "ruby-cztop") | |
1406 | (version "0.12.2") | |
1407 | (source | |
1408 | (origin | |
1409 | (method url-fetch) | |
1410 | (uri (rubygems-uri "cztop" version)) | |
1411 | (sha256 | |
1412 | (base32 | |
1413 | "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa")))) | |
1414 | (build-system ruby-build-system) | |
1415 | (arguments | |
1416 | '(#:test-target "spec" | |
1417 | #:phases | |
1418 | (modify-phases %standard-phases | |
1419 | (add-after 'unpack 'patch-lib_paths | |
1420 | (lambda* (#:key inputs #:allow-other-keys) | |
1421 | (substitute* "lib/cztop/poller/zmq.rb" | |
1422 | (("lib\\_paths = \\[.*\\]") | |
1423 | (string-append "lib_paths = ['" | |
1424 | (assoc-ref inputs "zeromq") "/lib" | |
1425 | "']")))))))) | |
1426 | (native-inputs | |
1427 | `(("bundler" ,bundler) | |
1428 | ("ruby-rspec" ,ruby-rspec))) | |
1429 | (inputs | |
1430 | `(("zeromq" ,zeromq))) | |
1431 | (propagated-inputs | |
1432 | `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen))) | |
1433 | (synopsis "CZMQ Ruby bindings") | |
1434 | (description | |
1435 | "CZMQ Ruby bindings, based on the generated low-level FFI bindings of | |
1436 | CZMQ. The focus of of CZTop is on being easy to use and providing first class | |
1437 | support for security mechanisms.") | |
1438 | (home-page "https://github.com/paddor/cztop") | |
1439 | (license license:isc))) | |
1440 | ||
b004fb6a RW |
1441 | (define-public ruby-saikuro-treemap |
1442 | (package | |
1443 | (name "ruby-saikuro-treemap") | |
1444 | (version "0.2.0") | |
1445 | (source (origin | |
1446 | (method url-fetch) | |
1447 | (uri (rubygems-uri "saikuro_treemap" version)) | |
1448 | (sha256 | |
1449 | (base32 | |
1450 | "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950")))) | |
1451 | (build-system ruby-build-system) | |
1452 | ;; Some of the tests fail because the generated JSON has keys in a | |
1453 | ;; different order. This is a problem with the test suite rather than any | |
1454 | ;; of the involved libraries. | |
1455 | (arguments `(#:tests? #f)) | |
1456 | (propagated-inputs | |
1457 | `(("ruby-json-pure" ,ruby-json-pure) | |
1458 | ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro))) | |
1459 | (synopsis "Generate complexity treemap based on saikuro analysis") | |
1460 | (description | |
1461 | "This gem generates a treemap showing the complexity of Ruby code on | |
1462 | which it is run. It uses Saikuro under the covers to analyze Ruby code | |
1463 | complexity.") | |
7bf837fd | 1464 | (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap") |
b004fb6a RW |
1465 | (license license:expat))) |
1466 | ||
92b37500 CB |
1467 | (define-public ruby-oauth2 |
1468 | (package | |
1469 | (name "ruby-oauth2") | |
5dd10be5 | 1470 | (version "1.4.2") |
92b37500 CB |
1471 | (source |
1472 | (origin | |
1473 | (method url-fetch) | |
1474 | (uri (rubygems-uri "oauth2" version)) | |
1475 | (sha256 | |
5dd10be5 | 1476 | (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036")))) |
92b37500 CB |
1477 | (build-system ruby-build-system) |
1478 | (arguments | |
5dd10be5 | 1479 | '(#:tests? #f)) ; no included tests |
92b37500 CB |
1480 | (propagated-inputs |
1481 | `(("ruby-faraday" ,ruby-faraday) | |
1482 | ("ruby-jwt" ,ruby-jwt) | |
1483 | ("ruby-multi-json" ,ruby-multi-json) | |
1484 | ("ruby-multi-xml" ,ruby-multi-xml) | |
1485 | ("ruby-rack" ,ruby-rack))) | |
1486 | (synopsis "Ruby wrapper for the OAuth 2.0") | |
1487 | (description | |
1488 | "This package provides a Ruby wrapper for the OAuth 2.0 protocol built | |
1489 | with a similar style to the original OAuth spec.") | |
1490 | (home-page "https://github.com/oauth-xx/oauth2") | |
1491 | (license license:expat))) | |
1492 | ||
29dc4823 CB |
1493 | (define-public ruby-omniauth |
1494 | (package | |
1495 | (name "ruby-omniauth") | |
a7b7817d | 1496 | (version "1.9.1") |
29dc4823 CB |
1497 | (source |
1498 | (origin | |
1499 | (method url-fetch) | |
1500 | (uri (rubygems-uri "omniauth" version)) | |
1501 | (sha256 | |
a7b7817d | 1502 | (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz")))) |
29dc4823 CB |
1503 | (build-system ruby-build-system) |
1504 | (arguments | |
1505 | '(#:tests? #f)) ; No included tests | |
1506 | (propagated-inputs | |
1507 | `(("ruby-hashie" ,ruby-hashie) | |
1508 | ("ruby-rack" ,ruby-rack))) | |
1509 | (synopsis "Generalized Rack framework for multiple-provider authentication") | |
1510 | (description | |
1511 | "This package provides a generalized Rack framework for multiple-provider | |
1512 | authentication.") | |
1513 | (home-page "https://github.com/omniauth/omniauth") | |
1514 | (license license:expat))) | |
1515 | ||
d6084cdb CB |
1516 | (define-public ruby-omniauth-oauth2 |
1517 | (package | |
1518 | (name "ruby-omniauth-oauth2") | |
1519 | (version "1.6.0") | |
1520 | (source | |
1521 | (origin | |
1522 | (method url-fetch) | |
1523 | (uri (rubygems-uri "omniauth-oauth2" version)) | |
1524 | (sha256 | |
1525 | (base32 | |
1526 | "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79")))) | |
1527 | (build-system ruby-build-system) | |
1528 | (arguments | |
1529 | '(#:phases | |
1530 | (modify-phases %standard-phases | |
1531 | (add-after 'unpack 'remove-unnecessary-dependencies | |
1532 | (lambda _ | |
1533 | ;; The coveralls gem submits coverage information to an online | |
1534 | ;; service, and is unnecessary when running the tests | |
1535 | (substitute* "Gemfile" | |
1536 | ((".*coveralls\"") "")) | |
1537 | (substitute* "spec/helper.rb" | |
1538 | (("require \"coveralls\"") "") | |
1539 | (("Coveralls::SimpleCov::Formatter") "")) | |
1540 | #t))))) | |
1541 | (propagated-inputs | |
1542 | `(("ruby-oauth2" ,ruby-oauth2) | |
1543 | ("ruby-omniauth" ,ruby-omniauth))) | |
1544 | (native-inputs | |
1545 | `(("bundler" ,bundler) | |
1546 | ("ruby-rspec" ,ruby-rspec) | |
1547 | ("ruby-simplecov" ,ruby-simplecov) | |
1548 | ("ruby-rack-test" ,ruby-rack-test) | |
1549 | ("ruby-webmock" ,ruby-webmock-2))) | |
1550 | (synopsis "Abstract OAuth2 strategy for OmniAuth") | |
1551 | (description | |
1552 | "This library provides a generic OAuth2 strategy for OmniAuth. It | |
1553 | doesn't provide a way to gather user information, so should be used as a | |
1554 | building block for authentication strategies.") | |
1555 | (home-page "https://github.com/omniauth/omniauth-oauth2") | |
1556 | (license license:expat))) | |
1557 | ||
433e3154 CB |
1558 | (define-public ruby-open4 |
1559 | (package | |
1560 | (name "ruby-open4") | |
1561 | (version "1.3.4") | |
1562 | (source | |
1563 | (origin | |
1564 | (method url-fetch) | |
1565 | (uri (rubygems-uri "open4" version)) | |
1566 | (sha256 | |
1567 | (base32 | |
1568 | "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1")))) | |
1569 | (build-system ruby-build-system) | |
1570 | (arguments | |
1571 | '(#:phases | |
1572 | (modify-phases %standard-phases | |
1573 | (add-after 'unpack 'patch | |
1574 | (lambda _ | |
1575 | (substitute* "rakefile" | |
1576 | ;; Update the Rakefile so it works | |
1577 | (("-rubygems") "-rrubygems") | |
1578 | (("Config") "RbConfig")) | |
1579 | #t)) | |
1580 | (add-before 'check 'set-LIB | |
1581 | (lambda _ | |
1582 | ;; This is used in the rakefile when running the tests | |
1583 | (setenv "LIB" "open4") | |
1584 | #t))))) | |
1585 | (synopsis "Open child processes from Ruby and manage them easily") | |
1586 | (description | |
1587 | "@code{Open4} is a Ruby library to run child processes and manage their | |
1588 | input and output.") | |
1589 | (home-page "https://github.com/ahoward/open4") | |
1590 | (license license:ruby))) | |
1591 | ||
cef87ed6 CB |
1592 | (define-public ruby-options |
1593 | (package | |
1594 | (name "ruby-options") | |
1595 | (version "2.3.2") | |
1596 | (source | |
1597 | (origin | |
1598 | (method url-fetch) | |
1599 | (uri (rubygems-uri "options" version)) | |
1600 | (sha256 | |
1601 | (base32 | |
1602 | "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j")))) | |
1603 | (build-system ruby-build-system) | |
1604 | (arguments | |
1605 | '(#:tests? #f ;; TODO: NameError: uninitialized constant Config | |
1606 | #:phases | |
1607 | (modify-phases %standard-phases | |
1608 | (add-before 'check 'set-LIB | |
1609 | (lambda _ | |
1610 | ;; This is used in the Rakefile, and setting it avoids an issue | |
1611 | ;; with running the tests. | |
fe27238c CB |
1612 | (setenv "LIB" "options") |
1613 | #t))))) | |
cef87ed6 CB |
1614 | (synopsis "Ruby library to parse options from *args cleanly") |
1615 | (description | |
1616 | "The @code{options} library helps with parsing keyword options in Ruby | |
1617 | functions.") | |
1618 | (home-page "https://github.com/ahoward/options") | |
1619 | (license license:ruby))) | |
1620 | ||
d15dbe83 CB |
1621 | (define-public ruby-erubi |
1622 | (package | |
1623 | (name "ruby-erubi") | |
1624 | (version "1.8.0") | |
1625 | (source | |
1626 | (origin | |
1627 | (method url-fetch) | |
1628 | (uri (rubygems-uri "erubi" version)) | |
1629 | (sha256 | |
1630 | (base32 | |
1631 | "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1")))) | |
1632 | (build-system ruby-build-system) | |
1633 | (synopsis "ERB template engine for Ruby") | |
1634 | (description | |
1635 | "Erubi is a ERB template engine for Ruby. It is a simplified fork of | |
1636 | Erubis") | |
1637 | (home-page "https://github.com/jeremyevans/erubi") | |
1638 | (license license:expat))) | |
1639 | ||
d64ebebd BW |
1640 | (define-public ruby-erubis |
1641 | (package | |
1642 | (name "ruby-erubis") | |
1643 | (version "2.7.0") | |
1644 | (source | |
1645 | (origin | |
1646 | (method url-fetch) | |
1647 | (uri (rubygems-uri "erubis" version)) | |
1648 | (sha256 | |
1649 | (base32 | |
1650 | "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3")))) | |
1651 | (build-system ruby-build-system) | |
1652 | (arguments | |
1653 | '(#:tests? #f)) ; tests do not run properly with Ruby 2.0 | |
1654 | (synopsis "Implementation of embedded Ruby (eRuby)") | |
1655 | (description | |
1656 | "Erubis is a fast implementation of embedded Ruby (eRuby) with several | |
1657 | features such as multi-language support, auto escaping, auto trimming spaces | |
1658 | around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails | |
1659 | support.") | |
1660 | (home-page "http://www.kuwata-lab.com/erubis/") | |
1661 | (license license:expat))) | |
1662 | ||
3ca43524 CB |
1663 | (define-public ruby-execjs |
1664 | (package | |
1665 | (name "ruby-execjs") | |
1666 | (version "2.7.0") | |
1667 | (source | |
1668 | (origin | |
1669 | ;; fetch from github as the gem does not contain testing code | |
1670 | (method git-fetch) | |
1671 | (uri (git-reference | |
b0e7b699 | 1672 | (url "https://github.com/rails/execjs") |
3ca43524 CB |
1673 | (commit (string-append "v" version)))) |
1674 | (file-name (git-file-name name version)) | |
1675 | (sha256 | |
1676 | (base32 | |
1677 | "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6")))) | |
1678 | (build-system ruby-build-system) | |
1679 | (native-inputs | |
1680 | `(("bundler" ,bundler) | |
1681 | ;; The test suite tests all the available backends. Currenly, this just | |
1682 | ;; means the node backend. | |
1683 | ;; | |
1684 | ;; PASSED: test:node | |
1685 | ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript, | |
1686 | ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8 | |
1687 | ("node" ,node))) | |
1688 | (synopsis "Run JavaScript code from Ruby") | |
1689 | (description | |
1690 | "ExecJS lets you run JavaScript code from Ruby. It automatically picks a | |
1691 | runtime to evaluate your JavaScript program, then returns the result to you as | |
1692 | a Ruby object.") | |
1693 | (home-page "https://github.com/rails/execjs") | |
1694 | (license license:expat))) | |
1695 | ||
6623a151 MB |
1696 | (define-public ruby-fakefs |
1697 | (package | |
1698 | (name "ruby-fakefs") | |
1699 | (version "1.2.2") | |
1700 | (home-page "https://github.com/fakefs/fakefs") | |
1701 | (source (origin | |
1702 | ;; The Rubygems release does not contain tests. | |
1703 | (method git-fetch) | |
1704 | (uri (git-reference | |
1705 | (url home-page) | |
1706 | (commit (string-append "v" version)))) | |
1707 | (file-name (git-file-name name version)) | |
1708 | (sha256 | |
1709 | (base32 | |
1710 | "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk")))) | |
1711 | (build-system ruby-build-system) | |
1712 | (arguments | |
1713 | '(#:phases (modify-phases %standard-phases | |
1714 | (replace 'replace-git-ls-files | |
1715 | (lambda _ | |
1716 | (substitute* "fakefs.gemspec" | |
1717 | (("`git ls-files lib README.md LICENSE`") | |
1718 | "`find lib README.md LICENSE -type f | sort`")) | |
1719 | #t)) | |
1720 | (add-before 'check 'remove-version-constraints | |
1721 | (lambda _ | |
1722 | ;; Drop hard version requirements for test dependencies. | |
1723 | (substitute* "fakefs.gemspec" | |
1724 | (("(.*add_development_dependency .*), .*" _ dep) | |
1725 | (string-append dep "\n"))) | |
a011f67b | 1726 | #t))))) |
6623a151 MB |
1727 | (native-inputs |
1728 | `(("ruby-bump" ,ruby-bump) | |
1729 | ("ruby-maxitest" ,ruby-maxitest) | |
1730 | ("ruby-rubocop" ,ruby-rubocop) | |
1731 | ("ruby-rspec" ,ruby-rspec))) | |
1732 | (synopsis "Fake file system for Ruby") | |
1733 | (description | |
1734 | "This package provides a fake file system for use in test suites. It | |
1735 | avoids the need for manually creating temporary directories, or dealing | |
1736 | with platform intricacies in @code{File} and @code{FileUtils}.") | |
1737 | (license license:expat))) | |
1738 | ||
cc53e630 RW |
1739 | (define-public ruby-orderedhash |
1740 | (package | |
1741 | (name "ruby-orderedhash") | |
1742 | (version "0.0.6") | |
1743 | (source (origin | |
1744 | (method url-fetch) | |
1745 | (uri (rubygems-uri "orderedhash" version)) | |
1746 | (sha256 | |
1747 | (base32 | |
1748 | "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7")))) | |
1749 | (build-system ruby-build-system) | |
1750 | (arguments | |
1751 | '(#:tests? #f)) ; no test suite | |
1752 | (synopsis "Ruby library providing an order-preserving hash") | |
1753 | (description "Orderedhash is a Ruby library providing a hash | |
1754 | implementation that preserves the order of items and features some array-like | |
1755 | extensions.") | |
1756 | (home-page "http://codeforpeople.com/lib/ruby/orderedhash/") | |
1757 | (license license:public-domain))) | |
1758 | ||
28c5d42d PP |
1759 | (define-public ruby-libxml |
1760 | (package | |
1761 | (name "ruby-libxml") | |
acbc5062 | 1762 | (version "3.0.0") |
28c5d42d PP |
1763 | (source |
1764 | (origin | |
1765 | (method url-fetch) | |
1766 | (uri (rubygems-uri "libxml-ruby" version)) | |
1767 | (sha256 | |
1768 | (base32 | |
acbc5062 | 1769 | "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54")))) |
28c5d42d PP |
1770 | (build-system ruby-build-system) |
1771 | (inputs | |
1772 | `(("zlib" ,zlib) | |
1773 | ("libxml2" ,libxml2))) | |
1774 | (arguments | |
1775 | '(#:tests? #f ; test suite hangs for unknown reason | |
1776 | #:gem-flags | |
1777 | (list "--" | |
1778 | (string-append "--with-xml2-include=" | |
1779 | (assoc-ref %build-inputs "libxml2") | |
1780 | "/include/libxml2" )))) | |
1781 | (synopsis "Ruby bindings for GNOME Libxml2") | |
1782 | (description "The Libxml-Ruby project provides Ruby language bindings for | |
1783 | the GNOME Libxml2 XML toolkit.") | |
2f3800e5 | 1784 | (home-page "https://xml4r.github.com/libxml-ruby") |
28c5d42d PP |
1785 | (license license:expat))) |
1786 | ||
b3222518 CB |
1787 | (define-public ruby-lino |
1788 | (package | |
1789 | (name "ruby-lino") | |
1790 | (version "1.1.0") | |
1791 | (source | |
1792 | (origin | |
1793 | (method url-fetch) | |
1794 | (uri (rubygems-uri "lino" version)) | |
1795 | (sha256 | |
1796 | (base32 | |
1797 | "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3")))) | |
1798 | (build-system ruby-build-system) | |
1799 | (arguments | |
1800 | '(#:tests? #f)) ; No included tests | |
1801 | (propagated-inputs | |
1802 | `(("ruby-hamster" ,ruby-hamster) | |
1803 | ("ruby-open4" ,ruby-open4))) | |
1804 | (synopsis "Build and execute commands in Ruby") | |
1805 | (description | |
1806 | "@code{Lino} provides an interface to run external commands. It provides | |
1807 | an interface to add options as well as managing the standard input, output and | |
1808 | error streams.") | |
1809 | (home-page "https://github.com/tobyclemson/lino") | |
1810 | (license license:expat))) | |
1811 | ||
8b9bde07 RW |
1812 | (define-public ruby-xml-simple |
1813 | (package | |
1814 | (name "ruby-xml-simple") | |
1815 | (version "1.1.5") | |
1816 | (source (origin | |
1817 | (method url-fetch) | |
1818 | (uri (rubygems-uri "xml-simple" version)) | |
1819 | (sha256 | |
1820 | (base32 | |
1821 | "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8")))) | |
1822 | (build-system ruby-build-system) | |
1823 | (arguments | |
1824 | '(#:tests? #f)) ; no test suite | |
1825 | (synopsis "Simple Ruby library for XML processing") | |
1826 | (description "This library provides a simple API for XML processing in | |
1827 | Ruby.") | |
1828 | (home-page "https://github.com/maik/xml-simple") | |
1829 | (license license:ruby))) | |
1830 | ||
2cb3ab48 RW |
1831 | (define-public ruby-thor |
1832 | (package | |
1833 | (name "ruby-thor") | |
bb719d6a | 1834 | (version "1.0.1") |
2cb3ab48 | 1835 | (source (origin |
bb719d6a MB |
1836 | ;; Pull from git because the gem has no tests. |
1837 | (method git-fetch) | |
1838 | (uri (git-reference | |
1839 | (url "https://github.com/erikhuda/thor") | |
1840 | (commit (string-append "v" version)))) | |
1841 | (file-name (git-file-name name version)) | |
2cb3ab48 RW |
1842 | (sha256 |
1843 | (base32 | |
bb719d6a | 1844 | "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57")))) |
2cb3ab48 RW |
1845 | (build-system ruby-build-system) |
1846 | (arguments | |
bb719d6a MB |
1847 | '(#:phases (modify-phases %standard-phases |
1848 | (add-after 'unpack 'fix-readline-tests | |
1849 | (lambda _ | |
1850 | ;; Ensure Readline is initialized before running the | |
1851 | ;; test to avoid a type clash with the mock ::Readline. | |
1852 | ;; See <https://github.com/erikhuda/thor/pull/717>. | |
1853 | (substitute* "spec/line_editor/readline_spec.rb" | |
1854 | (("unless defined\\? ::Readline" all) | |
1855 | (string-append "Thor::LineEditor::Readline.available?\n" | |
1856 | all))) | |
1857 | #t)) | |
1858 | (add-after 'unpack 'remove-coveralls-dependency | |
1859 | (lambda _ | |
1860 | ;; Do not hook the test suite into the online | |
1861 | ;; coveralls service. | |
1862 | (substitute* "Gemfile" | |
1863 | ((".*coveralls.*") "")) | |
1864 | (substitute* "spec/helper.rb" | |
1865 | (("require \"coveralls\"") "") | |
1866 | (("Coveralls::SimpleCov::Formatter") "") | |
1867 | ;; Also drop the WebMock dependency which is only | |
1868 | ;; present to allow a coveralls.io connection, and | |
1869 | ;; would otherwise introduce a circular dependency. | |
1870 | (("require \"webmock/rspec\"") "") | |
1871 | (("WebMock\\.disable_net_connect.*") "")) | |
1872 | #t)) | |
1873 | (add-after 'unpack 'disable-network-tests | |
1874 | (lambda _ | |
1875 | ;; These tests attempt to look up example.com. | |
1876 | (substitute* "spec/actions/file_manipulation_spec.rb" | |
1877 | (("it \"accepts (https?) remote sources" _ proto) | |
1878 | (string-append "xit \"accepts " proto " remote sources"))) | |
1879 | #t)) | |
1880 | (add-after 'unpack 'disable-quality-tests | |
1881 | (lambda _ | |
1882 | ;; These tests attempt to check the git repository for | |
1883 | ;; tabs vs spaces, double vs single quotes, etc, and | |
1884 | ;; depend on the git checkout. | |
1885 | (delete-file "spec/quality_spec.rb") | |
1886 | #t)) | |
1887 | (add-before 'check 'make-files-writable | |
1888 | (lambda _ | |
1889 | ;; The tests needs rw access to the test suite. | |
1890 | (for-each make-file-writable (find-files "spec")) | |
1891 | #t)) | |
1892 | (replace 'check | |
1893 | (lambda _ | |
1894 | (invoke "rspec" "spec")))))) | |
2cb3ab48 | 1895 | (native-inputs |
bb719d6a MB |
1896 | `(("ruby-rspec" ,ruby-rspec) |
1897 | ("ruby-simplecov" ,ruby-simplecov))) | |
2cb3ab48 RW |
1898 | (synopsis "Ruby toolkit for building command-line interfaces") |
1899 | (description "Thor is a toolkit for building powerful command-line | |
1900 | interfaces.") | |
1901 | (home-page "http://whatisthor.com/") | |
1902 | (license license:expat))) | |
1903 | ||
ec79018e RW |
1904 | (define-public ruby-lumberjack |
1905 | (package | |
1906 | (name "ruby-lumberjack") | |
41700efa | 1907 | (version "1.0.13") |
ec79018e RW |
1908 | (source (origin |
1909 | (method url-fetch) | |
1910 | (uri (rubygems-uri "lumberjack" version)) | |
1911 | (sha256 | |
1912 | (base32 | |
41700efa | 1913 | "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n")))) |
ec79018e RW |
1914 | (build-system ruby-build-system) |
1915 | (native-inputs | |
8be62d3f BW |
1916 | `(("ruby-rspec" ,ruby-rspec) |
1917 | ("ruby-timecop" ,ruby-timecop))) | |
ec79018e RW |
1918 | (synopsis "Logging utility library for Ruby") |
1919 | (description "Lumberjack is a simple logging utility that can be a drop in | |
1920 | replacement for Logger or ActiveSupport::BufferedLogger. It provides support | |
1921 | for automatically rolling log files even with multiple processes writing the | |
1922 | same log file.") | |
7bf837fd | 1923 | (home-page "https://github.com/bdurand/lumberjack") |
ec79018e RW |
1924 | (license license:expat))) |
1925 | ||
2a9ce5cb CB |
1926 | (define-public ruby-rbnacl |
1927 | (package | |
1928 | (name "ruby-rbnacl") | |
1929 | (version "6.0.1") | |
1930 | (source | |
1931 | (origin | |
1932 | (method url-fetch) | |
1933 | (uri (rubygems-uri "rbnacl" version)) | |
1934 | (sha256 | |
1935 | (base32 | |
1936 | "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn")))) | |
1937 | (build-system ruby-build-system) | |
1938 | (arguments | |
1939 | `(#:phases | |
1940 | (modify-phases %standard-phases | |
1941 | (add-after 'unpack 'remove-unnecessary-dependencies | |
1942 | (lambda _ | |
1943 | ;; Coveralls relates to a network service, and Rubocop to code | |
1944 | ;; linting and both are unnecessary to run the tests | |
1945 | (substitute* "Gemfile" | |
1946 | ((".*rubocop.*") "\n") | |
1947 | ((".*guard-rspec.*") "\n") | |
1948 | ((".*coveralls.*") "\n")) | |
1949 | (substitute* "spec/spec_helper.rb" | |
1950 | (("require \"coveralls\"") "") | |
1951 | (("Coveralls.wear!") "")) | |
1952 | #t)) | |
1953 | (add-after 'unpack 'use-libsodium-from-store | |
1954 | (lambda* (#:key inputs #:allow-other-keys) | |
1955 | (substitute* '("lib/rbnacl/init.rb" | |
1956 | "lib/rbnacl/sodium.rb") | |
1957 | (("ffi_lib \\[.+\\]") | |
1958 | (string-append "ffi_lib [\"" | |
1959 | (assoc-ref inputs "libsodium") "/lib/libsodium.so" | |
1960 | "\"]"))) | |
1961 | #t)) | |
1962 | ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile | |
1963 | (replace 'check | |
1964 | (lambda* (#:key tests? #:allow-other-keys) | |
1965 | (when tests? | |
1966 | (invoke "rspec")) | |
1967 | #t))))) | |
1968 | (propagated-inputs | |
1969 | `(("ruby-ffi" ,ruby-ffi))) | |
1970 | (inputs | |
1971 | `(("libsodium" ,libsodium))) | |
1972 | (native-inputs | |
1973 | `(("bundler" ,bundler) | |
1974 | ("ruby-rspec" ,ruby-rspec))) | |
1975 | (synopsis "Ruby FFI binding to libsodium") | |
1976 | (description | |
1977 | "This package provides Ruby FFI bindings to the Networking and | |
1978 | Cryptography (NaCl) library, also known as libsodium. This provides a | |
1979 | high-level toolkit for building cryptographic systems and protocols.") | |
1980 | (home-page "https://github.com/crypto-rb/rbnacl") | |
1981 | (license license:expat))) | |
1982 | ||
70b4cf38 RW |
1983 | (define-public ruby-nenv |
1984 | (package | |
1985 | (name "ruby-nenv") | |
12313cd0 | 1986 | (version "0.3.0") |
70b4cf38 RW |
1987 | (source (origin |
1988 | (method url-fetch) | |
1989 | (uri (rubygems-uri "nenv" version)) | |
1990 | (sha256 | |
1991 | (base32 | |
12313cd0 | 1992 | "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr")))) |
70b4cf38 RW |
1993 | (build-system ruby-build-system) |
1994 | (arguments | |
1995 | `(#:tests? #f)) ; no tests included | |
1996 | (native-inputs | |
1997 | `(("ruby-rspec" ,ruby-rspec) | |
1998 | ("bundler" ,bundler))) | |
1999 | (synopsis "Ruby interface for modifying the environment") | |
2000 | (description "Nenv provides a convenient wrapper for Ruby's ENV to modify | |
2001 | and inspect the environment.") | |
2002 | (home-page "https://github.com/e2/nenv") | |
2003 | (license license:expat))) | |
2004 | ||
af59d4b4 MB |
2005 | (define-public ruby-ptools |
2006 | (package | |
2007 | (name "ruby-ptools") | |
2008 | (version "1.3.5") | |
2009 | (source (origin | |
2010 | (method url-fetch) | |
2011 | (uri (rubygems-uri "ptools" version)) | |
2012 | (sha256 | |
2013 | (base32 | |
2014 | "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j")))) | |
2015 | (build-system ruby-build-system) | |
2016 | (arguments | |
2017 | '(#:phases (modify-phases %standard-phases | |
2018 | (add-after 'unpack 'patch-/bin/ls | |
2019 | (lambda _ | |
2020 | (substitute* "test/test_binary.rb" | |
2021 | (("/bin/ls") | |
2022 | (which "ls"))) | |
2023 | #t)) | |
2024 | (add-before 'install 'create-gem | |
2025 | (lambda _ | |
2026 | ;; Do not attempt to sign the gem. | |
2027 | (substitute* "Rakefile" | |
2028 | (("spec\\.signing_key = .*") | |
2029 | "")) | |
2030 | (invoke "rake" "gem:create")))))) | |
2031 | (synopsis "Extra methods for Ruby's @code{File} class") | |
2032 | (description | |
2033 | "The @dfn{ptools} (power tools) library extends Ruby's core @code{File} | |
2034 | class with many additional methods modelled after common POSIX tools, such as | |
2035 | @code{File.which} for finding executables, @code{File.tail} to print the last | |
2036 | lines of a file, @code{File.wc} to count words, and so on.") | |
2037 | (home-page "https://github.com/djberg96/ptools") | |
2038 | (license license:artistic2.0))) | |
2039 | ||
8d9e9f28 RW |
2040 | (define-public ruby-permutation |
2041 | (package | |
2042 | (name "ruby-permutation") | |
2043 | (version "0.1.8") | |
2044 | (source (origin | |
2045 | (method url-fetch) | |
2046 | (uri (rubygems-uri "permutation" version)) | |
2047 | (sha256 | |
2048 | (base32 | |
2049 | "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8")))) | |
2050 | (build-system ruby-build-system) | |
2051 | (arguments | |
2052 | `(#:phases | |
2053 | (modify-phases %standard-phases | |
2054 | (add-after 'unpack 'fix-rakefile | |
2055 | (lambda _ | |
2056 | (substitute* "Rakefile" | |
2057 | (("require 'rake/gempackagetask'") | |
2058 | "require 'rubygems/package_task'") | |
2059 | (("include Config") "")) | |
2060 | #t)) | |
2061 | (replace 'check | |
2062 | (lambda _ | |
9923d5a4 | 2063 | (invoke "ruby" "-Ilib" "test/test.rb")))))) |
8d9e9f28 RW |
2064 | (synopsis "Library to perform operations with sequence permutations") |
2065 | (description "This package provides a Ruby library to perform different | |
2066 | operations with permutations of sequences, such as strings and arrays.") | |
2f3800e5 | 2067 | (home-page "https://flori.github.io/permutation") |
8d9e9f28 RW |
2068 | (license license:gpl2))) ; GPL 2 only |
2069 | ||
c5d14d42 RW |
2070 | (define-public ruby-shellany |
2071 | (package | |
2072 | (name "ruby-shellany") | |
2073 | (version "0.0.1") | |
2074 | (source (origin | |
2075 | (method url-fetch) | |
2076 | (uri (rubygems-uri "shellany" version)) | |
2077 | (sha256 | |
2078 | (base32 | |
2079 | "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf")))) | |
2080 | (build-system ruby-build-system) | |
2081 | (arguments | |
2082 | `(#:test-target "default" | |
2083 | #:phases | |
2084 | (modify-phases %standard-phases | |
2085 | (add-after 'unpack 'fix-version-test | |
2086 | (lambda _ | |
2087 | (substitute* "spec/shellany_spec.rb" | |
2088 | (("^RSpec") "require \"shellany\"\nRSpec")) | |
2089 | #t))))) | |
2090 | (native-inputs | |
2091 | `(("ruby-rspec" ,ruby-rspec) | |
2092 | ("ruby-nenv" ,ruby-nenv) | |
2093 | ("bundler" ,bundler))) | |
2094 | (synopsis "Capture command output") | |
2095 | (description "Shellany is a Ruby library providing functions to capture | |
2096 | the output produced by running shell commands.") | |
2097 | (home-page "https://rubygems.org/gems/shellany") | |
2098 | (license license:expat))) | |
2099 | ||
d152162f RW |
2100 | (define-public ruby-notiffany |
2101 | (package | |
2102 | (name "ruby-notiffany") | |
8c1e4a4f | 2103 | (version "0.1.3") |
d152162f RW |
2104 | (source (origin |
2105 | (method url-fetch) | |
2106 | (uri (rubygems-uri "notiffany" version)) | |
2107 | (sha256 | |
2108 | (base32 | |
8c1e4a4f | 2109 | "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk")))) |
d152162f RW |
2110 | (build-system ruby-build-system) |
2111 | ;; Tests are not included in the gem. | |
2112 | (arguments `(#:tests? #f)) | |
2113 | (propagated-inputs | |
2114 | `(("ruby-shellany" ,ruby-shellany) | |
2115 | ("ruby-nenv" ,ruby-nenv))) | |
2116 | (native-inputs | |
2117 | `(("bundler" ,bundler))) | |
01eb17de VC |
2118 | (synopsis "Wrapper library for notification libraries") |
2119 | (description "Notiffany is a Ruby wrapper library for notification | |
d152162f RW |
2120 | libraries such as Libnotify.") |
2121 | (home-page "https://github.com/guard/notiffany") | |
2122 | (license license:expat))) | |
2123 | ||
96bf7521 MB |
2124 | (define-public ruby-forking-test-runner |
2125 | (package | |
2126 | (name "ruby-forking-test-runner") | |
2127 | (version "1.6.0") | |
2128 | (home-page "https://github.com/grosser/forking_test_runner") | |
2129 | (source (origin | |
2130 | (method git-fetch) | |
2131 | (uri (git-reference (url home-page) | |
2132 | (commit (string-append "v" version)))) | |
2133 | (file-name (git-file-name name version)) | |
2134 | (sha256 | |
2135 | (base32 | |
2136 | "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m")))) | |
2137 | (build-system ruby-build-system) | |
2138 | (arguments | |
2139 | '(#:test-target "spec" | |
2140 | ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has | |
2141 | ;; 1.4.1, which in turn breaks the tests that use ActiveRecord. | |
2142 | #:tests? #f | |
2143 | #:phases (modify-phases %standard-phases | |
2144 | (replace 'replace-git-ls-files | |
2145 | (lambda _ | |
2146 | (substitute* "forking_test_runner.gemspec" | |
2147 | (("`git ls-files lib/ bin/ MIT-LICENSE`") | |
2148 | "`find lib/ bin/ MIT-LICENSE -type f | sort`")) | |
2149 | #t)) | |
2150 | (add-before 'check 'remove-version-constraints | |
2151 | (lambda _ | |
2152 | ;; Ignore hard coded version constraints for the tests. | |
2153 | (delete-file "Gemfile.lock") | |
2154 | #t)) | |
2155 | (add-before 'check 'set-HOME | |
2156 | (lambda _ | |
2157 | ;; Many tests invoke Bundler, and fails when Bundler | |
2158 | ;; warns that /homeless-shelter does not exist. | |
2159 | (setenv "HOME" "/tmp") | |
2160 | #t))))) | |
2161 | (native-inputs | |
2162 | `(("ruby-activerecord" ,ruby-activerecord) | |
2163 | ("ruby-bump" ,ruby-bump) | |
2164 | ("ruby-rspec" ,ruby-rspec) | |
2165 | ("ruby-sqlite3" ,ruby-sqlite3) | |
2166 | ("ruby-wwtd" ,ruby-wwtd))) | |
2167 | (propagated-inputs | |
2168 | `(("ruby-parallel-tests" ,ruby-parallel-tests))) | |
2169 | (synopsis "Run every test in a fork") | |
2170 | (description | |
2171 | "This package is a wrapper around @code{parallel_tests} that runs every | |
2172 | test in a fork to avoid pollution and get clean output per test.") | |
2173 | (license license:expat))) | |
2174 | ||
8528365b RW |
2175 | (define-public ruby-formatador |
2176 | (package | |
2177 | (name "ruby-formatador") | |
2178 | (version "0.2.5") | |
2179 | (source (origin | |
2180 | (method url-fetch) | |
2181 | (uri (rubygems-uri "formatador" version)) | |
2182 | (sha256 | |
2183 | (base32 | |
2184 | "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0")))) | |
2185 | (build-system ruby-build-system) | |
2186 | ;; Circular dependency: Tests require ruby-shindo, which requires | |
2187 | ;; ruby-formatador at runtime. | |
2188 | (arguments `(#:tests? #f)) | |
2189 | (synopsis "Ruby library to format text on stdout") | |
2190 | (description "Formatador is a Ruby library to format text printed to the | |
2191 | standard output stream.") | |
7bf837fd | 2192 | (home-page "https://github.com/geemus/formatador") |
8528365b RW |
2193 | (license license:expat))) |
2194 | ||
5437c741 CB |
2195 | (define-public ruby-fuubar |
2196 | (package | |
2197 | (name "ruby-fuubar") | |
2198 | (version "2.3.2") | |
2199 | (source | |
2200 | (origin | |
2201 | ;; Fetch from the git repository, as the gem package doesn't include | |
2202 | ;; the tests. | |
2203 | (method git-fetch) | |
2204 | (uri (git-reference | |
b0e7b699 | 2205 | (url "https://github.com/thekompanee/fuubar") |
5437c741 CB |
2206 | (commit (string-append "releases/v" version)))) |
2207 | (file-name (git-file-name name version)) | |
2208 | (sha256 | |
2209 | (base32 | |
2210 | "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259")))) | |
2211 | (build-system ruby-build-system) | |
2212 | (arguments | |
2213 | '(;; TODO: Some tests fail, unsure why. | |
2214 | ;; 21 examples, 7 failures | |
2215 | #:tests? #f | |
2216 | #:phases | |
2217 | (modify-phases %standard-phases | |
2218 | (add-before 'build 'delete-certificate | |
2219 | (lambda _ | |
2220 | ;; Remove 's.cert_chain' as we do not build with a private key | |
2221 | (substitute* "fuubar.gemspec" | |
2222 | ((".*cert_chain.*") "") | |
2223 | ((".*signing_key.*") "")) | |
2224 | #t)) | |
2225 | (replace 'check | |
2226 | (lambda* (#:key tests? #:allow-other-keys) | |
2227 | (when tests? | |
2228 | (invoke "rspec")) | |
2229 | #t))))) | |
2230 | (native-inputs | |
2231 | `(("bundler" ,bundler))) | |
2232 | (propagated-inputs | |
2233 | `(("ruby-rspec-core" ,ruby-rspec-core) | |
2234 | ("ruby-progressbar" ,ruby-progressbar))) | |
2235 | (synopsis "Fuubar is an RSpec formatter that uses a progress bar") | |
2236 | (description | |
2237 | "Fuubar is an RSpec formatter that uses a progress bar instead of a | |
2238 | string of letters and dots as feedback. It also stops on the first test | |
2239 | failure.") | |
2240 | (home-page "https://github.com/thekompanee/fuubar") | |
2241 | (license license:expat))) | |
2242 | ||
8ea991e3 CB |
2243 | (define-public ruby-haml |
2244 | (package | |
2245 | (name "ruby-haml") | |
2246 | (version "5.0.4") | |
2247 | (source | |
2248 | (origin | |
2249 | (method url-fetch) | |
2250 | (uri (rubygems-uri "haml" version)) | |
2251 | (sha256 | |
2252 | (base32 | |
2253 | "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac")))) | |
2254 | (build-system ruby-build-system) | |
2255 | (arguments | |
2256 | '(#:tests? #f)) ; No included tests | |
2257 | (propagated-inputs | |
2258 | `(("ruby-tilt" ,ruby-tilt) | |
2259 | ("ruby-temple" ,ruby-temple))) | |
2260 | (synopsis "Haml is a Ruby library to generate HTML documents") | |
2261 | (description | |
2262 | "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of | |
2263 | HTML or XML that is designed to express the structure of documents using | |
2264 | indentation rather than closing tags. It was originally envisioned as a | |
2265 | plugin for Ruby on Rails, but it can function as a stand-alone templating | |
2266 | engine.") | |
2267 | (home-page "http://haml.info/") | |
2268 | (license license:expat))) | |
2269 | ||
353b7eb8 CB |
2270 | (define-public ruby-hamster |
2271 | (package | |
2272 | (name "ruby-hamster") | |
2273 | (version "3.0.0") | |
2274 | (source | |
2275 | (origin | |
2276 | (method url-fetch) | |
2277 | (uri (rubygems-uri "hamster" version)) | |
2278 | (sha256 | |
2279 | (base32 | |
2280 | "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar")))) | |
2281 | (build-system ruby-build-system) | |
2282 | (arguments | |
2283 | '(#:phases | |
2284 | (modify-phases %standard-phases | |
2285 | (add-after 'unpack 'remove-unnecessary-dependencies | |
2286 | (lambda _ | |
2287 | ;; pry is a debugging tool, and is unnecessary when running the | |
2288 | ;; tests | |
2289 | (substitute* "spec/lib/hamster/vector/insert_spec.rb" | |
2290 | (("require 'pry'") "")) | |
2291 | (substitute* "spec/spec_helper.rb" | |
2292 | (("require \"pry\"") "") | |
2293 | ;; CodeClimate is an online service, and is unnecessary for | |
2294 | ;; running the tests | |
2295 | (("require \"codeclimate-test-reporter\"") "") | |
2296 | (("CodeClimate.*\n") "")) | |
2297 | #t)) | |
2298 | ;; No Rakefile is included, so run rspec directly. | |
2299 | (replace 'check | |
2300 | (lambda* (#:key tests? #:allow-other-keys) | |
2301 | (when tests? | |
2302 | (invoke "rspec")) | |
2303 | #t))))) | |
2304 | (propagated-inputs | |
2305 | `(("ruby-concurrent" ,ruby-concurrent))) | |
2306 | (native-inputs | |
2307 | `(("ruby-rspec" ,ruby-rspec))) | |
2308 | (synopsis "Efficient, immutable, thread-safe collection classes for Ruby") | |
2309 | (description | |
2310 | "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector}, | |
2311 | @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an | |
2312 | immutable queue or stack).") | |
2313 | (home-page "https://github.com/hamstergem/hamster") | |
2314 | (license license:expat))) | |
2315 | ||
21781436 CB |
2316 | (define-public ruby-hashdiff |
2317 | (package | |
2318 | (name "ruby-hashdiff") | |
2319 | (version "0.3.8") | |
2320 | (source | |
2321 | (origin | |
2322 | (method url-fetch) | |
2323 | (uri (rubygems-uri "hashdiff" version)) | |
2324 | (sha256 | |
2325 | (base32 | |
2326 | "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask")))) | |
2327 | (build-system ruby-build-system) | |
2328 | (arguments | |
2329 | '(#:phases | |
2330 | (modify-phases %standard-phases | |
2331 | ;; Run tests directly via rspec to avoid Rake issue: | |
2332 | ;; NoMethodError: undefined method `last_comment' | |
2333 | (replace 'check | |
2334 | (lambda* (#:key tests? #:allow-other-keys) | |
2335 | (when tests? | |
2336 | (invoke "rspec")) | |
2337 | #t))))) | |
2338 | (native-inputs | |
2339 | `(("bundler" ,bundler) | |
2340 | ("ruby-rspec" ,ruby-rspec-2))) | |
2341 | (synopsis "HashDiff computes the smallest difference between two hashes") | |
2342 | (description | |
2343 | "HashDiff is a Ruby library to compute the smallest difference between | |
2344 | two hashes.") | |
2345 | (home-page "https://github.com/liufengyun/hashdiff") | |
2346 | (license license:expat))) | |
2347 | ||
3cc8e029 MB |
2348 | (define-public ruby-hydra |
2349 | ;; No releases yet. | |
2350 | (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525") | |
2351 | (revision "0")) | |
2352 | (package | |
2353 | (name "ruby-hydra") | |
2354 | (version (git-version "0.0" revision commit)) | |
2355 | (home-page "https://github.com/hyphenation/hydra") | |
2356 | (source (origin | |
2357 | (method git-fetch) | |
2358 | (uri (git-reference (url home-page) (commit commit))) | |
2359 | (file-name (git-file-name name version)) | |
2360 | (sha256 | |
2361 | (base32 | |
2362 | "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f")))) | |
2363 | (build-system ruby-build-system) | |
2364 | (arguments | |
2365 | '(#:phases (modify-phases %standard-phases | |
2366 | (add-after 'unpack 'make-files-writable | |
2367 | (lambda _ | |
2368 | (for-each make-file-writable (find-files ".")) | |
2369 | #t)) | |
2370 | (replace 'check | |
2371 | (lambda _ | |
2372 | (invoke "rspec")))))) | |
2373 | (native-inputs | |
2374 | `(("ruby-rspec" ,ruby-rspec))) | |
2375 | (propagated-inputs | |
2376 | `(("ruby-byebug" ,ruby-byebug))) | |
2377 | (synopsis "Ruby hyphenation patterns") | |
2378 | (description | |
2379 | "ruby-hydra is a Ruby library for working with hyphenation patterns.") | |
2380 | (license license:expat)))) | |
2381 | ||
7ac4610f RW |
2382 | (define-public ruby-shindo |
2383 | (package | |
2384 | (name "ruby-shindo") | |
2385 | (version "0.3.8") | |
2386 | (source (origin | |
2387 | (method url-fetch) | |
2388 | (uri (rubygems-uri "shindo" version)) | |
2389 | (sha256 | |
2390 | (base32 | |
2391 | "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq")))) | |
2392 | (build-system ruby-build-system) | |
2393 | (arguments | |
2394 | `(#:test-target "shindo_tests" | |
2395 | #:phases | |
2396 | (modify-phases %standard-phases | |
2397 | (add-after 'unpack 'fix-tests | |
0b060e34 CB |
2398 | (lambda _ |
2399 | (substitute* "tests/tests_helper.rb" | |
2400 | (("-rubygems") "")) | |
2401 | (substitute* "Rakefile" | |
2402 | (("system \"shindo") "system \"./bin/shindo") | |
2403 | ;; This test doesn't work, so we disable it. | |
2404 | (("fail \"The build_error test should fail") "#") | |
2405 | ((" -rubygems") "")) | |
2406 | #t))))) | |
7ac4610f RW |
2407 | (propagated-inputs |
2408 | `(("ruby-formatador" ,ruby-formatador))) | |
2409 | (synopsis "Simple depth first Ruby testing") | |
2410 | (description "Shindo is a simple depth first testing library for Ruby.") | |
2411 | (home-page "https://github.com/geemus/shindo") | |
2412 | (license license:expat))) | |
2413 | ||
f13636f2 RW |
2414 | (define-public ruby-rubygems-tasks |
2415 | (package | |
2416 | (name "ruby-rubygems-tasks") | |
f0f5f2d3 | 2417 | (version "0.2.5") |
f13636f2 RW |
2418 | (source (origin |
2419 | (method url-fetch) | |
2420 | (uri (rubygems-uri "rubygems-tasks" version)) | |
2421 | (sha256 | |
2422 | (base32 | |
f0f5f2d3 | 2423 | "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx")))) |
f13636f2 RW |
2424 | (build-system ruby-build-system) |
2425 | ;; Tests need Internet access. | |
2426 | (arguments `(#:tests? #f)) | |
2427 | (native-inputs | |
2428 | `(("ruby-rspec" ,ruby-rspec) | |
2429 | ("ruby-yard" ,ruby-yard))) | |
2430 | (synopsis "Rake tasks for managing and releasing Ruby Gems") | |
2431 | (description "Rubygems-task provides Rake tasks for managing and releasing | |
2432 | Ruby Gems.") | |
2433 | (home-page "https://github.com/postmodern/rubygems-tasks") | |
2434 | (license license:expat))) | |
2435 | ||
cb6bc5df CB |
2436 | (define-public ruby-rubyzip |
2437 | (package | |
2438 | (name "ruby-rubyzip") | |
2439 | (version "1.2.1") | |
2440 | (source | |
2441 | (origin | |
2442 | (method url-fetch) | |
2443 | (uri (rubygems-uri "rubyzip" version)) | |
2444 | (sha256 | |
2445 | (base32 | |
2446 | "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz")))) | |
2447 | (build-system ruby-build-system) | |
2448 | (arguments | |
2449 | '(#:phases | |
2450 | (modify-phases %standard-phases | |
2451 | (add-before 'check 'patch-tests | |
2452 | (lambda* (#:key inputs #:allow-other-keys) | |
2453 | (substitute* "test/gentestfiles.rb" | |
2454 | (("/usr/bin/zip") | |
2455 | (string-append | |
2456 | (assoc-ref inputs "zip") "/bin/zip"))) | |
2457 | (substitute* "test/input_stream_test.rb" | |
2458 | (("/usr/bin/env ruby") (which "ruby"))) | |
2459 | #t))))) | |
2460 | (native-inputs | |
2461 | `(("bundler" ,bundler) | |
2462 | ("ruby-simplecov" ,ruby-simplecov) | |
2463 | ("zip" ,zip) | |
2464 | ("unzip" ,unzip))) | |
2465 | (synopsis "Ruby module is for reading and writing zip files") | |
2466 | (description | |
2467 | "The rubyzip module provides ways to read from and create zip files.") | |
702a1012 | 2468 | (home-page "https://github.com/rubyzip/rubyzip") |
cb6bc5df CB |
2469 | (license license:bsd-2))) |
2470 | ||
58b59742 RW |
2471 | (define-public ruby-simplecov-html |
2472 | (package | |
2473 | (name "ruby-simplecov-html") | |
53fd476f | 2474 | (version "0.10.2") |
58b59742 RW |
2475 | (source (origin |
2476 | (method url-fetch) | |
2477 | (uri (rubygems-uri "simplecov-html" version)) | |
2478 | (sha256 | |
2479 | (base32 | |
53fd476f | 2480 | "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn")))) |
58b59742 | 2481 | (build-system ruby-build-system) |
8b749cf3 | 2482 | (arguments `(#:tests? #f)) ; there are no tests |
58b59742 RW |
2483 | (native-inputs |
2484 | `(("bundler" ,bundler))) | |
2485 | (synopsis "Default HTML formatter for SimpleCov code coverage tool") | |
2486 | (description "This package provides the default HTML formatter for | |
2487 | the SimpleCov code coverage tool for Ruby version 1.9 and above.") | |
2488 | (home-page "https://github.com/colszowka/simplecov-html") | |
2489 | (license license:expat))) | |
2490 | ||
a84fa2ad RW |
2491 | (define-public ruby-simplecov |
2492 | (package | |
2493 | (name "ruby-simplecov") | |
d432682b | 2494 | (version "0.17.1") |
a84fa2ad RW |
2495 | (source (origin |
2496 | (method url-fetch) | |
2497 | (uri (rubygems-uri "simplecov" version)) | |
2498 | (sha256 | |
2499 | (base32 | |
d432682b | 2500 | "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw")))) |
a84fa2ad RW |
2501 | (build-system ruby-build-system) |
2502 | ;; Simplecov depends on rubocop for code style checking at build time. | |
2503 | ;; Rubocop needs simplecov at build time. | |
2504 | (arguments `(#:tests? #f)) | |
2505 | (propagated-inputs | |
2506 | `(("ruby-json" ,ruby-json) | |
2507 | ("ruby-docile" ,ruby-docile) | |
2508 | ("ruby-simplecov-html" ,ruby-simplecov-html))) | |
2509 | (native-inputs | |
2510 | `(("bundler" ,bundler))) | |
2511 | (synopsis "Code coverage framework for Ruby") | |
2512 | (description "SimpleCov is a code coverage framework for Ruby with a | |
2513 | powerful configuration library and automatic merging of coverage across test | |
2514 | suites.") | |
7bf837fd | 2515 | (home-page "https://github.com/colszowka/simplecov") |
a84fa2ad RW |
2516 | (license license:expat))) |
2517 | ||
98b87b82 DT |
2518 | (define-public ruby-useragent |
2519 | (package | |
2520 | (name "ruby-useragent") | |
959d908d | 2521 | (version "0.16.10") |
98b87b82 DT |
2522 | (source (origin |
2523 | (method url-fetch) | |
e83c6d00 | 2524 | (uri (rubygems-uri "useragent" version)) |
98b87b82 DT |
2525 | (sha256 |
2526 | (base32 | |
959d908d | 2527 | "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p")))) |
98b87b82 DT |
2528 | (build-system ruby-build-system) |
2529 | (arguments | |
e83c6d00 | 2530 | '(#:tests? #f)) ; no test suite |
98b87b82 DT |
2531 | (synopsis "HTTP user agent parser for Ruby") |
2532 | (description "UserAgent is a Ruby library that parses and compares HTTP | |
2533 | User Agents.") | |
2534 | (home-page "https://github.com/gshutler/useragent") | |
2535 | (license license:expat))) | |
96086cc5 | 2536 | |
f7e9b2f3 CB |
2537 | (define-public ruby-backports |
2538 | (package | |
2539 | (name "ruby-backports") | |
2540 | (version "3.11.4") | |
2541 | (source | |
2542 | (origin | |
2543 | (method url-fetch) | |
2544 | (uri (rubygems-uri "backports" version)) | |
2545 | (sha256 | |
2546 | (base32 | |
2547 | "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g")))) | |
2548 | (build-system ruby-build-system) | |
2549 | (arguments | |
2550 | '(;; TODO: This should be default, but there is one test failure | |
2551 | #:test-target "all_spec")) | |
2552 | (native-inputs | |
2553 | `(("ruby-mspec" ,ruby-mspec) | |
2554 | ("ruby-activesupport" ,ruby-activesupport))) | |
2555 | (synopsis "Backports of the features in newer Ruby versions") | |
2556 | (description | |
2557 | "Backports enables more compatibility across Ruby versions by providing | |
2558 | backports of some features.") | |
2559 | (home-page "https://github.com/marcandre/backports") | |
2560 | (license license:expat))) | |
2561 | ||
96086cc5 DT |
2562 | (define-public ruby-bacon |
2563 | (package | |
2564 | (name "ruby-bacon") | |
e83c6d00 | 2565 | (version "1.2.0") |
96086cc5 DT |
2566 | (source (origin |
2567 | (method url-fetch) | |
e83c6d00 | 2568 | (uri (rubygems-uri "bacon" version)) |
96086cc5 DT |
2569 | (sha256 |
2570 | (base32 | |
e83c6d00 | 2571 | "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai")))) |
96086cc5 | 2572 | (build-system ruby-build-system) |
96086cc5 DT |
2573 | (synopsis "Small RSpec clone") |
2574 | (description "Bacon is a small RSpec clone providing all essential | |
2575 | features.") | |
2576 | (home-page "https://github.com/chneukirchen/bacon") | |
2577 | (license license:expat))) | |
de59d316 | 2578 | |
a8d2bf3c CB |
2579 | (define-public ruby-bacon-bits |
2580 | (package | |
2581 | (name "ruby-bacon-bits") | |
2582 | (version "0.1.0") | |
2583 | (source | |
2584 | (origin | |
2585 | (method url-fetch) | |
2586 | (uri (rubygems-uri "bacon-bits" version)) | |
2587 | (sha256 | |
2588 | (base32 | |
2589 | "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx")))) | |
2590 | (build-system ruby-build-system) | |
2591 | (arguments | |
2592 | ;; No tests | |
2593 | '(#:tests? #f)) | |
2594 | (propagated-inputs `(("ruby-bacon" ,ruby-bacon))) | |
2595 | (synopsis "Extensions to Bacon, for disabling tests, before and after | |
2596 | blocks and more") | |
2597 | (description | |
2598 | "This extends the bacon testing framework with useful extensions to | |
2599 | disable tests, have before and after blocks that run once and more.") | |
2600 | (home-page "https://github.com/cldwalker/bacon-bits") | |
2601 | (license license:expat))) | |
2602 | ||
65f65889 CB |
2603 | (define-public ruby-bacon-colored-output |
2604 | (package | |
2605 | (name "ruby-bacon-colored-output") | |
2606 | (version "1.1.1") | |
2607 | (source | |
2608 | (origin | |
2609 | (method url-fetch) | |
2610 | (uri (rubygems-uri "bacon-colored_output" version)) | |
2611 | (sha256 | |
2612 | (base32 | |
2613 | "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx")))) | |
2614 | (build-system ruby-build-system) | |
2615 | (arguments | |
2616 | '(;; No included tests | |
2617 | #:tests? #f)) | |
2618 | (propagated-inputs | |
2619 | `(("ruby-bacon" ,ruby-bacon))) | |
2620 | (synopsis "Colored output for Bacon test framework") | |
2621 | (description | |
2622 | "This package adds color through ANSI escape codes to Bacon test | |
2623 | output.") | |
2624 | (home-page "https://github.com/whitequark/bacon-colored_output") | |
2625 | (license license:expat))) | |
2626 | ||
e259bdf0 DT |
2627 | (define-public ruby-connection-pool |
2628 | (package | |
2629 | (name "ruby-connection-pool") | |
58021db4 | 2630 | (version "2.2.2") |
e259bdf0 DT |
2631 | (source (origin |
2632 | (method url-fetch) | |
e83c6d00 | 2633 | (uri (rubygems-uri "connection_pool" version)) |
e259bdf0 DT |
2634 | (sha256 |
2635 | (base32 | |
58021db4 | 2636 | "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68")))) |
e259bdf0 DT |
2637 | (build-system ruby-build-system) |
2638 | (native-inputs | |
2639 | `(("bundler" ,bundler))) | |
2640 | (synopsis "Generic connection pool for Ruby") | |
2641 | (description "Connection_pool provides a generic connection pooling | |
2642 | interface for Ruby programs.") | |
2643 | (home-page "https://github.com/mperham/connection_pool") | |
2644 | (license license:expat))) | |
4c0aeb44 | 2645 | |
4a98314d MB |
2646 | (define-public ruby-fast-gettext |
2647 | (package | |
2648 | (name "ruby-fast-gettext") | |
c3beb7ce | 2649 | (version "2.0.3") |
4a98314d MB |
2650 | (home-page "https://github.com/grosser/fast_gettext") |
2651 | (source (origin | |
2652 | (method git-fetch) | |
2653 | (uri (git-reference (url home-page) | |
2654 | (commit (string-append "v" version)))) | |
2655 | (file-name (git-file-name name version)) | |
2656 | (sha256 | |
2657 | (base32 | |
c3beb7ce | 2658 | "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6")))) |
4a98314d MB |
2659 | (build-system ruby-build-system) |
2660 | (arguments | |
2661 | '(#:test-target "spec" | |
2662 | #:phases (modify-phases %standard-phases | |
2663 | (add-before 'check 'remove-version-constraints | |
2664 | (lambda _ | |
2665 | (delete-file "Gemfile.lock") | |
2666 | #t)) | |
2667 | (add-before 'check 'remove-activerecord-test | |
2668 | (lambda _ | |
2669 | ;; FIXME: This test fails because ActiveRecord depends on | |
2670 | ;; a different version of ruby-sqlite than the currently | |
2671 | ;; available one. | |
2672 | (delete-file | |
2673 | "spec/fast_gettext/translation_repository/db_spec.rb") | |
2674 | #t)) | |
2675 | (add-before 'check 'disable-i18n-test | |
2676 | (lambda _ | |
2677 | ;; XXX: This test checks i18n intricasies with Rails 3 and | |
2678 | ;; automatically disables itself for Rails 4.0, but does | |
2679 | ;; not know about newer versions as it has not been updated | |
2680 | ;; since 2014. Disable for later versions of Rails too. | |
2681 | (substitute* "spec/fast_gettext/vendor/string_spec.rb" | |
2682 | (((string-append "ActiveRecord::VERSION::MAJOR == 4 and " | |
2683 | "ActiveRecord::VERSION::MINOR == 0")) | |
2684 | "ActiveRecord::VERSION::MAJOR >= 4")) | |
2685 | #t))))) | |
2686 | (native-inputs | |
2687 | `(;; For tests. | |
2688 | ("ruby-activerecord" ,ruby-activerecord) | |
2689 | ("ruby-activesupport" ,ruby-activesupport) | |
2690 | ("ruby-bump" ,ruby-bump) | |
2691 | ("ruby-forking-test-runner" ,ruby-forking-test-runner) | |
2692 | ("ruby-i18n" ,ruby-i18n) | |
2693 | ("ruby-rubocop" ,ruby-rubocop) | |
2694 | ("ruby-rspec" ,ruby-rspec) | |
2695 | ("ruby-single-cov" ,ruby-single-cov) | |
2696 | ("ruby-sqlite3" ,ruby-sqlite3) | |
2697 | ("ruby-wwtd" ,ruby-wwtd))) | |
2698 | (synopsis "Fast implementation of @code{GetText}") | |
2699 | (description | |
2700 | "This package provides an alternative implementation of the Ruby | |
2701 | @code{GetText} library that is approximately 12x faster yet thread safe.") | |
2702 | ;; Some parts are covered by the Ruby license, see file headers. | |
2703 | (license (list license:expat license:ruby)))) | |
2704 | ||
4c0aeb44 DT |
2705 | (define-public ruby-net-http-persistent |
2706 | (package | |
2707 | (name "ruby-net-http-persistent") | |
185ea446 | 2708 | (version "3.0.0") |
4c0aeb44 DT |
2709 | (source (origin |
2710 | (method url-fetch) | |
e83c6d00 | 2711 | (uri (rubygems-uri "net-http-persistent" version)) |
4c0aeb44 DT |
2712 | (sha256 |
2713 | (base32 | |
185ea446 | 2714 | "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18")))) |
4c0aeb44 | 2715 | (build-system ruby-build-system) |
4c0aeb44 DT |
2716 | (native-inputs |
2717 | `(("ruby-connection-pool" ,ruby-connection-pool) | |
2718 | ("ruby-hoe" ,ruby-hoe))) | |
2719 | (synopsis "Persistent HTTP connection manager") | |
2720 | (description "Net::HTTP::Persistent manages persistent HTTP connections | |
2721 | using Net::HTTP, supporting reconnection and retry according to RFC 2616.") | |
2722 | (home-page "https://github.com/drbrain/net-http-persistent") | |
2723 | (license license:expat))) | |
afbbdf77 | 2724 | |
f88bacaf RW |
2725 | (define-public ruby-power-assert |
2726 | (package | |
2727 | (name "ruby-power-assert") | |
6754323b | 2728 | (version "1.1.5") |
f88bacaf RW |
2729 | (source (origin |
2730 | (method url-fetch) | |
2731 | (uri (rubygems-uri "power_assert" version)) | |
2732 | (sha256 | |
2733 | (base32 | |
6754323b | 2734 | "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s")))) |
f88bacaf | 2735 | (build-system ruby-build-system) |
6754323b CB |
2736 | (arguments |
2737 | '(#:tests? #f)) ; No included tests | |
f88bacaf RW |
2738 | (native-inputs |
2739 | `(("bundler" ,bundler))) | |
2740 | (synopsis "Assert library with descriptive assertion messages") | |
2741 | (description "Power-assert is an assertion library providing descriptive | |
2742 | assertion messages for tests.") | |
2743 | (home-page "https://github.com/k-tsj/power_assert") | |
2744 | (license (list license:bsd-2 license:ruby)))) | |
2745 | ||
e42e3bfa CB |
2746 | (define-public ruby-powerpack |
2747 | (package | |
2748 | (name "ruby-powerpack") | |
2749 | (version "0.1.2") | |
2750 | (source | |
2751 | (origin | |
2752 | (method url-fetch) | |
2753 | (uri (rubygems-uri "powerpack" version)) | |
2754 | (sha256 | |
2755 | (base32 | |
2756 | "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv")))) | |
2757 | (build-system ruby-build-system) | |
2758 | (arguments | |
2759 | '(#:test-target "spec")) | |
2760 | (native-inputs | |
2761 | `(("bundler" ,bundler) | |
2762 | ("ruby-rspec" ,ruby-rspec) | |
2763 | ("ruby-yard" ,ruby-yard))) | |
2764 | (synopsis "Useful extensions to core Ruby classes") | |
2765 | (description | |
2766 | "This package provides a few useful extensions to core Ruby classes, | |
2767 | including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and | |
2768 | @code{String}.") | |
2769 | (home-page "https://github.com/bbatsov/powerpack") | |
2770 | (license license:expat))) | |
2771 | ||
347eb21e RW |
2772 | (define-public ruby-locale |
2773 | (package | |
2774 | (name "ruby-locale") | |
2775 | (version "2.1.2") | |
2776 | (source (origin | |
2777 | (method url-fetch) | |
2778 | (uri (rubygems-uri "locale" version)) | |
2779 | (sha256 | |
2780 | (base32 | |
2781 | "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x")))) | |
2782 | (build-system ruby-build-system) | |
2783 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga, | |
2784 | ;; which needs ruby-gettext, which needs ruby-locale. To break the | |
2785 | ;; dependency cycle we disable tests. | |
2786 | (arguments `(#:tests? #f)) | |
2787 | (native-inputs | |
2788 | `(("bundler" ,bundler) | |
2789 | ("ruby-yard" ,ruby-yard))) | |
2790 | (synopsis "Ruby library providing basic localization APIs") | |
2791 | (description | |
2792 | "Ruby-Locale is the pure ruby library which provides basic APIs for | |
2793 | localization.") | |
2794 | (home-page "https://github.com/ruby-gettext/locale") | |
2795 | (license (list license:lgpl3+ license:ruby)))) | |
2796 | ||
09e2b0af CB |
2797 | (define-public ruby-temple |
2798 | (package | |
2799 | (name "ruby-temple") | |
b1c79cab | 2800 | (version "0.8.2") |
09e2b0af CB |
2801 | (source |
2802 | (origin | |
2803 | (method url-fetch) | |
2804 | (uri (rubygems-uri "temple" version)) | |
2805 | (sha256 | |
2806 | (base32 | |
b1c79cab | 2807 | "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861")))) |
09e2b0af CB |
2808 | (build-system ruby-build-system) |
2809 | (native-inputs | |
2810 | `(("ruby-tilt" ,ruby-tilt) | |
2811 | ("ruby-bacon" ,ruby-bacon) | |
2812 | ("ruby-erubis" ,ruby-erubis))) | |
2813 | (synopsis "Template compilation framework in Ruby") | |
2814 | (description | |
2815 | "Temple is an abstraction and framework for compiling templates to pure | |
2816 | Ruby.") | |
2817 | (home-page "https://github.com/judofyr/temple") | |
2818 | (license license:expat))) | |
2819 | ||
e2333ea3 RW |
2820 | (define-public ruby-text |
2821 | (package | |
2822 | (name "ruby-text") | |
2823 | (version "1.3.1") | |
2824 | (source (origin | |
2825 | (method url-fetch) | |
2826 | (uri (rubygems-uri "text" version)) | |
2827 | (sha256 | |
2828 | (base32 | |
2829 | "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg")))) | |
2830 | (build-system ruby-build-system) | |
2831 | (synopsis "Collection of text algorithms for Ruby") | |
2832 | (description | |
2833 | "This package provides a collection of text algorithms: Levenshtein, | |
2834 | Soundex, Metaphone, Double Metaphone, Porter Stemming.") | |
7bf837fd | 2835 | (home-page "https://github.com/threedaymonk/text") |
e2333ea3 RW |
2836 | (license license:expat))) |
2837 | ||
c1f52261 RW |
2838 | (define-public ruby-gettext |
2839 | (package | |
2840 | (name "ruby-gettext") | |
2841 | (version "3.1.7") | |
2842 | (source (origin | |
2843 | (method url-fetch) | |
2844 | (uri (rubygems-uri "gettext" version)) | |
2845 | (sha256 | |
2846 | (base32 | |
2847 | "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq")))) | |
2848 | (build-system ruby-build-system) | |
2849 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga, | |
2850 | ;; which needs ruby-gettext. To break the dependency cycle we disable | |
2851 | ;; tests. | |
2852 | (arguments `(#:tests? #f)) | |
2853 | (propagated-inputs | |
2854 | `(("ruby-locale" ,ruby-locale) | |
2855 | ("ruby-text" ,ruby-text))) | |
2856 | (native-inputs | |
2857 | `(("bundler" ,bundler) | |
2858 | ("ruby-yard" ,ruby-yard))) | |
2859 | (synopsis "GNU gettext-like program for Ruby") | |
2860 | (description | |
2861 | "Gettext is a GNU gettext-like program for Ruby. The catalog | |
2862 | file (po-file) used is the same as that used by GNU gettext, allowing you to | |
2863 | use GNU gettext tools for maintenance.") | |
2f3800e5 | 2864 | (home-page "https://ruby-gettext.github.com/") |
c1f52261 RW |
2865 | (license (list license:lgpl3+ license:ruby)))) |
2866 | ||
cc5aeb8c RW |
2867 | (define-public ruby-packnga |
2868 | (package | |
2869 | (name "ruby-packnga") | |
1d60c436 | 2870 | (version "1.0.4") |
cc5aeb8c RW |
2871 | (source (origin |
2872 | (method url-fetch) | |
2873 | (uri (rubygems-uri "packnga" version)) | |
2874 | (sha256 | |
2875 | (base32 | |
1d60c436 | 2876 | "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4")))) |
cc5aeb8c RW |
2877 | (build-system ruby-build-system) |
2878 | ;; ruby-test-unit is required to run tests, but that needs ruby-packnga. | |
2879 | ;; To break the dependency cycle we disable tests. | |
2880 | (arguments `(#:tests? #f)) | |
2881 | (propagated-inputs | |
2882 | `(("ruby-gettext" ,ruby-gettext) | |
2883 | ("ruby-yard" ,ruby-yard))) | |
2884 | (native-inputs | |
2885 | `(("bundler" ,bundler))) | |
2886 | (synopsis "Utility library to package internationalized libraries") | |
2887 | (description | |
2888 | "Packnga is a library to translate to many languages using YARD.") | |
2889 | (home-page "http://ranguba.org/packnga/") | |
2890 | (license license:lgpl2.0+))) | |
2891 | ||
93dc8684 CB |
2892 | (define-public ruby-test-construct |
2893 | (package | |
2894 | (name "ruby-test-construct") | |
2895 | (version "2.0.1") | |
2896 | (source | |
2897 | (origin | |
2898 | (method url-fetch) | |
2899 | (uri (rubygems-uri "test_construct" version)) | |
2900 | (sha256 | |
2901 | (base32 | |
2902 | "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj")))) | |
2903 | (build-system ruby-build-system) | |
2904 | (native-inputs | |
2905 | `(("bundler" ,bundler) | |
2906 | ("ruby-mocha" ,ruby-mocha) | |
2907 | ("ruby-rspec" ,ruby-rspec))) | |
2908 | (synopsis "Creates temporary files and directories for testing") | |
2909 | (description | |
2910 | "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating | |
2911 | temporary files and directories during tests.") | |
2912 | (home-page "https://github.com/bhb/test_construct") | |
2913 | (license license:expat))) | |
2914 | ||
3383f5bd RW |
2915 | (define-public ruby-test-unit |
2916 | (package | |
2917 | (name "ruby-test-unit") | |
d74d96e4 | 2918 | (version "3.2.5") |
3383f5bd RW |
2919 | (source (origin |
2920 | (method url-fetch) | |
2921 | (uri (rubygems-uri "test-unit" version)) | |
2922 | (sha256 | |
2923 | (base32 | |
d74d96e4 | 2924 | "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52")))) |
3383f5bd RW |
2925 | (build-system ruby-build-system) |
2926 | (propagated-inputs | |
2927 | `(("ruby-power-assert" ,ruby-power-assert))) | |
2928 | (native-inputs | |
2929 | `(("bundler" ,bundler) | |
2930 | ("ruby-packnga" ,ruby-packnga) | |
2931 | ("ruby-yard" ,ruby-yard))) | |
2932 | (synopsis "Unit testing framework for Ruby") | |
2933 | (description "@code{Test::Unit} is unit testing framework for Ruby, based | |
2934 | on xUnit principles. These were originally designed by Kent Beck, creator of | |
2935 | extreme programming software development methodology, for Smalltalk's SUnit. | |
2936 | It allows writing tests, checking results and automated testing in Ruby.") | |
2f3800e5 | 2937 | (home-page "https://test-unit.github.io/") |
3383f5bd RW |
2938 | (license (list license:psfl license:ruby)))) |
2939 | ||
76b732fb CB |
2940 | (define-public ruby-markaby |
2941 | (package | |
2942 | (name "ruby-markaby") | |
2943 | (version "0.9.0") | |
2944 | (source | |
2945 | (origin | |
2946 | (method url-fetch) | |
2947 | (uri (rubygems-uri "markaby" version)) | |
2948 | (sha256 | |
2949 | (base32 | |
2950 | "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i")))) | |
2951 | (build-system ruby-build-system) | |
2952 | (arguments | |
2953 | '(#:phases | |
2954 | (modify-phases %standard-phases | |
2955 | ;; Run rspec manually without using the Rakefile, as the versions of | |
2956 | ;; Rake and RSpec 2 are incompatible: | |
2957 | ;; | |
2958 | ;; NoMethodError: undefined method `last_comment' | |
2959 | (replace 'check | |
2960 | (lambda* (#:key tests? #:allow-other-keys) | |
2961 | (when tests? | |
2962 | (invoke "rspec")) | |
2963 | #t))))) | |
2964 | (propagated-inputs | |
2965 | `(("ruby-builder" ,ruby-builder))) | |
2966 | (native-inputs | |
2967 | `(("bundler" ,bundler) | |
2968 | ("ruby-rspec" ,ruby-rspec-2))) | |
2969 | (synopsis "Write HTML pages in pure Ruby") | |
2970 | (description | |
2971 | "Markaby allows writing HTML packages in pure Ruby. This is similar to | |
e54af322 | 2972 | the functionality provided by @acronym{ERB, Embedded Ruby}, but without the |
76b732fb | 2973 | mixture of HTML and additional ERB syntax.") |
41181b76 | 2974 | (home-page "https://markaby.github.io/") |
76b732fb CB |
2975 | (license license:expat))) |
2976 | ||
b9511aa9 CB |
2977 | (define-public ruby-maruku |
2978 | (package | |
2979 | (name "ruby-maruku") | |
2980 | (version "0.7.3") | |
2981 | (source | |
2982 | (origin | |
2983 | (method url-fetch) | |
2984 | (uri (rubygems-uri "maruku" version)) | |
2985 | (sha256 | |
2986 | (base32 | |
2987 | "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x")))) | |
2988 | (build-system ruby-build-system) | |
2989 | (arguments | |
2990 | '(;; TODO: 3 tests seem to fail due to HTML encoding issues | |
2991 | #:tests? #f | |
2992 | #:phases | |
2993 | (modify-phases %standard-phases | |
2994 | (replace 'check | |
2995 | (lambda* (#:key tests? #:allow-other-keys) | |
2996 | (when tests? | |
2997 | (invoke "rspec")) | |
2998 | #t))))) | |
2999 | (native-inputs | |
3000 | `(("ruby-rspec" ,ruby-rspec) | |
3001 | ("ruby-simplecov" ,ruby-simplecov) | |
3002 | ("ruby-nokogiri-diff" ,ruby-nokogiri-diff))) | |
3003 | (synopsis "Markdown interpreter in Ruby") | |
3004 | (description | |
3005 | "Maruku is a Markdown interpreter in Ruby. It can export Markdown to | |
3006 | HTML, and PDF through LaTeX.") | |
3007 | (home-page "https://github.com/bhollis/maruku") | |
3008 | (license license:expat))) | |
3009 | ||
25d6d49b RW |
3010 | (define-public ruby-metaclass |
3011 | (package | |
3012 | (name "ruby-metaclass") | |
3013 | (version "0.0.4") | |
3014 | (source (origin | |
3015 | (method url-fetch) | |
3016 | (uri (rubygems-uri "metaclass" version)) | |
3017 | (sha256 | |
3018 | (base32 | |
3019 | "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5")))) | |
3020 | (build-system ruby-build-system) | |
3021 | (arguments | |
3022 | `(#:phases | |
3023 | (modify-phases %standard-phases | |
3024 | (add-after 'unpack 'add-test-unit-to-search-path | |
761e7042 | 3025 | (lambda* (#:key inputs #:allow-other-keys) |
3cb3fa67 | 3026 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
3027 | (substitute* "Rakefile" |
3028 | (("t\\.libs << \"test\"" line) | |
3029 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 3030 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
3031 | "/gems/test-unit-" |
3032 | ,(package-version ruby-test-unit) | |
3033 | "/lib\"")))) | |
3034 | #t))))) | |
25d6d49b RW |
3035 | (native-inputs |
3036 | `(("bundler" ,bundler) | |
3037 | ("ruby-test-unit" ,ruby-test-unit))) | |
3038 | (synopsis "Ruby library adding metaclass method to all objects") | |
3039 | (description | |
3040 | "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby | |
3041 | objects.") | |
7bf837fd | 3042 | (home-page "https://github.com/floehopper/metaclass") |
25d6d49b RW |
3043 | (license license:expat))) |
3044 | ||
fae1c866 MB |
3045 | (define-public ruby-mkmf-lite |
3046 | (package | |
3047 | (name "ruby-mkmf-lite") | |
3048 | (version "0.3.2") | |
3049 | (source (origin | |
3050 | (method url-fetch) | |
3051 | (uri (rubygems-uri "mkmf-lite" version)) | |
3052 | (sha256 | |
3053 | (base32 | |
3054 | "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06")))) | |
3055 | (build-system ruby-build-system) | |
3056 | (propagated-inputs | |
3057 | `(("ruby-ptools" ,ruby-ptools))) | |
3058 | (synopsis "Lightweight alternative to @code{mkmf}") | |
3059 | (description | |
3060 | "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed | |
3061 | for use as a library. It does not create packages, builds, or log files of | |
3062 | any kind. Instead, it provides mixin methods that you can use in FFI or tests | |
3063 | to check for the presence of header files, constants, and so on.") | |
3064 | (home-page "https://github.com/djberg96/mkmf-lite") | |
3065 | (license license:asl2.0))) | |
3066 | ||
1d1d20b0 CB |
3067 | (define-public ruby-mspec |
3068 | (package | |
3069 | (name "ruby-mspec") | |
3070 | (version "1.9.1") | |
3071 | (source | |
3072 | (origin | |
3073 | (method url-fetch) | |
3074 | (uri (rubygems-uri "mspec" version)) | |
3075 | (sha256 | |
3076 | (base32 | |
3077 | "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd")))) | |
3078 | (build-system ruby-build-system) | |
3079 | (arguments | |
3080 | '(;; TODO: 3 test failures | |
3081 | ;; ./spec/mocks/mock_spec.rb:82 | |
3082 | ;; ./spec/utils/name_map_spec.rb:151 | |
3083 | ;; ./spec/utils/name_map_spec.rb:155 | |
3084 | #:tests? #f | |
3085 | #:phases | |
3086 | (modify-phases %standard-phases | |
3087 | (add-after 'extract-gemspec 'change-dependency-constraints | |
3088 | (lambda _ | |
3089 | (substitute* "mspec.gemspec" | |
3090 | (("rake.*") "rake>)\n") | |
3091 | (("rspec.*") "rspec>)\n")) | |
3092 | #t)) | |
3093 | (replace 'check | |
3094 | (lambda* (#:key tests? #:allow-other-keys) | |
3095 | (when tests? | |
3096 | (invoke "rspec" "spec")) | |
3097 | #t))))) | |
3098 | (native-inputs | |
3099 | `(("bundler" ,bundler) | |
3100 | ("ruby-rake" ,ruby-rake) | |
3101 | ("ruby-rspec" ,ruby-rspec))) | |
3102 | (synopsis "MSpec is a specialized framework for RubySpec") | |
3103 | (description | |
3104 | "MSpec is a specialized framework that is syntax-compatible with RSpec 2 | |
3105 | for basic features. MSpec contains additional features that assist in writing | |
3106 | specs for Ruby implementations in ruby/spec.") | |
3107 | (home-page "http://rubyspec.org") | |
3108 | (license license:expat))) | |
3109 | ||
b8aecc31 CB |
3110 | (define-public ruby-mysql2 |
3111 | (package | |
3112 | (name "ruby-mysql2") | |
3113 | (version "0.5.2") | |
3114 | (source | |
3115 | (origin | |
3116 | (method git-fetch) | |
3117 | (uri (git-reference | |
b0e7b699 | 3118 | (url "https://github.com/brianmario/mysql2") |
b8aecc31 CB |
3119 | (commit version))) |
3120 | (file-name (git-file-name name version)) | |
3121 | (sha256 | |
3122 | (base32 | |
3123 | "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv")))) | |
3124 | (build-system ruby-build-system) | |
3125 | (arguments | |
3126 | '(;; TODO: Tests require a running MySQL/MariaDB service | |
3127 | #:tests? #f | |
3128 | #:phases | |
3129 | (modify-phases %standard-phases | |
3130 | (replace 'replace-git-ls-files | |
3131 | (lambda _ | |
3132 | (substitute* "mysql2.gemspec" | |
3133 | (("git ls-files .*`") "find . -type f |sort`")) | |
3134 | #t)) | |
3135 | (add-before 'install 'set-MAKEFLAGS | |
3136 | (lambda* (#:key outputs #:allow-other-keys) | |
3137 | (setenv "MAKEFLAGS" | |
3138 | (string-append | |
3139 | "V=1 " | |
3140 | "prefix=" (assoc-ref outputs "out"))) | |
3141 | #t)) | |
3142 | ;; Move the 'check phase to after 'install, as then you can test | |
3143 | ;; using the installed mysql2 gem in the store. | |
3144 | (delete 'check) | |
3145 | (add-after 'install 'check | |
3146 | (lambda* (#:key outputs tests? #:allow-other-keys) | |
3147 | (setenv "GEM_PATH" | |
3148 | (string-append | |
3149 | (getenv "GEM_PATH") | |
3150 | ":" | |
3151 | (assoc-ref outputs "out") "/lib/ruby/vendor_ruby")) | |
3152 | (when tests? | |
3153 | (invoke "rspec")) | |
3154 | #t))))) | |
3155 | (inputs | |
2b8491fb JL |
3156 | `(("mariadb" ,mariadb "lib") |
3157 | ("mariadb-dev" ,mariadb "dev") | |
b8aecc31 CB |
3158 | ("zlib" ,zlib))) |
3159 | (native-inputs | |
3160 | `(("ruby-rspec" ,ruby-rspec) | |
3161 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
3162 | (synopsis "MySQL library for Ruby, binding to libmysql") | |
3163 | (description | |
3164 | "This package provides a simple, fast MySQL library for Ruby, binding to | |
3165 | libmysql.") | |
3166 | (home-page "https://github.com/brianmario/mysql2") | |
3167 | (license license:expat))) | |
3168 | ||
21f7b7bd RW |
3169 | (define-public ruby-blankslate |
3170 | (package | |
3171 | (name "ruby-blankslate") | |
3172 | (version "3.1.3") | |
3173 | (source (origin | |
3174 | (method url-fetch) | |
3175 | (uri (rubygems-uri "blankslate" version)) | |
3176 | (sha256 | |
3177 | (base32 | |
3178 | "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx")))) | |
3179 | (build-system ruby-build-system) | |
3180 | (arguments | |
3181 | `(#:phases | |
3182 | (modify-phases %standard-phases | |
3183 | (replace 'check | |
9923d5a4 | 3184 | (lambda _ (invoke "rspec" "spec/")))))) |
21f7b7bd RW |
3185 | (native-inputs |
3186 | `(("bundler" ,bundler) | |
3187 | ("ruby-rspec" ,ruby-rspec))) | |
3188 | (synopsis "Abstract base class with no predefined methods") | |
3189 | (description | |
3190 | "BlankSlate provides an abstract base class with no predefined | |
3191 | methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful | |
3192 | as a base class when writing classes that depend upon | |
3193 | @code{method_missing} (e.g. dynamic proxies).") | |
7bf837fd | 3194 | (home-page "https://github.com/masover/blankslate") |
21f7b7bd RW |
3195 | (license license:expat))) |
3196 | ||
afdb437c CB |
3197 | (define-public ruby-bond |
3198 | (package | |
3199 | (name "ruby-bond") | |
3200 | (version "0.5.1") | |
3201 | (source | |
3202 | (origin | |
3203 | (method url-fetch) | |
3204 | (uri (rubygems-uri "bond" version)) | |
3205 | (sha256 | |
3206 | (base32 | |
3207 | "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90")))) | |
3208 | (build-system ruby-build-system) | |
3209 | (native-inputs | |
3210 | `(("ruby-bacon" ,ruby-bacon) | |
3211 | ("ruby-bacon-bits" ,ruby-bacon-bits) | |
3212 | ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon))) | |
3213 | (synopsis "Bond can provide custom autocompletion for arguments, methods | |
3214 | and more") | |
3215 | (description | |
3216 | "Bond can autocomplete argument(s) to methods, uniquely completing per | |
3217 | module, per method and per argument. Bond provides a configuration system and | |
3218 | a DSL for creating custom completions and completion rules. Bond can also | |
3219 | load completions that ship with gems. Bond is able to offer more than irb's | |
3220 | completion since it uses the full line of input when completing as opposed to | |
3221 | irb's last-word approach.") | |
3222 | (home-page "http://tagaholic.me/bond/") | |
3223 | (license license:expat))) | |
3224 | ||
f3d7bb93 CB |
3225 | (define-public ruby-idn-ruby |
3226 | (package | |
3227 | (name "ruby-idn-ruby") | |
3228 | (version "0.1.0") | |
3229 | (source | |
3230 | (origin | |
3231 | (method url-fetch) | |
3232 | (uri (rubygems-uri "idn-ruby" version)) | |
3233 | (sha256 | |
3234 | (base32 | |
3235 | "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr")))) | |
3236 | (build-system ruby-build-system) | |
3237 | (arguments | |
3238 | '(#:phases | |
3239 | (modify-phases %standard-phases | |
3240 | (delete 'check) | |
3241 | (add-after 'install 'check | |
3242 | (lambda* (#:key tests? outputs #:allow-other-keys) | |
3243 | (when tests? | |
3244 | (let* ((gem-file (cadr (find-files "." "\\.gem"))) | |
3245 | (name-and-version (basename gem-file ".gem"))) | |
3246 | (apply invoke | |
3247 | "ruby" "--verbose" | |
3248 | (string-append "-I" | |
3249 | (assoc-ref outputs "out") | |
3250 | "/lib/ruby/vendor_ruby/gems/" | |
3251 | name-and-version | |
3252 | "/lib") | |
3253 | (find-files "./test" ".*\\.rb")))) | |
3254 | #t))))) | |
3255 | (inputs | |
3256 | `(("libidn" ,libidn))) | |
3257 | (synopsis "Ruby Bindings for the GNU LibIDN library") | |
3258 | (description | |
3259 | "Ruby Bindings for the GNU LibIDN library, an implementation of the | |
3260 | Stringprep, Punycode and IDNA specifications. These are used to encode and | |
3261 | decode internationalized domain + names according to the IDNA2003 | |
3262 | specifications. | |
3263 | ||
3264 | Included are the most important parts of the Stringprep, Punycode and IDNA | |
3265 | APIs like performing Stringprep processings, encoding to and decoding from | |
3266 | Punycode strings and converting entire domain names to and from the ACE | |
3267 | encoded form.") | |
3268 | (home-page "https://github.com/deepfryed/idn-ruby") | |
3269 | (license license:asl2.0))) | |
3270 | ||
4016ba3f RW |
3271 | (define-public ruby-instantiator |
3272 | (package | |
3273 | (name "ruby-instantiator") | |
688c9076 | 3274 | (version "0.0.7") |
4016ba3f RW |
3275 | (source (origin |
3276 | (method url-fetch) | |
3277 | (uri (rubygems-uri "instantiator" version)) | |
3278 | (sha256 | |
3279 | (base32 | |
688c9076 | 3280 | "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr")))) |
4016ba3f RW |
3281 | (build-system ruby-build-system) |
3282 | (arguments | |
3283 | `(#:phases | |
3284 | (modify-phases %standard-phases | |
3285 | (add-after 'unpack 'add-test-unit-to-search-path | |
761e7042 | 3286 | (lambda* (#:key inputs #:allow-other-keys) |
3cb3fa67 | 3287 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
3288 | (substitute* "Rakefile" |
3289 | (("t\\.libs << \"test\"" line) | |
3290 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 3291 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
3292 | "/gems/test-unit-" |
3293 | ,(package-version ruby-test-unit) | |
3294 | "/lib\"")))) | |
3295 | #t))))) | |
4016ba3f RW |
3296 | (propagated-inputs |
3297 | `(("ruby-blankslate" ,ruby-blankslate))) | |
3298 | (native-inputs | |
3299 | `(("bundler" ,bundler) | |
3300 | ("ruby-test-unit" ,ruby-test-unit))) | |
3301 | (synopsis "Instantiate an arbitrary Ruby class") | |
3302 | (description | |
3303 | "Instantiator lets you instantiate an arbitrary Ruby class without | |
3304 | knowing anything about the constructor.") | |
3305 | (home-page "https://github.com/floehopper/instantiator") | |
3306 | (license license:expat))) | |
3307 | ||
97aee8d3 RW |
3308 | (define-public ruby-introspection |
3309 | (package | |
3310 | (name "ruby-introspection") | |
98ff58a5 | 3311 | (version "0.0.4") |
97aee8d3 RW |
3312 | (source (origin |
3313 | (method url-fetch) | |
3314 | (uri (rubygems-uri "introspection" version)) | |
3315 | (sha256 | |
3316 | (base32 | |
98ff58a5 | 3317 | "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca")))) |
97aee8d3 RW |
3318 | (build-system ruby-build-system) |
3319 | (arguments | |
3320 | `(#:phases | |
3321 | (modify-phases %standard-phases | |
3322 | (add-after 'unpack 'add-test-unit-to-search-path | |
3323 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 3324 | (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))) |
761e7042 BW |
3325 | (substitute* "Rakefile" |
3326 | (("t\\.libs << \"test\"" line) | |
3327 | (string-append line "; t.libs << \"" | |
3cb3fa67 | 3328 | test-unit "/lib/ruby/vendor_ruby" |
761e7042 BW |
3329 | "/gems/test-unit-" |
3330 | ,(package-version ruby-test-unit) | |
3331 | "/lib\"")))) | |
97aee8d3 RW |
3332 | #t))))) |
3333 | (propagated-inputs | |
3334 | `(("ruby-instantiator" ,ruby-instantiator) | |
3335 | ("ruby-metaclass" ,ruby-metaclass))) | |
3336 | (native-inputs | |
3337 | `(("bundler" ,bundler) | |
3338 | ("ruby-blankslate" ,ruby-blankslate) | |
3339 | ("ruby-test-unit" ,ruby-test-unit))) | |
3340 | (synopsis "Dynamic inspection of the method hierarchy on a Ruby object") | |
3341 | (description | |
3342 | "Introspection provides tools to inspect the hierarchy of method | |
3343 | definitions on a Ruby object.") | |
3344 | (home-page "https://github.com/floehopper/introspection") | |
3345 | (license license:expat))) | |
3346 | ||
d93062fd RW |
3347 | (define-public ruby-redcarpet |
3348 | (package | |
3349 | (name "ruby-redcarpet") | |
ba4084bb | 3350 | (version "3.5.0") |
d93062fd RW |
3351 | (source (origin |
3352 | (method url-fetch) | |
3353 | (uri (rubygems-uri "redcarpet" version)) | |
3354 | (sha256 | |
3355 | (base32 | |
ba4084bb | 3356 | "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k")))) |
d93062fd RW |
3357 | (build-system ruby-build-system) |
3358 | (arguments | |
3359 | `(#:phases | |
3360 | (modify-phases %standard-phases | |
3361 | ;; The gem archive does not include the conformance tests. | |
3362 | (add-after 'unpack 'disable-conformance-tests | |
3363 | (lambda _ | |
3364 | (substitute* "Rakefile" | |
3365 | (("task :test => %w\\[test:unit test:conformance\\]") | |
3366 | "task :test => %w[test:unit]")) | |
3367 | #t))))) | |
3368 | (native-inputs | |
3369 | `(("bundler" ,bundler) | |
3370 | ("ruby-test-unit" ,ruby-test-unit) | |
3371 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
3372 | (synopsis "Extensible Markdown to (X)HTML converter") | |
3373 | (description | |
3374 | "Redcarpet is an extensible Ruby library for Markdown processing and | |
3375 | conversion to (X)HTML.") | |
7bf837fd | 3376 | (home-page "https://github.com/vmg/redcarpet") |
d93062fd RW |
3377 | (license license:expat))) |
3378 | ||
09924294 CB |
3379 | (define-public ruby-rerun |
3380 | (package | |
3381 | (name "ruby-rerun") | |
3382 | (version "0.13.0") | |
3383 | (source | |
3384 | (origin | |
3385 | (method url-fetch) | |
3386 | (uri (rubygems-uri "rerun" version)) | |
3387 | (sha256 | |
3388 | (base32 | |
3389 | "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz")))) | |
3390 | (build-system ruby-build-system) | |
3391 | (arguments | |
3392 | '(#:tests? #f)) ; No included tests | |
3393 | (propagated-inputs | |
3394 | `(("ruby-listen" ,ruby-listen))) | |
3395 | (synopsis "Run a process, and restart when some monitored files change") | |
3396 | (description | |
52beae7b | 3397 | "Rerun is a tool to launch programs, then monitor the file system, and |
09924294 CB |
3398 | restart the program when any of the monitored files change. It's written in |
3399 | Ruby, but can be used for all programs.") | |
3400 | (home-page "https://github.com/alexch/rerun/") | |
3401 | (license license:expat))) | |
3402 | ||
8d85543b MB |
3403 | (define-public ruby-maxitest |
3404 | (package | |
3405 | (name "ruby-maxitest") | |
3406 | (version "3.6.0") | |
3407 | (home-page "https://github.com/grosser/maxitest") | |
3408 | (source (origin | |
3409 | ;; Pull from git because the gem does not contain tests. | |
3410 | (method git-fetch) | |
3411 | (uri (git-reference | |
3412 | (url home-page) | |
3413 | (commit (string-append "v" version)))) | |
3414 | (file-name (git-file-name name version)) | |
3415 | (sha256 | |
3416 | (base32 | |
3417 | "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8")))) | |
3418 | (build-system ruby-build-system) | |
3419 | (arguments | |
3420 | '(#:test-target "default" | |
3421 | #:phases (modify-phases %standard-phases | |
3422 | (replace 'replace-git-ls-files | |
3423 | (lambda _ | |
3424 | (substitute* "maxitest.gemspec" | |
3425 | (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`") | |
3426 | "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`")) | |
3427 | #t)) | |
3428 | (add-before 'check 'remove-version-constraints | |
3429 | (lambda _ | |
3430 | ;; Don't use specific versions of dependencies, instead | |
3431 | ;; take whatever is available in Guix. | |
3432 | (delete-file "Gemfile.lock") | |
3433 | #t)) | |
3434 | (add-before 'check 'add-mtest-on-PATH | |
3435 | (lambda _ | |
3436 | ;; Tests use 'mtest' which is not automatically added on | |
3437 | ;; PATH. | |
3438 | (setenv "PATH" (string-append (getcwd) "/bin:" | |
3439 | (getenv "PATH"))) | |
3440 | #t))))) | |
3441 | (native-inputs | |
3442 | `(("ps" ,procps) | |
3443 | ("ruby-bump" ,ruby-bump) | |
3444 | ("ruby-byebug" ,ruby-byebug) | |
3445 | ("ruby-rspec" ,ruby-rspec) | |
3446 | ("ruby-wwtd" ,ruby-wwtd))) | |
3447 | (propagated-inputs | |
3448 | `(("ruby-minitest" ,ruby-minitest))) | |
3449 | (synopsis "Minitest with extra features") | |
3450 | (description | |
3451 | "Maxitest is a wrapper around Minitest with extra functionality such | |
3452 | as timeouts, an @command{mtest} executable that can run tests by line | |
3453 | number, support for interrupted tests, better backtraces, and more.") | |
3454 | (license license:expat))) | |
3455 | ||
4f2a52ae RW |
3456 | (define-public ruby-mocha |
3457 | (package | |
3458 | (name "ruby-mocha") | |
2fc3cc24 | 3459 | (version "1.11.2") |
4f2a52ae RW |
3460 | (source (origin |
3461 | (method url-fetch) | |
3462 | (uri (rubygems-uri "mocha" version)) | |
3463 | (sha256 | |
3464 | (base32 | |
2fc3cc24 | 3465 | "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4")))) |
4f2a52ae RW |
3466 | (build-system ruby-build-system) |
3467 | (arguments | |
3468 | `(#:phases | |
3469 | (modify-phases %standard-phases | |
2fc3cc24 MB |
3470 | (add-before 'check 'remove-rubocop-dependency |
3471 | (lambda _ | |
3472 | ;; Disable dependency on Rubocop, which is just a linter, | |
3473 | ;; and would introduce a circular dependency. | |
3474 | (substitute* "mocha.gemspec" | |
3475 | ((".*rubocop.*") | |
3476 | "true\n")) | |
3477 | #t))))) | |
4f2a52ae | 3478 | (native-inputs |
2fc3cc24 | 3479 | `(("ruby-introspection" ,ruby-introspection))) |
4f2a52ae RW |
3480 | (synopsis "Mocking and stubbing library for Ruby") |
3481 | (description | |
3482 | "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which | |
3483 | allows mocking and stubbing of methods on real (non-mock) classes.") | |
3484 | (home-page "http://gofreerange.com/mocha/docs") | |
e3febab5 MB |
3485 | ;; Mocha can be used with either license at the users choice. |
3486 | (license (list license:expat license:ruby)))) | |
4f2a52ae | 3487 | |
cf646acf CB |
3488 | (define-public ruby-mocha-on-bacon |
3489 | (package | |
3490 | (name "ruby-mocha-on-bacon") | |
3491 | (version "0.2.3") | |
3492 | (source | |
3493 | (origin | |
3494 | (method url-fetch) | |
3495 | (uri (rubygems-uri "mocha-on-bacon" version)) | |
3496 | (sha256 | |
3497 | (base32 | |
3498 | "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp")))) | |
3499 | (build-system ruby-build-system) | |
3500 | (arguments | |
3501 | ;; rubygems.org release missing tests | |
3502 | '(#:tests? #f)) | |
3503 | (propagated-inputs `(("ruby-mocha" ,ruby-mocha))) | |
3504 | (synopsis "Mocha adapter for Bacon") | |
3505 | (description | |
3506 | "This package provides a Mocha adapter for Bacon, allowing you to use the | |
3507 | Mocha stubbing and mocking library with Bacon, a small RSpec clone.") | |
3508 | (home-page | |
3509 | "https://github.com/alloy/mocha-on-bacon") | |
3510 | (license license:expat))) | |
3511 | ||
2c84ba7e RW |
3512 | (define-public ruby-net-ssh |
3513 | (package | |
3514 | (name "ruby-net-ssh") | |
5803f872 | 3515 | (version "4.2.0") |
2c84ba7e RW |
3516 | (source (origin |
3517 | (method url-fetch) | |
3518 | (uri (rubygems-uri "net-ssh" version)) | |
3519 | (sha256 | |
3520 | (base32 | |
5803f872 | 3521 | "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx")))) |
2c84ba7e RW |
3522 | (build-system ruby-build-system) |
3523 | (native-inputs | |
a7938625 MB |
3524 | `(("bundler" ,bundler) |
3525 | ("ruby-mocha" ,ruby-mocha) | |
2c84ba7e RW |
3526 | ("ruby-test-unit" ,ruby-test-unit))) |
3527 | (synopsis "Ruby implementation of the SSH2 client protocol") | |
3528 | (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2 | |
3529 | client protocol. It allows you to write programs that invoke and interact | |
3530 | with processes on remote servers, via SSH2.") | |
3531 | (home-page "https://github.com/net-ssh/net-ssh") | |
3532 | (license license:expat))) | |
3533 | ||
d38755cb DM |
3534 | (define-public ruby-net-scp |
3535 | (package | |
3536 | (name "ruby-net-scp") | |
3537 | ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4. | |
3538 | (version "1.2.2.rc2") | |
3539 | (source | |
3540 | (origin | |
e405f996 TGR |
3541 | (method git-fetch) |
3542 | (uri (git-reference | |
b0e7b699 | 3543 | (url "https://github.com/net-ssh/net-scp") |
e405f996 TGR |
3544 | (commit (string-append "v" version)))) |
3545 | (file-name (git-file-name name version)) | |
d38755cb | 3546 | (sha256 |
e405f996 | 3547 | (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx")))) |
d38755cb DM |
3548 | (build-system ruby-build-system) |
3549 | (native-inputs | |
3550 | `(("bundler" ,bundler) | |
3551 | ("ruby-test-unit" ,ruby-test-unit) | |
3552 | ("ruby-mocha" ,ruby-mocha))) | |
3553 | (propagated-inputs | |
3554 | `(("ruby-net-ssh" ,ruby-net-ssh))) | |
3555 | (synopsis "Pure-Ruby SCP client library") | |
3556 | (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP | |
3557 | client protocol.") | |
3558 | (home-page "https://github.com/net-ssh/net-scp") | |
3559 | (license license:expat))) | |
3560 | ||
2206e948 DT |
3561 | (define-public ruby-minitest |
3562 | (package | |
3563 | (name "ruby-minitest") | |
88a105c1 | 3564 | (version "5.11.3") |
2206e948 | 3565 | (source (origin |
e83c6d00 DT |
3566 | (method url-fetch) |
3567 | (uri (rubygems-uri "minitest" version)) | |
2206e948 DT |
3568 | (sha256 |
3569 | (base32 | |
88a105c1 | 3570 | "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq")))) |
2206e948 | 3571 | (build-system ruby-build-system) |
2206e948 DT |
3572 | (native-inputs |
3573 | `(("ruby-hoe" ,ruby-hoe))) | |
3574 | (synopsis "Small test suite library for Ruby") | |
3575 | (description "Minitest provides a complete suite of Ruby testing | |
3576 | facilities supporting TDD, BDD, mocking, and benchmarking.") | |
3577 | (home-page "https://github.com/seattlerb/minitest") | |
3578 | (license license:expat))) | |
3579 | ||
1db6e09f RW |
3580 | ;; This is the last release of Minitest 4, which is used by some packages. |
3581 | (define-public ruby-minitest-4 | |
3582 | (package (inherit ruby-minitest) | |
3583 | (version "4.7.5") | |
3584 | (source (origin | |
3585 | (method url-fetch) | |
3586 | (uri (rubygems-uri "minitest" version)) | |
3587 | (sha256 | |
3588 | (base32 | |
3589 | "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy")))) | |
3590 | (arguments | |
3591 | `(#:phases | |
3592 | (modify-phases %standard-phases | |
3593 | (add-after 'unpack 'remove-unsupported-method | |
3594 | (lambda _ | |
3595 | (substitute* "Rakefile" | |
3596 | (("self\\.rubyforge_name = .*") "")) | |
9a7017eb BW |
3597 | #t)) |
3598 | (add-after 'build 'exclude-failing-tests | |
3599 | (lambda _ | |
3600 | ;; Some tests are failing on Ruby 2.4 due to the deprecation of | |
3601 | ;; Fixnum. | |
3602 | (delete-file "test/minitest/test_minitest_spec.rb") | |
3603 | #t))))))) | |
1db6e09f | 3604 | |
450a3f7f CB |
3605 | (define-public ruby-minitest-around |
3606 | (package | |
3607 | (name "ruby-minitest-around") | |
3608 | (version "0.5.0") | |
3609 | (source | |
3610 | (origin | |
3611 | (method url-fetch) | |
3612 | (uri (rubygems-uri "minitest-around" version)) | |
3613 | (sha256 | |
3614 | (base32 | |
3615 | "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr")))) | |
3616 | (build-system ruby-build-system) | |
3617 | (arguments | |
3618 | '(#:phases | |
3619 | (modify-phases %standard-phases | |
3620 | (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions | |
3621 | (lambda _ | |
3622 | (substitute* "minitest-around.gemspec" | |
3623 | (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n")) | |
3624 | #t))))) | |
3625 | (propagated-inputs | |
3626 | `(("ruby-minitest" ,ruby-minitest))) | |
3627 | (native-inputs | |
3628 | `(("bundler" ,bundler) | |
3629 | ("ruby-cucumber" ,ruby-cucumber) | |
3630 | ("ruby-bump" ,ruby-bump) | |
3631 | ("ruby-test-construct" ,ruby-test-construct))) | |
3632 | (synopsis "Run code around tests in Minitest") | |
3633 | (description | |
3634 | "This library provides a way to run code around tests in Minitest, | |
3635 | written using either the unit test or spec style.") | |
3636 | (home-page "https://github.com/splattael/minitest-around") | |
3637 | (license license:expat))) | |
3638 | ||
35130835 DT |
3639 | (define-public ruby-minitest-sprint |
3640 | (package | |
3641 | (name "ruby-minitest-sprint") | |
3642 | (version "1.1.0") | |
3643 | (source (origin | |
e83c6d00 DT |
3644 | (method url-fetch) |
3645 | (uri (rubygems-uri "minitest-sprint" version)) | |
35130835 DT |
3646 | (sha256 |
3647 | (base32 | |
e83c6d00 | 3648 | "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1")))) |
35130835 | 3649 | (build-system ruby-build-system) |
35130835 DT |
3650 | (native-inputs |
3651 | `(("ruby-hoe" ,ruby-hoe) | |
3652 | ("ruby-minitest" ,ruby-minitest))) | |
3653 | (synopsis "Fast test suite runner for minitest") | |
3654 | (description "Minitest-sprint is a test runner for minitest that makes it | |
3655 | easier to re-run individual failing tests.") | |
3656 | (home-page "https://github.com/seattlerb/minitest-sprint") | |
3657 | (license license:expat))) | |
3658 | ||
0808e361 DT |
3659 | (define-public ruby-minitest-bacon |
3660 | (package | |
3661 | (name "ruby-minitest-bacon") | |
6f9652b0 | 3662 | (version "1.0.3") |
0808e361 | 3663 | (source (origin |
e83c6d00 DT |
3664 | (method url-fetch) |
3665 | (uri (rubygems-uri "minitest-bacon" version)) | |
0808e361 DT |
3666 | (sha256 |
3667 | (base32 | |
6f9652b0 | 3668 | "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj")))) |
0808e361 | 3669 | (build-system ruby-build-system) |
0808e361 DT |
3670 | (native-inputs |
3671 | `(("ruby-hoe" ,ruby-hoe))) | |
3672 | (inputs | |
3673 | `(("ruby-minitest" ,ruby-minitest))) | |
3674 | (synopsis "Bacon compatibility library for minitest") | |
3675 | (description "Minitest-bacon extends minitest with bacon-like | |
3676 | functionality, making it easier to migrate test suites from bacon to minitest.") | |
3677 | (home-page "https://github.com/seattlerb/minitest-bacon") | |
3678 | (license license:expat))) | |
3679 | ||
39dc0eb5 BW |
3680 | (define-public ruby-minitest-focus |
3681 | (package | |
3682 | (name "ruby-minitest-focus") | |
3683 | (version "1.1.2") | |
3684 | (source | |
3685 | (origin | |
3686 | (method url-fetch) | |
3687 | (uri (rubygems-uri "minitest-focus" version)) | |
3688 | (sha256 | |
3689 | (base32 | |
3690 | "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0")))) | |
3691 | (build-system ruby-build-system) | |
3692 | (propagated-inputs | |
3693 | `(("ruby-minitest" ,ruby-minitest))) | |
3694 | (native-inputs | |
3695 | `(("ruby-hoe" ,ruby-hoe))) | |
3696 | (synopsis "Allows a few specific tests to be focused on") | |
3697 | (description | |
3698 | "@code{minitest-focus} gives the ability focus on a few tests with ease | |
3699 | without having to use command-line arguments. It introduces a @code{focus} | |
3700 | class method for use in testing classes, specifying that the next defined test | |
3701 | is to be run.") | |
3702 | (home-page "https://github.com/seattlerb/minitest-focus") | |
3703 | (license license:expat))) | |
3704 | ||
99fc5cd5 BW |
3705 | (define-public ruby-minitest-pretty-diff |
3706 | ;; Use git reference because gem is out of date and does not contain testing | |
3707 | ;; script. There are no releases on GitHub. | |
3708 | (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572")) | |
3709 | (package | |
3710 | (name "ruby-minitest-pretty-diff") | |
3711 | (version (string-append "0.1-1." (string-take commit 8))) | |
3712 | (source (origin | |
3713 | (method git-fetch) | |
3714 | (uri (git-reference | |
b0e7b699 | 3715 | (url "https://github.com/adammck/minitest-pretty_diff") |
99fc5cd5 BW |
3716 | (commit commit))) |
3717 | (file-name (string-append name "-" version "-checkout")) | |
3718 | (sha256 | |
3719 | (base32 | |
3720 | "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r")))) | |
3721 | (build-system ruby-build-system) | |
3722 | (arguments | |
3723 | `(#:phases | |
3724 | (modify-phases %standard-phases | |
3725 | (replace 'check | |
3726 | (lambda _ | |
9923d5a4 | 3727 | (invoke "script/test")))))) |
99fc5cd5 BW |
3728 | (native-inputs |
3729 | `(("bundler" ,bundler) | |
3730 | ("ruby-turn" ,ruby-turn))) | |
3731 | (synopsis "Pretty-print hashes and arrays in MiniTest") | |
3732 | (description | |
3733 | "@code{minitest-pretty_diff} monkey-patches | |
3734 | @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before | |
3735 | diffing them. This makes it easier to spot differences between nested | |
3736 | structures when tests fail.") | |
3737 | (home-page "https://github.com/adammck/minitest-pretty_diff") | |
3738 | (license license:expat)))) | |
3739 | ||
685d0d2f BW |
3740 | (define-public ruby-minitest-moar |
3741 | (package | |
3742 | (name "ruby-minitest-moar") | |
3743 | (version "0.0.4") | |
3744 | (source | |
3745 | (origin | |
3746 | (method url-fetch) | |
3747 | (uri (rubygems-uri "minitest-moar" version)) | |
3748 | (sha256 | |
3749 | (base32 | |
3750 | "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x")))) | |
3751 | (build-system ruby-build-system) | |
3752 | (arguments | |
3753 | `(#:phases | |
3754 | (modify-phases %standard-phases | |
3755 | (add-before 'check 'clean-dependencies | |
3756 | (lambda _ | |
3757 | ;; Remove all gems defined in the Gemfile because these are not | |
3758 | ;; truly needed. | |
3759 | (substitute* "Gemfile" | |
3760 | (("gem .*") "")) | |
3761 | ;; Remove byebug as not needed to run tests. | |
3762 | (substitute* "test/test_helper.rb" | |
3763 | (("require 'byebug'") "")) | |
3764 | #t))))) | |
3765 | (native-inputs | |
3766 | `(("bundler" ,bundler) | |
3767 | ("ruby-minitest" ,ruby-minitest))) | |
3768 | (synopsis "Extra features and changes to MiniTest") | |
3769 | (description "@code{MiniTest Moar} add some additional features and | |
3770 | changes some default behaviours in MiniTest. For instance, Moar replaces the | |
3771 | MiniTest @code{Object#stub} with a global @code{stub} method.") | |
3772 | (home-page "https://github.com/dockyard/minitest-moar") | |
3773 | (license license:expat))) | |
3774 | ||
e07ef1d6 BW |
3775 | (define-public ruby-minitest-bonus-assertions |
3776 | (package | |
3777 | (name "ruby-minitest-bonus-assertions") | |
c9e261b7 | 3778 | (version "3.0") |
e07ef1d6 BW |
3779 | (source |
3780 | (origin | |
3781 | (method url-fetch) | |
3782 | (uri (rubygems-uri "minitest-bonus-assertions" version)) | |
3783 | (sha256 | |
3784 | (base32 | |
c9e261b7 | 3785 | "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a")))) |
e07ef1d6 BW |
3786 | (build-system ruby-build-system) |
3787 | (arguments | |
3788 | `(#:phases | |
3789 | (modify-phases %standard-phases | |
3790 | (add-before 'check 'clean-dependencies | |
3791 | (lambda _ | |
3792 | ;; Remove unneeded require statement that would entail another | |
3793 | ;; dependency. | |
3794 | (substitute* "test/minitest_config.rb" | |
3795 | (("require 'minitest/bisect'") "")) | |
3796 | #t))))) | |
3797 | (native-inputs | |
3798 | `(("ruby-hoe" ,ruby-hoe) | |
3799 | ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff) | |
3800 | ("ruby-minitest-focus" ,ruby-minitest-focus) | |
3801 | ("ruby-minitest-moar" ,ruby-minitest-moar))) | |
3802 | (synopsis "Bonus assertions for @code{Minitest}") | |
3803 | (description | |
3804 | "Minitest bonus assertions provides extra MiniTest assertions. For | |
3805 | instance, it provides @code{assert_true}, @code{assert_false} and | |
3806 | @code{assert_set_equal}.") | |
3807 | (home-page "https://github.com/halostatue/minitest-bonus-assertions") | |
3808 | (license license:expat))) | |
3809 | ||
e2c9a9cc CB |
3810 | (define-public ruby-minitest-reporters |
3811 | (package | |
3812 | (name "ruby-minitest-reporters") | |
3813 | (version "1.3.6") | |
3814 | (source | |
3815 | (origin | |
3816 | (method url-fetch) | |
3817 | (uri (rubygems-uri "minitest-reporters" version)) | |
3818 | (sha256 | |
3819 | (base32 | |
3820 | "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay")))) | |
3821 | (build-system ruby-build-system) | |
3822 | (arguments | |
3823 | '(#:phases | |
3824 | (modify-phases %standard-phases | |
3825 | ;; Remove the requirement on Rubocop, as it isn't useful to run, and | |
3826 | ;; including it as an input can lead to circular dependencies. | |
3827 | (add-after 'unpack 'remove-rubocop-from-Rakefile | |
3828 | (lambda _ | |
3829 | (substitute* "Rakefile" | |
3830 | (("require 'rubocop/rake\\_task'") "") | |
3831 | (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each")) | |
3832 | #t)) | |
3833 | (add-after 'extract-gemspec 'remove-rubocop-from-gemspec | |
3834 | (lambda _ | |
3835 | (substitute* "minitest-reporters.gemspec" | |
3836 | ((".*%q<rubocop>.*") "\n")) | |
3837 | #t))))) | |
3838 | (propagated-inputs | |
3839 | `(("ruby-ansi" ,ruby-ansi) | |
3840 | ("ruby-builder" ,ruby-builder) | |
3841 | ("ruby-minitest" ,ruby-minitest) | |
3842 | ("ruby-progressbar" ,ruby-progressbar))) | |
3843 | (native-inputs | |
3844 | `(("bundler" ,bundler) | |
3845 | ("ruby-maruku" ,ruby-maruku))) | |
3846 | (synopsis "Enhanced reporting for Minitest tests") | |
3847 | (description | |
3848 | "@code{minitest/reporters} provides a custom Minitest runner to improve | |
3849 | how the test state is reported. A number of different reporters are | |
3850 | available, including a spec reporter, progress bar reporter, a HTML | |
3851 | reporter.") | |
3852 | (home-page "https://github.com/kern/minitest-reporters") | |
3853 | (license license:expat))) | |
3854 | ||
e582fa93 BW |
3855 | (define-public ruby-minitest-rg |
3856 | (package | |
3857 | (name "ruby-minitest-rg") | |
3858 | (version "5.2.0") | |
3859 | (source | |
3860 | (origin | |
3861 | (method url-fetch) | |
3862 | (uri (rubygems-uri "minitest-rg" version)) | |
3863 | (sha256 | |
3864 | (base32 | |
3865 | "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354")))) | |
3866 | (build-system ruby-build-system) | |
3867 | (arguments | |
3868 | ;; Some tests fail even outside Guix, so disable tests. | |
3869 | ;; https://github.com/blowmage/minitest-rg/issues/12 | |
3870 | ;; https://github.com/blowmage/minitest-rg/pull/13 | |
3871 | `(#:tests? #f)) | |
3872 | (propagated-inputs | |
3873 | `(("ruby-minitest" ,ruby-minitest))) | |
3874 | (synopsis "Coloured output for Minitest") | |
3875 | (description | |
3876 | "@code{minitest-rg} changes the colour of the output from Minitest.") | |
8e486e80 | 3877 | (home-page "https://blowmage.com/minitest-rg/") |
e582fa93 BW |
3878 | (license license:expat))) |
3879 | ||
2a96dbe6 BW |
3880 | (define-public ruby-minitest-hooks |
3881 | (package | |
3882 | (name "ruby-minitest-hooks") | |
eaaf8b12 | 3883 | (version "1.4.2") |
2a96dbe6 BW |
3884 | (source |
3885 | (origin | |
3886 | (method url-fetch) | |
3887 | (uri (rubygems-uri "minitest-hooks" version)) | |
3888 | (sha256 | |
3889 | (base32 | |
eaaf8b12 | 3890 | "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc")))) |
2a96dbe6 BW |
3891 | (build-system ruby-build-system) |
3892 | (arguments | |
3893 | '(#:test-target "spec")) | |
3894 | (native-inputs | |
3895 | `(("ruby-sequel" ,ruby-sequel) | |
3896 | ("ruby-sqlite3" ,ruby-sqlite3))) | |
3897 | (synopsis "Hooks for the minitest framework") | |
3898 | (description | |
3899 | "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all}, | |
3900 | @code{around_all} hooks for Minitest. This allows, for instance, running each | |
3901 | suite of specs inside a database transaction, running each spec inside its own | |
3902 | savepoint inside that transaction. This can significantly speed up testing | |
3903 | for specs that share expensive database setup code.") | |
7bf837fd | 3904 | (home-page "https://github.com/jeremyevans/minitest-hooks") |
2a96dbe6 BW |
3905 | (license license:expat))) |
3906 | ||
afbbdf77 DT |
3907 | (define-public ruby-daemons |
3908 | (package | |
3909 | (name "ruby-daemons") | |
f03153db | 3910 | (version "1.2.5") |
afbbdf77 DT |
3911 | (source (origin |
3912 | (method url-fetch) | |
e83c6d00 | 3913 | (uri (rubygems-uri "daemons" version)) |
afbbdf77 DT |
3914 | (sha256 |
3915 | (base32 | |
f03153db | 3916 | "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring")))) |
afbbdf77 DT |
3917 | (build-system ruby-build-system) |
3918 | (arguments | |
3919 | `(#:tests? #f)) ; no test suite | |
3920 | (synopsis "Daemonize Ruby programs") | |
3921 | (description "Daemons provides a way to wrap existing Ruby scripts to be | |
3922 | run as a daemon and to be controlled by simple start/stop/restart commands.") | |
3923 | (home-page "https://github.com/thuehlinger/daemons") | |
3924 | (license license:expat))) | |
b03eb6ac CB |
3925 | |
3926 | (define-public ruby-data_uri | |
3927 | (package | |
3928 | (name "ruby-data_uri") | |
3929 | (version "0.1.0") | |
3930 | (source | |
3931 | (origin | |
3932 | (method url-fetch) | |
3933 | (uri (rubygems-uri "data_uri" version)) | |
3934 | (sha256 | |
3935 | (base32 | |
3936 | "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky")))) | |
3937 | (build-system ruby-build-system) | |
3938 | (synopsis "URI class for parsing data URIs") | |
3939 | (description | |
3940 | "Data @acronym{URI, universal resource idenfitier}s allow resources to be | |
3941 | embedded inside a URI. The URI::Data class provides support for parsing these | |
3942 | URIs using the normal URI.parse method.") | |
3943 | (home-page "https://github.com/dball/data_uri") | |
3944 | (license license:expat))) | |
66e20863 | 3945 | |
72c785f9 MB |
3946 | (define-public ruby-deep-merge |
3947 | (package | |
3948 | (name "ruby-deep-merge") | |
3949 | (version "1.2.1") | |
3950 | (home-page "https://github.com/danielsdeleo/deep_merge") | |
3951 | ;; The Rubygem source does not contain the gemspec required for tests. | |
3952 | (source (origin | |
3953 | (method git-fetch) | |
3954 | (uri (git-reference (url home-page) (commit version))) | |
3955 | (file-name (git-file-name name version)) | |
3956 | (sha256 | |
3957 | (base32 | |
3958 | "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931")))) | |
3959 | (build-system ruby-build-system) | |
3960 | (native-inputs | |
3961 | `(("ruby-minitest" ,ruby-minitest))) | |
3962 | (synopsis "Recursively merge hashes") | |
3963 | (description | |
3964 | "Deep Merge is a set of utility functions for @code{Hash}. It permits | |
3965 | you to merge elements inside a hash together recursively.") | |
3966 | (license license:expat))) | |
3967 | ||
66e20863 DT |
3968 | (define-public ruby-git |
3969 | (package | |
3970 | (name "ruby-git") | |
ceaff59e | 3971 | (version "1.3.0") |
66e20863 DT |
3972 | (source (origin |
3973 | (method url-fetch) | |
e83c6d00 | 3974 | (uri (rubygems-uri "git" version)) |
66e20863 DT |
3975 | (sha256 |
3976 | (base32 | |
ceaff59e | 3977 | "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3")))) |
66e20863 DT |
3978 | (build-system ruby-build-system) |
3979 | (arguments | |
e83c6d00 DT |
3980 | `(#:tests? #f ; no tests |
3981 | #:phases (modify-phases %standard-phases | |
3982 | (add-after 'install 'patch-git-binary | |
3983 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
66e20863 DT |
3984 | ;; Make the default git binary an absolute path to the |
3985 | ;; store. | |
e83c6d00 DT |
3986 | (let ((git (string-append (assoc-ref inputs "git") |
3987 | "/bin/git")) | |
3cb3fa67 CB |
3988 | (config (string-append |
3989 | (assoc-ref outputs "out") | |
3990 | "/lib/ruby/vendor_ruby/gems/git-" | |
3991 | ,version "/lib/git/config.rb"))) | |
e83c6d00 | 3992 | (substitute* (list config) |
66e20863 DT |
3993 | (("'git'") |
3994 | (string-append "'" git "'"))) | |
e83c6d00 | 3995 | #t)))))) |
66e20863 DT |
3996 | (inputs |
3997 | `(("git" ,git))) | |
3998 | (synopsis "Ruby wrappers for Git") | |
3999 | (description "Ruby/Git is a Ruby library that can be used to create, read | |
4000 | and manipulate Git repositories by wrapping system calls to the git binary.") | |
4001 | (home-page "https://github.com/schacon/ruby-git") | |
4002 | (license license:expat))) | |
71d3e2c2 | 4003 | |
95598153 MB |
4004 | (define-public ruby-hocon |
4005 | (package | |
4006 | (name "ruby-hocon") | |
fd13ec5f | 4007 | (version "1.3.1") |
95598153 MB |
4008 | (home-page "https://github.com/puppetlabs/ruby-hocon") |
4009 | (source (origin | |
4010 | (method git-fetch) | |
4011 | (uri (git-reference (url home-page) (commit version))) | |
4012 | (file-name (git-file-name name version)) | |
4013 | (sha256 | |
4014 | (base32 | |
fd13ec5f | 4015 | "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr")))) |
95598153 MB |
4016 | (build-system ruby-build-system) |
4017 | (arguments | |
4018 | '(#:phases (modify-phases %standard-phases | |
4019 | (replace 'check | |
4020 | (lambda* (#:key tests? #:allow-other-keys) | |
4021 | (if tests? | |
4022 | (invoke "rspec") | |
4023 | (format #t "test suite not run~%")) | |
4024 | #t))))) | |
4025 | (native-inputs | |
4026 | `(("bundler" ,bundler) | |
4027 | ("ruby-rspec" ,ruby-rspec))) | |
4028 | (synopsis "HOCON config library") | |
4029 | (description | |
4030 | "This package provides Ruby support for the @acronym{HOCON, | |
4031 | Human-Optimized Config Object Notation} configuration file format. It | |
4032 | supports parsing and modifying HOCON and JSON files, and rendering parsed | |
4033 | objects back to a @code{String}.") | |
4034 | (license license:asl2.0))) | |
4035 | ||
71d3e2c2 DT |
4036 | (define-public ruby-slop |
4037 | (package | |
4038 | (name "ruby-slop") | |
d14e5eaa | 4039 | (version "4.5.0") |
71d3e2c2 DT |
4040 | (source (origin |
4041 | (method url-fetch) | |
e83c6d00 | 4042 | (uri (rubygems-uri "slop" version)) |
71d3e2c2 DT |
4043 | (sha256 |
4044 | (base32 | |
d14e5eaa | 4045 | "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p")))) |
71d3e2c2 DT |
4046 | (build-system ruby-build-system) |
4047 | (native-inputs | |
4048 | `(("ruby-minitest" ,ruby-minitest))) | |
4049 | (synopsis "Ruby command line option parser") | |
4050 | (description "Slop provides a Ruby domain specific language for gathering | |
4051 | options and parsing command line flags.") | |
4052 | (home-page "https://github.com/leejarvis/slop") | |
4053 | (license license:expat))) | |
e778a549 | 4054 | |
5337f8b9 DT |
4055 | (define-public ruby-slop-3 |
4056 | (package (inherit ruby-slop) | |
4057 | (version "3.6.0") | |
4058 | (source (origin | |
4059 | (method url-fetch) | |
4060 | (uri (rubygems-uri "slop" version)) | |
4061 | (sha256 | |
4062 | (base32 | |
4063 | "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n")))))) | |
4064 | ||
ca914b5b CB |
4065 | (define-public ruby-multi-xml |
4066 | (package | |
4067 | (name "ruby-multi-xml") | |
4068 | (version "0.6.0") | |
4069 | (source | |
4070 | (origin | |
4071 | (method url-fetch) | |
4072 | (uri (rubygems-uri "multi_xml" version)) | |
4073 | (sha256 | |
4074 | (base32 | |
4075 | "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj")))) | |
4076 | (build-system ruby-build-system) | |
4077 | (arguments | |
4078 | '(#:tests? #f)) ; No included tests | |
4079 | (synopsis "Swappable XML backends for Ruby") | |
4080 | (description | |
4081 | "@code{MultiXml} provides swappable XML backends utilizing either LibXML, | |
4082 | Nokogiri, Ox, or REXML.") | |
4083 | (home-page "https://github.com/sferik/multi_xml") | |
4084 | (license license:expat))) | |
4085 | ||
e778a549 DT |
4086 | (define-public ruby-multipart-post |
4087 | (package | |
4088 | (name "ruby-multipart-post") | |
4089 | (version "2.0.0") | |
4090 | (source (origin | |
4091 | (method url-fetch) | |
e83c6d00 | 4092 | (uri (rubygems-uri "multipart-post" version)) |
e778a549 DT |
4093 | (sha256 |
4094 | (base32 | |
e83c6d00 | 4095 | "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x")))) |
e778a549 DT |
4096 | (build-system ruby-build-system) |
4097 | (native-inputs | |
4098 | `(("bundler" ,bundler))) | |
4099 | (synopsis "Multipart POST library for Ruby") | |
4100 | (description "Multipart-Post Adds multipart POST capability to Ruby's | |
4101 | net/http library.") | |
4102 | (home-page "https://github.com/nicksieger/multipart-post") | |
4103 | (license license:expat))) | |
f8da3af0 | 4104 | |
9a97e7ce CB |
4105 | (define-public ruby-multi-json |
4106 | (package | |
4107 | (name "ruby-multi-json") | |
1b6f5475 | 4108 | (version "1.13.1") |
9a97e7ce CB |
4109 | (source |
4110 | (origin | |
b872b47b | 4111 | (method git-fetch) |
1b6f5475 BW |
4112 | ;; Tests are not distributed at rubygems.org so download from GitHub |
4113 | ;; instead. | |
b872b47b EF |
4114 | (uri (git-reference |
4115 | (url "https://github.com/intridea/multi_json") | |
4116 | (commit (string-append "v" version)))) | |
4117 | (file-name (git-file-name name version)) | |
9a97e7ce CB |
4118 | (sha256 |
4119 | (base32 | |
b872b47b | 4120 | "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4")))) |
9a97e7ce CB |
4121 | (build-system ruby-build-system) |
4122 | (arguments | |
1b6f5475 BW |
4123 | `(#:phases |
4124 | (modify-phases %standard-phases | |
4125 | (add-after 'unpack 'remove-signing-key-reference | |
4126 | (lambda _ | |
4127 | (substitute* "multi_json.gemspec" | |
4128 | ((".*spec.signing_key.*") "")) | |
4129 | #t))))) | |
4130 | (native-inputs | |
4131 | `(("bundler" ,bundler) | |
4132 | ("ruby-rspec" ,ruby-rspec) | |
4133 | ("ruby-yard" ,ruby-yard) | |
4134 | ("ruby-json-pure" ,ruby-json-pure) | |
4135 | ("ruby-oj" ,ruby-oj) | |
4136 | ("ruby-yajl-ruby" ,ruby-yajl-ruby))) | |
9a97e7ce CB |
4137 | (synopsis "Common interface to multiple JSON libraries for Ruby") |
4138 | (description | |
4139 | "This package provides a common interface to multiple JSON libraries, | |
4140 | including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem, | |
4141 | NSJSONSerialization, gson.rb, JrJackson, and OkJson.") | |
1b6f5475 | 4142 | (home-page "https://github.com/intridea/multi_json") |
9a97e7ce CB |
4143 | (license license:expat))) |
4144 | ||
5edef88b BW |
4145 | (define-public ruby-multi-test |
4146 | (package | |
4147 | (name "ruby-multi-test") | |
4148 | (version "0.1.2") | |
4149 | (source | |
4150 | (origin | |
4151 | (method url-fetch) | |
4152 | (uri (rubygems-uri "multi_test" version)) | |
4153 | (sha256 | |
4154 | (base32 | |
4155 | "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd")))) | |
4156 | (build-system ruby-build-system) | |
4157 | (arguments | |
4158 | '(;; Tests require different sets of specific gem versions to be available, | |
4159 | ;; and there is no gemfile that specifies the newest versions of | |
4160 | ;; dependencies to be tested. | |
4161 | #:tests? #f)) | |
4162 | (synopsis | |
4163 | "Interface to testing libraries loaded into a running Ruby process") | |
4164 | (description | |
4165 | "@code{multi_test} provides a uniform interface onto whatever testing | |
4166 | libraries that have been loaded into a running Ruby process to help control | |
4167 | rogue test/unit/autorun requires.") | |
4168 | (home-page "https://github.com/cucumber/multi_test") | |
9a97e7ce CB |
4169 | (license license:expat))) |
4170 | ||
f8da3af0 DT |
4171 | (define-public ruby-arel |
4172 | (package | |
4173 | (name "ruby-arel") | |
aecd533d | 4174 | (version "9.0.0") |
f8da3af0 DT |
4175 | (source (origin |
4176 | (method url-fetch) | |
4177 | (uri (rubygems-uri "arel" version)) | |
4178 | (sha256 | |
4179 | (base32 | |
aecd533d | 4180 | "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0")))) |
f8da3af0 DT |
4181 | (build-system ruby-build-system) |
4182 | (arguments '(#:tests? #f)) ; no tests | |
4183 | (home-page "https://github.com/rails/arel") | |
4184 | (synopsis "SQL AST manager for Ruby") | |
6f23e2fb TGR |
4185 | (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for |
4186 | Ruby. It simplifies the generation of complex SQL queries and adapts to | |
4187 | various relational database implementations.") | |
f8da3af0 | 4188 | (license license:expat))) |
616eaead | 4189 | |
554bf4f6 CB |
4190 | (define-public ruby-marcel |
4191 | (package | |
4192 | (name "ruby-marcel") | |
4193 | (version "0.3.3") | |
4194 | (source | |
4195 | (origin | |
4196 | (method url-fetch) | |
4197 | (uri (rubygems-uri "marcel" version)) | |
4198 | (sha256 | |
4199 | (base32 | |
4200 | "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx")))) | |
4201 | (build-system ruby-build-system) | |
4202 | (arguments | |
4203 | '(;; No included tests | |
4204 | #:tests? #f)) | |
4205 | (propagated-inputs | |
4206 | `(("ruby-mimemagic" ,ruby-mimemagic))) | |
4207 | (synopsis "MIME type detection using magic numbers, filenames and extensions") | |
4208 | (description | |
4209 | "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail | |
4210 | Extensions} type detection using magic numbers, filenames, and extensions") | |
4211 | (home-page "https://github.com/basecamp/marcel") | |
4212 | (license license:expat))) | |
4213 | ||
616eaead | 4214 | (define-public ruby-minitar |
bfaf8efd BW |
4215 | ;; We package from the GitHub source to fix the security issue reported at |
4216 | ;; https://github.com/halostatue/minitar/issues/16. | |
4217 | (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4")) | |
4218 | (package | |
4219 | (name "ruby-minitar") | |
4220 | (version (string-append "0.5.4-1." (string-take commit 8))) | |
4221 | (source | |
4222 | (origin | |
4223 | (method git-fetch) | |
4224 | (uri (git-reference | |
b0e7b699 | 4225 | (url "https://github.com/halostatue/minitar") |
bfaf8efd BW |
4226 | (commit commit))) |
4227 | (file-name (string-append name "-" version "-checkout")) | |
4228 | (sha256 | |
4229 | (base32 | |
4230 | "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv")))) | |
4231 | (build-system ruby-build-system) | |
4232 | (arguments | |
4233 | '(#:tests? #f)) ; missing a gemspec | |
4234 | (synopsis "Ruby library and utility for handling tar archives") | |
4235 | (description | |
4236 | "Archive::Tar::Minitar is a pure-Ruby library and command-line utility | |
616eaead | 4237 | that provides the ability to deal with POSIX tar archive files.") |
bfaf8efd BW |
4238 | (home-page "http://www.github.com/atoulme/minitar") |
4239 | (license (list license:gpl2+ license:ruby))))) | |
bea1c0e2 DT |
4240 | |
4241 | (define-public ruby-mini-portile | |
4242 | (package | |
4243 | (name "ruby-mini-portile") | |
4244 | (version "0.6.2") | |
4245 | (source | |
4246 | (origin | |
4247 | (method url-fetch) | |
4248 | (uri (rubygems-uri "mini_portile" version)) | |
4249 | (sha256 | |
4250 | (base32 | |
4251 | "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w")))) | |
4252 | (build-system ruby-build-system) | |
4253 | (arguments | |
4254 | '(#:tests? #f)) ; tests require network access | |
4255 | (synopsis "Ports system for Ruby developers") | |
4256 | (description "Mini-portile is a port/recipe system for Ruby developers. | |
4257 | It provides a standard way to compile against specific versions of libraries | |
4258 | to reproduce user environments.") | |
7bf837fd | 4259 | (home-page "https://github.com/flavorjones/mini_portile") |
bea1c0e2 | 4260 | (license license:expat))) |
e920bfca | 4261 | |
d000fc92 BW |
4262 | (define-public ruby-mini-portile-2 |
4263 | (package (inherit ruby-mini-portile) | |
a88ac044 | 4264 | (version "2.4.0") |
d000fc92 BW |
4265 | (source (origin |
4266 | (method url-fetch) | |
4267 | (uri (rubygems-uri "mini_portile2" version)) | |
4268 | (sha256 | |
4269 | (base32 | |
a88ac044 | 4270 | "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy")))))) |
d000fc92 | 4271 | |
e920bfca DT |
4272 | (define-public ruby-nokogiri |
4273 | (package | |
4274 | (name "ruby-nokogiri") | |
62cc7344 | 4275 | (version "1.10.9") |
e920bfca DT |
4276 | (source (origin |
4277 | (method url-fetch) | |
4278 | (uri (rubygems-uri "nokogiri" version)) | |
4279 | (sha256 | |
4280 | (base32 | |
62cc7344 | 4281 | "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm")))) |
e920bfca DT |
4282 | (build-system ruby-build-system) |
4283 | (arguments | |
4284 | ;; Tests fail because Nokogiri can only test with an installed extension, | |
4285 | ;; and also because many test framework dependencies are missing. | |
7b01f250 | 4286 | `(#:tests? #f |
e920bfca DT |
4287 | #:gem-flags (list "--" "--use-system-libraries" |
4288 | (string-append "--with-xml2-include=" | |
4289 | (assoc-ref %build-inputs "libxml2") | |
5e7f1b0b BW |
4290 | "/include/libxml2" )) |
4291 | #:phases | |
4292 | (modify-phases %standard-phases | |
7b01f250 BW |
4293 | (add-before 'build 'patch-extconf |
4294 | ;; 'pkg-config' is not included in the GEM_PATH during | |
4295 | ;; installation, so we add it directly to the load path. | |
4296 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 4297 | (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))) |
7b01f250 BW |
4298 | (substitute* "ext/nokogiri/extconf.rb" |
4299 | (("gem 'pkg-config'.*") | |
4300 | (string-append "$:.unshift '" | |
3cb3fa67 | 4301 | pkg-config "/lib/ruby/vendor_ruby" |
7b01f250 BW |
4302 | "/gems/pkg-config-" |
4303 | ,(package-version ruby-pkg-config) | |
4304 | "/lib'\n")))) | |
5e7f1b0b | 4305 | #t))))) |
e920bfca | 4306 | (native-inputs |
7b01f250 | 4307 | `(("ruby-hoe" ,ruby-hoe))) |
e920bfca DT |
4308 | (inputs |
4309 | `(("zlib" ,zlib) | |
4310 | ("libxml2" ,libxml2) | |
4311 | ("libxslt" ,libxslt))) | |
4312 | (propagated-inputs | |
7b01f250 BW |
4313 | `(("ruby-mini-portile" ,ruby-mini-portile-2) |
4314 | ("ruby-pkg-config" ,ruby-pkg-config))) | |
e920bfca DT |
4315 | (synopsis "HTML, XML, SAX, and Reader parser for Ruby") |
4316 | (description "Nokogiri (鋸) parses and searches XML/HTML, and features | |
4317 | both CSS3 selector and XPath 1.0 support.") | |
4318 | (home-page "http://www.nokogiri.org/") | |
4319 | (license license:expat))) | |
30b0b725 DT |
4320 | |
4321 | (define-public ruby-method-source | |
4322 | (package | |
4323 | (name "ruby-method-source") | |
ec08f469 | 4324 | (version "1.0.0") |
30b0b725 DT |
4325 | (source |
4326 | (origin | |
4327 | (method url-fetch) | |
4328 | (uri (rubygems-uri "method_source" version)) | |
4329 | (sha256 | |
4330 | (base32 | |
ec08f469 | 4331 | "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp")))) |
30b0b725 | 4332 | (build-system ruby-build-system) |
c8355037 BW |
4333 | (arguments |
4334 | `(#:test-target "spec")) | |
30b0b725 | 4335 | (native-inputs |
c8355037 | 4336 | `(("ruby-rspec" ,ruby-rspec) |
30b0b725 DT |
4337 | ("git" ,git))) |
4338 | (synopsis "Retrieve the source code for Ruby methods") | |
4339 | (description "Method_source retrieves the source code for Ruby methods. | |
4340 | Additionally, it can extract source code from Proc and Lambda objects or just | |
4341 | extract comments.") | |
4342 | (home-page "https://github.com/banister/method_source") | |
4343 | (license license:expat))) | |
2e3fdea4 DT |
4344 | |
4345 | (define-public ruby-coderay | |
4346 | (package | |
4347 | (name "ruby-coderay") | |
5cf0997a | 4348 | (version "1.1.2") |
2e3fdea4 DT |
4349 | (source |
4350 | (origin | |
4351 | (method url-fetch) | |
4352 | (uri (rubygems-uri "coderay" version)) | |
4353 | (sha256 | |
4354 | (base32 | |
5cf0997a | 4355 | "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y")))) |
2e3fdea4 DT |
4356 | (build-system ruby-build-system) |
4357 | (arguments | |
4358 | '(#:tests? #f)) ; missing test files | |
4359 | (synopsis "Ruby syntax highlighting library") | |
4360 | (description "Coderay is a Ruby library that provides syntax highlighting | |
4361 | for select languages.") | |
4362 | (home-page "http://coderay.rubychan.de") | |
4363 | (license license:expat))) | |
96e76083 | 4364 | |
f9083965 MC |
4365 | (define-public ruby-cuke-modeler |
4366 | (package | |
4367 | (name "ruby-cuke-modeler") | |
4368 | (version "3.1.0") | |
4369 | (source | |
4370 | (origin | |
4371 | (method url-fetch) | |
4372 | (uri (rubygems-uri "cuke_modeler" version)) | |
4373 | (sha256 | |
4374 | (base32 | |
4375 | "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb")))) | |
4376 | (build-system ruby-build-system) | |
4377 | (arguments `(#:tests? #f)) ;no test suite in gem | |
4378 | (propagated-inputs | |
4379 | `(("ruby-gherkin" ,ruby-gherkin))) | |
4380 | (synopsis "Gherkin test suite analysis tool") | |
4381 | (description "CukeModeler facilitates modeling a test suite that is | |
4382 | written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by | |
4383 | providing an abstraction layer on top of the Abstract Syntax Tree (AST) that | |
4384 | the @code{cucumber-gherkin} generates when parsing features, as well as | |
4385 | providing models for feature files and directories in order to be able to have | |
4386 | a fully traversable model tree of a test suite's structure. These models can | |
4387 | then be analyzed or manipulated more easily than the underlying AST layer.") | |
4388 | (home-page "https://github.com/enkessler/cuke_modeler") | |
4389 | (license license:expat))) | |
4390 | ||
2156cc9c MB |
4391 | (define-public ruby-parallel-tests |
4392 | (package | |
4393 | (name "ruby-parallel-tests") | |
8a01e2fa | 4394 | (version "3.0.0") |
2156cc9c MB |
4395 | (home-page "https://github.com/grosser/parallel_tests") |
4396 | (source (origin | |
4397 | (method git-fetch) | |
4398 | (uri (git-reference | |
4399 | (url home-page) | |
4400 | (commit (string-append "v" version)))) | |
4401 | (file-name (string-append name version)) | |
4402 | (sha256 | |
4403 | (base32 | |
8a01e2fa | 4404 | "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz")))) |
2156cc9c MB |
4405 | (build-system ruby-build-system) |
4406 | (arguments | |
4407 | '(#:test-target "default" | |
4408 | #:phases (modify-phases %standard-phases | |
4409 | (add-after 'patch-source-shebangs 'patch-shell-invokations | |
4410 | (lambda _ | |
4411 | (substitute* '("lib/parallel_tests/tasks.rb" | |
4412 | "spec/parallel_tests/tasks_spec.rb") | |
4413 | (("/bin/sh") (which "sh")) | |
4414 | (("/bin/bash") (which "bash"))) | |
4415 | #t)) | |
4416 | (add-before 'check 'remove-version-constraints | |
4417 | (lambda _ | |
4418 | ;; Remove hard coded version constraints, instead just | |
4419 | ;; use whatever versions are available in Guix. | |
4420 | (delete-file "Gemfile.lock") | |
4421 | (substitute* "Gemfile" | |
4422 | (("'minitest',.*") | |
4423 | "'minitest'\n") | |
4424 | (("'cucumber',.*") | |
4425 | "'cucumber'\n")) | |
4426 | #t)) | |
4427 | (add-before 'check 'disable-rails-test | |
4428 | (lambda _ | |
4429 | ;; XXX: This test attempts to download and run the test | |
4430 | ;; suites of multiple Rails versions(!) directly. | |
4431 | (delete-file "spec/rails_spec.rb") | |
4432 | #t)) | |
4433 | (add-before 'check 'set-HOME | |
4434 | (lambda _ | |
4435 | ;; Some tests check the output of Bundler, and fail when | |
4436 | ;; Bundler warns that /homeless-shelter does not exist. | |
4437 | (setenv "HOME" "/tmp") | |
4438 | #t))))) | |
4439 | (native-inputs | |
4440 | `(("ruby-bump" ,ruby-bump) | |
4441 | ("ruby-cucumber" ,ruby-cucumber) | |
8a01e2fa | 4442 | ("ruby-cuke-modeler" ,ruby-cuke-modeler) |
2156cc9c MB |
4443 | ("ruby-minitest" ,ruby-minitest) |
4444 | ("ruby-rake" ,ruby-rake) | |
4445 | ("ruby-rspec" ,ruby-rspec) | |
4446 | ("ruby-spinach" ,ruby-spinach))) | |
4447 | (propagated-inputs | |
4448 | `(("ruby-parallel" ,ruby-parallel))) | |
4449 | (synopsis "Run tests in parallel") | |
4450 | (description | |
4451 | "This package can speed up @code{Test::Unit}, @code{RSpec}, | |
4452 | @code{Cucumber}, and @code{Spinach} tests by running them concurrently | |
4453 | across multiple CPU cores.") | |
4454 | (license license:expat))) | |
4455 | ||
54993457 CB |
4456 | (define-public ruby-parser |
4457 | (package | |
4458 | (name "ruby-parser") | |
4459 | (version "2.6.0.0") | |
4460 | (source | |
4461 | (origin | |
4462 | (method url-fetch) | |
4463 | (uri (rubygems-uri "parser" version)) | |
4464 | (sha256 | |
4465 | (base32 | |
4466 | "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm")))) | |
4467 | (build-system ruby-build-system) | |
4468 | (native-inputs | |
4469 | `(("bundler" ,bundler) | |
4470 | ("ruby-cliver" ,ruby-cliver) | |
4471 | ("ruby-simplecov" ,ruby-simplecov) | |
4472 | ("ruby-racc" ,ruby-racc))) | |
4473 | (inputs | |
4474 | `(("ragel" ,ragel))) | |
4475 | (propagated-inputs | |
4476 | `(("ruby-ast" ,ruby-ast))) | |
4477 | (synopsis "Ruby parser written in pure Ruby") | |
4478 | (description | |
4479 | "This package provides a Ruby parser written in pure Ruby.") | |
4480 | (home-page "https://github.com/whitequark/parser") | |
4481 | (license license:expat))) | |
4482 | ||
a8cdfd53 MC |
4483 | (define-public ruby-sexp-processor |
4484 | (package | |
4485 | (name "ruby-sexp-processor") | |
4486 | (version "4.15.0") | |
4487 | (source | |
4488 | (origin | |
4489 | (method url-fetch) | |
4490 | (uri (rubygems-uri "sexp_processor" version)) | |
4491 | (sha256 | |
4492 | (base32 | |
4493 | "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55")))) | |
4494 | (build-system ruby-build-system) | |
4495 | (native-inputs | |
4496 | ;; TODO: Add ruby-minitest-proveit once available. | |
4497 | `(("hoe" ,ruby-hoe))) | |
4498 | (synopsis "ParseTree fork which includes generic S-exp processing tools") | |
4499 | (description "The sexp_processor package is derived from ParseTree, but | |
4500 | contrary to ParseTree, it includes all the generic S-exp processing tools. | |
4501 | Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and | |
4502 | @code{Environment}") | |
4503 | (home-page "https://github.com/seattlerb/sexp_processor") | |
4504 | (license license:expat))) | |
4505 | ||
24be6751 MC |
4506 | (define-public ruby-ruby-parser |
4507 | (package | |
4508 | (name "ruby-ruby-parser") | |
4509 | (version "3.14.2") | |
4510 | (source | |
4511 | (origin | |
4512 | (method url-fetch) | |
4513 | (uri (rubygems-uri "ruby_parser" version)) | |
4514 | (sha256 | |
4515 | (base32 | |
4516 | "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c")))) | |
4517 | (build-system ruby-build-system) | |
4518 | (native-inputs | |
4519 | `(("hoe" ,ruby-hoe) | |
4520 | ("racc" ,ruby-racc) | |
4521 | ("unifdef" ,unifdef))) | |
4522 | (propagated-inputs | |
4523 | `(("ruby-sexp-processor" ,ruby-sexp-processor))) | |
4524 | (home-page "https://github.com/seattlerb/ruby_parser/") | |
4525 | (synopsis "Ruby parser written in pure Ruby") | |
4526 | (description "The ruby_parser (RP) package provides a Ruby parser written | |
4527 | in pure Ruby. It outputs S-expressions which can be manipulated and converted | |
4528 | back to Ruby via the @code{ruby2ruby} library.") | |
4529 | (license license:expat))) | |
4530 | ||
16f423cb CB |
4531 | (define-public ruby-prawn-manual-builder |
4532 | (package | |
4533 | (name "ruby-prawn-manual-builder") | |
1d4f0019 | 4534 | (version "0.3.1") |
16f423cb CB |
4535 | (source |
4536 | (origin | |
4537 | (method url-fetch) | |
4538 | (uri (rubygems-uri "prawn-manual_builder" version)) | |
4539 | (sha256 | |
1d4f0019 | 4540 | (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs")))) |
16f423cb CB |
4541 | (build-system ruby-build-system) |
4542 | (arguments | |
1d4f0019 | 4543 | '(#:tests? #f ; no included tests |
16f423cb CB |
4544 | #:phases |
4545 | (modify-phases %standard-phases | |
4546 | (add-after 'extract-gemspec 'patch-gemspec | |
4547 | (lambda _ | |
4548 | (substitute* ".gemspec" | |
4549 | ;; Loosen the requirement for pdf-inspector | |
4550 | (("~> 1\\.0\\.7") ">= 0"))))))) | |
4551 | (propagated-inputs | |
4552 | `(("ruby-coderay" ,ruby-coderay))) | |
4553 | (synopsis "Tool for writing manuals for Prawn and Prawn accessories") | |
4554 | (description | |
4555 | "This package provides a tool for writing manuals for Prawn and Prawn | |
4556 | accessories") | |
4557 | (home-page "https://github.com/prawnpdf/prawn-manual_builder") | |
4558 | (license (list | |
4559 | ;; GPLv2 or GPLv3 or custom license described in LICENSE file | |
4560 | license:gpl2 | |
4561 | license:gpl3)))) | |
4562 | ||
268643b9 CB |
4563 | (define-public ruby-progress_bar |
4564 | (package | |
4565 | (name "ruby-progress_bar") | |
4566 | (version "1.1.0") | |
4567 | (source | |
4568 | (origin | |
4569 | (method url-fetch) | |
4570 | (uri (rubygems-uri "progress_bar" version)) | |
4571 | (sha256 | |
4572 | (base32 | |
4573 | "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48")))) | |
4574 | (build-system ruby-build-system) | |
4575 | (arguments | |
4576 | '(#:test-target "spec")) | |
4577 | (propagated-inputs | |
4578 | `(("ruby-highline" ,ruby-highline) | |
4579 | ("ruby-options" ,ruby-options))) | |
4580 | (native-inputs | |
4581 | `(("bundler" ,bundler) | |
4582 | ("ruby-rspec" ,ruby-rspec) | |
4583 | ("ruby-timecop" ,ruby-timecop))) | |
4584 | (synopsis | |
4585 | "Ruby library for displaying progress bars") | |
4586 | (description | |
4587 | "ProgressBar is a simple library for displaying progress bars. The | |
4588 | maximum value is configurable, and additional information can be displayed | |
4589 | like the percentage completion, estimated time remaining, elapsed time and | |
4590 | rate.") | |
4591 | (home-page "https://github.com/paul/progress_bar") | |
4592 | (license license:wtfpl2))) | |
4593 | ||
95f85d44 CB |
4594 | (define-public ruby-dep |
4595 | (package | |
4596 | (name "ruby-dep") | |
4597 | (version "1.5.0") | |
4598 | (source | |
4599 | (origin | |
4600 | (method url-fetch) | |
4601 | (uri (rubygems-uri "ruby_dep" version)) | |
4602 | (sha256 | |
4603 | (base32 | |
4604 | "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5")))) | |
4605 | (build-system ruby-build-system) | |
4606 | (arguments | |
4607 | '(#:tests? #f)) ; No included tests | |
4608 | (synopsis "Creates a version constraint of supported Rubies") | |
4609 | (description | |
4610 | "This package helps create a version constraint of supported Rubies, | |
4611 | suitable for a gemspec file.") | |
4612 | (home-page "https://github.com/e2/ruby_dep") | |
4613 | (license license:expat))) | |
4614 | ||
158a9253 CB |
4615 | (define-public ruby-progressbar |
4616 | (package | |
4617 | (name "ruby-progressbar") | |
2d2a2363 | 4618 | (version "1.10.1") |
158a9253 CB |
4619 | (source |
4620 | (origin | |
4621 | (method url-fetch) | |
4622 | (uri (rubygems-uri "ruby-progressbar" version)) | |
4623 | (sha256 | |
2d2a2363 | 4624 | (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf")))) |
158a9253 CB |
4625 | (build-system ruby-build-system) |
4626 | (arguments | |
4627 | '(;; TODO: There looks to be a circular dependency with ruby-fuubar. | |
4628 | #:tests? #f)) | |
4629 | (synopsis "Text progress bar library for Ruby") | |
4630 | (description | |
4631 | "Ruby/ProgressBar is an flexible text progress bar library for Ruby. | |
4632 | The output can be customized with a formatting system.") | |
4633 | (home-page "https://github.com/jfelchner/ruby-progressbar") | |
4634 | (license license:expat))) | |
4635 | ||
96e76083 DT |
4636 | (define-public ruby-pry |
4637 | (package | |
4638 | (name "ruby-pry") | |
a0d93c17 | 4639 | (version "0.13.1") |
96e76083 DT |
4640 | (source |
4641 | (origin | |
4642 | (method url-fetch) | |
4643 | (uri (rubygems-uri "pry" version)) | |
4644 | (sha256 | |
4645 | (base32 | |
a0d93c17 | 4646 | "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk")))) |
96e76083 DT |
4647 | (build-system ruby-build-system) |
4648 | (arguments | |
4649 | '(#:tests? #f)) ; no tests | |
4650 | (propagated-inputs | |
4651 | `(("ruby-coderay" ,ruby-coderay) | |
1960d4fd | 4652 | ("ruby-method-source" ,ruby-method-source))) |
96e76083 DT |
4653 | (synopsis "Ruby REPL") |
4654 | (description "Pry is an IRB alternative and runtime developer console for | |
4655 | Ruby. It features syntax highlighting, a plugin architecture, runtime | |
4656 | invocation, and source and documentation browsing.") | |
a0d93c17 | 4657 | (home-page "https://cobaltbluemedia.com/pryrepl/") |
96e76083 | 4658 | (license license:expat))) |
1415792a | 4659 | |
def7908a MB |
4660 | (define-public ruby-single-cov |
4661 | (package | |
4662 | (name "ruby-single-cov") | |
4663 | (version "1.3.2") | |
4664 | (home-page "https://github.com/grosser/single_cov") | |
4665 | (source (origin | |
4666 | (method git-fetch) | |
4667 | (uri (git-reference (url home-page) | |
4668 | (commit (string-append "v" version)))) | |
4669 | (file-name (git-file-name name version)) | |
4670 | (sha256 | |
4671 | (base32 | |
4672 | "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7")))) | |
4673 | (build-system ruby-build-system) | |
4674 | (arguments | |
4675 | '(#:test-target "default" | |
4676 | #:phases (modify-phases %standard-phases | |
4677 | (replace 'replace-git-ls-files | |
4678 | (lambda _ | |
4679 | (substitute* "single_cov.gemspec" | |
4680 | (("`git ls-files lib/ bin/ MIT-LICENSE`") | |
4681 | "`find lib/ bin/ MIT-LICENSE -type f | sort`")) | |
4682 | #t)) | |
4683 | (add-before 'check 'remove-version-constraints | |
4684 | (lambda _ | |
4685 | (delete-file "Gemfile.lock") | |
4686 | #t)) | |
4687 | (add-before 'check 'make-files-writable | |
4688 | (lambda _ | |
4689 | ;; Tests need to create local directories and open files | |
4690 | ;; with write permissions. | |
4691 | (for-each make-file-writable | |
4692 | (find-files "specs" #:directories? #t)) | |
4693 | #t)) | |
4694 | (add-before 'check 'disable-failing-test | |
4695 | (lambda _ | |
4696 | ;; XXX: This test copies assets from minitest, but can | |
4697 | ;; not cope with the files being read-only. Just skip | |
4698 | ;; it for now. | |
4699 | (substitute* "specs/single_cov_spec.rb" | |
4700 | (("it \"complains when coverage is bad\"") | |
4701 | "xit \"complains when coverage is bad\"")) | |
4702 | #t))))) | |
4703 | (native-inputs | |
4704 | `(("ruby-bump" ,ruby-bump) | |
4705 | ("ruby-minitest" ,ruby-minitest) | |
4706 | ("ruby-rspec" ,ruby-rspec) | |
4707 | ("ruby-simplecov" ,ruby-simplecov))) | |
4708 | (synopsis "Code coverage reporting tool") | |
4709 | (description | |
4710 | "This package provides actionable code coverage reports for Ruby | |
4711 | projects. It has very little overhead and can be easily integrated with | |
4712 | development tools to catch coverage problems early.") | |
4713 | (license license:expat))) | |
4714 | ||
051deeb7 RW |
4715 | (define-public ruby-guard |
4716 | (package | |
4717 | (name "ruby-guard") | |
4718 | (version "2.13.0") | |
4719 | (source (origin | |
3c6128f6 | 4720 | (method git-fetch) |
051deeb7 RW |
4721 | ;; The gem does not include a Rakefile, nor does it contain a |
4722 | ;; gemspec file, nor does it come with the tests. This is why | |
4723 | ;; we fetch the tarball from Github. | |
3c6128f6 EF |
4724 | (uri (git-reference |
4725 | (url "https://github.com/guard/guard") | |
4726 | (commit (string-append "v" version)))) | |
4727 | (file-name (git-file-name name version)) | |
051deeb7 RW |
4728 | (sha256 |
4729 | (base32 | |
3c6128f6 | 4730 | "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs")))) |
051deeb7 RW |
4731 | (build-system ruby-build-system) |
4732 | (arguments | |
4733 | `(#:tests? #f ; tests require cucumber | |
4734 | #:phases | |
4735 | (modify-phases %standard-phases | |
4736 | (add-after 'unpack 'remove-git-ls-files | |
4737 | (lambda* (#:key outputs #:allow-other-keys) | |
4738 | (substitute* "guard.gemspec" | |
4739 | (("git ls-files -z") "find . -type f -print0")) | |
4740 | #t)) | |
4741 | (replace 'build | |
4742 | (lambda _ | |
9923d5a4 | 4743 | (invoke "gem" "build" "guard.gemspec")))))) |
051deeb7 RW |
4744 | (propagated-inputs |
4745 | `(("ruby-formatador" ,ruby-formatador) | |
4746 | ("ruby-listen" ,ruby-listen) | |
4747 | ("ruby-lumberjack" ,ruby-lumberjack) | |
4748 | ("ruby-nenv" ,ruby-nenv) | |
4749 | ("ruby-notiffany" ,ruby-notiffany) | |
4750 | ("ruby-pry" ,ruby-pry) | |
4751 | ("ruby-shellany" ,ruby-shellany) | |
4752 | ("ruby-thor" ,ruby-thor))) | |
4753 | (native-inputs | |
4754 | `(("bundler" ,bundler) | |
4755 | ("ruby-rspec" ,ruby-rspec))) | |
4756 | (synopsis "Tool to handle events on file system modifications") | |
4757 | (description | |
4758 | "Guard is a command line tool to easily handle events on file system | |
4759 | modifications. Guard automates various tasks by running custom rules whenever | |
4760 | file or directories are modified.") | |
3c6128f6 | 4761 | (home-page "https://guardgem.org/") |
051deeb7 RW |
4762 | (license license:expat))) |
4763 | ||
c09bc60d MB |
4764 | (define-public ruby-spinach |
4765 | (package | |
4766 | (name "ruby-spinach") | |
4767 | (version "0.11.0") | |
702a1012 | 4768 | (home-page "https://github.com/codegram/spinach") |
c09bc60d MB |
4769 | (source (origin |
4770 | (method url-fetch) | |
4771 | (uri (rubygems-uri "spinach" version)) | |
4772 | (sha256 | |
4773 | (base32 | |
4774 | "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6")))) | |
4775 | (build-system ruby-build-system) | |
4776 | (arguments | |
4777 | ;; FIXME: Disable tests altogether because they depend on 'capybara' | |
4778 | ;; which in turn depends on many other unpackaged gems. Enable once | |
4779 | ;; capybara is available. | |
4780 | '(#:tests? #f)) | |
4781 | (propagated-inputs | |
4782 | `(("ruby-colorize" ,ruby-colorize) | |
4783 | ("ruby-gherkin-ruby" ,ruby-gherkin-ruby) | |
4784 | ("ruby-json" ,ruby-json))) | |
4785 | (synopsis "Gherkin-based BDD framework") | |
4786 | (description | |
4787 | "Spinach is a high-level @acronym{BDD, Behavior-driven development} | |
4788 | framework that leverages the expressive @code{Gherkin} language to help you | |
4789 | define executable specifications of your code.") | |
4790 | (license license:expat))) | |
4791 | ||
bcbb3cc9 CB |
4792 | (define-public ruby-tilt |
4793 | (package | |
4794 | (name "ruby-tilt") | |
c3f15f54 | 4795 | (version "2.0.10") |
bcbb3cc9 CB |
4796 | (source |
4797 | (origin | |
c3f15f54 MC |
4798 | (method git-fetch) ;the distributed gem lacks tests |
4799 | (uri (git-reference | |
b0e7b699 | 4800 | (url "https://github.com/rtomayko/tilt") |
c3f15f54 MC |
4801 | (commit (string-append "v" version)))) |
4802 | (file-name (git-file-name name version)) | |
bcbb3cc9 CB |
4803 | (sha256 |
4804 | (base32 | |
c3f15f54 | 4805 | "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r")))) |
bcbb3cc9 CB |
4806 | (build-system ruby-build-system) |
4807 | (arguments | |
4808 | '(#:phases | |
4809 | (modify-phases %standard-phases | |
4810 | (add-after 'unpack 'remove-some-dependencies | |
4811 | (lambda _ | |
4812 | (substitute* "Gemfile" | |
4813 | ;; TODO ronn is used for generating the manual | |
4814 | (("gem 'ronn'.*") "\n") | |
4815 | ;; ruby-haml has a runtime dependency on ruby-tilt, so don't | |
4816 | ;; pass it in as a native-input | |
4817 | (("gem 'haml'.*") "\n") | |
4818 | ;; TODO Not all of these gems are packaged for Guix yet: | |
4819 | ;; less, coffee-script, livescript, babel-transpiler, | |
4820 | ;; typescript-node | |
4821 | (("if can_execjs") "if false") | |
4822 | ;; Disable the secondary group to reduce the number of | |
4823 | ;; dependencies. None of the normal approaches work, so patch | |
4824 | ;; the Gemfile instead. | |
4825 | (("group :secondary") "[].each")) | |
4826 | #t))))) | |
cfa4a318 MC |
4827 | (propagated-inputs |
4828 | `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby) | |
4829 | ("ruby-sassc" ,ruby-sassc))) | |
bcbb3cc9 CB |
4830 | (native-inputs |
4831 | `(("bundler" ,bundler) | |
4832 | ("ruby-yard" ,ruby-yard) | |
4833 | ("ruby-builder" ,ruby-builder) | |
4834 | ("ruby-erubis" ,ruby-erubis) | |
cfa4a318 | 4835 | ("ruby-markaby" ,ruby-markaby))) |
bcbb3cc9 CB |
4836 | (synopsis "Generic interface to multiple Ruby template engines") |
4837 | (description | |
4838 | "Tilt is a thin interface over a number of different Ruby template | |
4839 | engines in an attempt to make their usage as generic as possible.") | |
4840 | (home-page "https://github.com/rtomayko/tilt/") | |
4841 | (license license:expat))) | |
4842 | ||
1415792a DT |
4843 | (define-public ruby-thread-safe |
4844 | (package | |
4845 | (name "ruby-thread-safe") | |
313dd5dd | 4846 | (version "0.3.6") |
1415792a DT |
4847 | (source |
4848 | (origin | |
4849 | (method url-fetch) | |
4850 | (uri (rubygems-uri "thread_safe" version)) | |
4851 | (sha256 | |
4852 | (base32 | |
313dd5dd | 4853 | "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy")))) |
1415792a DT |
4854 | (build-system ruby-build-system) |
4855 | (arguments | |
4856 | '(#:tests? #f)) ; needs simplecov, among others | |
4857 | (synopsis "Thread-safe utilities for Ruby") | |
4858 | (description "The thread_safe library provides thread-safe collections and | |
4859 | utilities for Ruby.") | |
4860 | (home-page "https://github.com/ruby-concurrency/thread_safe") | |
4861 | (license license:asl2.0))) | |
08a1b701 DT |
4862 | |
4863 | (define-public ruby-tzinfo | |
4864 | (package | |
4865 | (name "ruby-tzinfo") | |
4237af85 | 4866 | (version "1.2.4") |
08a1b701 DT |
4867 | (source |
4868 | (origin | |
4869 | (method url-fetch) | |
4870 | (uri (rubygems-uri "tzinfo" version)) | |
4871 | (sha256 | |
4872 | (base32 | |
4237af85 | 4873 | "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp")))) |
08a1b701 | 4874 | (build-system ruby-build-system) |
740fea08 CB |
4875 | (arguments |
4876 | '(#:phases | |
4877 | (modify-phases %standard-phases | |
4878 | (add-after 'unpack 'skip-safe-tests | |
4879 | (lambda _ | |
4880 | (substitute* "test/test_utils.rb" | |
4881 | (("def safe_test\\(options = \\{\\}\\)") | |
4882 | "def safe_test(options = {}) | |
4883 | skip('The Guix build environment has an unsafe load path')")) | |
4884 | #t))))) | |
08a1b701 DT |
4885 | (propagated-inputs |
4886 | `(("ruby-thread-safe" ,ruby-thread-safe))) | |
4887 | (synopsis "Time zone library for Ruby") | |
4888 | (description "TZInfo is a Ruby library that provides daylight savings | |
4889 | aware transformations between times in different time zones.") | |
2f3800e5 | 4890 | (home-page "https://tzinfo.github.io") |
1e12924a BW |
4891 | (license license:expat))) |
4892 | ||
4893 | (define-public ruby-tzinfo-data | |
4894 | (package | |
4895 | (name "ruby-tzinfo-data") | |
92513191 | 4896 | (version "1.2017.3") |
1e12924a BW |
4897 | (source |
4898 | (origin | |
bb1e7ed0 | 4899 | (method git-fetch) |
1e12924a BW |
4900 | ;; Download from GitHub because the rubygems version does not contain |
4901 | ;; Rakefile or tests. | |
bb1e7ed0 EF |
4902 | (uri (git-reference |
4903 | (url "https://github.com/tzinfo/tzinfo-data") | |
4904 | (commit (string-append "v" version)))) | |
4905 | (file-name (git-file-name name version)) | |
1e12924a BW |
4906 | (sha256 |
4907 | (base32 | |
bb1e7ed0 | 4908 | "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp")) |
1e12924a BW |
4909 | ;; Remove the known test failure. |
4910 | ;; https://github.com/tzinfo/tzinfo-data/issues/10 | |
4911 | ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128 | |
4912 | (patches (search-patches | |
4913 | "ruby-tzinfo-data-ignore-broken-test.patch")))) | |
4914 | (build-system ruby-build-system) | |
4915 | (propagated-inputs | |
4916 | `(("ruby-tzinfo" ,ruby-tzinfo))) | |
4917 | (synopsis "Data from the IANA Time Zone database") | |
4918 | (description | |
4919 | "This library provides @code{TZInfo::Data}, which contains data from the | |
4920 | IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.") | |
2f3800e5 | 4921 | (home-page "https://tzinfo.github.io") |
08a1b701 | 4922 | (license license:expat))) |
c99e2247 | 4923 | |
48e6851f RW |
4924 | (define-public ruby-rb-inotify |
4925 | (package | |
4926 | (name "ruby-rb-inotify") | |
32bbfea8 | 4927 | (version "0.9.10") |
48e6851f RW |
4928 | (source |
4929 | (origin | |
4930 | (method url-fetch) | |
4931 | (uri (rubygems-uri "rb-inotify" version)) | |
4932 | (sha256 | |
4933 | (base32 | |
32bbfea8 | 4934 | "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71")))) |
48e6851f RW |
4935 | (build-system ruby-build-system) |
4936 | (arguments | |
4937 | '(#:tests? #f ; there are no tests | |
4938 | #:phases | |
4939 | (modify-phases %standard-phases | |
4940 | ;; Building the gemspec with rake is not working here since it is | |
4941 | ;; generated with Jeweler. It is also unnecessary because the | |
4942 | ;; existing gemspec does not use any development tools to generate a | |
4943 | ;; list of files. | |
4944 | (replace 'build | |
4945 | (lambda _ | |
9923d5a4 | 4946 | (invoke "gem" "build" "rb-inotify.gemspec")))))) |
48e6851f RW |
4947 | (propagated-inputs |
4948 | `(("ruby-ffi" ,ruby-ffi))) | |
4949 | (native-inputs | |
4950 | `(("ruby-yard" ,ruby-yard))) | |
4951 | (synopsis "Ruby wrapper for Linux's inotify") | |
4952 | (description "rb-inotify is a simple wrapper over the @code{inotify} Linux | |
4953 | kernel subsystem for monitoring changes to files and directories.") | |
4954 | (home-page "https://github.com/nex3/rb-inotify") | |
4955 | (license license:expat))) | |
4956 | ||
a75bdfce RW |
4957 | (define-public ruby-pry-editline |
4958 | (package | |
4959 | (name "ruby-pry-editline") | |
4960 | (version "1.1.2") | |
4961 | (source (origin | |
4962 | (method url-fetch) | |
4963 | (uri (rubygems-uri "pry-editline" version)) | |
4964 | (sha256 | |
4965 | (base32 | |
4966 | "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z")))) | |
4967 | (build-system ruby-build-system) | |
4968 | (arguments `(#:tests? #f)) ; no tests included | |
4969 | (native-inputs | |
4970 | `(("bundler" ,bundler))) | |
4971 | (synopsis "Open the current REPL line in an editor") | |
4972 | (description | |
4973 | "This gem provides a plugin for the Ruby REPL to enable opening the | |
4974 | current line in an external editor.") | |
4975 | (home-page "https://github.com/tpope/pry-editline") | |
4976 | (license license:expat))) | |
4977 | ||
d3b20a02 RW |
4978 | (define-public ruby-sdoc |
4979 | (package | |
4980 | (name "ruby-sdoc") | |
6700dc33 | 4981 | (version "1.1.0") |
d3b20a02 RW |
4982 | (source (origin |
4983 | (method url-fetch) | |
4984 | (uri (rubygems-uri "sdoc" version)) | |
4985 | (sha256 | |
4986 | (base32 | |
6700dc33 | 4987 | "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd")))) |
d3b20a02 RW |
4988 | (build-system ruby-build-system) |
4989 | (arguments | |
4990 | `(#:phases | |
4991 | (modify-phases %standard-phases | |
fc29d5e6 | 4992 | (add-before 'check 'set-rubylib-and-patch-gemfile |
d3b20a02 | 4993 | (lambda _ |
fdf3a68d | 4994 | (setenv "RUBYLIB" "lib") |
fc29d5e6 BW |
4995 | (substitute* "sdoc.gemspec" |
4996 | (("s.add_runtime_dependency.*") "\n") | |
4997 | (("s.add_dependency.*") "\n")) | |
4998 | (substitute* "Gemfile" | |
4999 | (("gem \"rake\".*") | |
5000 | "gem 'rake'\ngem 'rdoc'\ngem 'json'\n")) | |
d3b20a02 RW |
5001 | #t))))) |
5002 | (propagated-inputs | |
5003 | `(("ruby-json" ,ruby-json))) | |
5004 | (native-inputs | |
5005 | `(("bundler" ,bundler) | |
fdf3a68d BW |
5006 | ("ruby-minitest" ,ruby-minitest) |
5007 | ("ruby-hoe" ,ruby-hoe))) | |
d3b20a02 RW |
5008 | (synopsis "Generate searchable RDoc documentation") |
5009 | (description | |
5010 | "SDoc is an RDoc documentation generator to build searchable HTML | |
5011 | documentation for Ruby code.") | |
7bf837fd | 5012 | (home-page "https://github.com/voloko/sdoc") |
d3b20a02 RW |
5013 | (license license:expat))) |
5014 | ||
70b002aa RW |
5015 | (define-public ruby-tins |
5016 | (package | |
5017 | (name "ruby-tins") | |
fbefd6ff | 5018 | (version "1.15.0") |
70b002aa RW |
5019 | (source (origin |
5020 | (method url-fetch) | |
5021 | (uri (rubygems-uri "tins" version)) | |
5022 | (sha256 | |
5023 | (base32 | |
fbefd6ff | 5024 | "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s")))) |
70b002aa RW |
5025 | (build-system ruby-build-system) |
5026 | ;; This gem needs gem-hadar at development time, but gem-hadar needs tins | |
5027 | ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding | |
5028 | ;; the gemspec. | |
5029 | (arguments | |
5030 | `(#:tests? #f ; there are no tests | |
5031 | #:phases | |
5032 | (modify-phases %standard-phases | |
5033 | (replace 'build | |
5034 | (lambda _ | |
5035 | ;; "lib/spruz" is a symlink. Leaving it in the gemspec file | |
5036 | ;; causes an error. | |
5037 | (substitute* "tins.gemspec" | |
5038 | (("\"lib/spruz\", ") "")) | |
9923d5a4 | 5039 | (invoke "gem" "build" "tins.gemspec")))))) |
70b002aa RW |
5040 | (synopsis "Assorted tools for Ruby") |
5041 | (description "Tins is a Ruby library providing assorted tools.") | |
5042 | (home-page "https://github.com/flori/tins") | |
5043 | (license license:expat))) | |
5044 | ||
bc8277e4 RW |
5045 | (define-public ruby-gem-hadar |
5046 | (package | |
5047 | (name "ruby-gem-hadar") | |
3fd577e3 | 5048 | (version "1.9.1") |
bc8277e4 RW |
5049 | (source (origin |
5050 | (method url-fetch) | |
5051 | (uri (rubygems-uri "gem_hadar" version)) | |
5052 | (sha256 | |
5053 | (base32 | |
3fd577e3 | 5054 | "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9")))) |
bc8277e4 RW |
5055 | (build-system ruby-build-system) |
5056 | ;; This gem needs itself at development time. We disable rebuilding of the | |
5057 | ;; gemspec to avoid this loop. | |
5058 | (arguments | |
5059 | `(#:tests? #f ; there are no tests | |
5060 | #:phases | |
5061 | (modify-phases %standard-phases | |
5062 | (replace 'build | |
5063 | (lambda _ | |
9923d5a4 | 5064 | (invoke "gem" "build" "gem_hadar.gemspec")))))) |
bc8277e4 RW |
5065 | (propagated-inputs |
5066 | `(("git" ,git) | |
5067 | ("ruby-tins" ,ruby-tins) | |
3fd577e3 | 5068 | ("ruby-yard" ,ruby-yard))) |
bc8277e4 RW |
5069 | (synopsis "Library for the development of Ruby gems") |
5070 | (description | |
5071 | "This library contains some useful functionality to support the | |
5072 | development of Ruby gems.") | |
5073 | (home-page "https://github.com/flori/gem_hadar") | |
5074 | (license license:expat))) | |
5075 | ||
d8cafe29 RW |
5076 | (define-public ruby-minitest-tu-shim |
5077 | (package | |
5078 | (name "ruby-minitest-tu-shim") | |
5079 | (version "1.3.3") | |
5080 | (source (origin | |
5081 | (method url-fetch) | |
5082 | (uri (rubygems-uri "minitest_tu_shim" version)) | |
5083 | (sha256 | |
5084 | (base32 | |
5085 | "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn")))) | |
5086 | (build-system ruby-build-system) | |
5087 | (arguments | |
5088 | `(#:phases | |
5089 | (modify-phases %standard-phases | |
5090 | (add-after 'unpack 'fix-test-include-path | |
5091 | (lambda* (#:key inputs #:allow-other-keys) | |
3cb3fa67 | 5092 | (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))) |
761e7042 BW |
5093 | (substitute* "Rakefile" |
5094 | (("Hoe\\.add_include_dirs .*") | |
5095 | (string-append "Hoe.add_include_dirs \"" | |
3cb3fa67 | 5096 | minitest "/lib/ruby/vendor_ruby" |
761e7042 BW |
5097 | "/gems/minitest-" |
5098 | ,(package-version ruby-minitest-4) | |
5099 | "/lib" "\"")))) | |
5100 | #t)) | |
d8cafe29 RW |
5101 | (add-before 'check 'fix-test-assumptions |
5102 | (lambda _ | |
5103 | ;; The test output includes the file name, so a couple of tests | |
5104 | ;; fail. Changing the regular expressions slightly fixes this | |
5105 | ;; problem. | |
5106 | (substitute* "test/test_mini_test.rb" | |
5107 | (("output.sub!\\(.*, 'FILE:LINE'\\)") | |
5108 | "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')") | |
5109 | (("gsub\\(/.*, 'FILE:LINE'\\)") | |
5110 | "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")) | |
5111 | #t))))) | |
5112 | (propagated-inputs | |
5113 | `(("ruby-minitest-4" ,ruby-minitest-4))) | |
5114 | (native-inputs | |
5115 | `(("ruby-hoe" ,ruby-hoe))) | |
5116 | (synopsis "Adapter library between minitest and test/unit") | |
5117 | (description | |
5118 | "This library bridges the gap between the small and fast minitest and | |
5119 | Ruby's large and slower test/unit.") | |
5120 | (home-page "https://rubygems.org/gems/minitest_tu_shim") | |
5121 | (license license:expat))) | |
5122 | ||
fd83a212 RW |
5123 | (define-public ruby-term-ansicolor |
5124 | (package | |
5125 | (name "ruby-term-ansicolor") | |
f3a6311a | 5126 | (version "1.6.0") |
fd83a212 RW |
5127 | (source (origin |
5128 | (method url-fetch) | |
5129 | (uri (rubygems-uri "term-ansicolor" version)) | |
5130 | (sha256 | |
5131 | (base32 | |
f3a6311a | 5132 | "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b")))) |
fd83a212 RW |
5133 | (build-system ruby-build-system) |
5134 | ;; Rebuilding the gemspec seems to require git, even though this is not a | |
5135 | ;; git repository, so we just build the gem from the existing gemspec. | |
5136 | (arguments | |
5137 | `(#:phases | |
5138 | (modify-phases %standard-phases | |
39ecb977 CB |
5139 | (add-after 'unpack 'fix-test |
5140 | (lambda - | |
5141 | (substitute* "tests/hsl_triple_test.rb" | |
5142 | (("0\\\\\\.0%") | |
5143 | "0\\.?0?%")))) | |
fd83a212 RW |
5144 | (replace 'build |
5145 | (lambda _ | |
9923d5a4 | 5146 | (invoke "gem" "build" "term-ansicolor.gemspec")))))) |
fd83a212 RW |
5147 | (propagated-inputs |
5148 | `(("ruby-tins" ,ruby-tins))) | |
5149 | (native-inputs | |
5150 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
5151 | ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim))) | |
5152 | (synopsis "Ruby library to control the attributes of terminal output") | |
5153 | (description | |
5154 | "This Ruby library uses ANSI escape sequences to control the attributes | |
5155 | of terminal output.") | |
2f3800e5 | 5156 | (home-page "https://flori.github.io/term-ansicolor/") |
fd83a212 RW |
5157 | ;; There is no mention of the "or later" clause. |
5158 | (license license:gpl2))) | |
5159 | ||
a714c30f CB |
5160 | (define-public ruby-terraform |
5161 | (package | |
5162 | (name "ruby-terraform") | |
5163 | (version "0.22.0") | |
5164 | (source | |
5165 | (origin | |
5166 | (method url-fetch) | |
5167 | (uri (rubygems-uri "ruby-terraform" version)) | |
5168 | (sha256 | |
5169 | (base32 | |
5170 | "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324")))) | |
5171 | (build-system ruby-build-system) | |
5172 | (arguments | |
5173 | '(#:tests? #f)) ; No included tests | |
5174 | (propagated-inputs | |
5175 | `(("ruby-lino" ,ruby-lino))) | |
5176 | (synopsis "Ruby wrapper around the Terraform command line interface") | |
5177 | (description | |
5178 | "This package provides a Ruby wrapper around the Terraform command line | |
5179 | interface so that Terraform can be more easily invoked from Ruby code.") | |
5180 | (home-page "https://github.com/infrablocks/ruby_terraform") | |
5181 | (license license:expat))) | |
5182 | ||
6e376ca4 RW |
5183 | (define-public ruby-pstree |
5184 | (package | |
5185 | (name "ruby-pstree") | |
5186 | (version "0.1.0") | |
5187 | (source (origin | |
5188 | (method url-fetch) | |
5189 | (uri (rubygems-uri "pstree" version)) | |
5190 | (sha256 | |
5191 | (base32 | |
5192 | "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1")))) | |
5193 | (build-system ruby-build-system) | |
5194 | (native-inputs | |
5195 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
5196 | ("bundler" ,bundler))) | |
5197 | (synopsis "Create a process tree data structure") | |
5198 | (description | |
5199 | "This library uses the output of the @code{ps} command to create a | |
5200 | process tree data structure for the current host.") | |
2f3800e5 | 5201 | (home-page "https://github.com/flori/pstree") |
6e376ca4 RW |
5202 | ;; There is no mention of the "or later" clause. |
5203 | (license license:gpl2))) | |
5204 | ||
53239b5f RW |
5205 | (define-public ruby-utils |
5206 | (package | |
5207 | (name "ruby-utils") | |
cd698b6e | 5208 | (version "0.9.0") |
53239b5f RW |
5209 | (source (origin |
5210 | (method url-fetch) | |
5211 | (uri (rubygems-uri "utils" version)) | |
5212 | (sha256 | |
5213 | (base32 | |
cd698b6e | 5214 | "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl")))) |
53239b5f RW |
5215 | (build-system ruby-build-system) |
5216 | (propagated-inputs | |
5217 | `(("ruby-tins" ,ruby-tins) | |
5218 | ("ruby-term-ansicolor" ,ruby-term-ansicolor) | |
5219 | ("ruby-pstree" ,ruby-pstree) | |
5220 | ("ruby-pry-editline" ,ruby-pry-editline))) | |
5221 | (native-inputs | |
5222 | `(("ruby-gem-hadar" ,ruby-gem-hadar) | |
5223 | ("bundler" ,bundler))) | |
5224 | (synopsis "Command line tools for working with Ruby") | |
5225 | (description | |
5226 | "This package provides assorted command line tools that may be useful | |
5227 | when working with Ruby code.") | |
5228 | (home-page "https://github.com/flori/utils") | |
5229 | ;; There is no mention of the "or later" clause. | |
5230 | (license license:gpl2))) | |
5231 | ||
433f10b5 CB |
5232 | (define-public ruby-jaro-winkler |
5233 | (package | |
5234 | (name "ruby-jaro-winkler") | |
37b23e44 | 5235 | (version "1.5.4") |
433f10b5 CB |
5236 | (source |
5237 | (origin | |
5238 | (method url-fetch) | |
5239 | (uri (rubygems-uri "jaro_winkler" version)) | |
5240 | (sha256 | |
37b23e44 | 5241 | (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh")))) |
433f10b5 CB |
5242 | (build-system ruby-build-system) |
5243 | (arguments | |
37b23e44 | 5244 | '(#:tests? #f)) ; no included tests |
433f10b5 CB |
5245 | (synopsis "Ruby implementation of Jaro-Winkler distance algorithm") |
5246 | (description | |
5247 | "@code{jaro_winkler} is an implementation of Jaro-Winkler distance | |
5248 | algorithm. It is written as a C extension and will fallback to a pure Ruby | |
5249 | implementation on platforms where this is unsupported.") | |
5250 | (home-page "https://github.com/tonytonyjan/jaro_winkler") | |
5251 | (license license:expat))) | |
5252 | ||
c99e2247 DT |
5253 | (define-public ruby-json |
5254 | (package | |
5255 | (name "ruby-json") | |
a281acce | 5256 | (version "2.1.0") |
c99e2247 DT |
5257 | (source |
5258 | (origin | |
5259 | (method url-fetch) | |
5260 | (uri (rubygems-uri "json" version)) | |
5261 | (sha256 | |
5262 | (base32 | |
a281acce | 5263 | "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp")))) |
c99e2247 DT |
5264 | (build-system ruby-build-system) |
5265 | (arguments '(#:tests? #f)) ; dependency cycle with sdoc | |
5266 | (synopsis "JSON library for Ruby") | |
5267 | (description "This Ruby library provides a JSON implementation written as | |
5268 | a native C extension.") | |
5269 | (home-page "http://json-jruby.rubyforge.org/") | |
5270 | (license (list license:ruby license:gpl2)))) ; GPL2 only | |
5ff89a1b | 5271 | |
763624f5 RW |
5272 | (define-public ruby-json-pure |
5273 | (package | |
5274 | (name "ruby-json-pure") | |
1c65d99f | 5275 | (version "2.2.0") |
763624f5 RW |
5276 | (source (origin |
5277 | (method url-fetch) | |
5278 | (uri (rubygems-uri "json_pure" version)) | |
5279 | (sha256 | |
5280 | (base32 | |
1c65d99f | 5281 | "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439")))) |
763624f5 RW |
5282 | (build-system ruby-build-system) |
5283 | (arguments | |
ac01cb07 | 5284 | `(#:phases |
763624f5 | 5285 | (modify-phases %standard-phases |
ac01cb07 | 5286 | (add-after 'unpack 'fix-rakefile |
763624f5 | 5287 | (lambda _ |
ac01cb07 BW |
5288 | (substitute* "Rakefile" |
5289 | ;; Since this is not a git repository, do not call 'git'. | |
5290 | (("`git ls-files`") "`find . -type f |sort`") | |
5291 | ;; Loosen dependency constraint. | |
5292 | (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'")) | |
5293 | #t)) | |
5294 | (add-after 'replace-git-ls-files 'regenerate-gemspec | |
5295 | (lambda _ | |
5296 | ;; Regenerate gemspec so loosened dependency constraints are | |
5297 | ;; propagated. | |
17cfb7ae CB |
5298 | (invoke "rake" "gemspec"))) |
5299 | (add-after 'regenerate-gemspec 'fix-json-java.gemspec | |
5300 | (lambda _ | |
5301 | ;; This gemspec doesn't look to be generated by the above | |
5302 | ;; command, so patch it separately. | |
5303 | (substitute* "json-java.gemspec" | |
5304 | (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]") | |
5305 | "%q<test-unit>.freeze, [\">= 2.0\"]")) | |
5306 | #t))))) | |
763624f5 | 5307 | (native-inputs |
ac01cb07 | 5308 | `(("bundler" ,bundler) |
0c9f73cd TGR |
5309 | ("ragel" ,ragel) |
5310 | ("ruby-simplecov" ,ruby-simplecov) | |
5311 | ("ruby-test-unit" ,ruby-test-unit))) | |
763624f5 RW |
5312 | (synopsis "JSON implementation in pure Ruby") |
5313 | (description | |
5314 | "This package provides a JSON implementation written in pure Ruby.") | |
1c65d99f | 5315 | (home-page "https://flori.github.com/json/") |
763624f5 RW |
5316 | (license license:ruby))) |
5317 | ||
2a8581ac CB |
5318 | (define-public ruby-jwt |
5319 | (package | |
5320 | (name "ruby-jwt") | |
5321 | (version "2.1.0") | |
5322 | (source | |
5323 | (origin | |
5324 | (method url-fetch) | |
5325 | (uri (rubygems-uri "jwt" version)) | |
5326 | (sha256 | |
5327 | (base32 | |
5328 | "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky")))) | |
5329 | (build-system ruby-build-system) | |
5330 | (arguments | |
5331 | '(#:test-target "test" | |
5332 | #:phases | |
5333 | (modify-phases %standard-phases | |
5334 | (add-after 'unpack 'remove-unnecessary-dependencies | |
5335 | (lambda _ | |
5336 | (substitute* "spec/spec_helper.rb" | |
5337 | (("require 'simplecov.*") "\n") | |
5338 | ;; Use [].each to disable running the SimpleCov configuration | |
5339 | ;; block | |
5340 | (("SimpleCov\\.configure") "[].each") | |
5341 | (("require 'codeclimate-test-reporter'") "") | |
5342 | (("require 'codacy-coverage'") "") | |
5343 | (("Codacy::Reporter\\.start") "")) | |
5344 | #t))))) | |
5345 | (native-inputs | |
5346 | `(("bundler" ,bundler) | |
5347 | ("ruby-rspec" ,ruby-rspec) | |
5348 | ("ruby-rbnacl" ,ruby-rbnacl))) | |
5349 | (synopsis "Ruby implementation of the JSON Web Token standard") | |
5350 | (description | |
5351 | "This package provides a pure Ruby implementation of the RFC 7519 OAuth | |
5352 | @acronym{JWT, JSON Web Token} standard.") | |
5353 | (home-page "https://github.com/jwt/ruby-jwt") | |
5354 | (license license:expat))) | |
5355 | ||
16b324cd RW |
5356 | ;; Even though this package only provides bindings for a Mac OSX API it is |
5357 | ;; required by "ruby-listen" at runtime. | |
5358 | (define-public ruby-rb-fsevent | |
5359 | (package | |
5360 | (name "ruby-rb-fsevent") | |
b0ef15ed | 5361 | (version "0.10.3") |
16b324cd RW |
5362 | (source (origin |
5363 | (method url-fetch) | |
5364 | (uri (rubygems-uri "rb-fsevent" version)) | |
5365 | (sha256 | |
5366 | (base32 | |
b0ef15ed | 5367 | "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8")))) |
16b324cd RW |
5368 | (build-system ruby-build-system) |
5369 | ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs | |
5370 | ;; "listen", which needs "rb-fsevent" at runtime. | |
5371 | (arguments `(#:tests? #f)) | |
5372 | (synopsis "FSEvents API with signals catching") | |
5373 | (description | |
5374 | "This library provides Ruby bindings for the Mac OSX FSEvents API.") | |
5375 | (home-page "https://rubygems.org/gems/rb-fsevent") | |
5376 | (license license:expat))) | |
5377 | ||
b86be2ad RW |
5378 | (define-public ruby-listen |
5379 | (package | |
5380 | (name "ruby-listen") | |
12341d34 | 5381 | (version "3.2.0") |
b86be2ad RW |
5382 | (source |
5383 | (origin | |
35602819 CB |
5384 | ;; The gem does not include a Rakefile, so fetch from the Git |
5385 | ;; repository. | |
5386 | (method git-fetch) | |
5387 | (uri (git-reference | |
b0e7b699 | 5388 | (url "https://github.com/guard/listen") |
35602819 CB |
5389 | (commit (string-append "v" version)))) |
5390 | (file-name (git-file-name name version)) | |
b86be2ad RW |
5391 | (sha256 |
5392 | (base32 | |
12341d34 | 5393 | "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24")))) |
b86be2ad | 5394 | (build-system ruby-build-system) |
35602819 CB |
5395 | (arguments |
5396 | `(#:test-target "spec" | |
5397 | #:phases | |
5398 | (modify-phases %standard-phases | |
5399 | (add-after 'unpack 'fix-files-in-gemspec | |
5400 | (lambda _ | |
5401 | (substitute* "listen.gemspec" | |
5402 | (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`")) | |
5403 | #t)) | |
5404 | (add-before 'check 'remove-unnecessary-dependencies' | |
5405 | (lambda _ | |
5406 | (substitute* "Rakefile" | |
5407 | ;; Rubocop is for code linting, and is unnecessary for running | |
5408 | ;; the tests. | |
5409 | ((".*rubocop.*") "")) | |
5410 | #t))))) | |
5411 | (native-inputs | |
5412 | `(("bundler" ,bundler) | |
5413 | ("ruby-rspec" ,ruby-rspec))) | |
5414 | (inputs | |
5415 | `(;; ruby-thor is used for the command line interface, and is referenced | |
5416 | ;; in the wrapper, and therefore just needs to be an input. | |
5417 | ("ruby-thor" ,ruby-thor))) | |
b86be2ad | 5418 | (propagated-inputs |
35602819 CB |
5419 | `(("ruby-rb-fsevent" ,ruby-rb-fsevent) |
5420 | ("ruby-rb-inotify" ,ruby-rb-inotify) | |
5421 | ("ruby-dep" ,ruby-dep))) | |
b86be2ad RW |
5422 | (synopsis "Listen to file modifications") |
5423 | (description "The Listen gem listens to file modifications and notifies | |
5424 | you about the changes.") | |
5425 | (home-page "https://github.com/guard/listen") | |
5426 | (license license:expat))) | |
5427 | ||
8d3c5ff6 CB |
5428 | (define-public ruby-loofah |
5429 | (package | |
5430 | (name "ruby-loofah") | |
5431 | (version "2.2.3") | |
5432 | (source | |
5433 | (origin | |
5434 | (method url-fetch) | |
5435 | (uri (rubygems-uri "loofah" version)) | |
5436 | (sha256 | |
5437 | (base32 | |
5438 | "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg")))) | |
5439 | (build-system ruby-build-system) | |
5440 | (arguments | |
5441 | '(#:phases | |
5442 | (modify-phases %standard-phases | |
5443 | (add-after 'unpack 'remove-unnecessary-dependencies | |
5444 | (lambda _ | |
5445 | ;; concourse is a development tool which is unused, so remove it | |
5446 | ;; so it's not required. | |
5447 | (substitute* "Gemfile" | |
5448 | ((".*\"concourse\".*") "\n")) | |
5449 | (substitute* "Rakefile" | |
5450 | (("require 'concourse'") "") | |
5451 | (("Concourse\\.new.*") "\n")) | |
5452 | #t))))) | |
5453 | (native-inputs | |
5454 | `(("ruby-hoe" ,ruby-hoe) | |
5455 | ("ruby-rr" ,ruby-rr))) | |
5456 | (propagated-inputs | |
5457 | `(("ruby-nokogiri" ,ruby-nokogiri) | |
5458 | ("ruby-crass" ,ruby-crass))) | |
5459 | (synopsis "Ruby library for manipulating and transforming HTML/XML") | |
5460 | (description | |
5461 | "Loofah is a general library for manipulating and transforming HTML/XML | |
5462 | documents and fragments. It's built on top of Nokogiri and libxml2.") | |
5463 | (home-page "https://github.com/flavorjones/loofah") | |
5464 | (license license:expat))) | |
5465 | ||
5ff89a1b DT |
5466 | (define-public ruby-activesupport |
5467 | (package | |
5468 | (name "ruby-activesupport") | |
bcf1fe5b | 5469 | (version "5.2.2.1") |
5ff89a1b DT |
5470 | (source |
5471 | (origin | |
5472 | (method url-fetch) | |
5473 | (uri (rubygems-uri "activesupport" version)) | |
5474 | (sha256 | |
5475 | (base32 | |
bcf1fe5b | 5476 | "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb")))) |
5ff89a1b DT |
5477 | (build-system ruby-build-system) |
5478 | (arguments | |
2af45e50 BW |
5479 | `(#:phases |
5480 | (modify-phases %standard-phases | |
5481 | (replace 'check | |
5482 | (lambda _ | |
9923d5a4 TGR |
5483 | ;; There are no tests, instead attempt to load the library. |
5484 | (invoke "ruby" "-Ilib" "-r" "active_support")))))) | |
5ff89a1b | 5485 | (propagated-inputs |
2af45e50 BW |
5486 | `(("ruby-concurrent" ,ruby-concurrent) |
5487 | ("ruby-i18n" ,ruby-i18n) | |
5ff89a1b | 5488 | ("ruby-minitest" ,ruby-minitest) |
606ee9a1 BW |
5489 | ("ruby-tzinfo" ,ruby-tzinfo) |
5490 | ("ruby-tzinfo-data" ,ruby-tzinfo-data))) | |
5ff89a1b DT |
5491 | (synopsis "Ruby on Rails utility library") |
5492 | (description "ActiveSupport is a toolkit of support libraries and Ruby | |
5493 | core extensions extracted from the Rails framework. It includes support for | |
5494 | multibyte strings, internationalization, time zones, and testing.") | |
5495 | (home-page "http://www.rubyonrails.org") | |
5496 | (license license:expat))) | |
f847ad7b | 5497 | |
3996f0aa RW |
5498 | (define-public ruby-crass |
5499 | (package | |
5500 | (name "ruby-crass") | |
a84a185a MB |
5501 | (version "1.0.6") |
5502 | (home-page "https://github.com/rgrove/crass") | |
3996f0aa | 5503 | (source (origin |
a84a185a MB |
5504 | ;; The gem does not contain tests, so pull from git. |
5505 | (method git-fetch) | |
5506 | (uri (git-reference | |
5507 | (url home-page) | |
5508 | (commit (string-append "v" version)))) | |
5509 | (file-name (git-file-name name version)) | |
3996f0aa RW |
5510 | (sha256 |
5511 | (base32 | |
a84a185a | 5512 | "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40")))) |
3996f0aa | 5513 | (build-system ruby-build-system) |
3996f0aa RW |
5514 | (synopsis "Pure Ruby CSS parser") |
5515 | (description | |
5516 | "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.") | |
3996f0aa RW |
5517 | (license license:expat))) |
5518 | ||
c2c4e5b2 | 5519 | (define-public ruby-nokogumbo |
2e366b0a MB |
5520 | (package |
5521 | (name "ruby-nokogumbo") | |
5522 | (version "2.0.2") | |
5523 | (source (origin | |
5524 | ;; We use the git reference, because there's no Rakefile in the | |
5525 | ;; published gem and the tarball on Github is outdated. | |
5526 | (method git-fetch) | |
5527 | (uri (git-reference | |
b0e7b699 | 5528 | (url "https://github.com/rubys/nokogumbo") |
2e366b0a MB |
5529 | (commit (string-append "v" version)))) |
5530 | (file-name (string-append name "-" version "-checkout")) | |
5531 | (sha256 | |
5532 | (base32 | |
5533 | "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx")))) | |
5534 | (build-system ruby-build-system) | |
5535 | (native-inputs | |
5536 | `(("ruby-rake-compiler" ,ruby-rake-compiler))) | |
5537 | (inputs | |
5538 | `(("gumbo-parser" ,gumbo-parser))) | |
5539 | (propagated-inputs | |
5540 | `(("ruby-nokogiri" ,ruby-nokogiri))) | |
5541 | (synopsis "Ruby bindings to the Gumbo HTML5 parser") | |
5542 | (description | |
5543 | "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and | |
c2c4e5b2 | 5544 | access the result as a Nokogiri parsed document.") |
2e366b0a MB |
5545 | (home-page "https://github.com/rubys/nokogumbo/") |
5546 | (license license:asl2.0))) | |
c2c4e5b2 | 5547 | |
d56ff88b RW |
5548 | (define-public ruby-sanitize |
5549 | (package | |
5550 | (name "ruby-sanitize") | |
f362b53c MB |
5551 | (version "5.1.0") |
5552 | (home-page "https://github.com/rgrove/sanitize") | |
d56ff88b | 5553 | (source (origin |
f362b53c | 5554 | (method git-fetch) |
d56ff88b | 5555 | ;; The gem does not include the Rakefile, so we download the |
f362b53c MB |
5556 | ;; source from Github. |
5557 | (uri (git-reference | |
5558 | (url home-page) | |
5559 | (commit (string-append "v" version)))) | |
5560 | (file-name (git-file-name name version)) | |
5561 | (patches (search-patches "ruby-sanitize-system-libxml.patch")) | |
d56ff88b RW |
5562 | (sha256 |
5563 | (base32 | |
f362b53c | 5564 | "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0")))) |
d56ff88b RW |
5565 | (build-system ruby-build-system) |
5566 | (propagated-inputs | |
5567 | `(("ruby-crass" ,ruby-crass) | |
5568 | ("ruby-nokogiri" ,ruby-nokogiri) | |
5569 | ("ruby-nokogumbo" ,ruby-nokogumbo))) | |
5570 | (native-inputs | |
f362b53c | 5571 | `(("ruby-minitest" ,ruby-minitest))) |
d56ff88b RW |
5572 | (synopsis "Whitelist-based HTML and CSS sanitizer") |
5573 | (description | |
5574 | "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of | |
5575 | acceptable elements, attributes, and CSS properties, Sanitize will remove all | |
5576 | unacceptable HTML and/or CSS from a string.") | |
d56ff88b RW |
5577 | (license license:expat))) |
5578 | ||
ed4b6b18 BW |
5579 | (define-public ruby-oj |
5580 | (package | |
5581 | (name "ruby-oj") | |
93dfdec5 | 5582 | (version "3.10.1") |
ed4b6b18 BW |
5583 | (source |
5584 | (origin | |
b09ef660 | 5585 | (method git-fetch) |
ed4b6b18 BW |
5586 | ;; Version on rubygems.org does not contain Rakefile, so download from |
5587 | ;; GitHub instead. | |
b09ef660 EF |
5588 | (uri (git-reference |
5589 | (url "https://github.com/ohler55/oj") | |
5590 | (commit (string-append "v" version)))) | |
5591 | (file-name (git-file-name name version)) | |
ed4b6b18 BW |
5592 | (sha256 |
5593 | (base32 | |
93dfdec5 | 5594 | "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw")))) |
ed4b6b18 BW |
5595 | (build-system ruby-build-system) |
5596 | (arguments | |
5597 | '(#:test-target "test_all" | |
5598 | #:phases | |
5599 | (modify-phases %standard-phases | |
5600 | (add-before 'check 'disable-bundler | |
5601 | (lambda _ | |
5602 | (substitute* "Rakefile" | |
5603 | (("Bundler\\.with_clean_env") "1.times") | |
5604 | (("bundle exec ") ""))))))) | |
5605 | (native-inputs | |
5606 | `(("bundler" ,bundler) | |
5607 | ("ruby-rspec" ,ruby-rspec) | |
5608 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
5609 | (synopsis "JSON parser for Ruby optimized for speed") | |
5610 | (description | |
5611 | "Oj is a JSON parser and generator for Ruby, where the encoding and | |
5612 | decoding of JSON is implemented as a C extension to Ruby.") | |
b09ef660 | 5613 | (home-page "http://www.ohler.com/oj/") |
ed4b6b18 BW |
5614 | (license (list license:expat ; Ruby code |
5615 | license:bsd-3)))) ; extension code | |
5616 | ||
f847ad7b DT |
5617 | (define-public ruby-ox |
5618 | (package | |
5619 | (name "ruby-ox") | |
263c0dbf | 5620 | (version "2.6.0") |
f847ad7b DT |
5621 | (source |
5622 | (origin | |
5623 | (method url-fetch) | |
5624 | (uri (rubygems-uri "ox" version)) | |
5625 | (sha256 | |
5626 | (base32 | |
263c0dbf | 5627 | "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83")))) |
f847ad7b DT |
5628 | (build-system ruby-build-system) |
5629 | (arguments | |
5630 | '(#:tests? #f)) ; no tests | |
5631 | (synopsis "Optimized XML library for Ruby") | |
5632 | (description | |
5633 | "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby | |
5634 | written as a native C extension. It was designed to be an alternative to | |
5635 | Nokogiri and other Ruby XML parsers for generic XML parsing and as an | |
5636 | alternative to Marshal for Object serialization. ") | |
5637 | (home-page "http://www.ohler.com/ox") | |
5638 | (license license:expat))) | |
4a9e0585 | 5639 | |
0c4e7625 RW |
5640 | (define-public ruby-redcloth |
5641 | (package | |
5642 | (name "ruby-redcloth") | |
2a91494e | 5643 | (version "4.3.2") |
0c4e7625 RW |
5644 | (source (origin |
5645 | (method url-fetch) | |
5646 | (uri (rubygems-uri "RedCloth" version)) | |
5647 | (sha256 | |
5648 | (base32 | |
2a91494e | 5649 | "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy")))) |
0c4e7625 RW |
5650 | (build-system ruby-build-system) |
5651 | (arguments | |
5652 | `(#:tests? #f ; no tests | |
5653 | #:phases | |
5654 | (modify-phases %standard-phases | |
5655 | ;; Redcloth has complicated rake tasks to build various versions for | |
5656 | ;; multiple targets using RVM. We don't want this so we just use the | |
5657 | ;; existing gemspec. | |
5658 | (replace 'build | |
5659 | (lambda _ | |
9923d5a4 | 5660 | (invoke "gem" "build" "redcloth.gemspec")))))) |
0c4e7625 RW |
5661 | (native-inputs |
5662 | `(("bundler" ,bundler) | |
5663 | ("ruby-diff-lcs" ,ruby-diff-lcs) | |
5664 | ("ruby-rspec-2" ,ruby-rspec-2))) | |
5665 | (synopsis "Textile markup language parser for Ruby") | |
5666 | (description | |
5667 | "RedCloth is a Ruby parser for the Textile markup language.") | |
5668 | (home-page "http://redcloth.org") | |
5669 | (license license:expat))) | |
5670 | ||
4a9e0585 DT |
5671 | (define-public ruby-pg |
5672 | (package | |
5673 | (name "ruby-pg") | |
ffc4869e | 5674 | (version "1.1.4") |
4a9e0585 DT |
5675 | (source |
5676 | (origin | |
5677 | (method url-fetch) | |
5678 | (uri (rubygems-uri "pg" version)) | |
5679 | (sha256 | |
5680 | (base32 | |
ffc4869e | 5681 | "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy")))) |
4a9e0585 DT |
5682 | (build-system ruby-build-system) |
5683 | (arguments | |
5684 | '(#:test-target "spec")) | |
5685 | (native-inputs | |
5686 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
5687 | ("ruby-hoe" ,ruby-hoe) | |
5688 | ("ruby-rspec" ,ruby-rspec))) | |
5689 | (inputs | |
ffc4869e | 5690 | `(("postgresql" ,postgresql))) |
4a9e0585 DT |
5691 | (synopsis "Ruby interface to PostgreSQL") |
5692 | (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works | |
4db80f8b | 5693 | with PostgreSQL 9.0 and later.") |
4a9e0585 DT |
5694 | (home-page "https://bitbucket.org/ged/ruby-pg") |
5695 | (license license:ruby))) | |
468e5657 DT |
5696 | |
5697 | (define-public ruby-byebug | |
5698 | (package | |
5699 | (name "ruby-byebug") | |
d5489a61 | 5700 | (version "9.0.6") |
468e5657 DT |
5701 | (source |
5702 | (origin | |
5703 | (method url-fetch) | |
5704 | (uri (rubygems-uri "byebug" version)) | |
5705 | (sha256 | |
5706 | (base32 | |
d5489a61 | 5707 | "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0")))) |
468e5657 DT |
5708 | (build-system ruby-build-system) |
5709 | (arguments | |
5710 | '(#:tests? #f)) ; no tests | |
5711 | (synopsis "Debugger for Ruby 2") | |
5712 | (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2 | |
5713 | TracePoint C API for execution control and the Debug Inspector C API for call | |
5714 | stack navigation. The core component provides support that front-ends can | |
5715 | build on. It provides breakpoint handling and bindings for stack frames among | |
5716 | other things and it comes with a command line interface.") | |
7bf837fd | 5717 | (home-page "https://github.com/deivid-rodriguez/byebug") |
468e5657 | 5718 | (license license:bsd-2))) |
64b6ccc3 | 5719 | |
7aa00628 MC |
5720 | ;;; TODO: Make it the default byebug in core-updates. |
5721 | (define-public ruby-byebug-11 | |
5722 | (package | |
5723 | (inherit ruby-byebug) | |
5724 | (name "ruby-byebug") | |
5725 | (version "11.1.3") | |
5726 | (source | |
5727 | (origin | |
5728 | (method git-fetch) | |
5729 | (uri (git-reference | |
b0e7b699 | 5730 | (url "https://github.com/deivid-rodriguez/byebug") |
7aa00628 MC |
5731 | (commit (string-append "v" version)))) |
5732 | (file-name (git-file-name name version)) | |
5733 | (sha256 | |
5734 | (base32 | |
5735 | "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij")) | |
5736 | (modules '((guix build utils))) | |
5737 | (snippet | |
5738 | '(begin | |
5739 | ;; Remove wrappers that try to setup a bundle environment. | |
5740 | (with-directory-excursion "bin" | |
5741 | (for-each delete-file '("bundle" "rake" "rubocop")) | |
5742 | ;; ruby-minitest doesn't come with a launcher, so fix the one | |
5743 | ;; provided. | |
5744 | (substitute* "minitest" | |
5745 | (("load File\\.expand_path\\(\"bundle\".*") "") | |
5746 | (("require \"bundler/setup\".*") ""))) | |
5747 | #t)))) | |
5748 | (arguments | |
5749 | `(#:tests? #t | |
5750 | #:phases | |
5751 | (modify-phases %standard-phases | |
5752 | (add-after 'unpack 'skip-tmp-path-sensitive-test | |
5753 | (lambda _ | |
5754 | (substitute* "test/commands/where_test.rb" | |
5755 | (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*") | |
5756 | "unless true\n")) | |
5757 | #t)) | |
5758 | (add-before 'build 'compile | |
5759 | (lambda _ | |
5760 | (invoke "rake" "compile"))) | |
5761 | (add-before 'check 'set-home | |
5762 | (lambda _ | |
5763 | (setenv "HOME" (getcwd)) | |
5764 | #t))))) | |
5765 | (native-inputs | |
5766 | `(("bundler" ,bundler) | |
5767 | ("ruby-chandler" ,ruby-chandler) | |
5768 | ("ruby-minitest" ,ruby-minitest) | |
5769 | ("ruby-pry" ,ruby-pry) | |
5770 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
5771 | ("ruby-rubocop" ,ruby-rubocop) | |
5772 | ("ruby-yard" ,ruby-yard))))) | |
5773 | ||
5799bc2b RW |
5774 | (define-public ruby-netrc |
5775 | (package | |
5776 | (name "ruby-netrc") | |
5777 | (version "0.11.0") | |
5778 | (source (origin | |
5779 | (method url-fetch) | |
5780 | (uri (rubygems-uri "netrc" version)) | |
5781 | (sha256 | |
5782 | (base32 | |
5783 | "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y")))) | |
5784 | (build-system ruby-build-system) | |
5785 | (arguments | |
5786 | `(#:phases | |
5787 | (modify-phases %standard-phases | |
5788 | (replace 'check | |
5789 | ;; There is no Rakefile and minitest can only run one file at once, | |
5790 | ;; so we have to iterate over all test files. | |
5791 | (lambda _ | |
9923d5a4 TGR |
5792 | (map (lambda (file) |
5793 | (invoke "ruby" "-Itest" file)) | |
5794 | (find-files "./test" "test_.*\\.rb"))))))) | |
5799bc2b RW |
5795 | (native-inputs |
5796 | `(("ruby-minitest" ,ruby-minitest))) | |
5797 | (synopsis "Library to read and update netrc files") | |
5798 | (description | |
5799 | "This library can read and update netrc files, preserving formatting | |
5800 | including comments and whitespace.") | |
5801 | (home-page "https://github.com/geemus/netrc") | |
5802 | (license license:expat))) | |
5803 | ||
3a6989ce RW |
5804 | (define-public ruby-unf-ext |
5805 | (package | |
5806 | (name "ruby-unf-ext") | |
14db8f19 | 5807 | (version "0.0.7.6") |
3a6989ce RW |
5808 | (source (origin |
5809 | (method url-fetch) | |
5810 | (uri (rubygems-uri "unf_ext" version)) | |
5811 | (sha256 | |
5812 | (base32 | |
14db8f19 | 5813 | "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf")))) |
3a6989ce | 5814 | (build-system ruby-build-system) |
b809cc9a RW |
5815 | (arguments |
5816 | `(#:phases | |
5817 | (modify-phases %standard-phases | |
5818 | (add-after 'build 'build-ext | |
14db8f19 MB |
5819 | (lambda _ (invoke "rake" "compile:unf_ext"))) |
5820 | (add-before 'check 'lose-rake-compiler-dock-dependency | |
5821 | (lambda _ | |
5822 | ;; rake-compiler-dock is listed in the gemspec, but only | |
5823 | ;; required when cross-compiling. | |
5824 | (substitute* "unf_ext.gemspec" | |
5825 | ((".*rake-compiler-dock.*") "")) | |
5826 | #t))))) | |
3a6989ce RW |
5827 | (native-inputs |
5828 | `(("bundler" ,bundler) | |
5829 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
5830 | ("ruby-test-unit" ,ruby-test-unit))) | |
5831 | (synopsis "Unicode normalization form support library") | |
5832 | (description | |
5833 | "This package provides unicode normalization form support for Ruby.") | |
5834 | (home-page "https://github.com/knu/ruby-unf_ext") | |
5835 | (license license:expat))) | |
5836 | ||
2632a067 | 5837 | (define-public ruby-tdiff |
5071f17b BW |
5838 | ;; Use a newer than released snapshot so that rspec-2 is not required. |
5839 | (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2")) | |
5840 | (package | |
5841 | (name "ruby-tdiff") | |
5842 | (version (string-append "0.3.3-1." (string-take commit 8))) | |
5843 | (source (origin | |
5844 | (method git-fetch) | |
5845 | (uri (git-reference | |
b0e7b699 | 5846 | (url "https://github.com/postmodern/tdiff") |
5071f17b BW |
5847 | (commit commit))) |
5848 | (file-name (string-append name "-" version "-checkout")) | |
5849 | (sha256 | |
5850 | (base32 | |
5851 | "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4")))) | |
5852 | (build-system ruby-build-system) | |
5853 | (native-inputs | |
5854 | `(("ruby-rspec" ,ruby-rspec) | |
5855 | ("ruby-yard" ,ruby-yard) | |
5856 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) | |
5857 | (synopsis "Calculate the differences between two tree-like structures") | |
5858 | (description | |
5859 | "This library provides functions to calculate the differences between two | |
2632a067 | 5860 | tree-like structures. It is similar to Ruby's built-in @code{TSort} module.") |
5071f17b BW |
5861 | (home-page "https://github.com/postmodern/tdiff") |
5862 | (license license:expat)))) | |
2632a067 | 5863 | |
f60f5002 | 5864 | (define-public ruby-nokogiri-diff |
5b0c223a BW |
5865 | ;; Use a newer than released snapshot so that rspec-2 is not required. |
5866 | (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5")) | |
5867 | (package | |
5868 | (name "ruby-nokogiri-diff") | |
5869 | (version (string-append "0.2.0-1." (string-take commit 8))) | |
5870 | (source (origin | |
5871 | (method git-fetch) | |
5872 | (uri (git-reference | |
b0e7b699 | 5873 | (url "https://github.com/postmodern/nokogiri-diff") |
5b0c223a BW |
5874 | (commit commit))) |
5875 | (file-name (string-append name "-" version "-checkout")) | |
5876 | (sha256 | |
5877 | (base32 | |
5878 | "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf")))) | |
5879 | (build-system ruby-build-system) | |
5880 | (propagated-inputs | |
5881 | `(("ruby-tdiff" ,ruby-tdiff) | |
5882 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
5883 | (native-inputs | |
5884 | `(("ruby-rspec" ,ruby-rspec) | |
5885 | ("ruby-yard" ,ruby-yard) | |
5886 | ("ruby-rubygems-tasks" ,ruby-rubygems-tasks))) | |
5887 | (synopsis "Calculate the differences between two XML/HTML documents") | |
5888 | (description | |
5889 | "@code{Nokogiri::Diff} adds the ability to calculate the | |
f60f5002 | 5890 | differences (added or removed nodes) between two XML/HTML documents.") |
5b0c223a BW |
5891 | (home-page "https://github.com/postmodern/nokogiri-diff") |
5892 | (license license:expat)))) | |
f60f5002 | 5893 | |
6dc21310 CB |
5894 | (define-public ruby-racc |
5895 | (package | |
5896 | (name "ruby-racc") | |
5897 | (version "1.4.14") | |
5898 | (source | |
5899 | (origin | |
5900 | (method url-fetch) | |
5901 | (uri (rubygems-uri "racc" version)) | |
5902 | (sha256 | |
5903 | (base32 | |
5904 | "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl")))) | |
5905 | (build-system ruby-build-system) | |
5906 | (native-inputs | |
5907 | `(("ruby-hoe" ,ruby-hoe) | |
5908 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
5909 | (synopsis "LALR(1) parser generator for Ruby") | |
5910 | (description | |
5911 | "Racc is a LALR(1) parser generator. It is written in Ruby itself, and | |
5912 | generates Ruby program.") | |
5913 | (home-page "http://i.loveruby.net/en/projects/racc/") | |
5914 | (license (list | |
5915 | ;; Generally licensed under the LGPL2.1, and some files also | |
5916 | ;; available under the same license as Ruby. | |
5917 | license:lgpl2.1 | |
5918 | license:ruby)))) | |
5919 | ||
64b6ccc3 DT |
5920 | (define-public ruby-rack |
5921 | (package | |
5922 | (name "ruby-rack") | |
288d2480 | 5923 | (version "2.0.6") |
64b6ccc3 DT |
5924 | (source |
5925 | (origin | |
83870c32 | 5926 | (method git-fetch) |
1db791d5 | 5927 | ;; Download from GitHub so that the patch can be applied. |
83870c32 EF |
5928 | (uri (git-reference |
5929 | (url "https://github.com/rack/rack") | |
5930 | (commit version))) | |
5931 | (file-name (git-file-name name version)) | |
64b6ccc3 DT |
5932 | (sha256 |
5933 | (base32 | |
83870c32 | 5934 | "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6")) |
1db791d5 BW |
5935 | ;; Ignore test which fails inside the build environment but works |
5936 | ;; outside. | |
5937 | (patches (search-patches "ruby-rack-ignore-failing-test.patch")))) | |
64b6ccc3 DT |
5938 | (build-system ruby-build-system) |
5939 | (arguments | |
5940 | '(#:phases | |
5941 | (modify-phases %standard-phases | |
5942 | (add-before 'check 'fix-tests | |
5943 | (lambda _ | |
5944 | ;; A few of the tests use the length of a file on disk for | |
5945 | ;; Content-Length and Content-Range headers. However, this file | |
5946 | ;; has a shebang in it which an earlier phase patches, growing | |
5947 | ;; the file size from 193 to 239 bytes when the store prefix is | |
5948 | ;; "/gnu/store". | |
5949 | (let ((size-diff (- (string-length (which "ruby")) | |
5950 | (string-length "/usr/bin/env ruby")))) | |
5951 | (substitute* '("test/spec_file.rb") | |
5952 | (("193") | |
5953 | (number->string (+ 193 size-diff))) | |
5954 | (("bytes(.)22-33" all delimiter) | |
5955 | (string-append "bytes" | |
5956 | delimiter | |
5957 | (number->string (+ 22 size-diff)) | |
5958 | "-" | |
5959 | (number->string (+ 33 size-diff)))))) | |
83870c32 EF |
5960 | #t)) |
5961 | (add-before 'reset-gzip-timestamps 'make-files-writable | |
5962 | (lambda* (#:key outputs #:allow-other-keys) | |
5963 | ;; Make sure .gz files are writable so that the | |
5964 | ;; 'reset-gzip-timestamps' phase can do its work. | |
5965 | (let ((out (assoc-ref outputs "out"))) | |
5966 | (for-each make-file-writable | |
5967 | (find-files out "\\.gz$")) | |
5968 | #t)))))) | |
64b6ccc3 | 5969 | (native-inputs |
1db791d5 BW |
5970 | `(("ruby-minitest" ,ruby-minitest) |
5971 | ("ruby-minitest-sprint" ,ruby-minitest-sprint) | |
5972 | ("which" ,which))) | |
5973 | (propagated-inputs | |
5974 | `(("ruby-concurrent" ,ruby-concurrent))) | |
64b6ccc3 DT |
5975 | (synopsis "Unified web application interface for Ruby") |
5976 | (description "Rack provides a minimal, modular and adaptable interface for | |
5977 | developing web applications in Ruby. By wrapping HTTP requests and responses, | |
5978 | it unifies the API for web servers, web frameworks, and software in between | |
5979 | into a single method call.") | |
2f3800e5 | 5980 | (home-page "https://rack.github.io/") |
64b6ccc3 | 5981 | (license license:expat))) |
62e4cc5a | 5982 | |
20a0f804 BW |
5983 | (define-public ruby-rack-test |
5984 | (package | |
5985 | (name "ruby-rack-test") | |
5986 | (version "0.8.3") | |
5987 | (source | |
5988 | (origin | |
5989 | (method url-fetch) | |
5990 | (uri (rubygems-uri "rack-test" version)) | |
5991 | (sha256 | |
5992 | (base32 | |
5993 | "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g")))) | |
5994 | (build-system ruby-build-system) | |
5995 | (arguments | |
5996 | ;; Disable tests because of circular dependencies: requires sinatra, | |
5997 | ;; which requires rack-protection, which requires rack-test. Instead | |
5998 | ;; simply require the library. | |
5999 | `(#:phases | |
6000 | (modify-phases %standard-phases | |
6001 | (replace 'check | |
6002 | (lambda _ | |
6003 | (invoke "ruby" "-Ilib" "-r" "rack/test")))))) | |
6004 | (propagated-inputs | |
6005 | `(("ruby-rack" ,ruby-rack))) | |
6006 | (synopsis "Testing API for Rack applications") | |
6007 | (description | |
6008 | "Rack::Test is a small, simple testing API for Rack applications. It can | |
6009 | be used on its own or as a reusable starting point for Web frameworks and | |
6010 | testing libraries to build on.") | |
6011 | (home-page "https://github.com/rack-test/rack-test") | |
6012 | (license license:expat))) | |
6013 | ||
a0a7e690 BW |
6014 | (define-public ruby-rack-protection |
6015 | (package | |
6016 | (name "ruby-rack-protection") | |
3355e49c | 6017 | (version "2.0.5") |
a0a7e690 BW |
6018 | (source |
6019 | (origin | |
6020 | (method url-fetch) | |
6021 | (uri (rubygems-uri "rack-protection" version)) | |
6022 | (sha256 | |
6023 | (base32 | |
3355e49c | 6024 | "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk")))) |
a0a7e690 BW |
6025 | (build-system ruby-build-system) |
6026 | (arguments | |
fafeeaa2 | 6027 | '(;; Tests missing from the gem. |
a0a7e690 BW |
6028 | #:tests? #f)) |
6029 | (propagated-inputs | |
6030 | `(("ruby-rack" ,ruby-rack))) | |
6031 | (native-inputs | |
6032 | `(("bundler" ,bundler) | |
6033 | ("ruby-rspec" ,ruby-rspec-2) | |
6034 | ("ruby-rack-test" ,ruby-rack-test))) | |
6035 | (synopsis "Rack middleware that protects against typical web attacks") | |
6036 | (description "Rack middleware that can be used to protect against typical | |
6037 | web attacks. It can protect all Rack apps, including Rails. For instance, it | |
6038 | protects against cross site request forgery, cross site scripting, | |
6039 | clickjacking, directory traversal, session hijacking and IP spoofing.") | |
6040 | (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection") | |
6041 | (license license:expat))) | |
6042 | ||
6edabcb2 CB |
6043 | (define-public ruby-rainbow |
6044 | (package | |
6045 | (name "ruby-rainbow") | |
6046 | (version "3.0.0") | |
6047 | (source | |
6048 | (origin | |
6049 | (method url-fetch) | |
6050 | (uri (rubygems-uri "rainbow" version)) | |
6051 | (sha256 | |
6052 | (base32 | |
6053 | "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk")))) | |
6054 | (build-system ruby-build-system) | |
6055 | (arguments | |
6056 | '(#:phases | |
6057 | (modify-phases %standard-phases | |
6058 | ;; Run rspec directly, to avoid requiring Rubocop which is used from | |
6059 | ;; the Rakefile. | |
6060 | (replace 'check | |
6061 | (lambda* (#:key tests? #:allow-other-keys) | |
6062 | (when tests? | |
6063 | (invoke "rspec")) | |
6064 | #t))))) | |
6065 | (native-inputs | |
6066 | `(("bundler" ,bundler) | |
6067 | ("ruby-rspec" ,ruby-rspec))) | |
6068 | (synopsis "Colorize printed text on ANSI terminals") | |
6069 | (description | |
6070 | "@code{rainbow} provides a string presenter object to colorize strings by | |
6071 | wrapping them in ANSI escape codes.") | |
6072 | (home-page "https://github.com/sickill/rainbow") | |
79193b20 CB |
6073 | (license license:expat))) |
6074 | ||
6188d643 CB |
6075 | (define-public ruby-rr |
6076 | (package | |
6077 | (name "ruby-rr") | |
6078 | (version "1.2.1") | |
6079 | (source | |
6080 | (origin | |
6081 | (method url-fetch) | |
6082 | (uri (rubygems-uri "rr" version)) | |
6083 | (sha256 | |
6084 | (base32 | |
6085 | "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp")))) | |
6086 | (build-system ruby-build-system) | |
6087 | (arguments | |
6088 | '(#:tests? #f)) ; test files not included | |
6089 | (native-inputs | |
6090 | `(("bundler" ,bundler) | |
6091 | ("ruby-rspec" ,ruby-rspec))) | |
6092 | (synopsis "Ruby test double framework") | |
6093 | (description | |
6094 | "RR is a test double framework that features a rich selection of double | |
6095 | techniques and a terse syntax.") | |
6096 | (home-page "https://rr.github.io/rr/") | |
6097 | (license license:expat))) | |
6098 | ||
79193b20 CB |
6099 | (define-public ruby-rest-client |
6100 | (package | |
6101 | (name "ruby-rest-client") | |
6102 | (version "2.0.2") | |
6103 | (source | |
6104 | (origin | |
6105 | (method url-fetch) | |
6106 | (uri (rubygems-uri "rest-client" version)) | |
6107 | (sha256 | |
6108 | (base32 | |
6109 | "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j")))) | |
6110 | (build-system ruby-build-system) | |
6111 | (arguments | |
6112 | '(#:phases | |
6113 | (modify-phases %standard-phases | |
6114 | (add-before 'check 'remove-unnecessary-development-dependencies | |
6115 | (lambda _ | |
6116 | (substitute* "rest-client.gemspec" | |
6117 | ;; Remove rubocop as it's unused. Rubocop also indirectly | |
6118 | ;; depends on this package through ruby-parser and ruby-ast so | |
6119 | ;; this avoids a dependency loop. | |
6120 | ((".*rubocop.*") "\n") | |
6121 | ;; Remove pry as it's unused, it's a debugging tool | |
6122 | ((".*pry.*") "\n") | |
6123 | ;; Remove an unnecessarily strict rdoc dependency | |
6124 | ((".*rdoc.*") "\n")) | |
6125 | #t)) | |
6126 | (add-before 'check 'delete-network-dependent-tests | |
6127 | (lambda _ | |
6128 | (delete-file "spec/integration/request_spec.rb") | |
6129 | (delete-file "spec/integration/httpbin_spec.rb") | |
6130 | #t))))) | |
6131 | (propagated-inputs | |
6132 | `(("ruby-http-cookie" ,ruby-http-cookie) | |
6133 | ("ruby-mime-types" ,ruby-mime-types) | |
6134 | ("ruby-netrc" ,ruby-netrc))) | |
6135 | (native-inputs | |
6136 | `(("bundler" ,bundler) | |
eea094cc TGR |
6137 | ("ruby-webmock" ,ruby-webmock-2) |
6138 | ("ruby-rspec" ,ruby-rspec))) | |
79193b20 CB |
6139 | (synopsis "Simple HTTP and REST client for Ruby") |
6140 | (description | |
6141 | "@code{rest-client} provides a simple HTTP and REST client for Ruby, | |
6142 | inspired by the Sinatra microframework style of specifying actions: | |
6143 | @code{get}, @code{put}, @code{post}, @code{delete}.") | |
6144 | (home-page "https://github.com/rest-client/rest-client") | |
6edabcb2 CB |
6145 | (license license:expat))) |
6146 | ||
5d8fe6de CB |
6147 | (define-public ruby-rubocop |
6148 | (package | |
6149 | (name "ruby-rubocop") | |
865ba3f4 | 6150 | (version "0.77.0") |
5d8fe6de CB |
6151 | (source |
6152 | (origin | |
6153 | (method url-fetch) | |
6154 | (uri (rubygems-uri "rubocop" version)) | |
6155 | (sha256 | |
6156 | (base32 | |
865ba3f4 | 6157 | "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9")))) |
5d8fe6de CB |
6158 | (build-system ruby-build-system) |
6159 | (arguments | |
6160 | '(;; No included tests | |
6161 | #:tests? #f)) | |
6162 | (propagated-inputs | |
6163 | `(("ruby-parser" ,ruby-parser) | |
6164 | ("ruby-powerpack" ,ruby-powerpack) | |
6165 | ("ruby-rainbow" ,ruby-rainbow) | |
6166 | ("ruby-progressbar" ,ruby-progressbar) | |
6167 | ("ruby-parallel" ,ruby-parallel) | |
6168 | ("ruby-jaro-winkler" ,ruby-jaro-winkler) | |
6169 | ("ruby-unicode-display-width" ,ruby-unicode-display-width))) | |
6170 | (synopsis "Ruby code style checking tool") | |
6171 | (description | |
6172 | "@code{rubocop} is a Ruby code style checking tool. It aims to enforce | |
6173 | the community-driven Ruby Style Guide.") | |
6174 | (home-page "https://github.com/rubocop-hq/rubocop") | |
6175 | (license license:expat))) | |
6176 | ||
6ef85256 BW |
6177 | (define-public ruby-contest |
6178 | (package | |
6179 | (name "ruby-contest") | |
6180 | (version "0.1.3") | |
6181 | (source | |
6182 | (origin | |
6183 | (method url-fetch) | |
6184 | (uri (rubygems-uri "contest" version)) | |
6185 | (sha256 | |
6186 | (base32 | |
6187 | "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf")))) | |
6188 | (build-system ruby-build-system) | |
6189 | (synopsis "Write declarative tests using nested contexts") | |
6190 | (description | |
6191 | "Contest allows writing declarative @code{Test::Unit} tests using nested | |
6192 | contexts without performance penalties.") | |
6193 | (home-page "https://github.com/citrusbyte/contest") | |
6194 | (license license:expat))) | |
6195 | ||
c4550f75 BW |
6196 | (define-public ruby-creole |
6197 | (package | |
6198 | (name "ruby-creole") | |
6199 | (version "0.5.0") | |
6200 | (source | |
6201 | (origin | |
6202 | (method url-fetch) | |
6203 | (uri (rubygems-uri "creole" version)) | |
6204 | (sha256 | |
6205 | (base32 | |
6206 | "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm")))) | |
6207 | (build-system ruby-build-system) | |
6208 | (native-inputs | |
6209 | `(("ruby-bacon" ,ruby-bacon))) | |
6210 | (synopsis "Creole markup language converter") | |
6211 | (description | |
6212 | "Creole is a lightweight markup language and this library for converting | |
6213 | creole to @code{HTML}.") | |
6214 | (home-page "https://github.com/minad/creole") | |
6215 | (license license:ruby))) | |
6216 | ||
6aaa815e PP |
6217 | (define-public ruby-docile |
6218 | (package | |
6219 | (name "ruby-docile") | |
6220 | (version "1.1.5") | |
6221 | (source | |
6222 | (origin | |
6223 | (method url-fetch) | |
6224 | (uri (rubygems-uri "docile" version)) | |
6225 | (sha256 | |
6226 | (base32 | |
6227 | "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx")))) | |
6228 | (build-system ruby-build-system) | |
6229 | (arguments | |
6230 | '(#:tests? #f)) ; needs github-markup, among others | |
6231 | (synopsis "Ruby EDSL helper library") | |
6232 | (description "Docile is a Ruby library that provides an interface for | |
6233 | creating embedded domain specific languages (EDSLs) that manipulate existing | |
6234 | Ruby classes.") | |
6235 | (home-page "https://ms-ati.github.io/docile/") | |
6236 | (license license:expat))) | |
6237 | ||
fab8fed3 MC |
6238 | (define-public ruby-middleware |
6239 | (package | |
6240 | (name "ruby-middleware") | |
6241 | (version "0.1.0") | |
6242 | (source | |
6243 | (origin | |
6244 | (method url-fetch) | |
6245 | (uri (rubygems-uri "middleware" version)) | |
6246 | (sha256 | |
6247 | (base32 | |
6248 | "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl")))) | |
6249 | (build-system ruby-build-system) | |
6250 | (arguments '(#:tests? #f)) ;no test suite | |
6251 | (synopsis "Implementation of a middleware abstraction for Ruby") | |
6252 | (description "Middleware is a generalized implementation of a middleware | |
6253 | abstraction for Ruby.") | |
6254 | (home-page "https://github.com/mitchellh/middleware") | |
6255 | (license license:expat))) | |
6256 | ||
1d537c71 MC |
6257 | (define-public ruby-benchmark-ips |
6258 | (package | |
6259 | (name "ruby-benchmark-ips") | |
6260 | (version "2.8.2") | |
6261 | (source | |
6262 | (origin | |
6263 | (method url-fetch) | |
6264 | (uri (rubygems-uri "benchmark-ips" version)) | |
6265 | (sha256 | |
6266 | (base32 | |
6267 | "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw")))) | |
6268 | (build-system ruby-build-system) | |
6269 | (native-inputs | |
6270 | `(("ruby-hoe" ,ruby-hoe))) | |
6271 | (synopsis "Iterations per second enhancement for the Ruby Benchmark module") | |
6272 | (description "Benchmark-ips enhances the Ruby Benchmark module with the | |
6273 | iterations per second count. For short snippets of code, it can automatically | |
6274 | figure out how many times to run the code to get interesting data.") | |
6275 | (home-page "https://github.com/evanphx/benchmark-ips") | |
6276 | (license license:expat))) | |
6277 | ||
fc5d1c5a MC |
6278 | (define-public ruby-ffi-rzmq-core |
6279 | (package | |
6280 | (name "ruby-ffi-rzmq-core") | |
6281 | (version "1.0.7") | |
6282 | (source | |
6283 | (origin | |
6284 | (method url-fetch) | |
6285 | (uri (rubygems-uri "ffi-rzmq-core" version)) | |
6286 | (sha256 | |
6287 | (base32 | |
6288 | "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5")))) | |
6289 | (build-system ruby-build-system) | |
6290 | (arguments | |
6291 | `(#:phases | |
6292 | (modify-phases %standard-phases | |
6293 | (add-after 'unpack 'patch-libzmq-search-path | |
6294 | (lambda* (#:key inputs #:allow-other-keys) | |
6295 | (let ((zeromq (assoc-ref inputs "zeromq"))) | |
6296 | (substitute* "lib/ffi-rzmq-core/libzmq.rb" | |
6297 | (("/usr/local/lib") | |
6298 | (string-append zeromq "/lib"))) | |
6299 | #t))) | |
6300 | (replace 'check | |
6301 | (lambda _ | |
6302 | (invoke "rspec")))))) | |
6303 | (native-inputs | |
6304 | `(("ruby-rspec" ,ruby-rspec))) | |
6305 | (inputs | |
6306 | `(("zeromq" ,zeromq))) | |
6307 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
6308 | (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library") | |
6309 | (description "This library only provides the FFI wrapper for the ZeroMQ | |
6310 | networking library. It can be used to implement a Ruby API for the ZeroMQ | |
6311 | library.") | |
6312 | (home-page "https://github.com/chuckremes/ffi-rzmq-core") | |
6313 | (license license:expat))) | |
6314 | ||
7a503516 MC |
6315 | (define-public ruby-ffi-rzmq |
6316 | (package | |
6317 | (name "ruby-ffi-rzmq") | |
6318 | (version "2.0.7") | |
6319 | (source | |
6320 | (origin | |
6321 | (method url-fetch) | |
6322 | (uri (rubygems-uri "ffi-rzmq" version)) | |
6323 | (sha256 | |
6324 | (base32 | |
6325 | "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg")))) | |
6326 | (build-system ruby-build-system) | |
6327 | (arguments '(#:tests? #t | |
6328 | #:phases (modify-phases %standard-phases | |
6329 | (replace 'check | |
6330 | (lambda _ | |
6331 | (invoke "rspec")))))) | |
6332 | (native-inputs | |
6333 | `(("ruby-rspec" ,ruby-rspec))) | |
6334 | (propagated-inputs | |
6335 | `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core))) | |
6336 | (synopsis "High-level Ruby wrapper for the ZeroMQ networking library") | |
6337 | (description "This library provides a high-level API that wraps the ZeroMQ | |
6338 | networking library using the Ruby foreign function interface (FFI). It is a | |
6339 | pure Ruby wrapper, hence is compatible with any Ruby runtime that has support | |
6340 | for FFI.") | |
6341 | (home-page "https://github.com/chuckremes/ffi-rzmq") | |
6342 | (license license:expat))) | |
6343 | ||
03a0f98a MC |
6344 | (define-public ruby-sawyer |
6345 | (package | |
6346 | (name "ruby-sawyer") | |
6347 | (version "0.8.2") | |
6348 | (source | |
6349 | (origin | |
6350 | (method url-fetch) | |
6351 | (uri (rubygems-uri "sawyer" version)) | |
6352 | (sha256 | |
6353 | (base32 | |
6354 | "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz")))) | |
6355 | (build-system ruby-build-system) | |
6356 | (propagated-inputs | |
6357 | `(("ruby-addressable" ,ruby-addressable) | |
6358 | ("ruby-faraday" ,ruby-faraday))) | |
6359 | (synopsis "Experimental hypermedia agent for Ruby") | |
6360 | (description "Sawyer is an experimental hypermedia agent for Ruby built on | |
6361 | top of Faraday.") | |
6362 | (home-page "https://github.com/lostisland/sawyer") | |
6363 | (license license:expat))) | |
6364 | ||
aa3c76b1 MC |
6365 | (define-public ruby-octokit |
6366 | (package | |
6367 | (name "ruby-octokit") | |
6368 | (version "4.18.0") | |
6369 | (source | |
6370 | (origin | |
6371 | (method url-fetch) | |
6372 | (uri (rubygems-uri "octokit" version)) | |
6373 | (sha256 | |
6374 | (base32 | |
6375 | "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6")))) | |
6376 | (build-system ruby-build-system) | |
6377 | (arguments '(#:tests? #f)) ;no test suite in the gem release | |
6378 | (propagated-inputs | |
6379 | `(("ruby-faraday" ,ruby-faraday) | |
6380 | ("ruby-sawyer" ,ruby-sawyer))) | |
6381 | (synopsis "Ruby toolkit for the GitHub API") | |
6382 | (description "Octokit wraps the GitHub API in a flat API client that | |
6383 | follows Ruby conventions and requires little knowledge of REST.") | |
6384 | (home-page "https://github.com/octokit/octokit.rb") | |
6385 | (license license:expat))) | |
6386 | ||
1157d2f8 MC |
6387 | (define-public ruby-chandler |
6388 | (package | |
6389 | (name "ruby-chandler") | |
6390 | (version "0.9.0") | |
6391 | (source | |
6392 | (origin | |
6393 | (method url-fetch) | |
6394 | (uri (rubygems-uri "chandler" version)) | |
6395 | (sha256 | |
6396 | (base32 | |
6397 | "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr")))) | |
6398 | (build-system ruby-build-system) | |
6399 | (native-inputs | |
6400 | `(("ruby-rubocop" ,ruby-rubocop))) | |
6401 | (propagated-inputs | |
6402 | `(("ruby-netrc" ,ruby-netrc) | |
6403 | ("ruby-octokit" ,ruby-octokit))) | |
6404 | (synopsis "Sync CHANGELOG entries to GitHub's release notes") | |
6405 | (description "Chandler syncs a project's CHANGELOG file entries to | |
6406 | GitHub's release notes to remove the need of manually entering release | |
6407 | notes.") | |
6408 | (home-page "https://github.com/mattbrictson/chandler") | |
6409 | (license license:expat))) | |
6410 | ||
acb28876 MC |
6411 | (define-public ruby-pry-byebug |
6412 | (package | |
6413 | (name "ruby-pry-byebug") | |
6414 | (version "3.9.0") | |
6415 | (source | |
6416 | (origin | |
6417 | (method git-fetch) | |
6418 | (uri (git-reference | |
b0e7b699 | 6419 | (url "https://github.com/deivid-rodriguez/pry-byebug") |
acb28876 MC |
6420 | (commit (string-append "v" version)))) |
6421 | (file-name (git-file-name name version)) | |
6422 | (sha256 | |
6423 | (base32 | |
6424 | "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc")))) | |
6425 | (build-system ruby-build-system) | |
6426 | (arguments | |
6427 | `(#:phases (modify-phases %standard-phases | |
6428 | (add-before 'check 'set-home | |
6429 | (lambda _ | |
6430 | (setenv "HOME" (getcwd)) | |
6431 | #t))))) | |
6432 | (native-inputs | |
6433 | `(("ruby-chandler" ,ruby-chandler) | |
6434 | ("ruby-rubocop" ,ruby-rubocop) | |
6435 | ("ruby-simplecov" ,ruby-simplecov))) | |
6436 | (propagated-inputs | |
6437 | `(("ruby-byebug" ,ruby-byebug-11) | |
6438 | ("ruby-pry" ,ruby-pry))) | |
6439 | (synopsis "Step-by-step debugging and stack navigation in Pry") | |
6440 | (description "This package adds step-by-step debugging and stack | |
6441 | navigation capabilities to @code{pry}, using @code{byebug}.") | |
6442 | (home-page "https://github.com/deivid-rodriguez/pry-byebug") | |
6443 | (license license:expat))) | |
6444 | ||
4d31fe6b MC |
6445 | (define-public ruby-binding-of-caller |
6446 | (package | |
6447 | (name "ruby-binding-of-caller") | |
6448 | (version "0.8.0") | |
6449 | (source | |
6450 | (origin | |
6451 | (method url-fetch) | |
6452 | (uri (rubygems-uri "binding_of_caller" version)) | |
6453 | (sha256 | |
6454 | (base32 | |
6455 | "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g")))) | |
6456 | (build-system ruby-build-system) | |
6457 | ;; Attempting to run the test suite fails with a rake deprecation error | |
6458 | ;; (see: https://github.com/banister/binding_of_caller/issues/76). | |
6459 | (arguments '(#:tests? #f)) | |
6460 | (propagated-inputs | |
6461 | `(("ruby-debug-inspector" ,ruby-debug-inspector))) | |
6462 | (synopsis "Retrieve the binding of a method's caller") | |
6463 | (description "The @code{binding_of_caller} module provides the | |
6464 | @code{Binding#of_caller} method. It allows accessing bindings from upper | |
6465 | frames in the call stack and can evaluate code in that context.") | |
6466 | (home-page "https://github.com/banister/binding_of_caller") | |
6467 | (license license:expat))) | |
6468 | ||
f4699abc MC |
6469 | (define-public ruby-pry-stack-explorer |
6470 | (package | |
6471 | (name "ruby-pry-stack-explorer") | |
6472 | (version "0.5.1") | |
6473 | (source | |
6474 | (origin | |
6475 | (method url-fetch) | |
6476 | (uri (rubygems-uri "pry-stack_explorer" version)) | |
6477 | (sha256 | |
6478 | (base32 | |
6479 | "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0")))) | |
6480 | (build-system ruby-build-system) | |
6481 | (arguments '(#:tests? #f)) ;no test suite in gem release | |
6482 | (propagated-inputs | |
6483 | `(("ruby-binding-of-caller" ,ruby-binding-of-caller) | |
6484 | ("ruby-pry" ,ruby-pry))) | |
6485 | (synopsis "Call-stack navigation plugin for the Pry REPL") | |
6486 | (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that | |
6487 | add support to navigate the call-stack.") | |
6488 | (home-page "https://github.com/pry/pry-stack_explorer") | |
6489 | (license license:expat))) | |
6490 | ||
1f014c97 MC |
6491 | (define-public ruby-varint |
6492 | (package | |
6493 | (name "ruby-varint") | |
6494 | (version "0.1.1") | |
6495 | (source | |
6496 | (origin | |
6497 | (method url-fetch) | |
6498 | (uri (rubygems-uri "varint" version)) | |
6499 | (sha256 | |
6500 | (base32 | |
6501 | "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac")))) | |
6502 | (build-system ruby-build-system) | |
6503 | (arguments '(#:tests? #f)) ;no test suite | |
6504 | (synopsis "Variable length integers (varint) C extension for Ruby") | |
6505 | (description "This package provides a small C extension to speed up | |
6506 | variable length integers (varint) in Ruby Protocol Buffers.") | |
6507 | (home-page "https://github.com/liquidm/varint") | |
6508 | (license license:bsd-3))) | |
6509 | ||
1b214174 MC |
6510 | (define-public ruby-ruby-prof |
6511 | (package | |
6512 | (name "ruby-ruby-prof") | |
6513 | (version "1.4.1") | |
6514 | (source | |
6515 | (origin | |
6516 | (method url-fetch) | |
6517 | (uri (rubygems-uri "ruby-prof" version)) | |
6518 | (sha256 | |
6519 | (base32 | |
6520 | "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27")))) | |
6521 | (build-system ruby-build-system) | |
6522 | (arguments | |
6523 | `(#:phases | |
6524 | (modify-phases %standard-phases | |
6525 | (add-after 'unpack 'patch-rakefile | |
6526 | ;; This fixes the following error: "NameError: uninitialized | |
6527 | ;; constant Bundler::GemHelper" (see: | |
6528 | ;; https://github.com/ruby-prof/ruby-prof/issues/274). | |
6529 | (lambda _ | |
6530 | (substitute* "Rakefile" | |
6531 | ((".*require \"bundler/setup\".*" all) | |
6532 | (string-append all " require 'bundler/gem_tasks'\n"))) | |
6533 | #t)) | |
661ad8d7 MC |
6534 | ;; The LineNumbersTest test fails non-deterministically (see: |
6535 | ;; https://github.com/ruby-prof/ruby-prof/issues/276). | |
6536 | (add-after 'extract-gemspec 'delete-flaky-test | |
6537 | (lambda _ | |
6538 | (delete-file "test/line_number_test.rb") | |
6539 | (substitute* "ruby-prof.gemspec" | |
6540 | (("\"test/line_number_test\\.rb\"\\.freeze, ") "")) | |
6541 | #t)) | |
1b214174 MC |
6542 | (add-before 'check 'compile |
6543 | (lambda _ | |
6544 | (invoke "rake" "compile")))))) | |
6545 | (native-inputs | |
6546 | `(("bundler" ,bundler) | |
6547 | ("ruby-minitest" ,ruby-minitest) | |
6548 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
6549 | ("ruby-rdoc" ,ruby-rdoc))) | |
6550 | (synopsis "Fast code profiler for Ruby") | |
6551 | (description "RubyProf is a fast code profiler for Ruby. Its features | |
6552 | include: | |
6553 | @table @asis | |
6554 | @item Speed | |
6555 | Being a C extension, it is many times faster than the standard Ruby profiler. | |
6556 | @item Measurement Modes | |
6557 | It can measure program wall time, process time, object allocations and memory | |
6558 | usage. | |
6559 | @item Reports | |
6560 | A variety of text and cross-referenced HTML reports can be generated. | |
6561 | @item Threads | |
6562 | Profiling multiple threads simultaneously is supported. | |
6563 | @end table") | |
6564 | (home-page "https://github.com/ruby-prof/ruby-prof") | |
6565 | (license license:bsd-2))) | |
6566 | ||
dff5392f MC |
6567 | (define-public ruby-cucumber-messages |
6568 | (package | |
6569 | (name "ruby-cucumber-messages") | |
6570 | (version "12.2.0") | |
6571 | (source (origin | |
6572 | (method git-fetch) | |
6573 | (uri (git-reference | |
b0e7b699 | 6574 | (url "https://github.com/cucumber/messages-ruby") |
dff5392f MC |
6575 | (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c"))) |
6576 | (file-name (git-file-name name version)) | |
6577 | (sha256 | |
6578 | (base32 | |
6579 | "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a")))) | |
6580 | (build-system ruby-build-system) | |
6581 | (arguments | |
6582 | `(#:phases (modify-phases %standard-phases | |
6583 | (add-after 'unpack 'patch-protobuf.rb | |
6584 | (lambda _ | |
6585 | (substitute* "rake/protobuf.rb" | |
6586 | (("load 'protobuf/tasks/compile.rake'") | |
6587 | "require 'protobuf/tasks'")) | |
6588 | #t)) | |
6589 | (add-before 'build 'compile | |
6590 | (lambda _ | |
6591 | (substitute* "Makefile" | |
6592 | (("bundle exec ") "") | |
6593 | (("include default.mk.*" all) | |
6594 | (string-append "#" all))) | |
6595 | (invoke "make"))) | |
6596 | (replace 'check | |
6597 | (lambda _ | |
6598 | (invoke "rspec")))))) | |
6599 | (propagated-inputs | |
6600 | `(("ruby-protobuf" ,ruby-protobuf-cucumber))) | |
6601 | (native-inputs | |
6602 | `(("ruby-rspec" ,ruby-rspec))) | |
6603 | (home-page "https://github.com/cucumber/messages-ruby") | |
6604 | (synopsis "Cucumber Messages for Ruby (Protocol Buffers)") | |
6605 | (description "Cucumber Messages for Ruby is a library which allows | |
6606 | serialization and deserialization of the protocol buffer messages used in | |
6607 | Cucumber.") | |
6608 | (license license:expat))) | |
6609 | ||
44514637 | 6610 | (define-public ruby-gherkin |
62e4cc5a | 6611 | (package |
44514637 | 6612 | (name "ruby-gherkin") |
cfef316f MC |
6613 | (version "14.0.1") |
6614 | (source (origin | |
6615 | (method git-fetch) | |
6616 | (uri (git-reference | |
6617 | (url "https://github.com/cucumber/gherkin-ruby") | |
6618 | (commit (string-append "v" version)))) | |
6619 | (file-name (git-file-name name version)) | |
6620 | (sha256 | |
6621 | (base32 | |
6622 | "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb")))) | |
62e4cc5a PP |
6623 | (build-system ruby-build-system) |
6624 | (native-inputs | |
cfef316f MC |
6625 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages) |
6626 | ("ruby-rspec" ,ruby-rspec))) | |
62e4cc5a | 6627 | (arguments |
cfef316f | 6628 | `(#:test-target "spec")) |
62e4cc5a | 6629 | (synopsis "Gherkin parser for Ruby") |
44514637 | 6630 | (description "Gherkin is a parser and compiler for the Gherkin language. |
aada5f6f CB |
6631 | It is intended be used by all Cucumber implementations to parse |
6632 | @file{.feature} files.") | |
cfef316f | 6633 | (home-page "https://github.com/cucumber/gherkin-ruby") |
62e4cc5a | 6634 | (license license:expat))) |
cd89fecb | 6635 | |
8f85018d MB |
6636 | (define-public ruby-gherkin-ruby |
6637 | (package | |
6638 | (name "ruby-gherkin-ruby") | |
6639 | (version "0.3.2") | |
702a1012 | 6640 | (home-page "https://github.com/codegram/gherkin-ruby") |
8f85018d MB |
6641 | (source (origin |
6642 | (method url-fetch) | |
6643 | (uri (rubygems-uri "gherkin-ruby" version)) | |
6644 | (sha256 | |
6645 | (base32 | |
6646 | "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1")))) | |
6647 | (build-system ruby-build-system) | |
6648 | (synopsis "Pure Ruby Gherkin parser") | |
6649 | (description | |
6650 | "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than | |
6651 | 200 lines of code.") | |
6652 | ;; XXX: No license information anywhere but Readme.md. | |
6653 | (license license:expat))) | |
6654 | ||
15b16c2c CB |
6655 | (define-public ruby-aruba |
6656 | (package | |
6657 | (name "ruby-aruba") | |
cf7201c4 | 6658 | (version "0.14.14") |
15b16c2c CB |
6659 | (source |
6660 | (origin | |
6661 | (method url-fetch) | |
6662 | (uri (rubygems-uri "aruba" version)) | |
6663 | (sha256 | |
6664 | (base32 | |
cf7201c4 | 6665 | "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn")))) |
15b16c2c CB |
6666 | (build-system ruby-build-system) |
6667 | (arguments | |
6668 | '(#:test-target "spec" | |
6669 | #:phases | |
6670 | (modify-phases %standard-phases | |
6671 | (add-after 'unpack 'patch | |
6672 | (lambda _ | |
6673 | (substitute* "spec/aruba/api_spec.rb" | |
6674 | ;; This resolves some errors in the specs | |
6675 | ;; | |
6676 | ;; undefined method `parse' for Time:Class | |
6677 | (("require 'spec_helper'") | |
6678 | "require 'spec_helper'\nrequire 'time'")) | |
6679 | ;; Avoid shebang issues in this spec file | |
6680 | (substitute* "spec/aruba/matchers/command_spec.rb" | |
6681 | (("/usr/bin/env bash") | |
6682 | (which "bash"))) | |
6683 | #t)) | |
6684 | (add-before 'check 'remove-unnecessary-dependencies | |
6685 | (lambda _ | |
6686 | (substitute* "Gemfile" | |
6687 | ((".*byebug.*") "\n") | |
6688 | ((".*pry.*") "\n") | |
6689 | ((".*yaml.*") "\n") | |
6690 | ((".*bcat.*") "\n") | |
6691 | ((".*kramdown.*") "\n") | |
6692 | ((".*rubocop.*") "\n") | |
6693 | ((".*cucumber-pro.*") "\n") | |
6694 | ((".*cucumber.*") "\n") | |
6695 | ((".*license_finder.*") "\n") | |
6696 | ((".*rake.*") "gem 'rake'\n") | |
15b16c2c | 6697 | ((".*relish.*") "\n")) |
15b16c2c CB |
6698 | (substitute* "aruba.gemspec" |
6699 | (("spec\\.add\\_runtime\\_dependency 'cucumber'.*") | |
6700 | "spec.add_runtime_dependency 'cucumber'")) | |
6701 | #t)) | |
6702 | (add-before 'check 'set-home | |
6703 | (lambda _ (setenv "HOME" "/tmp") #t))))) | |
6704 | (native-inputs | |
6705 | `(("bundler" ,bundler) | |
6706 | ("ruby-rspec" ,ruby-rspec) | |
cf7201c4 CB |
6707 | ("ruby-fuubar" ,ruby-fuubar) |
6708 | ("ruby-simplecov" ,ruby-simplecov))) | |
15b16c2c CB |
6709 | (propagated-inputs |
6710 | `(("ruby-childprocess" ,ruby-childprocess) | |
6711 | ("ruby-contracts" ,ruby-contracts) | |
6712 | ("ruby-cucumber" ,ruby-cucumber) | |
6713 | ("ruby-ffi" ,ruby-ffi) | |
6714 | ("ruby-rspec-expectations" ,ruby-rspec-expectations) | |
6715 | ("ruby-thor" ,ruby-thor) | |
6716 | ("ruby-yard" ,ruby-yard))) | |
6717 | (synopsis "Test command-line applications with Cucumber, RSpec or Minitest") | |
6718 | (description | |
6719 | "Aruba is an extension for Cucumber, RSpec and Minitest for testing | |
6720 | command-line applications. It supports applications written in any | |
6721 | language.") | |
6722 | (home-page "https://github.com/cucumber/aruba") | |
6723 | (license license:expat))) | |
6724 | ||
6725 | ;; A version of ruby-aruba without tests run so that circular dependencies can | |
6726 | ;; be avoided. | |
6727 | (define ruby-aruba-without-tests | |
6728 | (package | |
6729 | (inherit ruby-aruba) | |
6730 | (arguments '(#:tests? #f)) | |
6731 | (propagated-inputs | |
6732 | `(("ruby-cucumber" ,ruby-cucumber-without-tests) | |
6733 | ,@(alist-delete "ruby-cucumber" | |
6734 | (package-propagated-inputs ruby-aruba)))) | |
6735 | (native-inputs '()))) | |
6736 | ||
fd6577b4 MC |
6737 | (define-public ruby-sys-uname |
6738 | (package | |
6739 | (name "ruby-sys-uname") | |
6740 | (version "1.2.1") | |
6741 | (source | |
6742 | (origin | |
6743 | (method url-fetch) | |
6744 | (uri (rubygems-uri "sys-uname" version)) | |
6745 | (sha256 | |
6746 | (base32 | |
6747 | "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0")))) | |
6748 | (build-system ruby-build-system) | |
6749 | (arguments | |
6750 | `(#:test-target "spec")) | |
6751 | (propagated-inputs `(("ruby-ffi" ,ruby-ffi))) | |
6752 | (native-inputs `(("ruby-rspec" ,ruby-rspec))) | |
6753 | (synopsis "Ruby interface for gathering system information") | |
6754 | (description "The sys-uname library provides an interface for gathering | |
6755 | information about your current platform. It allows retrieving information | |
6756 | such as the OS name, OS version, system name, etc.") | |
6757 | (home-page "https://github.com/djberg96/sys-uname") | |
6758 | (license license:asl2.0))) | |
6759 | ||
ac3ec612 MC |
6760 | (define-public ruby-cucumber-create-meta |
6761 | (package | |
6762 | (name "ruby-cucumber-create-meta") | |
6763 | (version "1.0.0") | |
6764 | (source | |
6765 | (origin | |
6766 | (method url-fetch) | |
6767 | (uri (rubygems-uri "cucumber-create-meta" version)) | |
6768 | (sha256 | |
6769 | (base32 | |
6770 | "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw")))) | |
6771 | (build-system ruby-build-system) | |
6772 | (arguments | |
6773 | `(#:phases (modify-phases %standard-phases | |
6774 | (add-after 'extract-gemspec 'relax-version-requirements | |
6775 | (lambda _ | |
6776 | (substitute* ".gemspec" | |
6777 | ((" 12\\.2") | |
6778 | " 12.1")) | |
6779 | #t)) | |
6780 | (replace 'check | |
6781 | (lambda _ | |
6782 | (invoke "rspec")))))) | |
6783 | (native-inputs | |
6784 | `(("ruby-rspec" ,ruby-rspec))) | |
6785 | (propagated-inputs | |
6786 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages) | |
6787 | ("ruby-sys-uname" ,ruby-sys-uname))) | |
6788 | (synopsis "Function to create @code{Meta} messages for Cucumber Ruby") | |
6789 | (description "The @code{createMeta} utility function allows generating | |
6790 | system-specific @code{Meta} messages for Cucumber Ruby.") | |
6791 | (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby") | |
6792 | (license license:expat))) | |
6793 | ||
f3574624 MC |
6794 | (define-public ruby-cucumber-html-formatter |
6795 | (package | |
6796 | (name "ruby-cucumber-html-formatter") | |
6797 | (version "7.0.0") | |
6798 | (source | |
6799 | (origin | |
6800 | (method url-fetch) | |
6801 | (uri (rubygems-uri "cucumber-html-formatter" version)) | |
6802 | (sha256 | |
6803 | (base32 | |
6804 | "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62")))) | |
6805 | (build-system ruby-build-system) | |
6806 | (arguments | |
6807 | `(#:phases (modify-phases %standard-phases | |
6808 | (replace 'check | |
6809 | (lambda _ | |
6810 | (invoke "rspec")))))) | |
6811 | (native-inputs | |
6812 | `(("ruby-rspec" ,ruby-rspec))) | |
6813 | (propagated-inputs | |
6814 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages))) | |
6815 | (synopsis "HTML formatter for Cucumber") | |
6816 | (description "Cucumber HTML Formatter produces a HTML report for Cucumber | |
6817 | runs. It is built on top of cucumber-react and works with any Cucumber | |
6818 | implementation with a protocol buffer formatter that outputs Cucumber | |
6819 | messages.") | |
6820 | (home-page "https://github.com/cucumber/cucumber/tree/\ | |
6821 | master/html-formatter/ruby") | |
6822 | (license license:expat))) | |
6823 | ||
15b16c2c CB |
6824 | (define-public ruby-cucumber |
6825 | (package | |
6826 | (name "ruby-cucumber") | |
92ebbaad | 6827 | (version "4.1.0") |
15b16c2c CB |
6828 | (source |
6829 | (origin | |
6830 | (method git-fetch) | |
6831 | (uri (git-reference | |
b0e7b699 | 6832 | (url "https://github.com/cucumber/cucumber-ruby") |
15b16c2c CB |
6833 | (commit (string-append "v" version)))) |
6834 | (file-name (git-file-name name version)) | |
6835 | (sha256 | |
6836 | (base32 | |
92ebbaad | 6837 | "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549")))) |
15b16c2c CB |
6838 | (build-system ruby-build-system) |
6839 | (arguments | |
fa8e4dbf | 6840 | '(#:test-target "default" |
15b16c2c CB |
6841 | #:phases |
6842 | (modify-phases %standard-phases | |
fa8e4dbf MC |
6843 | (add-after 'unpack 'disable-rubocop |
6844 | ;; Rubocop lint check fails with our more recent version. | |
6845 | (lambda _ | |
6846 | (substitute* "Rakefile" | |
6847 | (("spec cucumber rubocop") | |
6848 | "spec cucumber")) | |
6849 | #t)) | |
92ebbaad | 6850 | (add-after 'extract-gemspec 'strip-version-requirements |
15b16c2c | 6851 | (lambda _ |
fa8e4dbf | 6852 | (delete-file "Gemfile") ;do not use Bundler |
92ebbaad MC |
6853 | (substitute* "cucumber.gemspec" |
6854 | (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped) | |
6855 | (string-append stripped "\n"))) | |
fa8e4dbf MC |
6856 | #t)) |
6857 | (add-before 'check 'set-home | |
6858 | (lambda _ | |
6859 | (setenv "HOME" (getcwd)) | |
15b16c2c CB |
6860 | #t))))) |
6861 | (propagated-inputs | |
6862 | `(("ruby-builder" ,ruby-builder) | |
6863 | ("ruby-cucumber-core" ,ruby-cucumber-core) | |
92ebbaad MC |
6864 | ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta) |
6865 | ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter) | |
6866 | ("ruby-cucumber-messages" ,ruby-cucumber-messages) | |
15b16c2c | 6867 | ("ruby-cucumber-wire" ,ruby-cucumber-wire) |
15b16c2c CB |
6868 | ("ruby-diff-lcs" ,ruby-diff-lcs) |
6869 | ("ruby-gherkin" ,ruby-gherkin) | |
6870 | ("ruby-multi-json" ,ruby-multi-json) | |
6871 | ("ruby-multi-test" ,ruby-multi-test))) | |
6872 | (native-inputs | |
92ebbaad | 6873 | `(;; Use a untested version of aruba, to avoid a circular dependency, as |
15b16c2c CB |
6874 | ;; ruby-aruba depends on ruby-cucumber. |
6875 | ("ruby-aruba", ruby-aruba-without-tests) | |
6876 | ("ruby-rspec" ,ruby-rspec) | |
6877 | ("ruby-pry" ,ruby-pry) | |
92ebbaad MC |
6878 | ("ruby-nokogiri" ,ruby-nokogiri) |
6879 | ("ruby-rubocop" ,ruby-rubocop))) | |
15b16c2c | 6880 | (synopsis "Describe automated tests in plain language") |
92ebbaad MC |
6881 | (description "Cucumber is a tool for running automated tests written in |
6882 | plain language. It's designed to support a Behaviour Driven Development (BDD) | |
15b16c2c CB |
6883 | software development workflow.") |
6884 | (home-page "https://cucumber.io/") | |
6885 | (license license:expat))) | |
6886 | ||
6887 | (define ruby-cucumber-without-tests | |
6888 | (package (inherit ruby-cucumber) | |
6889 | (arguments | |
6890 | '(#:tests? #f)) | |
6891 | (native-inputs | |
6892 | '()))) | |
6893 | ||
f048ef52 MC |
6894 | (define-public ruby-coveralls |
6895 | (package | |
6896 | (name "ruby-coveralls") | |
6897 | (version "0.8.23") | |
6898 | (source | |
6899 | (origin | |
6900 | (method url-fetch) | |
6901 | (uri (rubygems-uri "coveralls" version)) | |
6902 | (sha256 | |
6903 | (base32 | |
6904 | "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc")))) | |
6905 | (build-system ruby-build-system) | |
6906 | ;; The test suite depends on ruby-vcr, which cannot be included in Guix | |
6907 | ;; because of its nonfree, Hippocratic derived license. | |
6908 | (arguments '(#:tests? #f)) | |
6909 | (propagated-inputs | |
6910 | `(("ruby-json" ,ruby-json) | |
6911 | ("ruby-term-ansicolor" ,ruby-term-ansicolor) | |
6912 | ("ruby-thor" ,ruby-thor) | |
6913 | ("ruby-tins" ,ruby-tins))) | |
6914 | (synopsis "Ruby implementation of the Coveralls API") | |
6915 | (description "This package provides a Ruby implementation of the Coveralls | |
6916 | API.") | |
6917 | (home-page "https://coveralls.io") | |
6918 | (license license:expat))) | |
f2a1b7fa MC |
6919 | |
6920 | (define-public ruby-unindent | |
6921 | (package | |
6922 | (name "ruby-unindent") | |
6923 | (version "1.0") | |
6924 | (source | |
6925 | (origin | |
6926 | (method url-fetch) | |
6927 | (uri (rubygems-uri "unindent" version)) | |
6928 | (sha256 | |
6929 | (base32 | |
6930 | "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd")))) | |
6931 | (build-system ruby-build-system) | |
6932 | (synopsis "Ruby method to unindent strings") | |
6933 | (description "This module provides a @code{String#unindent} Ruby method to | |
6934 | unindent strings, which can be useful to unindent multiline strings embedded | |
6935 | in already-indented code.") | |
6936 | (home-page "https://github.com/mynyml/unindent") | |
6937 | (license license:expat))) | |
f048ef52 | 6938 | |
cd89fecb PP |
6939 | (define-public ruby-cucumber-core |
6940 | (package | |
6941 | (name "ruby-cucumber-core") | |
95a5d992 | 6942 | (version "7.1.0") |
cd89fecb PP |
6943 | (source |
6944 | (origin | |
95a5d992 MC |
6945 | (method git-fetch) |
6946 | (uri (git-reference | |
b0e7b699 | 6947 | (url "https://github.com/cucumber/cucumber-ruby-core") |
95a5d992 MC |
6948 | (commit (string-append "v" version)))) |
6949 | (file-name (git-file-name name version)) | |
cd89fecb PP |
6950 | (sha256 |
6951 | (base32 | |
95a5d992 | 6952 | "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn")))) |
cd89fecb | 6953 | (build-system ruby-build-system) |
95a5d992 MC |
6954 | (arguments |
6955 | `(#:test-target "spec" | |
6956 | #:phases | |
6957 | (modify-phases %standard-phases | |
6958 | (add-after 'extract-gemspec 'relax-version-requirements | |
6959 | (lambda _ | |
6960 | (substitute* "cucumber-core.gemspec" | |
6961 | (("'cucumber-tag-expressions',.*") | |
6962 | "'cucumber-tag-expressions', '>=2.0.0'\n")) | |
6963 | #t))))) | |
6964 | (native-inputs | |
6965 | `(("ruby-rspec" ,ruby-rspec) | |
6966 | ("ruby-coveralls" ,ruby-coveralls) | |
6967 | ("ruby-rubocop" ,ruby-rubocop) | |
6968 | ("ruby-simplecov" ,ruby-simplecov) | |
6969 | ("ruby-unindent" ,ruby-unindent))) | |
cd89fecb | 6970 | (propagated-inputs |
95a5d992 | 6971 | `(("ruby-cucumber-messages" ,ruby-cucumber-messages) |
5cd047e8 CB |
6972 | ("ruby-gherkin" ,ruby-gherkin) |
6973 | ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions))) | |
cd89fecb PP |
6974 | (synopsis "Core library for the Cucumber BDD app") |
6975 | (description "Cucumber is a tool for running automated tests | |
6976 | written in plain language. Because they're written in plain language, | |
6977 | they can be read by anyone on your team. Because they can be read by | |
6978 | anyone, you can use them to help improve communication, collaboration | |
6979 | and trust on your team.") | |
6980 | (home-page "https://cucumber.io/") | |
6981 | (license license:expat))) | |
212d563d | 6982 | |
fb1a8954 CB |
6983 | (define-public ruby-cucumber-expressions |
6984 | (package | |
6985 | (name "ruby-cucumber-expressions") | |
4ada4a42 | 6986 | (version "10.2.0") |
fb1a8954 CB |
6987 | (source |
6988 | (origin | |
4ada4a42 MC |
6989 | (method git-fetch) |
6990 | (uri (git-reference | |
b0e7b699 | 6991 | (url "https://github.com/cucumber/cucumber-expressions-ruby") |
4ada4a42 MC |
6992 | (commit (string-append "v" version)))) |
6993 | (file-name (git-file-name name version)) | |
fb1a8954 CB |
6994 | (sha256 |
6995 | (base32 | |
4ada4a42 | 6996 | "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd")))) |
fb1a8954 CB |
6997 | (build-system ruby-build-system) |
6998 | (arguments | |
6999 | '(#:test-target "spec")) | |
7000 | (native-inputs | |
4ada4a42 | 7001 | `(("ruby-rspec" ,ruby-rspec) |
fb1a8954 CB |
7002 | ("ruby-simplecov" ,ruby-simplecov))) |
7003 | (synopsis "Simpler alternative to Regular Expressions") | |
7004 | (description "Cucumber Expressions offer similar functionality to Regular | |
7005 | Expressions, with a syntax that is easier to read and write. Cucumber | |
7006 | Expressions are extensible with parameter types.") | |
7007 | (home-page "https://github.com/cucumber/cucumber-expressions-ruby") | |
7008 | (license license:expat))) | |
7009 | ||
ce872770 CB |
7010 | (define-public ruby-cucumber-wire |
7011 | (package | |
7012 | (name "ruby-cucumber-wire") | |
6516827e | 7013 | (version "3.1.0") |
ce872770 CB |
7014 | (source |
7015 | (origin | |
7016 | (method url-fetch) | |
7017 | (uri (rubygems-uri "cucumber-wire" version)) | |
7018 | (sha256 | |
7019 | (base32 | |
6516827e | 7020 | "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k")))) |
ce872770 CB |
7021 | (build-system ruby-build-system) |
7022 | (arguments | |
6516827e | 7023 | '(#:tests? #f ;tests use cucumber, causing a cycle |
ce872770 CB |
7024 | #:phases |
7025 | (modify-phases %standard-phases | |
6516827e | 7026 | (add-after 'extract-gemspec 'relax-version-requirements |
ce872770 | 7027 | (lambda _ |
6516827e MC |
7028 | (substitute* ".gemspec" |
7029 | ((" 10\\.1") " 10.2")) | |
ce872770 | 7030 | #t))))) |
6516827e MC |
7031 | (propagated-inputs |
7032 | `(("ruby-cucumber-core" ,ruby-cucumber-core) | |
7033 | ("ruby-cucumber-expressions" ,ruby-cucumber-expressions) | |
7034 | ("ruby-cucumber-messages" ,ruby-cucumber-messages))) | |
ce872770 | 7035 | (synopsis "Cucumber wire protocol plugin") |
6516827e MC |
7036 | (description "Cucumber's wire protocol allows step definitions to be |
7037 | implemented and invoked on any platform.") | |
ce872770 CB |
7038 | (home-page "https://github.com/cucumber/cucumber-ruby-wire") |
7039 | (license license:expat))) | |
7040 | ||
0ce8f344 CB |
7041 | (define-public ruby-cucumber-tag-expressions |
7042 | (package | |
7043 | (name "ruby-cucumber-tag-expressions") | |
0d2c45ce | 7044 | (version "3.0.0") |
0ce8f344 CB |
7045 | (source |
7046 | (origin | |
0d2c45ce MC |
7047 | (method git-fetch) |
7048 | (uri (git-reference | |
b0e7b699 | 7049 | (url "https://github.com/cucumber/tag-expressions-ruby") |
0d2c45ce MC |
7050 | (commit (string-append "v" version)))) |
7051 | (file-name (git-file-name name version)) | |
0ce8f344 CB |
7052 | (sha256 |
7053 | (base32 | |
0d2c45ce | 7054 | "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx")))) |
0ce8f344 CB |
7055 | (build-system ruby-build-system) |
7056 | (arguments | |
0d2c45ce | 7057 | `(#:test-target "spec")) |
0ce8f344 CB |
7058 | (native-inputs |
7059 | `(("ruby-rspec" ,ruby-rspec))) | |
7060 | (synopsis "Cucumber tag expressions for Ruby") | |
0d2c45ce MC |
7061 | (description "Cucumber tag expression parser for Ruby. A tag expression |
7062 | is an infix boolean expression used by Cucumber.") | |
0ce8f344 CB |
7063 | (home-page "https://github.com/cucumber/tag-expressions-ruby") |
7064 | (license license:expat))) | |
7065 | ||
73a5aff7 CB |
7066 | (define-public ruby-bindex |
7067 | (package | |
7068 | (name "ruby-bindex") | |
7069 | (version "0.5.0") | |
7070 | (source | |
7071 | (origin | |
7072 | (method url-fetch) | |
7073 | (uri (rubygems-uri "bindex" version)) | |
7074 | (sha256 | |
7075 | (base32 | |
7076 | "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i")))) | |
7077 | (build-system ruby-build-system) | |
7078 | (arguments | |
7079 | '(#:test-target "default")) | |
7080 | (native-inputs | |
7081 | `(("bundler" ,bundler) | |
7082 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
7083 | (synopsis "Provides access for bindings relating to Ruby exceptions") | |
7084 | (description | |
7085 | "@code{bindex} provides a way to access the bindings that relate to | |
7086 | exceptions in Ruby, providing more information about the context in which the | |
7087 | exception occurred.") | |
7088 | (home-page "https://github.com/gsamokovarov/bindex") | |
7089 | (license license:expat))) | |
7090 | ||
212d563d PP |
7091 | (define-public ruby-bio-logger |
7092 | (package | |
7093 | (name "ruby-bio-logger") | |
7094 | (version "1.0.1") | |
7095 | (source | |
7096 | (origin | |
7097 | (method url-fetch) | |
7098 | (uri (rubygems-uri "bio-logger" version)) | |
7099 | (sha256 | |
7100 | (base32 | |
7101 | "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28")))) | |
7102 | (build-system ruby-build-system) | |
7103 | (arguments | |
7104 | `(#:tests? #f)) ; rake errors, missing shoulda | |
7105 | (propagated-inputs | |
7106 | `(("ruby-log4r" ,ruby-log4r))) | |
7107 | (synopsis "Log4r wrapper for Ruby") | |
7108 | (description "Bio-logger is a wrapper around Log4r adding extra logging | |
7109 | features such as filtering and fine grained logging.") | |
7110 | (home-page "https://github.com/pjotrp/bioruby-logger-plugin") | |
7111 | (license license:expat))) | |
07f61cb2 | 7112 | |
2db0f9c8 BW |
7113 | (define-public ruby-yajl-ruby |
7114 | (package | |
7115 | (name "ruby-yajl-ruby") | |
7116 | (version "1.4.1") | |
7117 | (source | |
7118 | (origin | |
7119 | (method url-fetch) | |
7120 | (uri (rubygems-uri "yajl-ruby" version)) | |
7121 | (sha256 | |
7122 | (base32 | |
7123 | "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf")))) | |
7124 | (build-system ruby-build-system) | |
7125 | (arguments | |
7126 | '(#:test-target "spec" | |
7127 | #:phases | |
7128 | (modify-phases %standard-phases | |
7129 | (add-before 'check 'patch-test-to-update-load-path | |
7130 | (lambda _ | |
7131 | (substitute* "spec/parsing/large_number_spec.rb" | |
7132 | (("require \"yajl\"") | |
7133 | "$LOAD_PATH << 'lib'; require 'yajl'")) | |
7134 | #t))))) | |
7135 | (native-inputs | |
7136 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
7137 | ("ruby-rspec" ,ruby-rspec))) | |
7138 | (synopsis "Streaming JSON parsing and encoding library for Ruby") | |
7139 | (description | |
7140 | "Ruby C bindings to the Yajl JSON stream-based parser library. The API | |
7141 | is compatible with the JSON gem, so yajl-ruby can act as a drop in | |
7142 | replacement. | |
7143 | ||
7144 | A modified copy of yajl is used, and included in the package.") | |
7145 | (home-page "https://github.com/brianmario/yajl-ruby") | |
7146 | (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h | |
7147 | license:bsd-3)))) ; Included, modified copy of yajl | |
7148 | ||
07f61cb2 | 7149 | (define-public ruby-yard |
6499893e BW |
7150 | (package |
7151 | (name "ruby-yard") | |
7eb8ff0b | 7152 | (version "0.9.25") |
6499893e BW |
7153 | (source |
7154 | (origin | |
f3fd70c0 | 7155 | (method git-fetch) |
6499893e | 7156 | ;; Tests do not pass if we build from the distributed gem. |
f3fd70c0 | 7157 | (uri (git-reference |
65a61239 MC |
7158 | (url "https://github.com/lsegal/yard") |
7159 | (commit (string-append "v" version)))) | |
f3fd70c0 | 7160 | (file-name (git-file-name name version)) |
6499893e BW |
7161 | (sha256 |
7162 | (base32 | |
7eb8ff0b | 7163 | "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa")))) |
6499893e BW |
7164 | (build-system ruby-build-system) |
7165 | (arguments | |
65a61239 MC |
7166 | ;; Note: Tests are willfully disabled to alleviate dependency cycle |
7167 | ;; problems. | |
7168 | `(#:tests? #f)) | |
6499893e | 7169 | (synopsis "Documentation generation tool for Ruby") |
65a61239 MC |
7170 | (description "YARD is a documentation generation tool for the Ruby |
7171 | programming language. It enables the user to generate consistent, usable | |
7172 | documentation that can be exported to a number of formats very easily, and | |
7173 | also supports extending for custom Ruby constructs such as custom class level | |
7174 | definitions.") | |
2f3800e5 | 7175 | (home-page "https://yardoc.org") |
6499893e | 7176 | (license license:expat))) |
2cbcd23a | 7177 | |
df32ab11 MC |
7178 | (define-public ruby-yard-with-tests |
7179 | (package | |
7180 | (inherit ruby-yard) | |
7181 | (name "ruby-yard-with-tests") | |
7182 | (arguments | |
7183 | (substitute-keyword-arguments (package-arguments ruby-yard) | |
7184 | ((#:tests? _ #t) #t) | |
7185 | ((#:test-target _ "default") "default") | |
7186 | ((#:phases phases '%standard-phases) | |
7187 | `(modify-phases ,phases | |
7188 | (add-before 'check 'prepare-for-tests | |
7189 | (lambda* (#:key tests? #:allow-other-keys) | |
7190 | (when tests? | |
7191 | (substitute* "Rakefile" | |
7192 | ((".*[Ss]amus.*") "")) | |
7193 | ;; Delete the Gemfile to avoid errors relating to it. | |
7194 | (delete-file "Gemfile") | |
7195 | ;; $HOME needs to be set to somewhere writeable for tests to | |
7196 | ;; run. | |
7197 | (setenv "HOME" "/tmp")) | |
7198 | #t)))))) | |
7199 | (native-inputs | |
7200 | `(("ruby-rspec" ,ruby-rspec) | |
7201 | ("ruby-rack" ,ruby-rack) | |
7202 | ("ruby-redcloth" ,ruby-redcloth) | |
7203 | ("ruby-asciidoc" ,ruby-asciidoctor))))) | |
7204 | ||
908df675 MC |
7205 | (define-public ruby-spectroscope |
7206 | (package | |
7207 | (name "ruby-spectroscope") | |
7208 | (version "0.1.0") | |
7209 | (source | |
7210 | (origin | |
7211 | (method url-fetch) | |
7212 | (uri (rubygems-uri "spectroscope" version)) | |
7213 | (sha256 | |
7214 | (base32 | |
7215 | "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y")))) | |
7216 | (build-system ruby-build-system) | |
7217 | (arguments | |
7218 | `(#:phases | |
7219 | (modify-phases %standard-phases | |
7220 | (replace 'check | |
7221 | (lambda _ | |
7222 | (with-output-to-file ".test" | |
7223 | (lambda _ | |
7224 | (display | |
7225 | "\ | |
7226 | require 'ae/should' | |
7227 | require 'rspec' | |
7228 | ||
7229 | include RSpec | |
7230 | ||
7231 | Test.run :default do |run| | |
7232 | run.files << 'spec/*_spec.rb' | |
7233 | end"))) | |
7234 | (invoke "ruby" "-Ilib" "-rrubytest" ".test")))))) | |
7235 | (native-inputs | |
7236 | `(("ruby-ae" ,ruby-ae) | |
7237 | ("ruby-rspec" ,ruby-rspec))) | |
7238 | (propagated-inputs | |
7239 | `(("ruby-rubytest" ,ruby-rubytest))) | |
7240 | (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest") | |
7241 | (description "Spectroscope is a Behavior-Driven Development (BDD) | |
7242 | framework built on RubyTest, designed to emulate RSpec in most respects. It | |
7243 | is assertion framework independent so any number of assertion systems can be | |
7244 | used, such as Assay or AE.") | |
7245 | (home-page "http://rubyworks.github.com/spectroscope/") | |
7246 | (license license:bsd-2))) | |
7247 | ||
24ffd91b MC |
7248 | (define-public ruby-tomparse |
7249 | (package | |
7250 | (name "ruby-tomparse") | |
7251 | (version "0.4.2") | |
7252 | (source | |
7253 | (origin | |
7254 | (method url-fetch) | |
7255 | (uri (rubygems-uri "tomparse" version)) | |
7256 | (sha256 | |
7257 | (base32 | |
7258 | "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8")))) | |
7259 | (build-system ruby-build-system) | |
7260 | ;; TODO: Tests require citron and rulebow, not yet packaged. | |
7261 | (arguments '(#:tests? #f)) | |
7262 | (synopsis "TomDoc parser for Ruby") | |
7263 | (description "TomParse is a TomDoc parser for Ruby. It takes a code | |
7264 | comment as input and parses it into a convenient object-oriented structure in | |
7265 | accordance with the TomDoc standard. See | |
7266 | @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the | |
7267 | TomDoc format.") | |
7268 | (home-page "http://rubyworks.github.com/tomparse/") | |
7269 | (license license:bsd-2))) | |
7270 | ||
257dee50 MC |
7271 | (define-public ruby-yard-tomdoc |
7272 | (package | |
7273 | (name "ruby-yard-tomdoc") | |
7274 | (version "0.7.1") | |
7275 | (source | |
7276 | (origin | |
7277 | (method url-fetch) | |
7278 | (uri (rubygems-uri "yard-tomdoc" version)) | |
7279 | (sha256 | |
7280 | (base32 | |
7281 | "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z")))) | |
7282 | (build-system ruby-build-system) | |
7283 | (arguments | |
7284 | `(#:phases (modify-phases %standard-phases | |
7285 | (replace 'check | |
7286 | (lambda _ | |
7287 | (invoke "rubytest" "-Ilib" "-Itest" "test/")))))) | |
7288 | (native-inputs | |
7289 | `(("ruby-rubytest-cli" ,ruby-rubytest-cli) | |
7290 | ("ruby-spectroscope" ,ruby-spectroscope) | |
7291 | ("ruby-ae" ,ruby-ae))) | |
7292 | (propagated-inputs | |
7293 | `(("ruby-tomparse" ,ruby-tomparse) | |
7294 | ("ruby-yard" ,ruby-yard))) | |
7295 | (synopsis "TomDoc syntax for YARD") | |
7296 | (description "This module adds support for the TomDoc documentation format | |
7297 | to YARD, a documentation generation tool for Ruby.") | |
7298 | (home-page "http://rubyworks.github.com/yard-tomdoc/") | |
7299 | (license license:expat))) | |
7300 | ||
ad686ef3 RW |
7301 | (define-public ruby-clap |
7302 | (package | |
7303 | (name "ruby-clap") | |
7304 | (version "1.0.0") | |
7305 | (source (origin | |
7306 | (method url-fetch) | |
7307 | (uri (rubygems-uri "clap" version)) | |
7308 | (sha256 | |
7309 | (base32 | |
7310 | "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q")))) | |
7311 | (build-system ruby-build-system) | |
7312 | ;; Clap needs cutest for running tests, but cutest needs clap. | |
7313 | (arguments `(#:tests? #f)) | |
7314 | (synopsis "Command line argument parsing for simple applications") | |
7315 | (description | |
7316 | "Clap provides command line argument parsing features. It covers the | |
7317 | simple case of executing code based on the flags or parameters passed.") | |
7318 | (home-page "https://github.com/djanowski/cutest") | |
0c80451e RW |
7319 | (license license:expat))) |
7320 | ||
7321 | (define-public ruby-cutest | |
7322 | (package | |
7323 | (name "ruby-cutest") | |
7324 | (version "1.2.2") | |
7325 | (source (origin | |
7326 | (method url-fetch) | |
7327 | (uri (rubygems-uri "cutest" version)) | |
7328 | (sha256 | |
7329 | (base32 | |
7330 | "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32")))) | |
7331 | (build-system ruby-build-system) | |
7332 | (propagated-inputs | |
7333 | `(("ruby-clap" ,ruby-clap))) | |
7334 | (synopsis "Run tests in separate processes") | |
7335 | (description | |
7336 | "Cutest runs tests in separate processes to avoid shared state.") | |
7337 | (home-page "https://github.com/djanowski/cutest") | |
ad686ef3 RW |
7338 | (license license:expat))) |
7339 | ||
ac09beba RW |
7340 | (define-public ruby-pygmentize |
7341 | (package | |
7342 | (name "ruby-pygmentize") | |
7343 | (version "0.0.3") | |
7344 | (source (origin | |
7345 | (method url-fetch) | |
7346 | (uri (rubygems-uri "pygmentize" version)) | |
7347 | (sha256 | |
7348 | (base32 | |
7349 | "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb")))) | |
7350 | (build-system ruby-build-system) | |
7351 | (arguments | |
7352 | `(#:phases | |
7353 | (modify-phases %standard-phases | |
7354 | (add-after 'unpack 'fix-pygmentize-path | |
7355 | (lambda _ | |
7356 | (substitute* "lib/pygmentize.rb" | |
7357 | (("\"/usr/bin/env python.*") | |
7358 | (string-append "\"" (which "pygmentize") "\"\n"))) | |
7359 | #t)) | |
7360 | (add-after 'build 'do-not-use-vendor-directory | |
7361 | (lambda _ | |
7362 | ;; Remove bundled pygments sources | |
7363 | ;; FIXME: ruby-build-system does not support snippets. | |
7364 | (delete-file-recursively "vendor") | |
7365 | (substitute* "pygmentize.gemspec" | |
7366 | (("\"vendor/\\*\\*/\\*\",") "")) | |
7367 | #t))))) | |
7368 | (inputs | |
7369 | `(("pygments" ,python-pygments))) | |
7370 | (native-inputs | |
7371 | `(("ruby-cutest" ,ruby-cutest) | |
7372 | ("ruby-nokogiri" ,ruby-nokogiri))) | |
7373 | (synopsis "Thin Ruby wrapper around pygmentize") | |
7374 | (description | |
7375 | "Pygmentize provides a simple way to call pygmentize from within a Ruby | |
7376 | application.") | |
7377 | (home-page "https://github.com/djanowski/pygmentize") | |
7378 | (license license:expat))) | |
7379 | ||
2cbcd23a DT |
7380 | (define-public ruby-eventmachine |
7381 | (package | |
7382 | (name "ruby-eventmachine") | |
c207fa5e | 7383 | (version "1.2.7") |
2cbcd23a DT |
7384 | (source |
7385 | (origin | |
7386 | (method url-fetch) | |
7387 | (uri (rubygems-uri "eventmachine" version)) | |
7388 | (sha256 | |
7389 | (base32 | |
c207fa5e | 7390 | "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r")))) |
2cbcd23a DT |
7391 | (build-system ruby-build-system) |
7392 | (arguments | |
c5d269fb | 7393 | '(#:tests? #f)) ; test suite tries to connect to google.com |
2cbcd23a DT |
7394 | (native-inputs |
7395 | `(("ruby-rake-compiler" ,ruby-rake-compiler))) | |
7396 | (synopsis "Single-threaded network event framework for Ruby") | |
7397 | (description | |
7398 | "EventMachine implements a single-threaded engine for arbitrary network | |
7399 | communications. EventMachine wraps all interactions with sockets, allowing | |
7400 | programs to concentrate on the implementation of network protocols. It can be | |
7401 | used to create both network servers and clients.") | |
24a26227 TGR |
7402 | ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted. |
7403 | (home-page "https://github.com/eventmachine/eventmachine") | |
2cbcd23a | 7404 | (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT |
7d3a1a2d | 7405 | |
e218b0c8 BW |
7406 | (define-public ruby-ruby-engine |
7407 | (package | |
7408 | (name "ruby-ruby-engine") | |
77d098bf | 7409 | (version "2.0.0") |
e218b0c8 BW |
7410 | (source |
7411 | (origin | |
7412 | (method url-fetch) | |
7413 | (uri (rubygems-uri "ruby_engine" version)) | |
7414 | (sha256 | |
7415 | (base32 | |
77d098bf | 7416 | "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm")))) |
e218b0c8 BW |
7417 | (build-system ruby-build-system) |
7418 | (arguments | |
7419 | `(#:phases | |
7420 | (modify-phases %standard-phases | |
77d098bf | 7421 | (add-after 'extract-gemspec 'clean-up |
e218b0c8 BW |
7422 | (lambda _ |
7423 | (delete-file "Gemfile.lock") | |
7424 | (substitute* "ruby_engine.gemspec" | |
7425 | ;; Remove unnecessary imports that would entail further | |
7426 | ;; dependencies. | |
7427 | ((".*<rdoc.*") "") | |
7428 | ((".*<rubygems-tasks.*") "") | |
7429 | ;; Remove extraneous .gem file | |
77d098bf MC |
7430 | (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "") |
7431 | (("\"Gemfile.lock\".freeze, ") "") | |
e218b0c8 | 7432 | ;; Soften rake dependency |
77d098bf | 7433 | (("%q<rake>.freeze, \\[\"~> 10.0\"\\]") |
e218b0c8 BW |
7434 | "%q<rake>.freeze, [\">= 10.0\"]") |
7435 | ;; Soften the rspec dependency | |
77d098bf | 7436 | (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]") |
e218b0c8 BW |
7437 | "%q<rspec>.freeze, [\">= 2.4\"]")) |
7438 | (substitute* "Rakefile" | |
7439 | (("require 'rubygems/tasks'") "") | |
7440 | (("Gem::Tasks.new") "")) | |
7441 | ;; Remove extraneous .gem file that otherwise gets installed. | |
77d098bf | 7442 | (delete-file-recursively "pkg") |
e218b0c8 BW |
7443 | #t))))) |
7444 | (native-inputs | |
7445 | `(("bundler" ,bundler) | |
7446 | ("ruby-rake" ,ruby-rake) | |
7447 | ("ruby-rspec" ,ruby-rspec))) | |
7448 | (synopsis "Simplifies checking for Ruby implementation") | |
7449 | (description | |
7450 | "@code{ruby_engine} provides an RubyEngine class that can be used to | |
7451 | check which implementation of Ruby is in use. It can provide the interpreter | |
7452 | name and provides query methods such as @{RubyEngine.mri?}.") | |
7453 | (home-page "https://github.com/janlelis/ruby_engine") | |
7454 | (license license:expat))) | |
7455 | ||
8092e333 BW |
7456 | (define-public ruby-turn |
7457 | (package | |
7458 | (name "ruby-turn") | |
7459 | (version "0.9.7") | |
7460 | (source | |
7461 | (origin | |
7462 | (method url-fetch) | |
7463 | (uri (rubygems-uri "turn" version)) | |
7464 | (sha256 | |
7465 | (base32 | |
7466 | "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw")))) | |
7467 | (build-system ruby-build-system) | |
7468 | (arguments | |
7469 | `(#:phases | |
7470 | (modify-phases %standard-phases | |
7471 | ;; Tests fail because turn changes its environment so can no longer | |
7472 | ;; find test/unit. Instead simply test if the executable runs | |
7473 | ;; without issue. | |
7474 | (replace 'check | |
7475 | (lambda _ | |
9923d5a4 | 7476 | (invoke "ruby" "-Ilib" "bin/turn" "-h")))))) |
8092e333 BW |
7477 | (propagated-inputs |
7478 | `(("ruby-ansi" ,ruby-ansi) | |
7479 | ("ruby-minitest" ,ruby-minitest-4))) | |
7480 | (synopsis "Alternate set of alternative runners for MiniTest") | |
7481 | (description | |
7482 | "TURN provides a set of alternative runners for MiniTest which are both | |
7483 | colorful and informative. TURN displays each test on a separate line with | |
7484 | failures being displayed immediately instead of at the end of the tests. Note | |
7485 | that TURN is no longer being maintained.") | |
f433b662 | 7486 | (home-page "https://rubygems.org/gems/turn") |
8092e333 BW |
7487 | (license license:expat))) |
7488 | ||
8279b1d3 CB |
7489 | (define-public ruby-mimemagic |
7490 | (package | |
7491 | (name "ruby-mimemagic") | |
60bc8952 | 7492 | (version "0.3.3") |
8279b1d3 CB |
7493 | (source |
7494 | (origin | |
7495 | (method url-fetch) | |
7496 | (uri (rubygems-uri "mimemagic" version)) | |
7497 | (sha256 | |
60bc8952 | 7498 | (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw")))) |
8279b1d3 CB |
7499 | (build-system ruby-build-system) |
7500 | (arguments | |
7501 | '(#:phases | |
7502 | (modify-phases %standard-phases | |
7503 | ;; This phase breaks the tests, as it patches some of the test data. | |
7504 | (delete 'patch-source-shebangs)))) | |
7505 | (native-inputs | |
7506 | `(("ruby-bacon" ,ruby-bacon))) | |
7507 | (synopsis "Ruby library for MIME detection by extension or content") | |
7508 | (description | |
7509 | "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by | |
7510 | extension or content, using the freedesktop.org.xml shared-mime-info | |
7511 | database.") | |
7512 | (home-page "https://github.com/minad/mimemagic") | |
7513 | (license license:expat))) | |
7514 | ||
32d1c06f BW |
7515 | (define-public ruby-mime-types-data |
7516 | (package | |
7517 | (name "ruby-mime-types-data") | |
f49511db | 7518 | (version "3.2016.0521") |
32d1c06f BW |
7519 | (source |
7520 | (origin | |
7521 | (method url-fetch) | |
7522 | (uri (rubygems-uri "mime-types-data" version)) | |
7523 | (sha256 | |
7524 | (base32 | |
f49511db | 7525 | "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm")))) |
32d1c06f BW |
7526 | (build-system ruby-build-system) |
7527 | (native-inputs | |
7528 | `(("ruby-hoe" ,ruby-hoe))) | |
7529 | (synopsis "Registry for information about MIME media type definitions") | |
7530 | (description | |
7531 | "@code{mime-types-data} provides a registry for information about | |
7532 | Multipurpose Internet Mail Extensions (MIME) media type definitions. It can | |
7533 | be used with the Ruby mime-types library or other software to determine | |
7534 | defined filename extensions for MIME types, or to use filename extensions to | |
7535 | look up the likely MIME type definitions.") | |
7536 | (home-page "https://github.com/mime-types/mime-types-data/") | |
7537 | (license license:expat))) | |
7538 | ||
d39b606c BW |
7539 | (define-public ruby-mime-types |
7540 | (package | |
7541 | (name "ruby-mime-types") | |
803bcc81 | 7542 | (version "3.1") |
d39b606c BW |
7543 | (source |
7544 | (origin | |
7545 | (method url-fetch) | |
7546 | (uri (rubygems-uri "mime-types" version)) | |
7547 | (sha256 | |
7548 | (base32 | |
803bcc81 | 7549 | "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m")))) |
d39b606c BW |
7550 | (build-system ruby-build-system) |
7551 | (propagated-inputs | |
7552 | `(("ruby-mime-types-data" ,ruby-mime-types-data))) | |
7553 | (native-inputs | |
7554 | `(("ruby-hoe" ,ruby-hoe) | |
7555 | ("ruby-fivemat" ,ruby-fivemat) | |
7556 | ("ruby-minitest-focus" ,ruby-minitest-focus) | |
7557 | ("ruby-minitest-rg" ,ruby-minitest-rg) | |
803bcc81 BW |
7558 | ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions) |
7559 | ("ruby-minitest-hooks" ,ruby-minitest-hooks))) | |
d39b606c BW |
7560 | (synopsis "Library and registry for MIME content type definitions") |
7561 | (description "The mime-types library provides a library and registry for | |
7562 | information about Multipurpose Internet Mail Extensions (MIME) content type | |
7563 | definitions. It can be used to determine defined filename extensions for MIME | |
7564 | types, or to use filename extensions to look up the likely MIME type | |
7565 | definitions.") | |
7566 | (home-page "https://github.com/mime-types/ruby-mime-types") | |
7567 | (license license:expat))) | |
7568 | ||
eb5e0bd9 BW |
7569 | (define-public ruby-fivemat |
7570 | (package | |
7571 | (name "ruby-fivemat") | |
c664ebcc | 7572 | (version "1.3.7") |
eb5e0bd9 BW |
7573 | (source |
7574 | (origin | |
7575 | (method url-fetch) | |
7576 | (uri (rubygems-uri "fivemat" version)) | |
7577 | (sha256 | |
7578 | (base32 | |
c664ebcc | 7579 | "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n")))) |
eb5e0bd9 BW |
7580 | (build-system ruby-build-system) |
7581 | (arguments | |
7582 | `(#:tests? #f)) ; no tests | |
7583 | (synopsis "Each test file given its own line of dots") | |
7584 | (description | |
7585 | "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file | |
7586 | its own line of dots during testing. It aims to provide test output that is | |
7587 | neither too verbose nor too minimal.") | |
7588 | (home-page "https://github.com/tpope/fivemat") | |
7589 | (license license:expat))) | |
7590 | ||
4fea500b BW |
7591 | (define-public ruby-sqlite3 |
7592 | (package | |
7593 | (name "ruby-sqlite3") | |
e7cdba61 | 7594 | (version "1.4.2") |
4fea500b BW |
7595 | (source |
7596 | (origin | |
7597 | (method url-fetch) | |
7598 | (uri (rubygems-uri "sqlite3" version)) | |
7599 | (sha256 | |
7600 | (base32 | |
e7cdba61 | 7601 | "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78")))) |
4fea500b BW |
7602 | (build-system ruby-build-system) |
7603 | (arguments | |
7604 | `(#:phases | |
7605 | (modify-phases %standard-phases | |
7606 | (add-before 'check 'add-gemtest-file | |
7607 | ;; This file exists in the repository but is not distributed. | |
9923d5a4 | 7608 | (lambda _ (invoke "touch" ".gemtest")))))) |
4fea500b BW |
7609 | (inputs |
7610 | `(("sqlite" ,sqlite))) | |
7611 | (native-inputs | |
7612 | `(("ruby-hoe" ,ruby-hoe) | |
7613 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
7614 | ("ruby-mini-portile" ,ruby-mini-portile))) | |
7615 | (synopsis "Interface with SQLite3 databases") | |
7616 | (description | |
7617 | "This module allows Ruby programs to interface with the SQLite3 database | |
7618 | engine.") | |
7619 | (home-page | |
7620 | "https://github.com/sparklemotion/sqlite3-ruby") | |
7621 | (license license:bsd-3))) | |
7622 | ||
4dfa39cc BW |
7623 | (define-public ruby-shoulda-context |
7624 | (package | |
7625 | (name "ruby-shoulda-context") | |
e7d1d472 | 7626 | (version "1.2.2") |
4dfa39cc BW |
7627 | (source |
7628 | (origin | |
7629 | (method url-fetch) | |
7630 | (uri (rubygems-uri "shoulda-context" version)) | |
7631 | (sha256 | |
7632 | (base32 | |
e7d1d472 | 7633 | "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc")))) |
4dfa39cc BW |
7634 | (build-system ruby-build-system) |
7635 | (arguments | |
7636 | `(#:phases | |
7637 | (modify-phases %standard-phases | |
7638 | (replace 'check | |
7639 | (lambda _ | |
7640 | ;; Do not run tests to avoid circular dependence with rails. | |
7641 | ;; Instead just import the library to test. | |
9923d5a4 | 7642 | (invoke "ruby" "-Ilib" "-r" "shoulda-context")))))) |
4dfa39cc BW |
7643 | (synopsis "Test::Unit context framework extracted from Shoulda") |
7644 | (description | |
7645 | "@code{shoulda-context} is the context framework extracted from Shoulda. | |
7646 | Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds | |
7647 | context, setup, and should blocks combine to produce natural test method | |
7648 | names.") | |
7649 | (home-page "https://github.com/thoughtbot/shoulda-context") | |
7650 | (license license:expat))) | |
7651 | ||
e4fea008 BW |
7652 | (define-public ruby-shoulda-matchers |
7653 | (package | |
7654 | (name "ruby-shoulda-matchers") | |
d1c1f368 | 7655 | (version "3.1.2") |
e4fea008 BW |
7656 | (source |
7657 | (origin | |
7658 | (method url-fetch) | |
7659 | (uri (rubygems-uri "shoulda-matchers" version)) | |
7660 | (sha256 | |
7661 | (base32 | |
d1c1f368 | 7662 | "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a")))) |
e4fea008 BW |
7663 | (build-system ruby-build-system) |
7664 | (arguments | |
7665 | `(#:phases | |
7666 | (modify-phases %standard-phases | |
e4fea008 BW |
7667 | (replace 'check |
7668 | (lambda _ | |
7669 | ;; Do not run tests to avoid circular dependence with rails. Instead | |
7670 | ;; just import the library to test. | |
9923d5a4 | 7671 | (invoke "ruby" "-Ilib" "-r" "shoulda-matchers")))))) |
e4fea008 BW |
7672 | (propagated-inputs |
7673 | `(("ruby-activesupport" ,ruby-activesupport))) | |
7674 | (synopsis "Collection of testing matchers extracted from Shoulda") | |
7675 | (description | |
7676 | "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that | |
7677 | test common Rails functionality. These tests would otherwise be much longer, | |
7678 | more complex, and error-prone.") | |
7679 | (home-page "https://github.com/thoughtbot/shoulda-matchers") | |
7680 | (license license:expat))) | |
7681 | ||
3885c58b BW |
7682 | (define-public ruby-shoulda-matchers-2 |
7683 | (package | |
7684 | (inherit ruby-shoulda-matchers) | |
7685 | (version "2.8.0") | |
7686 | (source (origin | |
7687 | (method url-fetch) | |
7688 | (uri (rubygems-uri "shoulda-matchers" version)) | |
7689 | (sha256 | |
7690 | (base32 | |
7691 | "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0")))))) | |
7692 | ||
6f390716 BW |
7693 | (define-public ruby-shoulda |
7694 | (package | |
7695 | (name "ruby-shoulda") | |
7696 | (version "3.5.0") | |
7697 | (source | |
7698 | (origin | |
7699 | (method url-fetch) | |
7700 | (uri (rubygems-uri "shoulda" version)) | |
7701 | (sha256 | |
7702 | (base32 | |
7703 | "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy")))) | |
7704 | (build-system ruby-build-system) | |
7705 | (arguments | |
7706 | `(#:phases | |
7707 | (modify-phases %standard-phases | |
7708 | (replace 'check | |
7709 | ;; Don't run tests to avoid circular dependence with rails. Instead | |
7710 | ;; just import the library to test. | |
9923d5a4 | 7711 | (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda")))))) |
6f390716 BW |
7712 | (propagated-inputs |
7713 | `(("ruby-shoulda-context" ,ruby-shoulda-context) | |
7714 | ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2))) | |
7715 | (synopsis "Context framework and matchers for testing") | |
7716 | (description | |
7717 | "@code{shoulda} is a meta-package combining @code{shoulda-context} and | |
7718 | @code{shoulda-matchers} providing tools for writing tests.") | |
7719 | (home-page "https://github.com/thoughtbot/shoulda") | |
7720 | (license license:expat))) | |
7721 | ||
3b44bcdf BW |
7722 | (define-public ruby-unf |
7723 | (package | |
7724 | (name "ruby-unf") | |
7725 | (version "0.1.4") | |
7726 | (source | |
7727 | (origin | |
7728 | (method url-fetch) | |
7729 | (uri (rubygems-uri "unf" version)) | |
7730 | (sha256 | |
7731 | (base32 | |
7732 | "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9")))) | |
7733 | (build-system ruby-build-system) | |
7734 | (arguments | |
7735 | `(#:phases | |
7736 | (modify-phases %standard-phases | |
7737 | (add-before 'check 'add-dependency-to-bundler | |
7738 | (lambda _ | |
7739 | ;; test-unit is required but not provided by the bundler | |
7740 | ;; environment. This is fixed in the upstream repository but fix | |
7741 | ;; has not been released. | |
7742 | (substitute* "Gemfile" | |
7743 | (("^gemspec") "gem 'test-unit'\ngemspec")) | |
7744 | #t))))) | |
7745 | (propagated-inputs | |
7746 | `(("ruby-unf-ext" ,ruby-unf-ext))) | |
7747 | (native-inputs | |
7748 | `(("ruby-shoulda" ,ruby-shoulda) | |
7749 | ("bundler" ,bundler) | |
7750 | ("ruby-test-unit" ,ruby-test-unit))) | |
7751 | (synopsis "Unicode Normalization Form support to Ruby and JRuby") | |
7752 | (description | |
7753 | "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form | |
7754 | support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and | |
7755 | @code{java.text.Normalizer} on JRuby.") | |
7756 | (home-page "https://github.com/knu/ruby-unf") | |
7757 | (license license:bsd-2))) | |
7758 | ||
e32c99d2 CB |
7759 | (define-public ruby-warden |
7760 | (package | |
7761 | (name "ruby-warden") | |
7762 | (version "1.2.8") | |
7763 | (source | |
7764 | (origin | |
7765 | (method url-fetch) | |
7766 | (uri (rubygems-uri "warden" version)) | |
7767 | (sha256 | |
7768 | (base32 | |
7769 | "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454")))) | |
7770 | (build-system ruby-build-system) | |
7771 | (arguments | |
7772 | '(#:tests? #f)) ; No included tests | |
7773 | (propagated-inputs | |
7774 | `(("ruby-rack" ,ruby-rack))) | |
7775 | (synopsis "Rack middleware providing authentication") | |
7776 | (description | |
7777 | "Warden is a Rack-based middleware that provides a mechanism for | |
7778 | authentication in Ruby web applications.") | |
7779 | (home-page "https://github.com/wardencommunity/warden") | |
7780 | (license license:expat))) | |
7781 | ||
e42eecdb CB |
7782 | (define-public ruby-warden-oauth2 |
7783 | (package | |
7784 | (name "ruby-warden-oauth2") | |
7785 | (version "0.0.1") | |
7786 | (source | |
7787 | (origin | |
7788 | (method url-fetch) | |
7789 | (uri (rubygems-uri "warden-oauth2" version)) | |
7790 | (sha256 | |
7791 | (base32 | |
7792 | "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz")))) | |
7793 | (build-system ruby-build-system) | |
7794 | (arguments | |
7795 | '(#:test-target "spec" | |
7796 | #:phases | |
7797 | (modify-phases %standard-phases | |
7798 | (add-after 'unpack 'remove-unnecessary-dependencies | |
7799 | (lambda _ | |
7800 | (substitute* "Gemfile" | |
7801 | ;; All of these gems relate to development, and are unnecessary | |
7802 | ;; when running the tests | |
7803 | (("gem 'guard-bundler'") "") | |
7804 | (("gem 'guard'") "") | |
7805 | (("gem 'guard-rspec'") "") | |
7806 | (("gem 'rb-fsevent'") "") | |
7807 | (("gem 'pry'") "") | |
7808 | (("gem 'growl'") "")) | |
7809 | #t)) | |
7810 | ;; The test suite doesn't work with rspec@2, and this is incompatible | |
7811 | ;; with the current version of Rake, so invoke Rspec directly | |
7812 | (replace 'check | |
7813 | (lambda* (#:key tests? #:allow-other-keys) | |
7814 | (when tests? | |
7815 | (invoke "bundle" "exec" "rspec")) | |
7816 | #t))))) | |
7817 | (propagated-inputs | |
7818 | `(("ruby-warden" ,ruby-warden))) | |
7819 | (native-inputs | |
7820 | `(("bundler" ,bundler) | |
7821 | ("ruby-rspec" ,ruby-rspec-2) | |
7822 | ("ruby-rack-test" ,ruby-rack-test))) | |
7823 | (synopsis "OAuth 2.0 strategies for Warden") | |
7824 | (description | |
7825 | "This library extends Warden to support OAuth 2.0 authorized API | |
7826 | requests.") | |
7827 | (home-page "https://github.com/opperator/warden-oauth2") | |
7828 | (license license:expat))) | |
7829 | ||
8c7ae384 CB |
7830 | (define-public ruby-webmock-2 |
7831 | (package | |
7832 | (name "ruby-webmock") | |
7833 | (version "2.3.2") | |
7834 | (source | |
7835 | (origin | |
7836 | (method url-fetch) | |
7837 | (uri (rubygems-uri "webmock" version)) | |
7838 | (sha256 | |
7839 | (base32 | |
7840 | "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5")))) | |
7841 | (build-system ruby-build-system) | |
7842 | (native-inputs | |
7843 | `(("bundler" ,bundler) | |
7844 | ("ruby-rspec" ,ruby-rspec))) | |
7845 | (propagated-inputs | |
7846 | `(("ruby-addressable" ,ruby-addressable) | |
7847 | ("ruby-crack" ,ruby-crack) | |
7848 | ("ruby-hashdiff" ,ruby-hashdiff))) | |
7849 | (synopsis "Allows stubbing and setting expectations on HTTP requests") | |
7850 | (description | |
7851 | "WebMock allows stubbing HTTP requests and setting expectations on HTTP | |
7852 | requests. This is useful when testing software.") | |
7853 | (home-page "https://github.com/bblimke/webmock") | |
7854 | (license license:expat))) | |
7855 | ||
d8c189ed CB |
7856 | (define-public ruby-unicode-display-width |
7857 | (package | |
7858 | (name "ruby-unicode-display-width") | |
216ccced | 7859 | (version "1.6.0") |
d8c189ed CB |
7860 | (source |
7861 | (origin | |
7862 | (method url-fetch) | |
7863 | (uri (rubygems-uri "unicode-display_width" version)) | |
7864 | (sha256 | |
7865 | (base32 | |
216ccced | 7866 | "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w")))) |
d8c189ed CB |
7867 | (build-system ruby-build-system) |
7868 | (arguments | |
7869 | '(;; Test data not included. | |
7870 | #:tests? #f)) | |
7871 | (synopsis "Determine the monospace display width of Ruby strings") | |
7872 | (description | |
7873 | "@code{Unicode::DisplayWidth} is a Ruby library which can determine the | |
7874 | display width of strings in Ruby.") | |
7875 | (home-page "https://github.com/janlelis/unicode-display_width") | |
7876 | (license license:expat))) | |
7877 | ||
6120589f CB |
7878 | ;; There is another gem called 'ruby-version' so we use an underscore in this |
7879 | ;; name | |
7880 | (define-public ruby_version | |
7881 | (package | |
7882 | (name "ruby_version") | |
1097fdbe | 7883 | (version "1.0.2") |
6120589f CB |
7884 | (source |
7885 | (origin | |
7886 | (method url-fetch) | |
7887 | (uri (rubygems-uri "ruby_version" version)) | |
7888 | (sha256 | |
7889 | (base32 | |
1097fdbe | 7890 | "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j")))) |
6120589f CB |
7891 | (build-system ruby-build-system) |
7892 | (arguments | |
1097fdbe | 7893 | `(#:phases |
6120589f CB |
7894 | (modify-phases %standard-phases |
7895 | (add-before 'check 'fix-dependencies | |
7896 | (lambda _ | |
7897 | ;; Remove the Gemfile.lock, as we want to use Guix packages at | |
7898 | ;; whatever versions. | |
7899 | (delete-file "Gemfile.lock") | |
1097fdbe MC |
7900 | ;; Remove the included gem files as they unnecessary. |
7901 | (delete-file-recursively "pkg/") | |
7902 | ;; Accept any version of rake, rdoc and rspec | |
6120589f | 7903 | (substitute* "ruby_version.gemspec" |
6120589f | 7904 | (("%q<rake.*") "%q<rake>)\n") |
1097fdbe | 7905 | (("%q<rdoc.*") "%q<rdoc>)\n") |
6120589f | 7906 | (("%q<rspec.*") "%q<rspec>)\n")) |
1097fdbe | 7907 | ;; Do not use bundler. |
6120589f | 7908 | (substitute* "Rakefile" |
1097fdbe | 7909 | (("Bundler\\.setup.*") "nil\n")) |
6120589f CB |
7910 | #t))))) |
7911 | (native-inputs | |
1097fdbe MC |
7912 | `(("ruby-rdoc" ,ruby-rdoc) |
7913 | ("ruby-rspec" ,ruby-rspec) | |
7914 | ("ruby-rubygems-tasks", ruby-rubygems-tasks))) | |
6120589f | 7915 | (synopsis "Ruby library to help check the Ruby version") |
1097fdbe | 7916 | (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify |
6120589f CB |
7917 | checking for the right Ruby version in software.") |
7918 | (home-page "https://github.com/janlelis/ruby_version") | |
7919 | (license license:expat))) | |
7920 | ||
a229acff CB |
7921 | (define-public ruby-websocket-driver |
7922 | (package | |
7923 | (name "ruby-websocket-driver") | |
9d1cf6d4 | 7924 | (version "0.7.1") |
a229acff CB |
7925 | (source |
7926 | (origin | |
7927 | (method url-fetch) | |
7928 | (uri (rubygems-uri "websocket-driver" version)) | |
7929 | (sha256 | |
9d1cf6d4 | 7930 | (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2")))) |
a229acff CB |
7931 | (build-system ruby-build-system) |
7932 | (arguments | |
9d1cf6d4 | 7933 | '(#:tests? #f)) ; no included tests |
a229acff CB |
7934 | (propagated-inputs |
7935 | `(("ruby-websocket-extensions" ,ruby-websocket-extensions))) | |
7936 | (synopsis "WebSocket protocol handler with pluggable I/O") | |
7937 | (description | |
7938 | "@code{websocket-driver} provides a complete implementation of the | |
7939 | WebSocket protocols that can be hooked up to any TCP library") | |
7940 | (home-page "https://github.com/faye/websocket-driver-ruby") | |
7941 | (license license:expat))) | |
7942 | ||
52b015a9 CB |
7943 | (define-public ruby-websocket-extensions |
7944 | (package | |
7945 | (name "ruby-websocket-extensions") | |
7946 | (version "0.1.3") | |
7947 | (source | |
7948 | (origin | |
7949 | (method url-fetch) | |
7950 | (uri (rubygems-uri "websocket-extensions" version)) | |
7951 | (sha256 | |
7952 | (base32 | |
7953 | "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270")))) | |
7954 | (build-system ruby-build-system) | |
7955 | (arguments | |
7956 | '(;; No included tests | |
7957 | #:tests? #f)) | |
7958 | (synopsis "Generic extension manager for WebSocket connections") | |
7959 | (description | |
7960 | "@code{websocket-extensions} provides a container for registering | |
7961 | extension plugins.") | |
7962 | (home-page "https://github.com/faye/websocket-extensions-ruby") | |
7963 | (license license:expat))) | |
7964 | ||
5799aadd BW |
7965 | (define-public ruby-domain-name |
7966 | (package | |
7967 | (name "ruby-domain-name") | |
222999c9 | 7968 | (version "0.5.20180417") |
5799aadd BW |
7969 | (source |
7970 | (origin | |
7971 | (method url-fetch) | |
7972 | (uri (rubygems-uri "domain_name" version)) | |
7973 | (sha256 | |
7974 | (base32 | |
222999c9 | 7975 | "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v")))) |
5799aadd BW |
7976 | (build-system ruby-build-system) |
7977 | (arguments | |
7978 | `(#:phases | |
7979 | (modify-phases %standard-phases | |
7980 | (add-before 'check 'fix-versions | |
7981 | (lambda _ | |
7982 | ;; Fix NameError that appears to already be fixed upstream. | |
7983 | (substitute* "Rakefile" | |
7984 | (("DomainName::VERSION") | |
7985 | "Bundler::GemHelper.gemspec.version")) | |
7986 | ;; Loosen unnecessarily strict test-unit version specification. | |
7987 | (substitute* "domain_name.gemspec" | |
71596c3c | 7988 | (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0")) |
5799aadd BW |
7989 | #t))))) |
7990 | (propagated-inputs | |
7991 | `(("ruby-unf" ,ruby-unf))) | |
7992 | (native-inputs | |
7993 | `(("ruby-shoulda" ,ruby-shoulda) | |
7994 | ("bundler" ,bundler) | |
7995 | ("ruby-test-unit" ,ruby-test-unit))) | |
7996 | (synopsis "Domain name manipulation library") | |
7997 | (description | |
7998 | "@code{domain_name} is a Domain name manipulation library. It parses a | |
7999 | domain name ready for extracting the registered domain and TLD (Top Level | |
8000 | Domain). It can also be used for cookie domain validation based on the Public | |
8001 | Suffix List.") | |
8002 | (home-page "https://github.com/knu/ruby-domain_name") | |
8003 | (license license:bsd-2))) | |
8004 | ||
d114ceeb BW |
8005 | (define-public ruby-http-cookie |
8006 | (package | |
8007 | (name "ruby-http-cookie") | |
2a2eb07d | 8008 | (version "1.0.3") |
d114ceeb BW |
8009 | (source |
8010 | (origin | |
8011 | (method url-fetch) | |
8012 | (uri (rubygems-uri "http-cookie" version)) | |
8013 | (sha256 | |
8014 | (base32 | |
2a2eb07d | 8015 | "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g")))) |
d114ceeb BW |
8016 | (build-system ruby-build-system) |
8017 | (arguments | |
8018 | `(#:phases | |
8019 | (modify-phases %standard-phases | |
8020 | (add-before 'check 'add-dependency-to-bundler | |
8021 | (lambda _ | |
8022 | ;; Fix NameError | |
8023 | (substitute* "Rakefile" | |
8024 | (("HTTP::Cookie::VERSION") | |
8025 | "Bundler::GemHelper.gemspec.version")) | |
8026 | #t))))) | |
8027 | (propagated-inputs | |
8028 | `(("ruby-domain-name" ,ruby-domain-name))) | |
8029 | (native-inputs | |
8030 | `(("rubysimplecov" ,ruby-simplecov) | |
8031 | ("bundler" ,bundler) | |
8032 | ("ruby-sqlite3" ,ruby-sqlite3) | |
8033 | ("ruby-test-unit" ,ruby-test-unit))) | |
8034 | (synopsis "Handle HTTP Cookies based on RFC 6265") | |
8035 | (description | |
8036 | "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on | |
8037 | RFC 6265. It has been designed with security, standards compliance and | |
8038 | compatibility in mind, to behave just the same as today's major web browsers. | |
8039 | It has built-in support for the legacy @code{cookies.txt} and | |
8040 | @code{cookies.sqlite} formats of Mozilla Firefox.") | |
8041 | (home-page "https://github.com/sparklemotion/http-cookie") | |
8042 | (license license:expat))) | |
8043 | ||
1c8e6fd3 CB |
8044 | (define-public ruby-httpclient |
8045 | (package | |
8046 | (name "ruby-httpclient") | |
8047 | (version "2.8.3") | |
8048 | (source | |
8049 | (origin | |
8050 | (method url-fetch) | |
8051 | (uri (rubygems-uri "httpclient" version)) | |
8052 | (sha256 | |
8053 | (base32 | |
8054 | "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99")))) | |
8055 | (build-system ruby-build-system) | |
8056 | (arguments | |
8057 | '(;; TODO: Some tests currently fail | |
8058 | ;; ------ | |
8059 | ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings, | |
8060 | ;; 2 omissions, 0 notifications | |
8061 | ;; 91.866% passed | |
8062 | ;; ------ | |
8063 | ;; 6.49 tests/s, 22.41 assertions/s | |
8064 | #:tests? #f | |
8065 | #:phases | |
8066 | (modify-phases %standard-phases | |
8067 | (replace 'check | |
8068 | (lambda* (#:key tests? #:allow-other-keys) | |
8069 | (if tests? | |
9923d5a4 TGR |
8070 | (invoke "ruby" |
8071 | "-Ilib" | |
8072 | "test/runner.rb") | |
0076f5a9 | 8073 | #t)))))) |
1c8e6fd3 CB |
8074 | (native-inputs |
8075 | `(("ruby-rack" ,ruby-rack))) | |
8076 | (synopsis | |
8077 | "Make HTTP requests with support for HTTPS, Cookies, authentication and more") | |
8078 | (description | |
8079 | "The @code{httpclient} ruby library provides functionality related to | |
8080 | HTTP. Compared to the @code{net/http} library, @{httpclient} also provides | |
8081 | Cookie, multithreading and authentication (digest, NTLM) support. | |
8082 | ||
8083 | Also provided is a @command{httpclient} command, which can perform HTTP | |
8084 | requests either using arguments or with an interactive prompt.") | |
8085 | (home-page "https://github.com/nahi/httpclient") | |
8086 | (license license:ruby))) | |
8087 | ||
7d3a1a2d BW |
8088 | (define-public ruby-ansi |
8089 | (package | |
8090 | (name "ruby-ansi") | |
8091 | (version "1.5.0") | |
8092 | (source | |
8093 | (origin | |
3d30c332 | 8094 | (method git-fetch) |
7d3a1a2d | 8095 | ;; Fetch from GitHub as the gem does not contain testing code. |
3d30c332 EF |
8096 | (uri (git-reference |
8097 | (url "https://github.com/rubyworks/ansi") | |
8098 | (commit version))) | |
8099 | (file-name (git-file-name name version)) | |
7d3a1a2d BW |
8100 | (sha256 |
8101 | (base32 | |
3d30c332 | 8102 | "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5")))) |
7d3a1a2d BW |
8103 | (build-system ruby-build-system) |
8104 | (arguments | |
8105 | `(#:phases | |
8106 | (modify-phases %standard-phases | |
8107 | ;; Disable testing to break the cycle ansi, ae, ansi, as well as the | |
8108 | ;; cycle ansi, qed, ansi. Instead simply test that the library can | |
8109 | ;; be require'd. | |
8110 | (replace 'check | |
8111 | (lambda _ | |
9923d5a4 | 8112 | (invoke "ruby" "-Ilib" "-r" "ansi"))) |
0899352f MB |
8113 | (add-before 'validate-runpath 'replace-broken-symlink |
8114 | (lambda* (#:key outputs #:allow-other-keys) | |
8115 | (let* ((out (assoc-ref outputs "out")) | |
3cb3fa67 CB |
8116 | (file (string-append |
8117 | out "/lib/ruby/vendor_ruby/gems/ansi-" | |
8118 | ,version "/lib/ansi.yml"))) | |
0899352f MB |
8119 | ;; XXX: This symlink is broken since ruby 2.4. |
8120 | ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html | |
8121 | (delete-file file) | |
8122 | (symlink "../.index" file) | |
8123 | #t)))))) | |
7d3a1a2d BW |
8124 | (synopsis "ANSI escape code related libraries") |
8125 | (description | |
8126 | "This package is a collection of ANSI escape code related libraries | |
8127 | enabling ANSI colorization and stylization of console output. Included in the | |
8128 | library are the @code{Code} module, which defines ANSI codes as constants and | |
8129 | methods, a @code{Mixin} module for including color methods, a @code{Logger}, a | |
8130 | @code{ProgressBar}, and a @code{String} subclass. The library also includes a | |
8131 | @code{Terminal} module which provides information about the current output | |
8132 | device.") | |
3d30c332 | 8133 | (home-page "https://rubyworks.github.io/ansi/") |
7d3a1a2d | 8134 | (license license:bsd-2))) |
7c033c46 BW |
8135 | |
8136 | (define-public ruby-systemu | |
8137 | (package | |
8138 | (name "ruby-systemu") | |
8139 | (version "2.6.5") | |
8140 | (source | |
8141 | (origin | |
8142 | (method url-fetch) | |
8143 | (uri (rubygems-uri "systemu" version)) | |
8144 | (sha256 | |
8145 | (base32 | |
8146 | "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1")))) | |
8147 | (build-system ruby-build-system) | |
8148 | (arguments | |
8149 | `(#:phases | |
8150 | (modify-phases %standard-phases | |
8151 | (add-before 'check 'set-version | |
8152 | (lambda _ | |
8153 | (setenv "VERSION" ,version) | |
8154 | #t))))) | |
8155 | (synopsis "Capture of stdout/stderr and handling of child processes") | |
8156 | (description | |
8157 | "Systemu can be used on any platform to return status, stdout, and stderr | |
8158 | of any command. Unlike other methods like @code{open3} and @code{popen4} | |
8159 | there is no danger of full pipes or threading issues hanging your process or | |
8160 | subprocess.") | |
8161 | (home-page "https://github.com/ahoward/systemu") | |
8162 | (license license:ruby))) | |
3d84a99e BW |
8163 | |
8164 | (define-public ruby-bio-commandeer | |
8165 | (package | |
8166 | (name "ruby-bio-commandeer") | |
37b08547 | 8167 | (version "0.4.0") |
3d84a99e BW |
8168 | (source |
8169 | (origin | |
8170 | (method url-fetch) | |
8171 | (uri (rubygems-uri "bio-commandeer" version)) | |
8172 | (sha256 | |
8173 | (base32 | |
37b08547 | 8174 | "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni")))) |
3d84a99e BW |
8175 | (build-system ruby-build-system) |
8176 | (arguments | |
8177 | `(#:phases | |
8178 | (modify-phases %standard-phases | |
8179 | (replace 'check | |
8180 | ;; Run test without calling 'rake' so that jeweler is | |
8181 | ;; not required as an input. | |
8182 | (lambda _ | |
9923d5a4 | 8183 | (invoke "rspec" "spec/bio-commandeer_spec.rb")))))) |
3d84a99e BW |
8184 | (propagated-inputs |
8185 | `(("ruby-bio-logger" ,ruby-bio-logger) | |
8186 | ("ruby-systemu" ,ruby-systemu))) | |
8187 | (native-inputs | |
8188 | `(("bundler" ,bundler) | |
8189 | ("ruby-rspec" ,ruby-rspec))) | |
8190 | (synopsis "Simplified running of shell commands from within Ruby") | |
8191 | (description | |
8192 | "Bio-commandeer provides an opinionated method of running shell commands | |
8193 | from within Ruby. The advantage of bio-commandeer over other methods of | |
8194 | running external commands is that when something goes wrong, messages printed | |
8195 | to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra | |
8196 | detail to ease debugging.") | |
7bf837fd | 8197 | (home-page "https://github.com/wwood/bioruby-commandeer") |
3d84a99e | 8198 | (license license:expat))) |
7c8131c7 BW |
8199 | |
8200 | (define-public ruby-rubytest | |
8201 | (package | |
8202 | (name "ruby-rubytest") | |
8203 | (version "0.8.1") | |
8204 | (source | |
8205 | (origin | |
8206 | (method url-fetch) | |
8207 | (uri (rubygems-uri "rubytest" version)) | |
8208 | (sha256 | |
8209 | (base32 | |
8210 | "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz")))) | |
8211 | (build-system ruby-build-system) | |
8212 | (arguments | |
8213 | ;; Disable regular testing to break the cycle rubytest, qed, brass, | |
8214 | ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead | |
8215 | ;; simply test that the library can be require'd. | |
8216 | `(#:phases | |
8217 | (modify-phases %standard-phases | |
8218 | (replace 'check | |
8219 | (lambda _ | |
9923d5a4 | 8220 | (invoke "ruby" "-Ilib" "-r" "rubytest")))))) |
7c8131c7 BW |
8221 | (propagated-inputs |
8222 | `(("ruby-ansi" ,ruby-ansi))) | |
8223 | (synopsis "Universal test harness for Ruby") | |
8224 | (description | |
8225 | "Rubytest is a testing meta-framework for Ruby. It can handle any | |
8226 | compliant test framework and can run tests from multiple frameworks in a | |
8227 | single pass.") | |
2f3800e5 | 8228 | (home-page "https://rubyworks.github.io/rubytest") |
7c8131c7 | 8229 | (license license:bsd-2))) |
90fcedf2 BW |
8230 | |
8231 | (define-public ruby-brass | |
8232 | (package | |
8233 | (name "ruby-brass") | |
8234 | (version "1.2.1") | |
8235 | (source | |
8236 | (origin | |
8237 | (method url-fetch) | |
8238 | (uri (rubygems-uri "brass" version)) | |
8239 | (sha256 | |
8240 | (base32 | |
8241 | "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka")))) | |
8242 | (build-system ruby-build-system) | |
8243 | (arguments | |
8244 | ;; Disable tests to break the cycle brass, lemon, ae, qed, brass. | |
8245 | ;; Instead simply test that the library can be require'd. | |
8246 | `(#:phases | |
8247 | (modify-phases %standard-phases | |
8248 | (replace 'check | |
8249 | (lambda _ | |
9923d5a4 | 8250 | (invoke "ruby" "-Ilib" "-r" "brass")))))) |
90fcedf2 BW |
8251 | (synopsis "Basic foundational assertions framework") |
8252 | (description | |
8253 | "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic | |
8254 | foundational assertions framework for other assertion and test frameworks to | |
8255 | make use of.") | |
2f3800e5 | 8256 | (home-page "https://rubyworks.github.io/brass") |
90fcedf2 | 8257 | (license license:bsd-2))) |
120fc74b BW |
8258 | |
8259 | (define-public ruby-qed | |
8260 | (package | |
8261 | (name "ruby-qed") | |
8262 | (version "2.9.2") | |
8263 | (source | |
8264 | (origin | |
8265 | (method url-fetch) | |
8266 | (uri (rubygems-uri "qed" version)) | |
8267 | (sha256 | |
8268 | (base32 | |
8269 | "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr")))) | |
8270 | (build-system ruby-build-system) | |
8271 | (arguments | |
8272 | ;; Disable testing to break the cycle qed, ansi, qed, among others. | |
8273 | ;; Instead simply test that the executable runs using --copyright. | |
8274 | `(#:phases | |
8275 | (modify-phases %standard-phases | |
8276 | (replace 'check | |
8277 | (lambda _ | |
9923d5a4 | 8278 | (invoke "ruby" "-Ilib" "bin/qed" "--copyright")))))) |
120fc74b BW |
8279 | (propagated-inputs |
8280 | `(("ruby-ansi" ,ruby-ansi) | |
8281 | ("ruby-brass" ,ruby-brass))) | |
8282 | (synopsis "Test framework utilizing literate programming techniques") | |
8283 | (description | |
8284 | "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for | |
8285 | @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven | |
8286 | Development} (BDD) utilizing Literate Programming techniques. QED sits | |
8287 | somewhere between lower-level testing tools like @code{Test::Unit} and | |
8288 | requirement specifications systems like Cucumber.") | |
2f3800e5 | 8289 | (home-page "https://rubyworks.github.io/qed") |
120fc74b | 8290 | (license license:bsd-2))) |
9273ee8f | 8291 | |
dbbe88d3 CB |
8292 | (define-public ruby-que |
8293 | (package | |
8294 | (name "ruby-que") | |
8295 | (version "1.0.0.beta3") | |
8296 | (source | |
8297 | (origin | |
8298 | (method url-fetch) | |
8299 | (uri (rubygems-uri "que" version)) | |
8300 | (sha256 | |
8301 | (base32 | |
8302 | "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04")))) | |
8303 | (build-system ruby-build-system) | |
8304 | (arguments | |
8305 | '(#:tests? #f)) ; No included tests | |
8306 | (synopsis "Job queue using PostgreSQL written in Ruby") | |
8307 | (description | |
8308 | "This package provides a job queue that uses PostgreSQL for storing jobs | |
8309 | and locking between worker processes.") | |
8310 | (home-page "https://github.com/chanks/que") | |
8311 | (license license:expat))) | |
8312 | ||
9273ee8f BW |
8313 | (define-public ruby-ae |
8314 | (package | |
8315 | (name "ruby-ae") | |
8316 | (version "1.8.2") | |
8317 | (source | |
8318 | (origin | |
11d1b318 | 8319 | (method git-fetch) |
9273ee8f | 8320 | ;; Fetch from github so tests are included. |
11d1b318 EF |
8321 | (uri (git-reference |
8322 | (url "https://github.com/rubyworks/ae") | |
8323 | (commit version))) | |
8324 | (file-name (git-file-name name version)) | |
9273ee8f BW |
8325 | (sha256 |
8326 | (base32 | |
11d1b318 | 8327 | "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp")))) |
9273ee8f BW |
8328 | (build-system ruby-build-system) |
8329 | (arguments | |
8330 | `(#:phases | |
8331 | (modify-phases %standard-phases | |
8332 | (replace 'check | |
9923d5a4 | 8333 | (lambda _ (invoke "qed"))) |
de6f6efd MB |
8334 | (add-before 'validate-runpath 'replace-broken-symlink |
8335 | (lambda* (#:key outputs #:allow-other-keys) | |
8336 | (let* ((out (assoc-ref outputs "out")) | |
3cb3fa67 CB |
8337 | (file (string-append |
8338 | out "/lib/ruby/vendor_ruby/gems/ae-" | |
8339 | ,version "/lib/ae.yml"))) | |
de6f6efd MB |
8340 | ;; XXX: This symlink is broken since ruby 2.4. |
8341 | ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html | |
8342 | (delete-file file) | |
8343 | (symlink "../.index" file) | |
8344 | #t)))))) | |
9273ee8f BW |
8345 | (propagated-inputs |
8346 | `(("ruby-ansi" ,ruby-ansi))) | |
8347 | (native-inputs | |
8348 | `(("ruby-qed" ,ruby-qed))) | |
8349 | (synopsis "Assertions library") | |
8350 | (description | |
8351 | "Assertive Expressive (AE) is an assertions library specifically designed | |
8352 | for reuse by other test frameworks.") | |
11d1b318 | 8353 | (home-page "https://rubyworks.github.io/ae/") |
9273ee8f | 8354 | (license license:bsd-2))) |
78bb471f BW |
8355 | |
8356 | (define-public ruby-lemon | |
8357 | (package | |
8358 | (name "ruby-lemon") | |
8359 | (version "0.9.1") | |
8360 | (source | |
8361 | (origin | |
8362 | (method url-fetch) | |
8363 | (uri (rubygems-uri "lemon" version)) | |
8364 | (sha256 | |
8365 | (base32 | |
8366 | "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm")))) | |
8367 | (build-system ruby-build-system) | |
8368 | (arguments | |
8369 | `(#:phases | |
8370 | (modify-phases %standard-phases | |
9923d5a4 | 8371 | (replace 'check (lambda _ (invoke "qed")))))) |
78bb471f BW |
8372 | (propagated-inputs |
8373 | `(("ruby-ae" ,ruby-ae) | |
8374 | ("ruby-ansi" ,ruby-ansi) | |
8375 | ("ruby-rubytest" ,ruby-rubytest))) | |
8376 | (native-inputs | |
8377 | `(("ruby-qed" ,ruby-qed))) | |
8378 | (synopsis "Test framework correlating code structure and test unit") | |
8379 | (description | |
8380 | "Lemon is a unit testing framework that enforces highly formal | |
8381 | case-to-class and unit-to-method test construction. This enforcement can help | |
8382 | focus concern on individual units of behavior.") | |
2f3800e5 | 8383 | (home-page "https://rubyworks.github.io/lemon") |
78bb471f | 8384 | (license license:bsd-2))) |
0832804e BW |
8385 | |
8386 | (define-public ruby-rubytest-cli | |
8387 | (package | |
8388 | (name "ruby-rubytest-cli") | |
8389 | (version "0.2.0") | |
8390 | (source | |
8391 | (origin | |
8392 | (method url-fetch) | |
8393 | (uri (rubygems-uri "rubytest-cli" version)) | |
8394 | (sha256 | |
8395 | (base32 | |
8396 | "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p")))) | |
8397 | (build-system ruby-build-system) | |
8398 | (arguments | |
8399 | `(#:tests? #f)) ; no tests | |
8400 | (propagated-inputs | |
8401 | `(("ruby-ansi" ,ruby-ansi) | |
8402 | ("ruby-rubytest" ,ruby-rubytest))) | |
8403 | (synopsis "Command-line interface for rubytest") | |
8404 | (description | |
8405 | "Rubytest CLI is a command-line interface for running tests for | |
8406 | Rubytest-based test frameworks. It provides the @code{rubytest} executable.") | |
2f3800e5 | 8407 | (home-page "https://rubyworks.github.io/rubytest-cli") |
0832804e | 8408 | (license license:bsd-2))) |
72ccbfe3 BW |
8409 | |
8410 | (define-public ruby-hashery | |
8411 | (package | |
8412 | (name "ruby-hashery") | |
cba96208 | 8413 | (version "2.1.2") |
72ccbfe3 BW |
8414 | (source |
8415 | (origin | |
8416 | (method url-fetch) | |
8417 | (uri (rubygems-uri "hashery" version)) | |
8418 | (sha256 | |
8419 | (base32 | |
cba96208 | 8420 | "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj")))) |
72ccbfe3 BW |
8421 | (build-system ruby-build-system) |
8422 | (arguments | |
8423 | `(#:phases | |
8424 | (modify-phases %standard-phases | |
8425 | (replace 'check | |
8426 | (lambda _ | |
9923d5a4 TGR |
8427 | (invoke "qed") |
8428 | (invoke "rubytest" "-Ilib" "-Itest" "test/")))))) | |
72ccbfe3 BW |
8429 | (native-inputs |
8430 | `(("ruby-rubytest-cli" ,ruby-rubytest-cli) | |
8431 | ("ruby-qed" ,ruby-qed) | |
8432 | ("ruby-lemon" ,ruby-lemon))) | |
8433 | (synopsis "Hash-like classes with extra features") | |
8434 | (description | |
8435 | "The Hashery is a tight collection of @code{Hash}-like classes. | |
8436 | Included are the auto-sorting @code{Dictionary} class, the efficient | |
8437 | @code{LRUHash}, the flexible @code{OpenHash} and the convenient | |
8438 | @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which | |
8439 | defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's | |
8440 | standard @code{Hash} making it possible to subclass and augment to fit any | |
8441 | specific use case.") | |
2f3800e5 | 8442 | (home-page "https://rubyworks.github.io/hashery") |
72ccbfe3 | 8443 | (license license:bsd-2))) |
1f1d71e0 BW |
8444 | |
8445 | (define-public ruby-rc4 | |
8446 | (package | |
8447 | (name "ruby-rc4") | |
8448 | (version "0.1.5") | |
8449 | (source | |
8450 | (origin | |
8451 | (method url-fetch) | |
8452 | (uri (rubygems-uri "ruby-rc4" version)) | |
8453 | (sha256 | |
8454 | (base32 | |
8455 | "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00")))) | |
8456 | (build-system ruby-build-system) | |
8457 | (arguments | |
8458 | `(#:phases | |
8459 | (modify-phases %standard-phases | |
8460 | (replace 'check | |
8461 | (lambda _ | |
9923d5a4 | 8462 | (invoke "rspec" "spec/rc4_spec.rb")))))) |
1f1d71e0 BW |
8463 | (native-inputs |
8464 | `(("ruby-rspec" ,ruby-rspec-2))) | |
8465 | (synopsis "Implementation of the RC4 algorithm") | |
8466 | (description | |
8467 | "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.") | |
8468 | (home-page "https://github.com/caiges/Ruby-RC4") | |
8469 | (license license:expat))) | |
f3e085a8 BW |
8470 | |
8471 | (define-public ruby-afm | |
8472 | (package | |
8473 | (name "ruby-afm") | |
8474 | (version "0.2.2") | |
8475 | (source | |
8476 | (origin | |
8477 | (method url-fetch) | |
8478 | (uri (rubygems-uri "afm" version)) | |
8479 | (sha256 | |
8480 | (base32 | |
8481 | "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8")))) | |
8482 | (build-system ruby-build-system) | |
8483 | (native-inputs | |
8484 | `(("bundler" ,bundler))) | |
8485 | (synopsis "Read Adobe Font Metrics (afm) files") | |
8486 | (description | |
8487 | "This library provides methods to read @dfn{Adobe Font Metrics} (afm) | |
8488 | files and use the data therein.") | |
7bf837fd | 8489 | (home-page "https://github.com/halfbyte/afm") |
f3e085a8 | 8490 | (license license:expat))) |
acb6be42 BW |
8491 | |
8492 | (define-public ruby-ascii85 | |
8493 | (package | |
8494 | (name "ruby-ascii85") | |
5854082a | 8495 | (version "1.0.3") |
acb6be42 BW |
8496 | (source |
8497 | (origin | |
8498 | (method url-fetch) | |
8499 | (uri (rubygems-uri "Ascii85" version)) | |
8500 | (sha256 | |
8501 | (base32 | |
5854082a | 8502 | "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs")))) |
acb6be42 BW |
8503 | (build-system ruby-build-system) |
8504 | (native-inputs | |
8505 | `(("bundler" ,bundler))) | |
8506 | (synopsis "Encode and decode Ascii85 binary-to-text encoding") | |
8507 | (description | |
8508 | "This library provides methods to encode and decode Ascii85 | |
8509 | binary-to-text encoding. The main modern use of Ascii85 is in PostScript and | |
8510 | @dfn{Portable Document Format} (PDF) file formats.") | |
8511 | (home-page "https://github.com/datawraith/ascii85gem") | |
8512 | (license license:expat))) | |
edf8caae BW |
8513 | |
8514 | (define-public ruby-ttfunk | |
8515 | (package | |
8516 | (name "ruby-ttfunk") | |
afb7a3e8 | 8517 | (version "1.5.1") |
edf8caae BW |
8518 | (source |
8519 | (origin | |
4e110825 | 8520 | (method git-fetch) |
edf8caae | 8521 | ;; fetch from github as the gem does not contain testing code |
4e110825 EF |
8522 | (uri (git-reference |
8523 | (url "https://github.com/prawnpdf/ttfunk") | |
8524 | (commit version))) | |
8525 | (file-name (git-file-name name version)) | |
edf8caae BW |
8526 | (sha256 |
8527 | (base32 | |
4e110825 | 8528 | "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9")))) |
edf8caae BW |
8529 | (build-system ruby-build-system) |
8530 | (arguments | |
8531 | `(#:test-target "spec" | |
8532 | #:phases | |
8533 | (modify-phases %standard-phases | |
afb7a3e8 JL |
8534 | (add-before 'build 'remove-ssh |
8535 | (lambda _ | |
8536 | ;; remove dependency on an ssh key pair that doesn't exist | |
8537 | (substitute* "ttfunk.gemspec" | |
8538 | (("spec.signing_key.*") "")) | |
8539 | #t)) | |
edf8caae BW |
8540 | (add-before 'check 'remove-rubocop |
8541 | (lambda _ | |
8542 | ;; remove rubocop as a dependency as not needed for testing | |
8543 | (substitute* "ttfunk.gemspec" | |
8544 | (("spec.add_development_dependency\\('rubocop'.*") "")) | |
8545 | (substitute* "Rakefile" | |
8546 | (("require 'rubocop/rake_task'") "") | |
afb7a3e8 | 8547 | (("RuboCop::RakeTask.new") "")) |
edf8caae BW |
8548 | #t))))) |
8549 | (native-inputs | |
8550 | `(("ruby-rspec" ,ruby-rspec) | |
afb7a3e8 | 8551 | ("ruby-yard" ,ruby-yard) |
edf8caae BW |
8552 | ("bundler" ,bundler))) |
8553 | (synopsis "Font metrics parser for the Prawn PDF generator") | |
8554 | (description | |
8555 | "TTFunk is a TrueType font parser written in pure Ruby. It is used as | |
8556 | part of the Prawn PDF generator.") | |
8557 | (home-page "https://github.com/prawnpdf/ttfunk") | |
8558 | ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE | |
8559 | ;; for details." | |
8560 | (license (list license:gpl2 license:gpl3 license:ruby)))) | |
cbdd428c | 8561 | |
9270298f BW |
8562 | (define-public ruby-puma |
8563 | (package | |
8564 | (name "ruby-puma") | |
63755fcd | 8565 | (version "3.9.1") |
9270298f BW |
8566 | (source |
8567 | (origin | |
a6cffe6e | 8568 | (method git-fetch) |
9270298f | 8569 | ;; Fetch from GitHub because distributed gem does not contain tests. |
a6cffe6e EF |
8570 | (uri (git-reference |
8571 | (url "https://github.com/puma/puma") | |
8572 | (commit (string-append "v" version)))) | |
8573 | (file-name (git-file-name name version)) | |
9270298f BW |
8574 | (sha256 |
8575 | (base32 | |
a6cffe6e | 8576 | "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f")))) |
9270298f BW |
8577 | (build-system ruby-build-system) |
8578 | (arguments | |
63755fcd BW |
8579 | `(#:tests? #f ; Tests require an out-dated version of minitest. |
8580 | #:phases | |
9270298f BW |
8581 | (modify-phases %standard-phases |
8582 | (add-before 'build 'fix-gemspec | |
8583 | (lambda _ | |
8584 | (substitute* "puma.gemspec" | |
8585 | (("git ls-files") "find * |sort")) | |
8586 | #t))))) | |
9270298f BW |
8587 | (synopsis "Simple, concurrent HTTP server for Ruby/Rack") |
8588 | (description | |
8589 | "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server | |
8590 | for Ruby/Rack applications. Puma is intended for use in both development and | |
8591 | production environments. In order to get the best throughput, it is highly | |
8592 | recommended that you use a Ruby implementation with real threads like Rubinius | |
8593 | or JRuby.") | |
a6cffe6e | 8594 | (home-page "https://puma.io/") |
9270298f BW |
8595 | (license license:expat))) |
8596 | ||
b0813490 BW |
8597 | (define-public ruby-hoe-git |
8598 | (package | |
8599 | (name "ruby-hoe-git") | |
8600 | (version "1.6.0") | |
8601 | (source | |
8602 | (origin | |
8603 | (method url-fetch) | |
8604 | (uri (rubygems-uri "hoe-git" version)) | |
8605 | (sha256 | |
8606 | (base32 | |
8607 | "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650")))) | |
8608 | (build-system ruby-build-system) | |
8609 | (propagated-inputs | |
8610 | `(("ruby-hoe" ,ruby-hoe) | |
8611 | ("git" ,git))) | |
8612 | (synopsis "Hoe plugins for tighter Git integration") | |
8613 | (description | |
8614 | "This package provides a set of Hoe plugins for tighter Git integration. | |
8615 | It provides tasks to automate release tagging and pushing and changelog | |
8616 | generation.") | |
7bf837fd | 8617 | (home-page "https://github.com/jbarnette/hoe-git") |
b0813490 BW |
8618 | (license license:expat))) |
8619 | ||
cbdd428c BW |
8620 | (define-public ruby-sequel |
8621 | (package | |
8622 | (name "ruby-sequel") | |
65a7f09c | 8623 | (version "4.49.0") |
cbdd428c BW |
8624 | (source |
8625 | (origin | |
8626 | (method url-fetch) | |
8627 | (uri (rubygems-uri "sequel" version)) | |
8628 | (sha256 | |
8629 | (base32 | |
65a7f09c | 8630 | "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8")))) |
cbdd428c BW |
8631 | (build-system ruby-build-system) |
8632 | (arguments | |
8633 | '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks. | |
8634 | (synopsis "Database toolkit for Ruby") | |
8635 | (description "Sequel provides thread safety, connection pooling and a | |
8636 | concise DSL for constructing SQL queries and table schemas. It includes a | |
8637 | comprehensive ORM layer for mapping records to Ruby objects and handling | |
8638 | associated records.") | |
e2b70d90 | 8639 | (home-page "https://sequel.jeremyevans.net") |
cbdd428c | 8640 | (license license:expat))) |
3cc78097 BW |
8641 | |
8642 | (define-public ruby-timecop | |
8643 | (package | |
8644 | (name "ruby-timecop") | |
3d4a5eb5 | 8645 | (version "0.9.1") |
3cc78097 BW |
8646 | (source |
8647 | (origin | |
8648 | (method url-fetch) | |
8649 | (uri (rubygems-uri "timecop" version)) | |
8650 | (sha256 | |
8651 | (base32 | |
3d4a5eb5 | 8652 | "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp")))) |
3cc78097 BW |
8653 | (build-system ruby-build-system) |
8654 | (arguments | |
8655 | `(#:phases | |
8656 | (modify-phases %standard-phases | |
8657 | (add-before 'check 'set-check-rubylib | |
8658 | (lambda _ | |
8659 | ;; Set RUBYLIB so timecop tests finds its own lib. | |
8660 | (setenv "RUBYLIB" "lib") | |
8661 | #t))))) | |
8662 | (native-inputs | |
8663 | `(("bundler" ,bundler) | |
8664 | ("ruby-minitest-rg" ,ruby-minitest-rg) | |
8665 | ("ruby-mocha" ,ruby-mocha) | |
8666 | ("ruby-activesupport" ,ruby-activesupport))) | |
66e07664 | 8667 | (synopsis "Test mocks for time-dependent functions") |
3cc78097 BW |
8668 | (description |
8669 | "Timecop provides \"time travel\" and \"time freezing\" capabilities, | |
8670 | making it easier to test time-dependent code. It provides a unified method to | |
8671 | mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single | |
8672 | call.") | |
8673 | (home-page "https://github.com/travisjeffery/timecop") | |
8674 | (license license:expat))) | |
8675 | ||
dae620b8 BW |
8676 | (define-public ruby-concurrent |
8677 | (package | |
8678 | (name "ruby-concurrent") | |
1007640a | 8679 | (version "1.1.5") |
dae620b8 BW |
8680 | (source |
8681 | (origin | |
8fcba3be | 8682 | (method git-fetch) |
dae620b8 BW |
8683 | ;; Download from GitHub because the rubygems version does not contain |
8684 | ;; Rakefile. | |
8fcba3be MB |
8685 | (uri (git-reference |
8686 | (url "https://github.com/ruby-concurrency/concurrent-ruby") | |
8687 | (commit (string-append "v" version)))) | |
8688 | (file-name (git-file-name name version)) | |
dae620b8 BW |
8689 | (sha256 |
8690 | (base32 | |
1007640a | 8691 | "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj")))) |
dae620b8 BW |
8692 | (build-system ruby-build-system) |
8693 | (arguments | |
1007640a | 8694 | `(#:test-target "ci" |
dae620b8 BW |
8695 | #:phases |
8696 | (modify-phases %standard-phases | |
520e89eb | 8697 | (add-before 'replace-git-ls-files 'remove-extra-gemspecs |
dae620b8 BW |
8698 | (lambda _ |
8699 | ;; Delete extra gemspec files so 'first-gemspec' chooses the | |
8700 | ;; correct one. | |
8701 | (delete-file "concurrent-ruby-edge.gemspec") | |
8702 | (delete-file "concurrent-ruby-ext.gemspec") | |
8703 | #t)) | |
1007640a | 8704 | (replace 'replace-git-ls-files |
520e89eb | 8705 | (lambda _ |
1007640a MB |
8706 | ;; XXX: The default substitution made by this phase is not fully |
8707 | ;; compatible with "git ls-files". The latter produces file names | |
8708 | ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]" | |
8709 | ;; which gives "./lib/foo". That difference in turn breaks the | |
8710 | ;; comparison against a glob pattern in this script. | |
8711 | (substitute* "concurrent-ruby.gemspec" | |
8712 | (("git ls-files") "find * -type f | sort")) | |
8713 | #t)) | |
8714 | (add-before 'build 'remove-jar-from-gemspec | |
520e89eb | 8715 | (lambda _ |
1007640a MB |
8716 | ;; The gemspec wants to include a JAR file that we do not build |
8717 | ;; nor need. | |
8718 | (substitute* "concurrent-ruby.gemspec" | |
8719 | (("'lib/concurrent/concurrent_ruby.jar'") | |
8720 | "")) | |
8721 | #t)) | |
8722 | (add-before 'build 'remove-rake_compiler_dock-dependency | |
8723 | (lambda _ | |
8724 | ;; This library is only used when building for non-MRI targets. | |
8725 | (substitute* "Rakefile" | |
8726 | (("require 'rake_compiler_dock'") | |
8727 | "")) | |
520e89eb | 8728 | #t)) |
9019b37f BW |
8729 | (add-before 'check 'remove-timecop-dependency |
8730 | ;; Remove timecop-dependent tests as having timecop as a depedency | |
8731 | ;; causes circular depedencies. | |
8732 | (lambda _ | |
8733 | (delete-file "spec/concurrent/executor/timer_set_spec.rb") | |
8734 | (delete-file "spec/concurrent/scheduled_task_spec.rb") | |
8735 | #t))))) | |
dae620b8 BW |
8736 | (native-inputs |
8737 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
9019b37f | 8738 | ("ruby-rspec" ,ruby-rspec))) |
dae620b8 BW |
8739 | (synopsis "Concurrency tools for Ruby") |
8740 | (description | |
8741 | "This library provides modern concurrency tools including agents, | |
8742 | futures, promises, thread pools, actors, supervisors, and more. It is | |
8743 | inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency | |
8744 | patterns.") | |
8745 | (home-page "http://www.concurrent-ruby.com") | |
8746 | (license license:expat))) | |
2de61e34 BW |
8747 | |
8748 | (define-public ruby-pkg-config | |
8749 | (package | |
8750 | (name "ruby-pkg-config") | |
884a80dd | 8751 | (version "1.2.5") |
2de61e34 BW |
8752 | (source |
8753 | (origin | |
8754 | (method url-fetch) | |
8755 | (uri (rubygems-uri "pkg-config" version)) | |
8756 | (sha256 | |
8757 | (base32 | |
884a80dd | 8758 | "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar")))) |
2de61e34 BW |
8759 | (build-system ruby-build-system) |
8760 | (arguments | |
8761 | ;; Tests require extra files not included in the gem. | |
8762 | `(#:tests? #f)) | |
8763 | (synopsis "Detect libraries for compiling Ruby native extensions") | |
8764 | (description | |
8765 | "@code{pkg-config} can be used in your extconf.rb to properly detect need | |
8766 | libraries for compiling Ruby native extensions.") | |
8767 | (home-page "https://github.com/ruby-gnome2/pkg-config") | |
8768 | (license license:lgpl2.0+))) | |
6689c636 MFM |
8769 | |
8770 | (define-public ruby-net-http-digest-auth | |
8771 | (package | |
8772 | (name "ruby-net-http-digest-auth") | |
ba074a85 | 8773 | (version "1.4.1") |
6689c636 MFM |
8774 | (source |
8775 | (origin | |
8776 | (method url-fetch) | |
8777 | (uri (rubygems-uri "net-http-digest_auth" version)) | |
8778 | (sha256 | |
8779 | (base32 | |
ba074a85 | 8780 | "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb")))) |
6689c636 MFM |
8781 | (build-system ruby-build-system) |
8782 | (native-inputs | |
8783 | `(("ruby-hoe" ,ruby-hoe))) | |
8784 | (synopsis "RFC 2617 HTTP digest authentication library") | |
8785 | (description | |
8786 | "This library implements HTTP's digest authentication scheme based on | |
8787 | RFC 2617. This enables the use of the digest authentication scheme instead | |
8788 | of the more insecure basic authentication scheme.") | |
7bf837fd | 8789 | (home-page "https://github.com/drbrain/net-http-digest_auth") |
6689c636 | 8790 | (license license:expat))) |
06116573 | 8791 | |
8792 | (define-public ruby-mail | |
8793 | (package | |
8794 | (name "ruby-mail") | |
04de0cb5 | 8795 | (version "2.6.6") |
06116573 | 8796 | (source |
8797 | (origin | |
8798 | (method url-fetch) | |
8799 | (uri (rubygems-uri "mail" version)) | |
8800 | (sha256 | |
8801 | (base32 | |
04de0cb5 | 8802 | "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9")))) |
06116573 | 8803 | (build-system ruby-build-system) |
8804 | (propagated-inputs | |
8805 | `(("ruby-mime-types" ,ruby-mime-types))) | |
8806 | (arguments | |
8807 | ;; Tests require extra gems not included in the Gemfile. | |
8808 | ;; XXX: Try enabling this for the next version with mini_mime. | |
8809 | `(#:tests? #f)) | |
8810 | (synopsis "Mail library for Ruby") | |
8811 | (description | |
8812 | "Mail is an internet library for Ruby that is designed to handle email | |
8813 | generation, parsing and sending. The purpose of this library is to provide | |
8814 | a single point of access to handle all email functions, including sending | |
8815 | and receiving emails. All network type actions are done through proxy | |
8816 | methods to @code{Net::SMTP}, @code{Net::POP3} etc. | |
8817 | ||
8818 | Mail has been designed with a very simple object oriented system that | |
8819 | really opens up the email messages you are parsing, if you know what you | |
8820 | are doing, you can fiddle with every last bit of your email directly.") | |
8821 | (home-page "https://github.com/mikel/mail") | |
8822 | (license license:expat))) | |
9b4c8e1b | 8823 | |
4d372cb9 CB |
8824 | (define-public ruby-mathn |
8825 | (package | |
8826 | (name "ruby-mathn") | |
8827 | (version "0.1.0") | |
8828 | (source | |
8829 | (origin | |
8830 | (method url-fetch) | |
8831 | (uri (rubygems-uri "mathn" version)) | |
8832 | (sha256 | |
8833 | (base32 | |
8834 | "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p")))) | |
8835 | (build-system ruby-build-system) | |
8836 | (native-inputs | |
8837 | `(("bundler" ,bundler) | |
8838 | ("ruby-rake-compiler" ,ruby-rake-compiler))) | |
8839 | (synopsis "Extends math operations for increased precision") | |
8840 | (description | |
8841 | "This gem makes mathematical operations more precise in Ruby and | |
8842 | integrates other mathematical standard libraries. Prior to Ruby 2.5, | |
8843 | @code{mathn} was part of the Ruby standard library.") | |
8844 | (home-page "https://github.com/ruby/mathn") | |
8845 | (license license:bsd-2))) | |
8846 | ||
9b4c8e1b BW |
8847 | (define-public ruby-code-statistics |
8848 | (package | |
8849 | (name "ruby-code-statistics") | |
8850 | (version "0.2.13") | |
8851 | (source | |
8852 | (origin | |
8853 | (method url-fetch) | |
8854 | (uri (rubygems-uri "code_statistics" version)) | |
8855 | (sha256 | |
8856 | (base32 | |
8857 | "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93")))) | |
8858 | (build-system ruby-build-system) | |
8859 | (arguments | |
8860 | `(#:tests? #f)) ; Not all test code is included in gem. | |
8861 | (synopsis "Port of the rails 'rake stats' method") | |
8862 | (description | |
8863 | "This gem is a port of the rails 'rake stats' method so it can be made | |
8864 | more robust and work for non rails projects.") | |
702a1012 | 8865 | (home-page "https://github.com/danmayer/code_statistics") |
9b4c8e1b | 8866 | (license license:expat))) |
f90c25c1 CL |
8867 | |
8868 | (define-public ruby-rubypants | |
8869 | (package | |
8870 | (name "ruby-rubypants") | |
8871 | (version "0.6.0") | |
8872 | (source (origin | |
8873 | (method url-fetch) | |
8874 | (uri (rubygems-uri "rubypants" version)) | |
8875 | (sha256 | |
8876 | (base32 | |
8877 | "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh")))) | |
8878 | (build-system ruby-build-system) | |
8879 | (arguments | |
8880 | '(#:tests? #f)) ; need Codecov | |
8881 | (synopsis "Port of the smart-quotes library SmartyPants") | |
8882 | (description | |
8883 | "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The | |
8884 | original SmartyPants is a web publishing plug-in for Movable Type, Blosxom, | |
8885 | and BBEdit that easily translates plain ASCII punctuation characters into | |
8886 | smart typographic punctuation HTML entities.") | |
8887 | (home-page "https://github.com/jmcnevin/rubypants") | |
8888 | (license license:bsd-2))) | |
beb34835 CL |
8889 | |
8890 | (define-public ruby-org-ruby | |
8891 | (package | |
8892 | (name "ruby-org-ruby") | |
8893 | (version "0.9.12") | |
8894 | (source (origin | |
8895 | (method url-fetch) | |
8896 | (uri (rubygems-uri "org-ruby" version)) | |
8897 | (sha256 | |
8898 | (base32 | |
8899 | "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk")))) | |
8900 | (build-system ruby-build-system) | |
8901 | (arguments | |
8902 | '(#:tests? #f)) ; no rakefile | |
8903 | (propagated-inputs | |
8904 | `(("ruby-rubypants" ,ruby-rubypants))) | |
8905 | (synopsis "Org-mode parser written in Ruby") | |
8906 | (description | |
8907 | "Org-ruby is an org-mode parser written in Ruby. The most significant | |
8908 | thing this library does today is convert org-mode files to HTML or Textile or | |
8909 | Markdown.") | |
8910 | (home-page "https://github.com/wallyqs/org-ruby") | |
8911 | (license license:expat))) | |
670ee20a BW |
8912 | |
8913 | (define-public ruby-rake | |
8914 | (package | |
8915 | (name "ruby-rake") | |
c997403a | 8916 | (version "13.0.1") |
670ee20a BW |
8917 | (source |
8918 | (origin | |
8919 | (method url-fetch) | |
8920 | (uri (rubygems-uri "rake" version)) | |
8921 | (sha256 | |
8922 | (base32 | |
c997403a | 8923 | "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9")))) |
670ee20a BW |
8924 | (build-system ruby-build-system) |
8925 | (native-inputs | |
8926 | `(("bundler" ,bundler))) | |
8927 | (synopsis "Rake is a Make-like program implemented in Ruby") | |
8928 | (description | |
8929 | "Rake is a Make-like program where tasks and dependencies are specified | |
8930 | in standard Ruby syntax.") | |
8931 | (home-page "https://github.com/ruby/rake") | |
8932 | (license license:expat))) | |
45498f51 | 8933 | |
51420124 | 8934 | (define-public ruby-childprocess |
45498f51 DM |
8935 | (package |
8936 | (name "ruby-childprocess") | |
459e4a1a | 8937 | (version "3.0.0") |
45498f51 DM |
8938 | (source |
8939 | (origin | |
8940 | (method url-fetch) | |
8941 | (uri (rubygems-uri "childprocess" version)) | |
8942 | (sha256 | |
8943 | (base32 | |
459e4a1a | 8944 | "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5")))) |
45498f51 DM |
8945 | (build-system ruby-build-system) |
8946 | (arguments | |
8947 | `(#:tests? #f)) | |
8948 | (native-inputs | |
8949 | `(("bundler" ,bundler) | |
8950 | ("ruby-rspec" ,ruby-rspec))) | |
8951 | (propagated-inputs | |
8952 | `(("ruby-ffi" ,ruby-ffi))) | |
8953 | (synopsis "Control external programs running in the background, in Ruby") | |
8954 | (description "@code{childprocess} provides a gem to control external | |
8955 | programs running in the background, in Ruby.") | |
459e4a1a | 8956 | (home-page "https://github.com/enkessler/childprocess") |
45498f51 | 8957 | (license license:expat))) |
1f10e28d | 8958 | |
0d16905b JL |
8959 | (define-public ruby-public-suffix |
8960 | (package | |
8961 | (name "ruby-public-suffix") | |
9de12df7 | 8962 | (version "4.0.1") |
0d16905b JL |
8963 | (source (origin |
8964 | (method url-fetch) | |
8965 | (uri (rubygems-uri "public_suffix" version)) | |
8966 | (sha256 | |
8967 | (base32 | |
9de12df7 | 8968 | "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0")))) |
0d16905b JL |
8969 | (build-system ruby-build-system) |
8970 | (arguments | |
1f4fc125 CB |
8971 | '(#:phases |
8972 | (modify-phases %standard-phases | |
8973 | ;; Remove the requirement on Rubocop, as it isn't useful to run, and | |
8974 | ;; including it as an input can lead to circular dependencies. | |
8975 | (add-after 'unpack 'remove-rubocop-from-Rakefile | |
8976 | (lambda _ | |
8977 | (substitute* "Rakefile" | |
8978 | (("require \"rubocop/rake\\_task\"") "") | |
8979 | (("RuboCop::RakeTask\\.new") "")) | |
8980 | #t))))) | |
8981 | (native-inputs | |
8982 | `(("bundler" ,bundler) | |
8983 | ("ruby-yard" ,ruby-yard) | |
8984 | ("ruby-mocha" ,ruby-mocha) | |
8985 | ("ruby-minitest-reporters" ,ruby-minitest-reporters))) | |
0d16905b JL |
8986 | (home-page "https://simonecarletti.com/code/publicsuffix-ruby/") |
8987 | (synopsis "Domain name parser") | |
8988 | (description "The gem @code{public_suffix} is a domain name parser, | |
8989 | written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix | |
8990 | is one under which Internet users can (or historically could) directly | |
8991 | register names. Some examples of public suffixes are @code{.com}, | |
8992 | @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of | |
8993 | all known public suffixes.") | |
8994 | (license license:expat))) | |
6f2c4efb JL |
8995 | |
8996 | (define-public ruby-addressable | |
8997 | (package | |
8998 | (name "ruby-addressable") | |
91f7ee87 | 8999 | (version "2.7.0") |
6f2c4efb JL |
9000 | (source (origin |
9001 | (method url-fetch) | |
9002 | (uri (rubygems-uri "addressable" version)) | |
9003 | (sha256 | |
9004 | (base32 | |
91f7ee87 | 9005 | "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy")))) |
6f2c4efb | 9006 | (build-system ruby-build-system) |
0a794b30 CB |
9007 | (arguments |
9008 | '(#:test-target "spec" | |
9009 | #:phases | |
9010 | (modify-phases %standard-phases | |
9011 | (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile | |
9012 | (lambda _ | |
9013 | (substitute* "Gemfile" | |
9014 | (("git: 'https://github.com/sporkmonger/rack-mount.git',") "") | |
9015 | ((".*launchy.*") "") | |
9016 | ((".*rake.*") "gem 'rake'\n") | |
9017 | ((".*redcarpet.*") "")) | |
9018 | #t)) | |
9019 | (add-before 'check 'delete-network-dependent-test | |
9020 | (lambda _ | |
9021 | (delete-file "spec/addressable/net_http_compat_spec.rb") | |
9022 | #t))))) | |
9023 | (native-inputs | |
9024 | `(("ruby-rspec" ,ruby-rspec) | |
9025 | ("bundler" ,bundler) | |
9026 | ("ruby-idn-ruby" ,ruby-idn-ruby) | |
9027 | ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount) | |
d7bd7016 | 9028 | ("ruby-rspec-its", ruby-rspec-its-minimal) |
0a794b30 CB |
9029 | ("ruby-yard" ,ruby-yard) |
9030 | ("ruby-simplecov" ,ruby-simplecov))) | |
6f2c4efb JL |
9031 | (propagated-inputs |
9032 | `(("ruby-public-suffix" ,ruby-public-suffix))) | |
6f2c4efb JL |
9033 | (home-page "https://github.com/sporkmonger/addressable") |
9034 | (synopsis "Alternative URI implementation") | |
9035 | (description "Addressable is a replacement for the URI implementation that | |
9036 | is part of Ruby's standard library. It more closely conforms to RFC 3986, | |
9037 | RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.") | |
9038 | (license license:asl2.0))) | |
9c7f15c0 | 9039 | |
305e9b33 MB |
9040 | (define-public ruby-colorize |
9041 | (package | |
9042 | (name "ruby-colorize") | |
9043 | (version "0.8.1") | |
9044 | (source (origin | |
9045 | (method url-fetch) | |
9046 | (uri (rubygems-uri "colorize" version)) | |
9047 | (sha256 | |
9048 | (base32 | |
9049 | "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b")))) | |
9050 | (build-system ruby-build-system) | |
9051 | (arguments | |
9052 | '(#:phases (modify-phases %standard-phases | |
9053 | (add-before 'check 'remove-codeclimate-dependency | |
9054 | (lambda _ | |
9055 | (substitute* "test/test_colorize.rb" | |
9056 | ;; Do not hook the tests into the online CodeClimate | |
9057 | ;; service which is unnecessary for these tests. | |
9058 | (("require 'codeclimate-test-reporter'") | |
9059 | "") | |
9060 | (("CodeClimate.*") "")) | |
9061 | #t))))) | |
9062 | (synopsis "Add color effects to the @code{String} class") | |
9063 | (description | |
9064 | "This package extends the @code{String} class and adds a | |
9065 | @code{ColorizedString} with methods to set text color, background color, | |
9066 | and text effects.") | |
702a1012 | 9067 | (home-page "https://github.com/fazibear/colorize") |
305e9b33 MB |
9068 | (license license:gpl2+))) |
9069 | ||
9c7f15c0 JL |
9070 | (define-public ruby-colorator |
9071 | (package | |
9072 | (name "ruby-colorator") | |
9073 | (version "1.1.0") | |
9074 | (source (origin | |
9075 | (method url-fetch) | |
9076 | (uri (rubygems-uri "colorator" version)) | |
9077 | (sha256 | |
9078 | (base32 | |
9079 | "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72")))) | |
9080 | (build-system ruby-build-system) | |
9081 | (arguments | |
9082 | ;; No test target | |
9083 | `(#:tests? #f)) | |
9084 | (home-page "http://octopress.org/colorator/") | |
9085 | (synopsis "Terminal color library") | |
9086 | (description "Colorator is a Ruby gem that helps you colorize your text | |
9087 | for the terminal.") | |
9088 | (license license:expat))) | |
78b9c291 JL |
9089 | |
9090 | (define-public ruby-command-line-reporter | |
9091 | (package | |
9092 | (name "ruby-command-line-reporter") | |
b448e408 | 9093 | (version "4.0.1") |
78b9c291 JL |
9094 | (source (origin |
9095 | (method url-fetch) | |
9096 | (uri (rubygems-uri "command_line_reporter" version)) | |
9097 | (sha256 | |
9098 | (base32 | |
b448e408 | 9099 | "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll")))) |
78b9c291 JL |
9100 | (build-system ruby-build-system) |
9101 | (arguments | |
9102 | ;; No Rakefile | |
9103 | `(#:tests? #f | |
9104 | #:phases | |
9105 | (modify-phases %standard-phases | |
9106 | (add-before 'build 'fix-dependencies | |
9107 | (lambda _ | |
9108 | (substitute* ".gemspec" | |
9109 | ;; colored is unmaintained | |
9110 | (("colored") "colorator") | |
9111 | ;; colorator version | |
9112 | (("= 1.2") "= 1.1")) | |
9113 | #t))))) | |
9114 | (propagated-inputs `(("ruby-colorator" ,ruby-colorator))) | |
9115 | (home-page "https://github.com/wbailey/command_line_reporter") | |
9116 | (synopsis "Report production while executing Ruby scripts") | |
9117 | (description "This gem provides a DSL that makes it easy to write reports | |
9118 | of various types in ruby. It eliminates the need to litter your source with | |
9119 | puts statements, instead providing a more readable, expressive interface to | |
9120 | your application.") | |
9121 | (license license:asl2.0))) | |
f22c0387 JL |
9122 | |
9123 | (define-public ruby-command-line-reporter-3 | |
9124 | (package | |
9125 | (inherit ruby-command-line-reporter) | |
9126 | (version "3.3.6") | |
9127 | (source (origin | |
9128 | (method url-fetch) | |
9129 | (uri (rubygems-uri "command_line_reporter" version)) | |
9130 | (sha256 | |
9131 | (base32 | |
9132 | "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71")))))) | |
6bba8ecf | 9133 | |
439d47cd MC |
9134 | (define-public ruby-kpeg |
9135 | (package | |
9136 | (name "ruby-kpeg") | |
9137 | (version "1.1.0") | |
9138 | (source | |
9139 | (origin | |
9140 | (method url-fetch) | |
9141 | (uri (rubygems-uri "kpeg" version)) | |
9142 | (sha256 | |
9143 | (base32 | |
9144 | "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia")))) | |
9145 | (build-system ruby-build-system) | |
9146 | (native-inputs | |
9147 | `(("ruby-hoe" ,ruby-hoe))) | |
9148 | (synopsis "PEG library for Ruby") | |
9149 | (description "KPeg is a simple PEG library for Ruby. It provides an API as | |
9150 | well as native grammar to build the grammar. KPeg supports direct left | |
9151 | recursion of rules via the | |
9152 | @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization} | |
9153 | technique.") | |
9154 | (home-page "https://github.com/evanphx/kpeg") | |
9155 | (license license:expat))) | |
9156 | ||
6bba8ecf JL |
9157 | (define-public ruby-rdoc |
9158 | (package | |
9159 | (name "ruby-rdoc") | |
9304f989 | 9160 | (version "6.2.0") |
6bba8ecf | 9161 | (source |
9304f989 MC |
9162 | (origin |
9163 | (method git-fetch) | |
9164 | (uri (git-reference | |
b0e7b699 | 9165 | (url "https://github.com/ruby/rdoc") |
9304f989 MC |
9166 | (commit (string-append "v" version)))) |
9167 | (file-name (git-file-name name version)) | |
9168 | (sha256 | |
9169 | (base32 | |
9170 | "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6")))) | |
6bba8ecf | 9171 | (build-system ruby-build-system) |
9304f989 MC |
9172 | (arguments |
9173 | `(#:phases | |
9174 | (modify-phases %standard-phases | |
9175 | (add-after 'unpack 'patch-gemspec | |
9176 | ;; TODO: Remove after next release is tagged. | |
9177 | (lambda _ | |
9178 | (substitute* "rdoc.gemspec" | |
9179 | (("\"lib/rdoc/generator/template/darkfish/js/\ | |
9180 | jquery\\.js\", ") "")) | |
9181 | #t)) | |
9182 | (add-before 'build 'generate | |
9183 | ;; 'gem build' doesn't honor Rakefile dependencies (see: | |
9184 | ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977). | |
9185 | (lambda _ | |
9186 | (invoke "rake" "generate")))))) | |
6bba8ecf | 9187 | (native-inputs |
9304f989 MC |
9188 | `(("bundler" ,bundler) |
9189 | ("ruby-kpeg" ,ruby-kpeg) | |
9190 | ("ruby-racc" ,ruby-racc) | |
9191 | ("ruby-rubocop" ,ruby-rubocop))) | |
6bba8ecf JL |
9192 | (home-page "https://ruby.github.io/rdoc/") |
9193 | (synopsis "HTML and command-line documentation utility") | |
9194 | (description "RDoc produces HTML and command-line documentation for Ruby | |
9195 | projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying | |
9196 | documentation from the command-line.") | |
9197 | (license license:gpl2+))) | |
18077ffc JL |
9198 | |
9199 | (define-public ruby-sass-listen | |
9200 | (package | |
9201 | (name "ruby-sass-listen") | |
9202 | (version "4.0.0") | |
9203 | (source (origin | |
9204 | (method url-fetch) | |
9205 | (uri (rubygems-uri "sass-listen" version)) | |
9206 | (sha256 | |
9207 | (base32 | |
9208 | "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df")))) | |
9209 | (build-system ruby-build-system) | |
9210 | (arguments | |
9211 | ;; No test target | |
9212 | `(#:tests? #f)) | |
9213 | (propagated-inputs | |
9214 | `(("ruby-rb-fsevent" ,ruby-rb-fsevent) | |
9215 | ("ruby-rb-inotify" ,ruby-rb-inotify))) | |
9216 | (home-page "https://github.com/sass/listen") | |
9217 | (synopsis "File modification notification library") | |
9218 | (description "The Listen gem listens to file modifications and notifies you | |
9219 | about the changes.") | |
9220 | (license license:expat))) | |
0c8eedc1 JL |
9221 | |
9222 | (define-public ruby-terminfo | |
9223 | (package | |
9224 | (name "ruby-terminfo") | |
9225 | (version "0.1.1") | |
9226 | (source | |
9227 | (origin | |
9228 | (method url-fetch) | |
9229 | (uri (rubygems-uri "ruby-terminfo" version)) | |
9230 | (sha256 | |
9231 | (base32 | |
9232 | "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm")))) | |
9233 | (build-system ruby-build-system) | |
9234 | (arguments | |
9235 | `(#:test-target "test" | |
9236 | ;; Rakefile requires old packages and would need modification to | |
9237 | ;; work with current software. | |
9238 | #:tests? #f)) | |
9239 | (inputs | |
9240 | `(("ncurses" ,ncurses))) | |
9241 | (native-inputs | |
9242 | `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks) | |
9243 | ("ruby-rdoc" ,ruby-rdoc))) | |
9244 | (home-page "http://www.a-k-r.org/ruby-terminfo/") | |
9245 | (synopsis "Terminfo binding for Ruby") | |
9246 | (description "Ruby-terminfo provides terminfo binding for Ruby.") | |
9247 | (license license:bsd-3))) | |
ddc3a667 JL |
9248 | |
9249 | (define-public ruby-diffy | |
9250 | (package | |
9251 | (name "ruby-diffy") | |
9252 | (version "3.2.1") | |
9253 | (source | |
9254 | (origin | |
9255 | (method url-fetch) | |
9256 | (uri (rubygems-uri "diffy" version)) | |
9257 | (sha256 | |
9258 | (base32 | |
9259 | "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg")))) | |
9260 | (build-system ruby-build-system) | |
9261 | (arguments | |
9262 | ;; No tests | |
9263 | `(#:tests? #f)) | |
9264 | (native-inputs | |
9265 | `(("ruby-rspec" ,ruby-rspec))) | |
9266 | (home-page "https://github.com/samg/diffy") | |
9267 | (synopsis "Convenient diffing in ruby") | |
9268 | (description "Diffy provides a convenient way to generate a diff from two | |
9269 | strings or files.") | |
9270 | (license license:expat))) | |
6456beef JL |
9271 | |
9272 | (define-public ruby-sass-spec | |
9273 | (package | |
9274 | (name "ruby-sass-spec") | |
9275 | (version "3.5.4") | |
11df8321 TGR |
9276 | (source |
9277 | (origin | |
9278 | (method git-fetch) | |
9279 | (uri (git-reference | |
b0e7b699 | 9280 | (url "https://github.com/sass/sass-spec") |
11df8321 TGR |
9281 | (commit (string-append "v" version)))) |
9282 | (file-name (git-file-name name version)) | |
9283 | (sha256 | |
9284 | (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr")))) | |
6456beef JL |
9285 | (build-system ruby-build-system) |
9286 | (propagated-inputs | |
9287 | `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3) | |
9288 | ("ruby-diffy" ,ruby-diffy) | |
9289 | ("ruby-terminfo" ,ruby-terminfo))) | |
9290 | (arguments | |
2c7cb711 CB |
9291 | `(;; This package contains tests for a sass implementation, and the to |
9292 | ;; avoid any circular dependencies, the tests are not run here | |
9293 | #:tests? #f | |
9294 | #:phases | |
9295 | (modify-phases %standard-phases | |
9296 | (add-after 'unpack 'patch-test | |
9297 | (lambda _ | |
9298 | (delete-file "spec/values/colors/alpha_hex-3.5/error") | |
9299 | (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css" | |
9300 | (("string") "color"))))))) | |
6456beef JL |
9301 | (home-page "https://github.com/sass/sass-spec") |
9302 | (synopsis "Test suite for Sass") | |
9303 | (description "Sass Spec is a test suite for Sass. Test cases are all in | |
9304 | the @file{spec} directory.") | |
9305 | (license license:expat))) | |
f00f4492 JL |
9306 | |
9307 | (define-public ruby-sass | |
9308 | (package | |
9309 | (name "ruby-sass") | |
11ff2adc | 9310 | (version "3.6.0") |
f00f4492 JL |
9311 | (source (origin |
9312 | (method url-fetch) | |
9313 | (uri (rubygems-uri "sass" version)) | |
9314 | (sha256 | |
9315 | (base32 | |
11ff2adc | 9316 | "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh")))) |
f00f4492 JL |
9317 | (build-system ruby-build-system) |
9318 | (propagated-inputs | |
9319 | `(("ruby-sass-listen" ,ruby-sass-listen))) | |
9320 | (native-inputs | |
11ff2adc CB |
9321 | `(("ruby-sass-spec" ,ruby-sass-spec) |
9322 | ("ruby-mathn" ,ruby-mathn))) | |
3497086b | 9323 | (home-page "https://sass-lang.com/") |
f00f4492 JL |
9324 | (synopsis "CSS extension language") |
9325 | (description "Sass is a CSS extension language. It extends CSS with | |
9326 | features that don't exist yet like variables, nesting, mixins and inheritance.") | |
9327 | (license license:expat))) | |
5e242cb4 | 9328 | |
9efc888d CB |
9329 | (define-public ruby-sassc |
9330 | (package | |
9331 | (name "ruby-sassc") | |
3e776b44 | 9332 | (version "2.2.1") |
9efc888d CB |
9333 | (source |
9334 | (origin | |
9335 | (method url-fetch) | |
9336 | (uri (rubygems-uri "sassc" version)) | |
9337 | (sha256 | |
9338 | (base32 | |
3e776b44 | 9339 | "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz")))) |
9efc888d CB |
9340 | (build-system ruby-build-system) |
9341 | (arguments | |
3e776b44 CB |
9342 | '(#:modules ((guix build ruby-build-system) |
9343 | (guix build utils) | |
9344 | (ice-9 textual-ports)) | |
9345 | #:phases | |
9efc888d CB |
9346 | (modify-phases %standard-phases |
9347 | ;; TODO: This would be better as a snippet, but the ruby-build-system | |
9348 | ;; doesn't seem to support that | |
9349 | (add-after 'unpack 'remove-libsass | |
9350 | (lambda _ | |
9351 | (delete-file-recursively "ext") | |
3e776b44 CB |
9352 | (with-atomic-file-replacement "sassc.gemspec" |
9353 | (lambda (in out) | |
9354 | (let* ((gemspec (get-string-all in)) | |
9355 | (index (string-contains gemspec "libsass_dir"))) | |
9356 | (display (string-append | |
9357 | (string-take gemspec index) | |
9358 | "\nend\n") | |
9359 | out)))) | |
9efc888d CB |
9360 | #t)) |
9361 | (add-after 'unpack 'dont-check-the-libsass-version | |
9362 | (lambda _ | |
9363 | (substitute* "test/native_test.rb" | |
9364 | (("assert_equal.*Native\\.version") "")) | |
9365 | #t)) | |
9366 | (add-after 'unpack 'remove-git-from-gemspec | |
9367 | (lambda _ | |
9368 | (substitute* "sassc.gemspec" | |
3e776b44 | 9369 | (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")) |
9efc888d CB |
9370 | #t)) |
9371 | (add-after 'unpack 'remove-extensions-from-gemspec | |
9372 | (lambda _ | |
9373 | (substitute* "sassc.gemspec" | |
3e776b44 | 9374 | (("\\[\"ext/extconf.rb\"\\]") "[]")) |
9efc888d CB |
9375 | #t)) |
9376 | (add-after 'unpack 'fix-Rakefile | |
9377 | (lambda _ | |
9378 | (substitute* "Rakefile" | |
3e776b44 | 9379 | (("test: 'compile:libsass'") ":test")) |
9efc888d CB |
9380 | #t)) |
9381 | (add-after 'unpack 'remove-unnecessary-dependencies | |
9382 | (lambda _ | |
9383 | (substitute* "test/test_helper.rb" | |
9384 | (("require \"pry\"") "")) | |
9385 | #t)) | |
9386 | (add-before 'build 'patch-native.rb | |
9387 | (lambda* (#:key inputs #:allow-other-keys) | |
9388 | (substitute* "lib/sassc/native.rb" | |
9389 | ((".*gem_root = spec.gem_dir") "") | |
9390 | (("ffi_lib .*\n") | |
9391 | (string-append | |
9392 | "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'"))) | |
9393 | #t)) | |
9394 | ;; The gemspec still references the libsass files, so just keep the | |
9395 | ;; one in the gem. | |
9396 | (delete 'extract-gemspec)))) | |
9397 | (propagated-inputs | |
9398 | `(("ruby-ffi" ,ruby-ffi) | |
9399 | ("ruby-rake" ,ruby-rake))) | |
9400 | (inputs | |
9401 | `(("libsass" ,libsass))) | |
9402 | (native-inputs | |
9403 | `(("bundler" ,bundler) | |
3e776b44 | 9404 | ("ruby-rake-compiler" ,ruby-rake-compiler) |
9efc888d CB |
9405 | ("ruby-minitest-around" ,ruby-minitest-around) |
9406 | ("ruby-test-construct" ,ruby-test-construct))) | |
9407 | (synopsis "Use libsss from Ruby") | |
9408 | (description | |
9409 | "This library provides Ruby q@acronym{FFI, Foreign Function Interface} | |
9410 | bindings to the libsass library. This enables rendering | |
9411 | @acronym{SASS,Syntactically awesome style sheets} from Ruby code.") | |
9412 | (home-page "https://github.com/sass/sassc-ruby") | |
9413 | (license license:expat))) | |
9414 | ||
5e242cb4 JL |
9415 | (define-public ruby-jekyll-sass-converter |
9416 | (package | |
9417 | (name "ruby-jekyll-sass-converter") | |
9418 | (version "1.5.2") | |
9419 | (source (origin | |
9420 | (method url-fetch) | |
9421 | (uri (rubygems-uri "jekyll-sass-converter" version)) | |
9422 | (sha256 | |
9423 | (base32 | |
9424 | "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk")))) | |
9425 | (build-system ruby-build-system) | |
9426 | (propagated-inputs | |
9427 | `(("ruby-sass" ,ruby-sass))) | |
9428 | (arguments | |
9429 | ;; No rakefile | |
9430 | `(#:tests? #f)) | |
9431 | (home-page "https://github.com/jekyll/jekyll-sass-converter") | |
9432 | (synopsis "Sass converter for Jekyll") | |
9433 | (description "This gem provide built-in support for the Sass converter | |
9434 | in Jekyll.") | |
9435 | (license license:expat))) | |
ceac6f6f JL |
9436 | |
9437 | (define-public ruby-jekyll-watch | |
9438 | (package | |
9439 | (name "ruby-jekyll-watch") | |
6cbba8a3 | 9440 | (version "2.1.2") |
ceac6f6f JL |
9441 | (source (origin |
9442 | (method url-fetch) | |
9443 | (uri (rubygems-uri "jekyll-watch" version)) | |
9444 | (sha256 | |
9445 | (base32 | |
6cbba8a3 | 9446 | "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv")))) |
ceac6f6f JL |
9447 | (build-system ruby-build-system) |
9448 | (propagated-inputs | |
6cbba8a3 | 9449 | `(("ruby-listen" ,ruby-listen))) |
ceac6f6f JL |
9450 | (arguments |
9451 | ;; No rakefile | |
9452 | `(#:tests? #f)) | |
9453 | (home-page "https://github.com/jekyll/jekyll-watch") | |
9454 | (synopsis "Jekyll auto-rebuild support") | |
9455 | (description "This gems add the @code{--watch} switch to the jekyll CLI | |
9456 | interface. It allows Jekyll to rebuild your site when a file changes.") | |
9457 | (license license:expat))) | |
3224a5a8 JL |
9458 | |
9459 | (define-public ruby-parallel | |
9460 | (package | |
9461 | (name "ruby-parallel") | |
c41fba01 CB |
9462 | (version "1.13.0") |
9463 | (source | |
9464 | (origin | |
9465 | (method git-fetch) | |
9466 | (uri (git-reference | |
b0e7b699 | 9467 | (url "https://github.com/grosser/parallel") |
c41fba01 CB |
9468 | (commit (string-append "v" version)))) |
9469 | (file-name (git-file-name name version)) | |
9470 | (sha256 | |
9471 | (base32 | |
9472 | "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv")))) | |
3224a5a8 | 9473 | (build-system ruby-build-system) |
c41fba01 CB |
9474 | (arguments |
9475 | `(;; TODO 3 test failures | |
9476 | ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not | |
9477 | ;; open unnecessary pipes | |
9478 | ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with | |
9479 | ;; SQLite in processes | |
9480 | ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with | |
9481 | ;; SQLite in threads | |
9482 | #:tests? #f | |
9483 | #:test-target "rspec-rerun:spec" | |
9484 | #:phases | |
9485 | (modify-phases %standard-phases | |
9486 | (add-after 'unpack 'patch-Gemfile | |
9487 | (lambda _ | |
9488 | (substitute* "Gemfile" | |
9489 | (("gem 'rspec-legacy_formatters'") "") | |
9490 | (("gem 'activerecord.*$") "gem 'activerecord'\n")))) | |
9491 | (add-before 'check 'delete-Gemfile.lock | |
9492 | (lambda _ | |
9493 | ;; Bundler isn't being used for fetching dependendencies, so | |
9494 | ;; delete the Gemfile.lock | |
9495 | (delete-file "Gemfile.lock") | |
9496 | #t)) | |
9497 | (add-before 'build 'patch-gemspec | |
9498 | (lambda _ | |
9499 | (substitute* "parallel.gemspec" | |
9500 | (("git ls-files") "find")) | |
9501 | #t))))) | |
9502 | (native-inputs | |
9503 | `(("ruby-rspec" ,ruby-rspec) | |
9504 | ("ruby-rspec-rerun" ,ruby-rspec-rerun) | |
9505 | ("bundler" ,bundler) | |
9506 | ("ruby-activerecord" ,ruby-activerecord) | |
9507 | ("ruby-progressbar" ,ruby-progressbar) | |
9508 | ("ruby-bump" ,ruby-bump) | |
9509 | ("procps" ,procps) | |
9510 | ("lsof" ,lsof) | |
9511 | ("ruby-mysql2" ,ruby-mysql2) | |
9512 | ("ruby-sqlite3" ,ruby-sqlite3) | |
9513 | ("ruby-i18n" ,ruby-i18n))) | |
3224a5a8 JL |
9514 | (home-page "https://github.com/grosser/parallel") |
9515 | (synopsis "Parallel processing in Ruby") | |
9516 | (description "Parallel allows you to run any code in parallel Processes | |
9517 | (to use all CPUs) or Threads(to speedup blocking operations). It is best | |
9518 | suited for map-reduce or e.g. parallel downloads/uploads.") | |
9519 | (license license:expat))) | |
83d9f672 JL |
9520 | |
9521 | (define-public ruby-cane | |
9522 | (package | |
9523 | (name "ruby-cane") | |
9524 | (version "3.0.0") | |
9525 | (source (origin | |
9526 | (method url-fetch) | |
9527 | (uri (rubygems-uri "cane" version)) | |
9528 | (sha256 | |
9529 | (base32 | |
9530 | "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih")))) | |
9531 | (build-system ruby-build-system) | |
9532 | (arguments `(#:tests? #f)); No rakefile | |
9533 | (home-page "https://github.com/square/cane") | |
9534 | (propagated-inputs | |
9535 | `(("ruby-parallel" ,ruby-parallel))) | |
9536 | (synopsis "Code quality threshold checking") | |
9537 | (description "Cane fails your build if code quality thresholds are not met.") | |
9538 | (license license:asl2.0))) | |
00d71efc JL |
9539 | |
9540 | (define-public ruby-morecane | |
9541 | (package | |
9542 | (name "ruby-morecane") | |
9543 | (version "0.2.0") | |
9544 | (source (origin | |
9545 | (method url-fetch) | |
9546 | (uri (rubygems-uri "morecane" version)) | |
9547 | (sha256 | |
9548 | (base32 | |
9549 | "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771")))) | |
9550 | (build-system ruby-build-system) | |
9551 | (home-page "https://github.com/yob/morecane") | |
9552 | (arguments `(#:tests? #f)); No rakefile | |
9553 | (propagated-inputs | |
9554 | `(("ruby-parallel" ,ruby-parallel))) | |
9555 | (synopsis "Extra checks for cane") | |
9556 | (description "The cane gem provides a great framework for running quality | |
9557 | checks over your ruby project as part of continuous integration build. It | |
9558 | comes with a few checks out of the box, but also provides an API for loading | |
9559 | custom checks. This gem provides a set of additional checks.") | |
9560 | (license license:expat))) | |
abbe629c JL |
9561 | |
9562 | (define-public ruby-pdf-reader | |
9563 | (package | |
9564 | (name "ruby-pdf-reader") | |
9565 | (version "2.1.0") | |
9566 | (source (origin | |
9567 | (method url-fetch) | |
9568 | (uri (rubygems-uri "pdf-reader" version)) | |
9569 | (sha256 | |
9570 | (base32 | |
9571 | "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45")))) | |
9572 | (build-system ruby-build-system) | |
9573 | (arguments `(#:test-target "spec")) | |
9574 | (native-inputs | |
9575 | `(("bundler" ,bundler) | |
9576 | ("ruby-rspec" ,ruby-rspec) | |
9577 | ("ruby-cane" ,ruby-cane) | |
9578 | ("ruby-morecane" ,ruby-morecane))) | |
9579 | (propagated-inputs | |
9580 | `(("ruby-afm" ,ruby-afm) | |
9581 | ("ruby-ascii85" ,ruby-ascii85) | |
9582 | ("ruby-hashery" ,ruby-hashery) | |
9583 | ("ruby-rc4" ,ruby-rc4) | |
9584 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
9585 | (home-page "https://github.com/yob/pdf-reader") | |
9586 | (synopsis "PDF parser in Ruby") | |
9587 | (description "The PDF::Reader library implements a PDF parser conforming as | |
9588 | much as possible to the PDF specification from Adobe. It provides programmatic | |
9589 | access to the contents of a PDF file with a high degree of flexibility.") | |
9590 | (license license:gpl3+))) | |
461fb859 JL |
9591 | |
9592 | (define-public ruby-pdf-inspector | |
ed2f26f8 MC |
9593 | (let ((revision "1") |
9594 | (commit "00ee4c92ff917118785ebec188e81effc968abeb")) | |
9595 | (package | |
9596 | (name "ruby-pdf-inspector") | |
9597 | (version (git-version "1.3.0" revision commit)) | |
9598 | (source (origin | |
9599 | (method git-fetch) | |
9600 | (uri (git-reference | |
9601 | (url "https://github.com/prawnpdf/pdf-inspector.git") | |
9602 | (commit commit))) | |
9603 | (file-name (git-file-name name version)) | |
9604 | (sha256 | |
9605 | (base32 | |
9606 | "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m")))) | |
9607 | (build-system ruby-build-system) | |
9608 | (arguments | |
9609 | `(#:test-target "spec" | |
9610 | #:phases (modify-phases %standard-phases | |
9611 | (add-before 'build 'drop-signing-key-requirement | |
9612 | (lambda _ | |
9613 | (substitute* "pdf-inspector.gemspec" | |
9614 | (("spec.signing_key =.*") | |
9615 | "spec.signing_key = nil")) | |
9616 | #t)) | |
9617 | (replace 'check | |
9618 | (lambda _ | |
9619 | (substitute* "pdf-inspector.gemspec" | |
9620 | ((".*rubocop.*") "") | |
9621 | ((".*yard.*") "")) | |
9622 | (invoke "rspec")))))) | |
9623 | (native-inputs | |
9624 | `(("ruby-rspec" ,ruby-rspec))) | |
9625 | (propagated-inputs | |
9626 | `(("ruby-pdf-reader" ,ruby-pdf-reader))) | |
9627 | (home-page "https://github.com/prawnpdf/pdf-inspector") | |
9628 | (synopsis "Analysis classes for inspecting PDF output") | |
9629 | (description "This library provides a number of PDF::Reader based tools for | |
461fb859 JL |
9630 | use in testing PDF output. Presently, the primary purpose of this tool is to |
9631 | support the tests found in Prawn, a pure Ruby PDF generation library.") | |
ed2f26f8 | 9632 | (license %prawn-project-licenses)))) |
770e3b53 JL |
9633 | |
9634 | (define-public ruby-pdf-core | |
9635 | (package | |
9636 | (name "ruby-pdf-core") | |
9637 | (version "0.8.1") | |
9638 | (source (origin | |
9639 | (method url-fetch) | |
9640 | (uri (rubygems-uri "pdf-core" version)) | |
9641 | (sha256 | |
9642 | (base32 | |
9643 | "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg")))) | |
9644 | (build-system ruby-build-system) | |
9645 | (arguments | |
9646 | ; No test target | |
9647 | `(#:tests? #f)) | |
9648 | (home-page "https://github.com/prawnpdf/pdf-core") | |
9649 | (synopsis "Low level PDF features for Prawn") | |
9650 | (description "This is an experimental gem that extracts low-level PDF | |
9651 | functionality from Prawn.") | |
9652 | (license license:gpl3+))) | |
37fbced7 | 9653 | |
7ad8dd08 JL |
9654 | (define-public ruby-prawn |
9655 | (package | |
9656 | (name "ruby-prawn") | |
9657 | (version "2.2.2") | |
9658 | (source (origin | |
9659 | (method url-fetch) | |
9660 | (uri (rubygems-uri "prawn" version)) | |
9661 | (sha256 | |
9662 | (base32 | |
9663 | "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m")))) | |
9664 | (build-system ruby-build-system) | |
9665 | (arguments | |
9666 | ; No tests | |
9667 | `(#:tests? #f | |
9668 | #:phases | |
9669 | (modify-phases %standard-phases | |
9670 | (add-before 'build 'fix-dependencies | |
9671 | (lambda _ | |
9672 | (substitute* "prawn.gemspec" | |
9673 | (("~> 0.7.0") "~> 0.7")) | |
9674 | #t))))) | |
9675 | (propagated-inputs | |
9676 | `(("ruby-pdf-core" ,ruby-pdf-core) | |
9677 | ("ruby-ttfunk" ,ruby-ttfunk))) | |
9678 | (native-inputs | |
9679 | `(("bundler" ,bundler) | |
9680 | ("ruby-pdf-inspector" ,ruby-pdf-inspector) | |
9681 | ("ruby-rspec" ,ruby-rspec) | |
9682 | ("ruby-simplecov" ,ruby-simplecov) | |
9683 | ("ruby-yard" ,ruby-yard))) | |
9684 | (home-page "http://prawnpdf.org/api-docs/2.0/") | |
9685 | (synopsis "PDF generation for Ruby") | |
9686 | (description "Prawn is a pure Ruby PDF generation library.") | |
9687 | (license license:gpl3+))) | |
197ca8ec JL |
9688 | |
9689 | (define-public ruby-prawn-table | |
9690 | (package | |
9691 | (name "ruby-prawn-table") | |
9692 | (version "0.2.2") | |
9693 | (source (origin | |
9694 | (method url-fetch) | |
9695 | (uri (rubygems-uri "prawn-table" version)) | |
9696 | (sha256 | |
9697 | (base32 | |
9698 | "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k")))) | |
9699 | (build-system ruby-build-system) | |
197ca8ec | 9700 | (propagated-inputs |
0927b039 CB |
9701 | `(("ruby-prawn" ,ruby-prawn) |
9702 | ("ruby-pdf-inspector" ,ruby-pdf-inspector))) | |
9703 | (native-inputs | |
9704 | `(("bundler" ,bundler) | |
9705 | ("ruby-yard" ,ruby-yard) | |
9706 | ("ruby-mocha" ,ruby-mocha) | |
9707 | ("ruby-coderay" ,ruby-coderay) | |
9708 | ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder) | |
9709 | ("ruby-simplecov" ,ruby-simplecov) | |
9710 | ("ruby-rspec-2" ,ruby-rspec-2))) | |
9711 | (arguments | |
9712 | '(;; TODO: 1 test fails | |
9713 | ;; Failure/Error: pdf.page_count.should == 1 | |
9714 | ;; expected: 1 | |
9715 | ;; got: 2 (using ==) | |
9716 | ;; # ./spec/table_spec.rb:1308 | |
9717 | ;; | |
9718 | ;; 225 examples, 1 failure | |
9719 | #:tests? #f | |
9720 | #:phases | |
9721 | (modify-phases %standard-phases | |
9722 | (add-before 'check 'patch-gemspec | |
9723 | (lambda _ | |
9724 | (substitute* "prawn-table.gemspec" | |
9725 | ;; Loosen the requirement for pdf-inspector | |
9726 | (("~> 1\\.1\\.0") ">= 0") | |
9727 | ;; Loosen the requirement for pdf-reader | |
9728 | (("~> 1\\.2") ">= 0")))) | |
9729 | (replace 'check | |
9730 | (lambda* (#:key tests? #:allow-other-keys) | |
9731 | (when tests? | |
9732 | (invoke "rspec")) | |
9733 | #t))))) | |
197ca8ec JL |
9734 | (home-page "https://github.com/prawnpdf/prawn-table") |
9735 | (synopsis "Tables support for Prawn") | |
9736 | (description "This gem provides tables support for Prawn.") | |
9737 | (license license:gpl3+))) | |
03127069 JL |
9738 | |
9739 | (define-public ruby-kramdown | |
9740 | (package | |
9741 | (name "ruby-kramdown") | |
9742 | (version "1.17.0") | |
9743 | (source (origin | |
9744 | (method url-fetch) | |
9745 | (uri (rubygems-uri "kramdown" version)) | |
9746 | (sha256 | |
9747 | (base32 | |
9748 | "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq")))) | |
9749 | (build-system ruby-build-system) | |
9750 | (arguments `(#:tests? #f)); FIXME: some test failures | |
9751 | (native-inputs | |
9752 | `(("ruby-prawn" ,ruby-prawn) | |
9753 | ("ruby-prawn-table" ,ruby-prawn-table))) | |
9754 | (home-page "https://kramdown.gettalong.org/") | |
9755 | (synopsis "Markdown parsing and converting library") | |
9756 | (description "Kramdown is a library for parsing and converting a superset | |
9757 | of Markdown. It is completely written in Ruby, supports standard Markdown | |
9758 | (with some minor modifications) and various extensions that have been made | |
9759 | popular by the PHP @code{Markdown Extra} package and @code{Maruku}.") | |
9760 | (license license:expat))) | |
fa0063bc JL |
9761 | |
9762 | (define-public ruby-http-parser.rb | |
9763 | (package | |
9764 | (name "ruby-http-parser.rb") | |
9765 | (version "0.6.0") | |
9766 | (source | |
9767 | (origin | |
9768 | (method url-fetch) | |
9769 | (uri (rubygems-uri "http_parser.rb" version)) | |
9770 | (sha256 | |
9771 | (base32 | |
9772 | "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi")))) | |
9773 | (build-system ruby-build-system) | |
9774 | (arguments | |
9775 | ;; No tests | |
9776 | `(#:tests? #f)) | |
9777 | (native-inputs | |
9778 | `(("ruby-rake-compiler" ,ruby-rake-compiler) | |
9779 | ("ruby-rspec" ,ruby-rspec))) | |
9780 | (home-page "https://github.com/tmm1/http_parser.rb") | |
9781 | (synopsis "HTTP parser un Ruby") | |
9782 | (description "This gem is a simple callback-based HTTP request/response | |
9783 | parser for writing http servers, clients and proxies.") | |
9784 | (license license:expat))) | |
5e2f74bd JL |
9785 | |
9786 | (define-public ruby-em-websocket | |
9787 | (package | |
9788 | (name "ruby-em-websocket") | |
9789 | (version "0.5.1") | |
9790 | (source | |
9791 | (origin | |
9792 | (method url-fetch) | |
9793 | (uri (rubygems-uri "em-websocket" version)) | |
9794 | (sha256 | |
9795 | (base32 | |
9796 | "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3")))) | |
9797 | (build-system ruby-build-system) | |
9798 | (arguments | |
9799 | ;; No tests | |
9800 | `(#:tests? #f)) | |
9801 | (propagated-inputs | |
9802 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
9803 | ("ruby-http-parser.rb" ,ruby-http-parser.rb))) | |
9804 | (native-inputs | |
9805 | `(("bundler" ,bundler) | |
9806 | ("ruby-rspec" ,ruby-rspec))) | |
9807 | (home-page "https://github.com/igrigorik/em-websocket") | |
9808 | (synopsis "EventMachine based WebSocket server") | |
9809 | (description "Em-websocket is an EventMachine based WebSocket server | |
9810 | implementation.") | |
9811 | (license license:expat))) | |
4ce0414b JL |
9812 | |
9813 | (define-public ruby-rouge | |
9814 | (package | |
9815 | (name "ruby-rouge") | |
55cc5ef8 | 9816 | (version "3.13.0") |
4ce0414b JL |
9817 | (source (origin |
9818 | (method url-fetch) | |
9819 | (uri (rubygems-uri "rouge" version)) | |
9820 | (sha256 | |
9821 | (base32 | |
55cc5ef8 | 9822 | "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw")))) |
4ce0414b JL |
9823 | (build-system ruby-build-system) |
9824 | (arguments `(#:tests? #f)); No rakefile | |
9825 | (home-page "http://rouge.jneen.net/") | |
9826 | (synopsis "Code highlighter") | |
9827 | (description "Rouge is a code highlighter written in Ruby. It supports more | |
9828 | than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output | |
9829 | is compatible with stylesheets designed for pygments.") | |
9830 | (license (list | |
9831 | ;; rouge is licensed under expat | |
9832 | license:expat | |
9833 | ;; pygments is licensed under bsd-2 | |
9834 | license:bsd-2)))) | |
2c5028bd JL |
9835 | |
9836 | (define-public ruby-rouge-2 | |
9837 | (package | |
9838 | (inherit ruby-rouge) | |
9839 | (version "2.2.1") | |
9840 | (source (origin | |
9841 | (method url-fetch) | |
9842 | (uri (rubygems-uri "rouge" version)) | |
9843 | (sha256 | |
9844 | (base32 | |
9845 | "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs")))))) | |
2e072e37 JL |
9846 | |
9847 | (define-public ruby-hashie | |
9848 | (package | |
9849 | (name "ruby-hashie") | |
9850 | (version "3.6.0") | |
9851 | (source (origin | |
9852 | (method url-fetch) | |
9853 | (uri (rubygems-uri "hashie" version)) | |
9854 | (sha256 | |
9855 | (base32 | |
9856 | "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh")))) | |
9857 | (build-system ruby-build-system) | |
9858 | (native-inputs | |
9859 | `(("bundler" ,bundler))) | |
9860 | (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory | |
9861 | (home-page "https://github.com/intridea/hashie") | |
9862 | (synopsis "Extensions to Ruby Hashes") | |
9863 | (description "Hashie is a collection of classes and mixins that make Ruby | |
9864 | hashes more powerful.") | |
9865 | (license license:expat))) | |
73bfc125 JL |
9866 | |
9867 | (define-public ruby-heredoc-unindent | |
9868 | (package | |
9869 | (name "ruby-heredoc-unindent") | |
9870 | (version "1.2.0") | |
9871 | (source (origin | |
9872 | (method url-fetch) | |
9873 | (uri (rubygems-uri "heredoc_unindent" version)) | |
9874 | (sha256 | |
9875 | (base32 | |
9876 | "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw")))) | |
9877 | (build-system ruby-build-system) | |
9878 | (native-inputs | |
9879 | `(("ruby-hoe" ,ruby-hoe))) | |
9880 | (home-page "https://github.com/adrianomitre/heredoc_unindent") | |
9881 | (synopsis "Heredoc indentation cleaner") | |
9882 | (description "This gem removes common margin from indented strings, such | |
9883 | as the ones produced by indented heredocs. In other words, it strips out | |
4f66ae28 | 9884 | leading whitespace chars at the beginning of each line, but only as much as |
73bfc125 JL |
9885 | the line with the smallest margin. |
9886 | ||
9887 | It is acknowledged that many strings defined by heredocs are just code and | |
9888 | fact is that most parsers are insensitive to indentation. If, however, the | |
9889 | strings are to be used otherwise, be it for printing or testing, the extra | |
9890 | indentation will probably be an issue and hence this gem.") | |
9891 | (license license:expat))) | |
f8ae2ee5 JL |
9892 | |
9893 | (define-public ruby-safe-yaml | |
9894 | (package | |
9895 | (name "ruby-safe-yaml") | |
7fa83fa8 | 9896 | (version "1.0.5") |
28cf8dab CB |
9897 | (source |
9898 | (origin | |
28cf8dab CB |
9899 | (method git-fetch) |
9900 | (uri (git-reference | |
b0e7b699 | 9901 | (url "https://github.com/dtao/safe_yaml") |
28cf8dab CB |
9902 | (commit version))) |
9903 | (file-name (git-file-name name version)) | |
9904 | (sha256 | |
9905 | (base32 | |
7fa83fa8 | 9906 | "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg")))) |
f8ae2ee5 JL |
9907 | (build-system ruby-build-system) |
9908 | (native-inputs | |
9909 | `(("ruby-rspec" ,ruby-rspec) | |
9910 | ("ruby-hashie" ,ruby-hashie) | |
9911 | ("ruby-heredoc-unindent" ,ruby-heredoc-unindent))) | |
28cf8dab CB |
9912 | (arguments |
9913 | '(#:test-target "spec" | |
9914 | #:phases | |
9915 | (modify-phases %standard-phases | |
9916 | (add-before 'check 'set-TZ | |
9917 | (lambda _ | |
9918 | ;; This test is dependent on the timezone | |
9919 | ;; spec/transform/to_date_spec.rb:35 | |
9920 | ;; # SafeYAML::Transform::ToDate converts times to the local | |
9921 | ;; timezone | |
9922 | (setenv "TZ" "UTC-11") | |
9923 | #t))))) | |
f8ae2ee5 JL |
9924 | (home-page "https://github.com/dtao/safe_yaml") |
9925 | (synopsis "YAML parser") | |
9926 | (description "The SafeYAML gem provides an alternative implementation of | |
9927 | YAML.load suitable for accepting user input in Ruby applications.") | |
9928 | (license license:expat))) | |
f1ec4d76 JL |
9929 | |
9930 | (define-public ruby-mercenary | |
9931 | (package | |
9932 | (name "ruby-mercenary") | |
9933 | (version "0.3.6") | |
9934 | (source (origin | |
9935 | (method url-fetch) | |
9936 | (uri (rubygems-uri "mercenary" version)) | |
9937 | (sha256 | |
9938 | (base32 | |
9939 | "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a")))) | |
9940 | (build-system ruby-build-system) | |
9941 | (arguments `(#:test-target "spec")) | |
9942 | (native-inputs | |
9943 | `(("bundler" ,bundler))) | |
9944 | (home-page "https://github.com/jekyll/mercenary") | |
9945 | (synopsis "Command-line apps library in Ruby") | |
9946 | (description "Mercenary is a lightweight and flexible library for writing | |
9947 | command-line apps in Ruby.") | |
9948 | (license license:expat))) | |
a13d451e JL |
9949 | |
9950 | (define-public ruby-liquid | |
9951 | (package | |
9952 | (name "ruby-liquid") | |
9953 | (version "4.0.0") | |
9954 | (source (origin | |
9955 | (method url-fetch) | |
9956 | (uri (rubygems-uri "liquid" version)) | |
9957 | (sha256 | |
9958 | (base32 | |
9959 | "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y")))) | |
9960 | (build-system ruby-build-system) | |
9961 | (arguments `(#:tests? #f)); No rakefile | |
9962 | (home-page "https://shopify.github.io/liquid/") | |
9963 | (synopsis "Template language") | |
9964 | (description "Liquid is a template language written in Ruby. It is used | |
9965 | to load dynamic content on storefronts.") | |
9966 | (license license:expat))) | |
49395112 JL |
9967 | |
9968 | (define-public ruby-forwardable-extended | |
9969 | (package | |
9970 | (name "ruby-forwardable-extended") | |
9971 | (version "2.6.0") | |
9972 | (source (origin | |
9973 | (method url-fetch) | |
9974 | (uri (rubygems-uri "forwardable-extended" version)) | |
9975 | (sha256 | |
9976 | (base32 | |
9977 | "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v")))) | |
9978 | (build-system ruby-build-system) | |
9979 | (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters | |
9980 | (home-page "https://github.com/envygeeks/forwardable-extended") | |
9981 | (synopsis "Delegation to hashes and instance variables in Forwardable") | |
9982 | (description "Forwardable Extended provides more @code{Forwardable} | |
9983 | methods for your source as @code{Forwardable::Extended}.") | |
9984 | (license license:expat))) | |
37296113 JL |
9985 | |
9986 | (define-public ruby-pathutil | |
9987 | (package | |
9988 | (name "ruby-pathutil") | |
feaaa603 | 9989 | (version "0.16.2") |
37296113 JL |
9990 | (source (origin |
9991 | (method url-fetch) | |
9992 | (uri (rubygems-uri "pathutil" version)) | |
9993 | (sha256 | |
9994 | (base32 | |
feaaa603 | 9995 | "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4")))) |
37296113 JL |
9996 | (build-system ruby-build-system) |
9997 | (propagated-inputs | |
9998 | `(("ruby-forwardable-extended" ,ruby-forwardable-extended))) | |
9999 | (native-inputs | |
10000 | `(("bundler" ,bundler) | |
10001 | ("ruby-rspec" ,ruby-rspec))) | |
10002 | ;; Fails with: cannot load such file -- | |
10003 | ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task | |
10004 | (arguments `(#:tests? #f)) | |
10005 | (home-page "https://github.com/envygeeks/pathutil") | |
10006 | (synopsis "Extended implementation of Pathname") | |
10007 | (description "Pathutil tries to be a faster pure Ruby implementation of | |
10008 | Pathname.") | |
10009 | (license license:expat))) | |
49e1dde5 JL |
10010 | |
10011 | (define-public jekyll | |
10012 | (package | |
10013 | (name "jekyll") | |
fcf82fd3 | 10014 | (version "3.8.6") |
49e1dde5 JL |
10015 | (source (origin |
10016 | (method url-fetch) | |
10017 | (uri (rubygems-uri "jekyll" version)) | |
10018 | (sha256 | |
10019 | (base32 | |
fcf82fd3 | 10020 | "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz")))) |
49e1dde5 JL |
10021 | (build-system ruby-build-system) |
10022 | (arguments | |
fcf82fd3 | 10023 | ;; No rakefile, but a test subdirectory. |
49e1dde5 JL |
10024 | `(#:tests? #f |
10025 | #:phases | |
10026 | (modify-phases %standard-phases | |
10027 | (add-before 'build 'fix-i18n | |
10028 | (lambda _ | |
10029 | (substitute* ".gemspec" | |
10030 | (("~> 0.7") ">= 0.7")) | |
10031 | #t))))) | |
10032 | (propagated-inputs | |
10033 | `(("ruby-addressable" ,ruby-addressable) | |
10034 | ("ruby-colorator" ,ruby-colorator) | |
10035 | ("ruby-em-websocket" ,ruby-em-websocket) | |
10036 | ("ruby-i18n" ,ruby-i18n) | |
10037 | ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter) | |
10038 | ("ruby-jekyll-watch" ,ruby-jekyll-watch) | |
10039 | ("ruby-kramdown" ,ruby-kramdown) | |
10040 | ("ruby-liquid" ,ruby-liquid) | |
10041 | ("ruby-mercenary" ,ruby-mercenary) | |
10042 | ("ruby-pathutil" ,ruby-pathutil) | |
10043 | ("ruby-rouge" ,ruby-rouge-2) | |
10044 | ("ruby-safe-yaml" ,ruby-safe-yaml))) | |
10045 | (home-page "https://jekyllrb.com/") | |
10046 | (synopsis "Static site generator") | |
10047 | (description "Jekyll is a simple, blog aware, static site generator.") | |
10048 | (license license:expat))) | |
37a0f470 JL |
10049 | |
10050 | (define-public ruby-jekyll-paginate-v2 | |
10051 | (package | |
10052 | (name "ruby-jekyll-paginate-v2") | |
10053 | (version "2.0.0") | |
10054 | (source (origin | |
10055 | (method url-fetch) | |
10056 | (uri (rubygems-uri "jekyll-paginate-v2" version)) | |
10057 | (sha256 | |
10058 | (base32 | |
10059 | "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib")))) | |
10060 | (build-system ruby-build-system) | |
10061 | (propagated-inputs | |
10062 | `(("jekyll" ,jekyll))) | |
10063 | (home-page "https://github.com/sverrirs/jekyll-paginate-v2") | |
10064 | (synopsis "Pagination Generator for Jekyll 3") | |
10065 | (description "The Pagination Generator forms the core of the pagination | |
10066 | logic in Jekyll. It calculates and generates the pagination pages.") | |
10067 | (license license:expat))) | |
909eae21 CB |
10068 | |
10069 | (define-public ruby-faraday | |
10070 | (package | |
10071 | (name "ruby-faraday") | |
10072 | (version "0.15.4") | |
10073 | (source | |
10074 | (origin | |
10075 | (method url-fetch) | |
10076 | (uri (rubygems-uri "faraday" version)) | |
10077 | (sha256 | |
10078 | (base32 | |
10079 | "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0")))) | |
10080 | (build-system ruby-build-system) | |
10081 | (arguments | |
10082 | '(#:tests? #f)) | |
10083 | (propagated-inputs | |
10084 | `(("ruby-multipart-post" ,ruby-multipart-post))) | |
10085 | (synopsis "Ruby HTTP/REST API client library") | |
10086 | (description | |
10087 | "Faraday is a HTTP/REST API client library which provides a common | |
10088 | interface over different adapters.") | |
10089 | (home-page "https://github.com/lostisland/faraday") | |
10090 | (license license:expat))) | |
a058cbfd CB |
10091 | |
10092 | (define-public ruby-nio4r | |
10093 | (package | |
10094 | (name "ruby-nio4r") | |
7923b9bf | 10095 | (version "2.5.2") |
a058cbfd CB |
10096 | (source |
10097 | (origin | |
10098 | (method url-fetch) | |
10099 | (uri (rubygems-uri "nio4r" version)) | |
10100 | (sha256 | |
10101 | (base32 | |
7923b9bf | 10102 | "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c")))) |
a058cbfd CB |
10103 | (build-system ruby-build-system) |
10104 | (arguments | |
10105 | '(#:phases | |
10106 | (modify-phases %standard-phases | |
10107 | (add-after 'unpack 'remove-unnecessary-dependencies | |
10108 | (lambda _ | |
10109 | (substitute* "spec/spec_helper.rb" | |
10110 | ;; Coveralls is for uploading test coverage information to an | |
10111 | ;; online service, and thus unnecessary for building the Guix | |
10112 | ;; package | |
10113 | (("require \"coveralls\"") "") | |
10114 | (("Coveralls\\.wear!") "") | |
10115 | ;; Remove rspec/retry as we are not retrying the tests | |
10116 | (("require \"rspec/retry\"") "") | |
10117 | (("config\\.display_try_failure_messages = true") "") | |
10118 | (("config\\.verbose_retry = true") "")) | |
10119 | #t)) | |
10120 | (add-before 'check 'compile | |
10121 | (lambda _ | |
10122 | (invoke "rake" "compile") | |
10123 | #t)) | |
10124 | (replace 'check | |
10125 | (lambda* (#:key tests? #:allow-other-keys) | |
10126 | (when tests? | |
10127 | (invoke "rspec")) | |
10128 | #t))))) | |
10129 | (native-inputs | |
10130 | `(("bundler" ,bundler) | |
10131 | ("ruby-rake-compiler" ,ruby-rake-compiler) | |
10132 | ("ruby-rspec" ,ruby-rspec) | |
10133 | ("ruby-rubocop" ,ruby-rubocop))) | |
10134 | (synopsis "New I/O for Ruby") | |
10135 | (description | |
10136 | "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby | |
10137 | for scalable network clients and servers.") | |
10138 | (home-page "https://github.com/socketry/nio4r") | |
10139 | (license license:expat))) | |
f9da1ada CB |
10140 | |
10141 | (define-public ruby-globalid | |
10142 | (package | |
10143 | (name "ruby-globalid") | |
10144 | (version "0.4.2") | |
10145 | (source | |
10146 | (origin | |
10147 | (method url-fetch) | |
10148 | (uri (rubygems-uri "globalid" version)) | |
10149 | (sha256 | |
10150 | (base32 | |
10151 | "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1")))) | |
10152 | (build-system ruby-build-system) | |
10153 | (arguments | |
10154 | '(;; No included tests | |
10155 | #:tests? #f)) | |
10156 | (propagated-inputs | |
10157 | `(("ruby-activesupport" ,ruby-activesupport))) | |
10158 | (synopsis "Generate URIs idenfitying model instances in Ruby") | |
10159 | (description | |
10160 | "@code{GlobalID} provides a way to generate URIs from a model in Ruby that | |
10161 | uniquely identify it.") | |
10162 | (home-page "https://rubyonrails.org/") | |
10163 | (license license:expat))) | |
15606d98 CB |
10164 | |
10165 | (define-public ruby-sprockets | |
10166 | (package | |
10167 | (name "ruby-sprockets") | |
10168 | (version "3.7.2") | |
10169 | (source | |
10170 | (origin | |
10171 | (method url-fetch) | |
10172 | (uri (rubygems-uri "sprockets" version)) | |
10173 | (sha256 | |
10174 | (base32 | |
10175 | "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay")))) | |
10176 | (build-system ruby-build-system) | |
10177 | (arguments | |
10178 | '(;; No included tests | |
10179 | #:tests? #f)) | |
10180 | (propagated-inputs | |
10181 | `(("ruby-concurrent" ,ruby-concurrent) | |
10182 | ("ruby-rack" ,ruby-rack))) | |
10183 | (synopsis "Sprockets is a Rack-based asset packaging system") | |
10184 | (description | |
10185 | "Sprockets is a Rack-based asset packaging system that concatenates and | |
10186 | serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") | |
10187 | (home-page "https://github.com/rails/sprockets") | |
10188 | (license license:expat))) | |
acb9e3d8 PN |
10189 | |
10190 | (define-public ruby-mustermann | |
10191 | (package | |
10192 | (name "ruby-mustermann") | |
10193 | (version "1.0.3") | |
10194 | (source | |
10195 | (origin | |
10196 | (method url-fetch) | |
10197 | (uri (rubygems-uri "mustermann" version)) | |
10198 | (sha256 | |
10199 | (base32 | |
10200 | "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1")))) | |
10201 | (build-system ruby-build-system) | |
10202 | (arguments | |
10203 | ;; No tests. | |
10204 | '(#:tests? #f)) | |
10205 | (synopsis "Library implementing patterns that behave like regular expressions") | |
10206 | (description "Given a string pattern, Mustermann will turn it into an | |
10207 | object that behaves like a regular expression and has comparable performance | |
10208 | characteristics.") | |
10209 | (home-page "https://github.com/sinatra/mustermann") | |
10210 | (license license:expat))) | |
3bb094e2 | 10211 | |
7bddb6aa BL |
10212 | (define-public ruby-htmlentities |
10213 | (package | |
10214 | (name "ruby-htmlentities") | |
10215 | (version "4.3.4") | |
10216 | (source | |
10217 | (origin | |
10218 | (method url-fetch) | |
10219 | (uri (rubygems-uri "htmlentities" version)) | |
10220 | (sha256 | |
10221 | (base32 | |
10222 | "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj")))) | |
10223 | (build-system ruby-build-system) | |
10224 | (arguments | |
10225 | `(#:phases | |
10226 | (modify-phases %standard-phases | |
10227 | (replace 'check | |
10228 | (lambda _ | |
10229 | (map (lambda (file) | |
10230 | (invoke "ruby" "-Itest" file)) | |
10231 | (find-files "./test" ".*_test\\.rb"))))))) | |
10232 | (synopsis "Encode and decode (X)HTML entities") | |
10233 | (description | |
10234 | "This package provides a module for encoding and decoding (X)HTML | |
10235 | entities.") | |
10236 | (home-page "https://github.com/threedaymonk/htmlentities") | |
10237 | (license license:expat))) | |
10238 | ||
3bb094e2 PN |
10239 | (define-public ruby-sinatra |
10240 | (package | |
10241 | (name "ruby-sinatra") | |
7af92924 | 10242 | (version "2.0.8.1") |
3bb094e2 PN |
10243 | (source |
10244 | (origin | |
10245 | (method url-fetch) | |
10246 | (uri (rubygems-uri "sinatra" version)) | |
10247 | (sha256 | |
10248 | (base32 | |
7af92924 | 10249 | "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q")))) |
3bb094e2 | 10250 | (build-system ruby-build-system) |
7af92924 MC |
10251 | (arguments |
10252 | `(#:phases | |
10253 | (modify-phases %standard-phases | |
10254 | ;; See: https://github.com/sinatra/sinatra/issues/1578. | |
10255 | (add-after 'extract-gemspec 'fix-slow-doc-generation | |
10256 | (lambda _ | |
10257 | (substitute* "sinatra.gemspec" | |
10258 | (("\"README.rdoc\"\\.freeze," all) | |
10259 | (string-append all " \"--exclude=.*\\.md\".freeze,"))) | |
10260 | #t))))) | |
3bb094e2 PN |
10261 | (propagated-inputs |
10262 | `(("ruby-mustermann" ,ruby-mustermann) | |
10263 | ("ruby-rack" ,ruby-rack) | |
10264 | ("ruby-rack-protection" ,ruby-rack-protection) | |
10265 | ("ruby-tilt" ,ruby-tilt))) | |
10266 | (synopsis "DSL for quick web applications creation in Ruby") | |
10267 | (description | |
10268 | "Sinatra is a DSL for quickly creating web applications in Ruby with | |
10269 | minimal effort.") | |
10270 | (home-page "http://sinatrarb.com/") | |
10271 | (license license:expat))) | |
6e87695b PN |
10272 | |
10273 | (define-public ruby-thin | |
10274 | (package | |
10275 | (name "ruby-thin") | |
10276 | (version "1.7.2") | |
10277 | (source | |
10278 | (origin | |
10279 | (method url-fetch) | |
10280 | (uri (rubygems-uri "thin" version)) | |
10281 | (sha256 | |
10282 | (base32 | |
10283 | "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f")))) | |
10284 | (build-system ruby-build-system) | |
10285 | (arguments | |
10286 | ;; No tests. | |
10287 | '(#:tests? #f)) | |
10288 | (propagated-inputs | |
10289 | `(("ruby-daemons" ,ruby-daemons) | |
10290 | ("ruby-eventmachine" ,ruby-eventmachine) | |
10291 | ("ruby-rack" ,ruby-rack))) | |
10292 | (synopsis "Thin and fast web server for Ruby") | |
10293 | (description "Thin is a Ruby web server that glues together 3 Ruby libraries: | |
10294 | @itemize | |
10295 | @item the Mongrel parser, | |
10296 | @item Event Machine, a network I/O library with high scalability, performance | |
10297 | and stability, | |
10298 | @item Rack, a minimal interface between webservers and Ruby frameworks. | |
10299 | @end itemize\n") | |
60783303 | 10300 | (home-page "https://github.com/macournoyer/thin") |
6e87695b | 10301 | (license license:ruby))) |
be6016db PN |
10302 | |
10303 | (define-public ruby-skinny | |
10304 | (package | |
10305 | (name "ruby-skinny") | |
10306 | (version "0.2.4") | |
10307 | (source | |
10308 | (origin | |
10309 | (method url-fetch) | |
10310 | (uri (rubygems-uri "skinny" version)) | |
10311 | (sha256 | |
10312 | (base32 | |
10313 | "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9")))) | |
10314 | (build-system ruby-build-system) | |
10315 | (arguments | |
10316 | '(#:tests? #f ; No included tests | |
10317 | #:phases | |
10318 | (modify-phases %standard-phases | |
10319 | (add-before 'build 'patch-gemspec | |
10320 | (lambda _ | |
10321 | (substitute* ".gemspec" | |
10322 | (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"") | |
10323 | "<eventmachine>, [\">= 1.0.0\"") | |
10324 | (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, [")) | |
10325 | #t))))) | |
10326 | (propagated-inputs | |
10327 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
10328 | ("ruby-thin" ,ruby-thin))) | |
10329 | (synopsis "Simple, upgradable WebSockets for Ruby Thin") | |
10330 | (description "Skinny is a simple, upgradable WebSockets for Ruby, using | |
10331 | the Thin library.") | |
10332 | (home-page "https://github.com/sj26/skinny") | |
10333 | (license license:expat))) | |
df747c8d | 10334 | |
9c566d1b MB |
10335 | (define-public ruby-sys-filesystem |
10336 | (package | |
10337 | (name "ruby-sys-filesystem") | |
10338 | (version "1.3.4") | |
10339 | (source (origin | |
10340 | (method url-fetch) | |
10341 | (uri (rubygems-uri "sys-filesystem" version)) | |
10342 | (sha256 | |
10343 | (base32 | |
10344 | "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01")))) | |
10345 | (build-system ruby-build-system) | |
10346 | (arguments | |
10347 | '(#:phases (modify-phases %standard-phases | |
10348 | (add-before 'check 'set-HOME | |
10349 | (lambda _ | |
10350 | ;; Some tests attempt to stat $HOME. Let them. | |
10351 | (setenv "HOME" "/tmp") | |
10352 | #t))))) | |
10353 | (propagated-inputs | |
10354 | `(("ruby-ffi" ,ruby-ffi))) | |
10355 | (native-inputs | |
10356 | `(("ruby-mkmf-lite" ,ruby-mkmf-lite))) | |
10357 | (synopsis "Gather file system information") | |
10358 | (description | |
10359 | "The @code{sys-filesystem} library provides a cross-platform interface | |
10360 | for gathering file system information, such as disk space and mount points.") | |
10361 | (home-page "https://github.com/djberg96/sys-filesystem") | |
10362 | (license license:asl2.0))) | |
10363 | ||
df747c8d PN |
10364 | (define-public mailcatcher |
10365 | (package | |
10366 | (name "mailcatcher") | |
10367 | (version "0.7.1") | |
10368 | (source | |
10369 | (origin | |
10370 | (method url-fetch) | |
10371 | (uri (rubygems-uri "mailcatcher" version)) | |
10372 | (sha256 | |
10373 | (base32 | |
10374 | "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n")))) | |
10375 | (build-system ruby-build-system) | |
10376 | (arguments | |
10377 | ;; Tests require web/assets which is not included in the output. We | |
10378 | ;; might be able to fix this by adding the Git repository to the GEM_PATH | |
10379 | ;; of the tests. See ruby-mysql2. | |
10380 | '(#:tests? #f | |
10381 | #:phases | |
10382 | (modify-phases %standard-phases | |
10383 | (add-before 'build 'patch-gemspec | |
10384 | (lambda _ | |
10385 | (substitute* ".gemspec" | |
10386 | (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1") | |
10387 | "<eventmachine>, [\">= 1.0.9.1") | |
10388 | (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5") | |
10389 | (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0") | |
10390 | (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2")) | |
10391 | #t)) | |
10392 | (add-before 'build 'loosen-dependency-contraint | |
10393 | (lambda _ | |
10394 | (substitute* "lib/mail_catcher.rb" | |
10395 | (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"") | |
10396 | (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"") | |
10397 | (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"") | |
10398 | (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")) | |
10399 | #t))))) | |
10400 | (inputs | |
10401 | `(("ruby-eventmachine" ,ruby-eventmachine) | |
10402 | ("ruby-mail" ,ruby-mail) | |
10403 | ("ruby-rack" ,ruby-rack) | |
10404 | ("ruby-sinatra" ,ruby-sinatra) | |
10405 | ("ruby-skinny" ,ruby-skinny) | |
10406 | ("ruby-sqlite3" ,ruby-sqlite3) | |
10407 | ("ruby-thin" ,ruby-thin))) | |
10408 | (synopsis "SMTP server which catches messages to display them a browser") | |
10409 | (description | |
10410 | "MailCatcher runs a super simple SMTP server which catches any message | |
10411 | sent to it to display in a web interface. Run mailcatcher, set your favourite | |
10412 | app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, | |
10413 | then check out http://127.0.0.1:1080 to see the mail.") | |
10414 | (home-page "https://mailcatcher.me") | |
10415 | (license license:expat))) | |
fc4f7c45 MK |
10416 | |
10417 | (define-public ruby-backport | |
10418 | (package | |
10419 | (name "ruby-backport") | |
b62863b8 | 10420 | (version "1.1.2") |
fc4f7c45 MK |
10421 | (source |
10422 | (origin | |
b62863b8 | 10423 | ;; The gem does not include test code, so fetch from the Git repository. |
fc4f7c45 MK |
10424 | (method git-fetch) |
10425 | (uri (git-reference | |
b0e7b699 | 10426 | (url "https://github.com/castwide/backport") |
fc4f7c45 MK |
10427 | (commit (string-append "v" version)))) |
10428 | (file-name (git-file-name name version)) | |
10429 | (sha256 | |
b62863b8 | 10430 | (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2")))) |
fc4f7c45 MK |
10431 | (build-system ruby-build-system) |
10432 | (arguments | |
10433 | `(#:test-target "spec")) | |
10434 | (native-inputs | |
10435 | `(("bundler" ,bundler) | |
10436 | ("ruby-rspec" ,ruby-rspec))) | |
10437 | (inputs | |
10438 | `(("ruby-simplecov" ,ruby-simplecov))) | |
10439 | (synopsis "Pure Ruby library for event-driven IO") | |
10440 | (description | |
10441 | "This package provides a pure Ruby library for event-driven IO.") | |
10442 | (home-page "https://github.com/castwide/backport") | |
10443 | (license license:expat))) | |
369faa59 JL |
10444 | |
10445 | (define-public ruby-json-schema | |
10446 | (package | |
10447 | (name "ruby-json-schema") | |
10448 | (version "2.8.1") | |
10449 | (source | |
10450 | (origin | |
10451 | (method url-fetch) | |
10452 | (uri (rubygems-uri "json-schema" version)) | |
10453 | (sha256 | |
10454 | (base32 | |
10455 | "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5")))) | |
10456 | (build-system ruby-build-system) | |
10457 | (arguments | |
10458 | `(#:tests? #f ; no tests | |
10459 | #:phases | |
10460 | (modify-phases %standard-phases | |
10461 | (replace 'build | |
10462 | (lambda _ | |
10463 | (invoke "gem" "build" ".gemspec")))))) | |
10464 | (propagated-inputs | |
10465 | `(("ruby-addressable" ,ruby-addressable))) | |
10466 | (synopsis "Ruby JSON Schema Validator") | |
10467 | (description "This library provides Ruby with an interface for validating | |
10468 | JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy | |
10469 | support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1 | |
10470 | is also included.") | |
10471 | (home-page "https://github.com/ruby-json-schema/json-schema") | |
10472 | (license license:expat))) | |
44881cad JL |
10473 | |
10474 | (define-public swagger-diff | |
10475 | (package | |
10476 | (name "swagger-diff") | |
10477 | (version "1.1.2") | |
10478 | (source | |
10479 | (origin | |
10480 | (method url-fetch) | |
10481 | (uri (rubygems-uri "swagger-diff" version)) | |
10482 | (sha256 | |
10483 | (base32 | |
10484 | "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn")))) | |
10485 | (build-system ruby-build-system) | |
10486 | (arguments | |
10487 | `(#:test-target "spec" | |
10488 | #:phases | |
10489 | (modify-phases %standard-phases | |
10490 | ;; Don't run or require rubocop, the code linting tool, as this is a | |
10491 | ;; bit unnecessary. | |
10492 | (add-after 'unpack 'dont-run-rubocop | |
10493 | (lambda _ | |
10494 | (substitute* "Rakefile" | |
10495 | ((".*rubocop.*") "") | |
10496 | ((".*RuboCop.*") "")) | |
10497 | #t))))) | |
10498 | (propagated-inputs | |
10499 | `(("ruby-json-schema" ,ruby-json-schema))) | |
10500 | (native-inputs | |
10501 | `(("bundler" ,bundler) | |
10502 | ("ruby-rspec-core" ,ruby-rspec-core) | |
10503 | ("ruby-rspec-expectations" ,ruby-rspec-expectations))) | |
10504 | (synopsis | |
10505 | "Compare Open API Initiative specification files") | |
10506 | (description | |
10507 | "Swagger::Diff is a utility for comparing two different Open API | |
10508 | Initiative (OAI) specifications (formerly known as Swagger specifications). | |
10509 | It is intended to determine whether a newer API specification is | |
10510 | backwards-compatible with an older API specification.") | |
10511 | (home-page "https://github.com/civisanalytics/swagger-diff") | |
10512 | (license license:bsd-3))) | |
9e065a8a BL |
10513 | |
10514 | (define-public ruby-reverse-markdown | |
10515 | (package | |
10516 | (name "ruby-reverse-markdown") | |
10517 | (version "1.1.0") | |
10518 | (source | |
10519 | (origin | |
10520 | (method url-fetch) | |
10521 | (uri (rubygems-uri "reverse_markdown" version)) | |
10522 | (sha256 | |
10523 | (base32 | |
10524 | "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg")))) | |
10525 | (build-system ruby-build-system) | |
10526 | (propagated-inputs | |
10527 | `(("ruby-nokogiri" ,ruby-nokogiri))) | |
10528 | (native-inputs | |
10529 | `(("bundler" ,bundler) | |
10530 | ("ruby-rspec" ,ruby-rspec) | |
10531 | ("ruby-kramdown" ,ruby-kramdown) | |
10532 | ("ruby-simplecov" ,ruby-simplecov))) | |
10533 | (arguments | |
10534 | `(#:phases | |
10535 | (modify-phases %standard-phases | |
10536 | (replace 'check | |
10537 | (lambda* (#:key tests? #:allow-other-keys) | |
10538 | (when tests? | |
10539 | (invoke "rspec")) | |
10540 | #t))))) | |
10541 | (synopsis "Convert HTML into Markdown") | |
10542 | (description | |
10543 | "This Ruby module allows you to map simple HTML back into | |
10544 | Markdown---e.g., if you want to import existing HTML data in your | |
10545 | application.") | |
10546 | (home-page "https://github.com/xijo/reverse_markdown") | |
10547 | (license license:wtfpl2))) | |
10548 | ||
a9e2de7e BL |
10549 | (define-public ruby-solargraph |
10550 | (package | |
10551 | (name "ruby-solargraph") | |
10552 | (version "0.36.0") | |
10553 | (source | |
10554 | (origin | |
10555 | (method url-fetch) | |
10556 | (uri (rubygems-uri "solargraph" version)) | |
10557 | (sha256 | |
10558 | (base32 | |
10559 | "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i")))) | |
10560 | (build-system ruby-build-system) | |
10561 | (propagated-inputs | |
10562 | `(("ruby-backport" ,ruby-backport) | |
10563 | ("bundler" ,bundler) | |
10564 | ("ruby-htmlentities" ,ruby-htmlentities) | |
10565 | ("ruby-jaro-winkler" ,ruby-jaro-winkler) | |
10566 | ("ruby-maruku" ,ruby-maruku) | |
10567 | ("ruby-nokogiri" ,ruby-nokogiri) | |
10568 | ("ruby-parser" ,ruby-parser) | |
10569 | ("ruby-reverse-markdown" ,ruby-reverse-markdown) | |
10570 | ("ruby-rubocop" ,ruby-rubocop) | |
10571 | ("ruby-thor" ,ruby-thor) | |
10572 | ("ruby-tilt" ,ruby-tilt) | |
10573 | ("ruby-yard" ,ruby-yard))) | |
10574 | (native-inputs | |
10575 | `(("ruby-rspec" ,ruby-rspec) | |
10576 | ("ruby-pry" ,ruby-pry) | |
10577 | ("ruby-simplecov" ,ruby-simplecov) | |
10578 | ("ruby-webmock" ,ruby-webmock-2))) | |
10579 | ;; FIXME: can't figure out how to run the tests properly: | |
10580 | ||
10581 | ;; An error occurred while loading spec_helper. | |
10582 | ;; Failure/Error: return gem_original_require(path) | |
10583 | ;; LoadError: | |
10584 | ;; cannot load such file -- spec_helper | |
10585 | (arguments | |
10586 | '(#:tests? #f | |
10587 | #:phases | |
10588 | (modify-phases %standard-phases | |
10589 | (replace 'check | |
10590 | (lambda* (#:key tests? #:allow-other-keys) | |
10591 | (when tests? | |
10592 | (invoke "rspec")) | |
10593 | #t))))) | |
10594 | (synopsis | |
10595 | "IDE tools for code completion, inline documentation, and static analysis") | |
10596 | (description | |
10597 | "Solargraph provides a comprehensive suite of tools for Ruby | |
10598 | programming: intellisense, diagnostics, inline documentation, and type | |
10599 | checking.") | |
10600 | (home-page "https://solargraph.org/") | |
10601 | (license license:expat))) | |
0c558aa9 DNB |
10602 | |
10603 | (define-public ruby-wayback-machine-downloader | |
10604 | (package | |
10605 | (name "ruby-wayback-machine-downloader") | |
10606 | (version "2.2.1") | |
10607 | (source | |
10608 | (origin | |
10609 | (method url-fetch) | |
10610 | (uri (rubygems-uri | |
10611 | "wayback_machine_downloader" | |
10612 | version)) | |
10613 | (sha256 | |
10614 | (base32 | |
10615 | "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2")))) | |
10616 | (build-system ruby-build-system) | |
10617 | (arguments | |
10618 | '(#:tests? #f)) ; no tests | |
10619 | (synopsis "Download archived websites from the Wayback Machine") | |
10620 | (description | |
10621 | "Wayback Machine Downloader is a command line tool for downloading | |
10622 | websites from the Internet Archive's Wayback Machine (archive.org). | |
10623 | It allows fine grained control over what to download by specifying | |
10624 | which snapshots to consider and what files to include.") | |
10625 | (home-page | |
10626 | "https://github.com/hartator/wayback-machine-downloader") | |
10627 | (license license:expat))) | |
e6483f8c MB |
10628 | |
10629 | (define-public ruby-wwtd | |
10630 | (package | |
10631 | (name "ruby-wwtd") | |
10632 | (version "1.4.1") | |
702a1012 | 10633 | (home-page "https://github.com/grosser/wwtd") |
e6483f8c MB |
10634 | (source (origin |
10635 | (method git-fetch) | |
10636 | (uri (git-reference | |
10637 | (url home-page) | |
10638 | (commit (string-append "v" version)))) | |
10639 | (file-name (git-file-name name version)) | |
10640 | (sha256 | |
10641 | (base32 | |
10642 | "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2")) | |
10643 | (modules '((guix build utils))) | |
10644 | (snippet | |
10645 | '(begin | |
10646 | ;; Remove bundled library. | |
10647 | (delete-file "spec/rake-12.3.0.gem") | |
10648 | #t)))) | |
10649 | (build-system ruby-build-system) | |
10650 | (arguments | |
10651 | '(;; XXX: Tests need multiple versions of ruby, wants to run | |
10652 | ;; `bundle install`, etc. | |
10653 | #:tests? #f | |
10654 | #:phases (modify-phases %standard-phases | |
10655 | (replace 'replace-git-ls-files | |
10656 | (lambda _ | |
10657 | (substitute* "wwtd.gemspec" | |
10658 | (("git ls-files lib/ bin/`") | |
10659 | "find lib/ bin/ -type f |sort`")) | |
10660 | #t)) | |
10661 | (add-before 'check 'remove-version-constraints | |
10662 | (lambda _ | |
10663 | (delete-file "Gemfile.lock") | |
10664 | #t)) | |
10665 | (replace 'check | |
10666 | (lambda* (#:key tests? #:allow-other-keys) | |
10667 | (if tests? | |
10668 | (invoke "rspec" "spec/") | |
10669 | (format #t "test suite not run~%")) | |
10670 | #t))))) | |
10671 | (native-inputs | |
10672 | `(("ruby-bump" ,ruby-bump) | |
10673 | ("ruby-rspec" ,ruby-rspec))) | |
10674 | (synopsis "Run @file{.travis.yml} files locally") | |
10675 | (description | |
10676 | "WWTD is a @dfn{Travis Simulator} that lets you run test matrices | |
10677 | defined in @file{.travis.yml} on your local machine, using @code{rvm}, | |
10678 | @code{rbenv}, or @code{chruby} to test different versions of Ruby.") | |
10679 | (license license:expat))) |