gnu: Add ruby-git.
[jackhill/guix/guix.git] / gnu / packages / ruby.scm
CommitLineData
6ef8c59a
PP
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Pjotr Prins <pjotr.guix@thebird.nl>
3;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
f586c877 4;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
ecde6191 5;;; Copyright © 2014 David Thompson <davet@gnu.org>
6ef8c59a
PP
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
21
22(define-module (gnu packages ruby)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (gnu packages)
25 #:use-module (gnu packages compression)
26 #:use-module (gnu packages readline)
27 #:use-module (gnu packages openssl)
28 #:use-module (gnu packages autotools)
29 #:use-module (gnu packages libffi)
30 #:use-module (gnu packages gdbm)
66e20863 31 #:use-module (gnu packages version-control)
6ef8c59a
PP
32 #:use-module (guix packages)
33 #:use-module (guix download)
bda0c139 34 #:use-module (guix git-download)
6ef8c59a 35 #:use-module (guix utils)
acf735f2
DT
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system ruby))
6ef8c59a
PP
38
39(define-public ruby
40 (package
41 (name "ruby")
463acb4a 42 (version "2.2.2")
6ef8c59a
PP
43 (source
44 (origin
45 (method url-fetch)
6becfdff
MW
46 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
47 (version-major+minor version)
12d39eb5 48 "/ruby-" version ".tar.xz"))
6ef8c59a
PP
49 (sha256
50 (base32
463acb4a 51 "0qj48a8ji8qj1sllsrhb6y65frwr77bvr08xikj86w5mib8baczh"))))
6ef8c59a
PP
52 (build-system gnu-build-system)
53 (arguments
54 `(#:test-target "test"
55 #:parallel-tests? #f
56 #:phases
12d39eb5
DT
57 (alist-cons-before
58 'configure 'replace-bin-sh
6ef8c59a 59 (lambda _
12d39eb5
DT
60 (substitute* '("Makefile.in"
61 "ext/pty/pty.c"
62 "io.c"
63 "lib/mkmf.rb"
64 "process.c"
65 "test/rubygems/test_gem_ext_configure_builder.rb"
66 "test/rdoc/test_rdoc_parser.rb"
67 "test/ruby/test_rubyoptions.rb"
68 "test/ruby/test_process.rb"
69 "test/ruby/test_system.rb"
70 "tool/rbinstall.rb")
71 (("/bin/sh") (which "sh"))))
72 %standard-phases)))
6ef8c59a
PP
73 (inputs
74 `(("readline" ,readline)
6ef8c59a
PP
75 ("openssl" ,openssl)
76 ("libffi" ,libffi)
77 ("gdbm" ,gdbm)
78 ("zlib" ,zlib)))
79 (native-search-paths
80 (list (search-path-specification
81 (variable "GEM_PATH")
af070955
LC
82 (files (list (string-append "lib/ruby/gems/"
83 (version-major+minor version)
84 ".0"))))))
6becfdff 85 (synopsis "Programming language interpreter")
6ef8c59a
PP
86 (description "Ruby is a dynamic object-oriented programming language with
87a focus on simplicity and productivity.")
88 (home-page "https://ruby-lang.org")
89 (license license:ruby)))
90
218ee89b
PP
91(define-public ruby-1.8
92 (package (inherit ruby)
218ee89b
PP
93 (version "1.8.7-p374")
94 (source
95 (origin
96 (method url-fetch)
6becfdff
MW
97 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
98 (version-major+minor version)
99 "/ruby-" version ".tar.bz2"))
218ee89b
PP
100 (sha256
101 (base32
102 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
103 (native-search-paths '())
104 (arguments
105 `(#:test-target "test"
106 #:parallel-tests? #f
107 #:phases
108 (alist-cons-before
109 'configure 'replace-bin-sh
110 (lambda _
111 (substitute* '("Makefile.in"
112 "ext/pty/pty.c"
113 "io.c"
114 "lib/mkmf.rb"
115 "process.c")
116 (("/bin/sh") (which "sh"))))
117 %standard-phases)))))
118
bda0c139
DT
119(define-public ruby-hoe
120 (package
121 (name "ruby-hoe")
122 (version "3.13.1")
123 (source (origin
124 (method git-fetch)
125 (uri (git-reference
126 (url "https://github.com/seattlerb/hoe.git")
127 (commit "0c11836"))) ; no release tags :(
128 (sha256
129 (base32
130 "0i8dimf8kxcjgqj9x65bbi3l6hc9p9gbfbb1vmrz42764a4jjbz9"))) )
131 (build-system ruby-build-system)
132 (arguments
133 '(#:phases (alist-replace
134 'build
135 (lambda _ (zero? (system* "rake" "gem")))
136 %standard-phases)))
137 (synopsis "Ruby project management helper")
138 (description
139 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
140maintain, and release projects and includes a dynamic plug-in system allowing
141for easy extensibility. Hoe ships with plug-ins for all the usual project
142tasks including rdoc generation, testing, packaging, deployment, and
143announcement.")
144 (home-page "http://www.zenspider.com/projects/hoe.html")
145 (license license:expat)))
146
acf735f2
DT
147(define-public ruby-i18n
148 (package
149 (name "ruby-i18n")
150 (version "0.6.11")
151 (source (origin
152 (method url-fetch)
153 (uri (string-append "https://github.com/svenfuchs/i18n/archive/v"
154 version ".tar.gz"))
f586c877 155 (file-name (string-append name "-" version ".tar.gz"))
acf735f2
DT
156 (sha256
157 (base32
158 "1fdhnhh1p5g8vibv44d770z8nq208zrms3m2nswdvr54072y1m6k"))))
159 (build-system ruby-build-system)
160 (arguments
161 '(#:tests? #f)) ; requires bundler
162 (synopsis "Internationalization library for Ruby")
163 (description "Ruby i18n is an internationalization and localization
164solution for Ruby programs. It features translation and localization,
165interpolation of values to translations, pluralization, customizable
166transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
167translation data, custom key/scope separator, custom exception handlers, and
168an extensible architecture with a swappable backend.")
169 (home-page "http://github.com/svenfuchs/i18n")
170 (license license:expat)))
eb0c2dd6
DT
171
172;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
173;; dependencies use RSpec for their test suites! To avoid these circular
174;; dependencies, we disable tests for all of the RSpec-related packages.
175(define ruby-rspec-support
176 (package
177 (name "ruby-rspec-support")
178 (version "3.2.2")
179 (source (origin
180 (method url-fetch)
181 (uri (string-append
182 "https://github.com/rspec/rspec-support/archive/v"
183 version ".tar.gz"))
184 (file-name (string-append name "-" version ".tar.gz"))
185 (sha256
186 (base32
187 "1pvzfrqgy0z0gwmdgjp9f2vz1d9c0cajyzfqj9z8i2ssxnzmj4bv"))))
188 (build-system ruby-build-system)
189 (arguments
190 '(#:tests? #f)) ; avoid dependency cycles
191 (synopsis "RSpec support library")
192 (description "Support utilities for RSpec gems.")
193 (home-page "https://github.com/rspec/rspec-support")
194 (license license:expat)))
195
196(define-public ruby-rspec-core
197 (package
198 (name "ruby-rspec-core")
199 (version "3.2.3")
200 (source (origin
201 (method url-fetch)
202 (uri (string-append
203 "https://github.com/rspec/rspec-core/archive/v"
204 version ".tar.gz"))
205 (file-name (string-append name "-" version ".tar.gz"))
206 (sha256
207 (base32
208 "1clsa4lkh5c9c7xc3xa336ym00ycr67pchpg1bv4y3fz5hvzw8ki"))))
209 (build-system ruby-build-system)
210 (arguments
211 '(#:tests? #f)) ; avoid dependency cycles
212 (propagated-inputs
213 `(("ruby-rspec-support" ,ruby-rspec-support)))
214 (synopsis "RSpec core library")
215 (description "Rspec-core provides the RSpec test runner and example
216groups.")
217 (home-page "https://github.com/rspec/rspec-core")
218 (license license:expat)))
e6962009
DT
219
220(define ruby-diff-lcs-for-rspec
221 (package
222 (name "ruby-diff-lcs")
223 (version "1.2.5")
224 (source (origin
225 (method url-fetch)
226 (uri (string-append
227 "https://github.com/halostatue/diff-lcs/archive/v"
228 version ".tar.gz"))
229 (file-name (string-append name "-" version ".tar.gz"))
230 (sha256
231 (base32
232 "0kmfz2qdwbfjf97rx27hh9fm39mv3z9avjmvsajqnb5wxj2l5l4s"))))
233 (build-system ruby-build-system)
234 (arguments
235 '(#:tests? #f)) ; avoid dependency cycles
236 (synopsis "Compute the difference between two Enumerable sequences")
237 (description "Diff::LCS computes the difference between two Enumerable
238sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
239It includes utilities to create a simple HTML diff output format and a
240standard diff-like tool.")
241 (home-page "https://github.com/halostatue/diff-lcs")
242 (license license:expat)))
243
244(define-public ruby-rspec-expectations
245 (package
246 (name "ruby-rspec-expectations")
247 (version "3.2.1")
248 (source (origin
249 (method url-fetch)
250 (uri (string-append
251 "https://github.com/rspec/rspec-expectations/archive/v"
252 version ".tar.gz"))
253 (file-name (string-append name "-" version ".tar.gz"))
254 (sha256
255 (base32
256 "0h0rpprbh6h59gmksiyi1b8w6cvcai4wdbkikajwx3w1asxi6f7x"))))
257 (build-system ruby-build-system)
258 (arguments
259 '(#:tests? #f)) ; avoid dependency cycles
260 (propagated-inputs
261 `(("ruby-rspec-support" ,ruby-rspec-support)
262 ("ruby-diff-lcs" ,ruby-diff-lcs-for-rspec)))
263 (synopsis "RSpec expecations library")
264 (description "Rspec-expectations provides a simple API to express expected
265outcomes of a code example.")
266 (home-page "https://github.com/rspec/rspec-expectations")
267 (license license:expat)))
4f2a0cac
DT
268
269(define-public ruby-rspec-mocks
270 (package
271 (name "ruby-rspec-mocks")
272 (version "3.2.1")
273 (source (origin
274 (method url-fetch)
275 (uri (string-append
276 "https://github.com/rspec/rspec-mocks/archive/v"
277 version ".tar.gz"))
278 (file-name (string-append name "-" version ".tar.gz"))
279 (sha256
280 (base32
281 "1xzxsg0idxkg7czmjgqq10lcd821ibw1hjzn404sk9j6rw0fbx2g"))))
282 (build-system ruby-build-system)
283 (arguments
284 '(#:tests? #f)) ; avoid dependency cycles
285 (propagated-inputs
286 `(("ruby-rspec-support" ,ruby-rspec-support)
287 ("ruby-diff-lcs" ,ruby-diff-lcs-for-rspec)))
288 (synopsis "RSpec stubbing and mocking library")
289 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
290support for stubbing and mocking.")
291 (home-page "https://github.com/rspec/rspec-mocks")
292 (license license:expat)))
d4fde1f2
DT
293
294(define-public ruby-rspec
295 (package
296 (name "ruby-rspec")
297 (version "3.2.0")
298 (source (origin
299 (method url-fetch)
300 (uri (string-append
301 "https://github.com/rspec/rspec/archive/v"
302 version ".tar.gz"))
303 (file-name (string-append name "-" version ".tar.gz"))
304 (sha256
305 (base32
306 "1jg38dbaknsdhiav5vnrwfccg524fwcg6sq1715441vx1xl6p54q"))))
307 (build-system ruby-build-system)
308 (arguments
309 '(#:tests? #f)) ; avoid dependency cycles
310 (propagated-inputs
311 `(("ruby-rspec-core" ,ruby-rspec-core)
312 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
313 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
314 (synopsis "Behavior-driven development framework for Ruby")
315 (description "RSpec is a behavior-driven development (BDD) framework for
316Ruby. This meta-package includes the RSpec test runner, along with the
317expectations and mocks frameworks.")
318 (home-page "http://rspec.info/")
319 (license license:expat)))
2cbc105b
DT
320
321;; Bundler is yet another source of circular dependencies, so we must disable
322;; its test suite as well.
323(define-public bundler
324 (package
325 (name "bundler")
326 (version "1.9.9")
327 (source (origin
328 (method url-fetch)
329 (uri (string-append "https://github.com/bundler/bundler/archive/v"
330 version ".tar.gz"))
331 (file-name (string-append name "-" version ".tar.gz"))
332 (sha256
333 (base32
334 "08flx3n9hb3yz8mm5k16cdz0sb7g774f6vxn6gc3wfh5la83vfyx"))))
335 (build-system ruby-build-system)
336 (arguments
337 '(#:tests? #f)) ; avoid dependency cycles
338 (synopsis "Ruby gem bundler")
339 (description "Bundler automatically downloads and installs a list of gems
340specified in a \"Gemfile\", as well as their dependencies.")
341 (home-page "http://bundler.io/")
342 (license license:expat)))
98b87b82
DT
343
344(define-public ruby-useragent
345 (package
346 (name "ruby-useragent")
347 (version "0.13.3")
348 (source (origin
349 (method url-fetch)
350 (uri (string-append
351 "https://github.com/gshutler/useragent/archive/v"
352 version ".tar.gz"))
353 (file-name (string-append name "-" version ".tar.gz"))
354 (sha256
355 (base32
356 "1hj00fw06i0y3rwxxhxmnrqxhpnffv4zfqx2sqqpc5qc4fdvd2x9"))))
357 (build-system ruby-build-system)
358 (arguments
359 '(#:test-target "spec"))
360 (native-inputs
361 `(("ruby-rspec" ,ruby-rspec)
362 ("bundler" ,bundler)))
363 (synopsis "HTTP user agent parser for Ruby")
364 (description "UserAgent is a Ruby library that parses and compares HTTP
365User Agents.")
366 (home-page "https://github.com/gshutler/useragent")
367 (license license:expat)))
96086cc5
DT
368
369(define-public ruby-bacon
370 (package
371 (name "ruby-bacon")
372 (version "1.2")
373 (source (origin
374 (method url-fetch)
375 (uri (string-append
376 "https://github.com/chneukirchen/bacon/archive/"
377 version ".tar.gz"))
378 (file-name (string-append name "-" version ".tar.gz"))
379 (sha256
380 (base32
381 "0g03fxilrrx17dijww68n1lq5d8s69hrxgpga8c1i2k35bzcw5jc"))))
382 (build-system ruby-build-system)
383 (arguments
384 `(#:phases (modify-phases %standard-phases
385 (add-before 'build 'generate-docs
386 (lambda _
387 ;; This rake task also tries to generate a ChangeLog
388 ;; file from the Git log, which we don't have. It fails
389 ;; but creates an empty file, allowing the rest of the
390 ;; build to succeed.
391 (zero? (system* "rake" "predist")))))))
392 (synopsis "Small RSpec clone")
393 (description "Bacon is a small RSpec clone providing all essential
394features.")
395 (home-page "https://github.com/chneukirchen/bacon")
396 (license license:expat)))
de59d316
DT
397
398(define-public ruby-arel
399 (package
400 (name "ruby-arel")
401 (version "6.0.0")
402 (source (origin
403 (method url-fetch)
404 (uri (string-append
405 "https://github.com/rails/arel/archive/v"
406 version ".tar.gz"))
407 (file-name (string-append name "-" version ".tar.gz"))
408 (sha256
409 (base32
410 "0fldwp2hmrmddx22xf7hdmybngzv97qnv5rvz3qw61m94ddd6w4n"))))
411 (build-system ruby-build-system)
412 (native-inputs
413 `(("bundler" ,bundler)))
414 (synopsis "SQL AST manager for Ruby")
415 (description "Arel is a SQL AST manager for Ruby. It simplifies the
416generation of complex SQL queries and adapts to various relational database
417implementations.")
418 (home-page "https://github.com/rails/arel")
419 (license license:expat)))
e259bdf0
DT
420
421(define-public ruby-connection-pool
422 (package
423 (name "ruby-connection-pool")
424 (version "2.2.0")
425 (source (origin
426 (method url-fetch)
427 (uri (string-append
428 "https://github.com/mperham/connection_pool/archive/v"
429 version ".tar.gz"))
430 (file-name (string-append name "-" version ".tar.gz"))
431 (sha256
432 (base32
433 "02s5rwhmgy8qqns7a5y1daa0yaw38x6lzpwyvmy46h1yrj9mc6zf"))))
434 (build-system ruby-build-system)
435 (native-inputs
436 `(("bundler" ,bundler)))
437 (synopsis "Generic connection pool for Ruby")
438 (description "Connection_pool provides a generic connection pooling
439interface for Ruby programs.")
440 (home-page "https://github.com/mperham/connection_pool")
441 (license license:expat)))
4c0aeb44
DT
442
443(define-public ruby-net-http-persistent
444 (package
445 (name "ruby-net-http-persistent")
446 (version "2.9.4")
447 (source (origin
448 (method url-fetch)
449 (uri (string-append
450 "https://github.com/drbrain/net-http-persistent/archive/v"
451 version ".tar.gz"))
452 (file-name (string-append name "-" version ".tar.gz"))
453 (sha256
454 (base32
455 "1q18vji31w8gfr6ajziqkqs8n5lzkw0bl00dm2a8s05zhavzw9j9"))))
456 (build-system ruby-build-system)
457 (arguments
458 '(#:phases (modify-phases %standard-phases
459 (replace 'build ; no gemspec
460 (lambda _ (zero? (system* "rake" "gem")))))))
461 (native-inputs
462 `(("ruby-connection-pool" ,ruby-connection-pool)
463 ("ruby-hoe" ,ruby-hoe)))
464 (synopsis "Persistent HTTP connection manager")
465 (description "Net::HTTP::Persistent manages persistent HTTP connections
466using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
467 (home-page "https://github.com/drbrain/net-http-persistent")
468 (license license:expat)))
afbbdf77 469
2206e948
DT
470(define-public ruby-minitest
471 (package
472 (name "ruby-minitest")
473 (version "5.7.0")
474 (source (origin
475 (method git-fetch)
476 ;; No release tarballs nor git tags. This is the commit
477 ;; corresponding to the addition of the release notes to
478 ;; History.rdoc.
479 (uri (git-reference
480 (url "https://github.com/seattlerb/minitest.git")
481 (commit "e975248")))
482 (sha256
483 (base32
484 "09xjiahk7q8hid1i39ahrmghaslpj9n36zna72i3ah7kf1bh2l01"))))
485 (build-system ruby-build-system)
486 (arguments
487 '(#:phases (modify-phases %standard-phases
488 (replace 'build ; no gemspec
489 (lambda _ (zero? (system* "rake" "gem")))))))
490 (native-inputs
491 `(("ruby-hoe" ,ruby-hoe)))
492 (synopsis "Small test suite library for Ruby")
493 (description "Minitest provides a complete suite of Ruby testing
494facilities supporting TDD, BDD, mocking, and benchmarking.")
495 (home-page "https://github.com/seattlerb/minitest")
496 (license license:expat)))
497
35130835
DT
498(define-public ruby-minitest-sprint
499 (package
500 (name "ruby-minitest-sprint")
501 (version "1.1.0")
502 (source (origin
503 (method git-fetch)
504 ;; Same story as ruby-minitest.
505 (uri (git-reference
506 (url "https://github.com/seattlerb/minitest-sprint.git")
507 (commit "49c02bc")))
508 (sha256
509 (base32
510 "0rbmxz94lqg5vjz60p8v2bzq8adwvmx501amvk0l124sfwmw94ms"))))
511 (build-system ruby-build-system)
512 (arguments
513 '(#:phases (modify-phases %standard-phases
514 (replace 'build ; no gemspec
515 (lambda _ (zero? (system* "rake" "gem")))))))
516 (native-inputs
517 `(("ruby-hoe" ,ruby-hoe)
518 ("ruby-minitest" ,ruby-minitest)))
519 (synopsis "Fast test suite runner for minitest")
520 (description "Minitest-sprint is a test runner for minitest that makes it
521easier to re-run individual failing tests.")
522 (home-page "https://github.com/seattlerb/minitest-sprint")
523 (license license:expat)))
524
0808e361
DT
525(define-public ruby-minitest-bacon
526 (package
527 (name "ruby-minitest-bacon")
528 (version "1.0.2")
529 (source (origin
530 (method git-fetch)
531 ;; Same story as ruby-minitest.
532 (uri (git-reference
533 (url "https://github.com/seattlerb/minitest-bacon.git")
534 (commit "38551d5")))
535 (sha256
536 (base32
537 "19r9fm41i0mm1xncqls8frbj1i9nr3sq1cx2mh878r6kdl02d70h"))))
538 (build-system ruby-build-system)
539 (arguments
540 '(#:phases (modify-phases %standard-phases
541 (replace 'build ; no gemspec
542 (lambda _ (zero? (system* "rake" "gem")))))))
543 (native-inputs
544 `(("ruby-hoe" ,ruby-hoe)))
545 (inputs
546 `(("ruby-minitest" ,ruby-minitest)))
547 (synopsis "Bacon compatibility library for minitest")
548 (description "Minitest-bacon extends minitest with bacon-like
549functionality, making it easier to migrate test suites from bacon to minitest.")
550 (home-page "https://github.com/seattlerb/minitest-bacon")
551 (license license:expat)))
552
afbbdf77
DT
553(define-public ruby-daemons
554 (package
555 (name "ruby-daemons")
556 (version "1.2.2")
557 (source (origin
558 (method url-fetch)
559 (uri (string-append
560 "https://github.com/thuehlinger/daemons/archive/v"
561 version ".tar.gz"))
562 (file-name (string-append name "-" version ".tar.gz"))
563 (sha256
564 (base32
565 "1v5bpdvpvhk240pc7fkn44vfclppl44pp6wd42ipi5sd5lkk7zfd"))))
566 (build-system ruby-build-system)
567 (arguments
568 `(#:tests? #f)) ; no test suite
569 (synopsis "Daemonize Ruby programs")
570 (description "Daemons provides a way to wrap existing Ruby scripts to be
571run as a daemon and to be controlled by simple start/stop/restart commands.")
572 (home-page "https://github.com/thuehlinger/daemons")
573 (license license:expat)))
66e20863
DT
574
575(define-public ruby-git
576 (package
577 (name "ruby-git")
578 (version "1.2.9.1")
579 (source (origin
580 (method url-fetch)
581 (uri (string-append
582 "https://github.com/schacon/ruby-git/archive/v"
583 version ".tar.gz"))
584 (file-name (string-append name "-" version ".tar.gz"))
585 (sha256
586 (base32
587 "08zg20zc7f7yy34ix2qdd8jbiz7xhjc8alk370869sq3h75hs9jc"))))
588 (build-system ruby-build-system)
589 (arguments
590 '(#:phases (modify-phases %standard-phases
591 (add-before 'build 'patch-git-binary
592 (lambda* (#:key inputs #:allow-other-keys)
593 ;; Make the default git binary an absolute path to the
594 ;; store.
595 (let ((git (string-append (assoc-ref inputs "git")
596 "/bin/git")))
597 (substitute* '("lib/git/config.rb")
598 (("'git'")
599 (string-append "'" git "'")))
600 ;; Fix a test that expects the binary to be simply
601 ;; 'git'.
602 (substitute* '("tests/units/test_logger.rb")
603 (("def test_logger")
604 (string-append
605 "def test_logger\n"
606 "Git::Base.config.binary_path = 'git'")))
607 #t)))
608 (add-before 'check 'create-fake-home
609 (lambda _
610 ;; The test suite runs 'git config --global' commands,
611 ;; so a fake home directory is needed for them to
612 ;; succeed.
613 (let ((fake-home (string-append (getcwd) "/fake-home")))
614 (mkdir fake-home)
615 (setenv "HOME" fake-home)))))))
616 (inputs
617 `(("git" ,git)))
618 (synopsis "Ruby wrappers for Git")
619 (description "Ruby/Git is a Ruby library that can be used to create, read
620and manipulate Git repositories by wrapping system calls to the git binary.")
621 (home-page "https://github.com/schacon/ruby-git")
622 (license license:expat)))