[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/23: gnu: Add ruby-minitest-tu-shim.
From: |
Ricardo Wurmus |
Subject: |
03/23: gnu: Add ruby-minitest-tu-shim. |
Date: |
Mon, 14 Dec 2015 13:10:47 +0000 |
rekado pushed a commit to branch master
in repository guix.
commit d8cafe29dfc33b7a114a820f782dd5fbb7ea0e32
Author: Ricardo Wurmus <address@hidden>
Date: Wed Nov 25 15:31:09 2015 +0100
gnu: Add ruby-minitest-tu-shim.
* gnu/packages/ruby.scm (ruby-minitest-tu-shim): New variable.
---
gnu/packages/ruby.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 58478e5..d3b3d39 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1944,6 +1944,51 @@ development of Ruby gems.")
(home-page "https://github.com/flori/gem_hadar")
(license license:expat)))
+(define-public ruby-minitest-tu-shim
+ (package
+ (name "ruby-minitest-tu-shim")
+ (version "1.3.3")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "minitest_tu_shim" version))
+ (sha256
+ (base32
+ "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-test-include-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "Rakefile"
+ (("Hoe\\.add_include_dirs .*")
+ (string-append "Hoe.add_include_dirs \""
+ (assoc-ref inputs "ruby-minitest-4")
+ "/lib/ruby/gems/2.2.0/gems/minitest-"
+ ,(package-version ruby-minitest-4)
+ "/lib" "\"")))))
+ (add-before 'check 'fix-test-assumptions
+ (lambda _
+ ;; The test output includes the file name, so a couple of tests
+ ;; fail. Changing the regular expressions slightly fixes this
+ ;; problem.
+ (substitute* "test/test_mini_test.rb"
+ (("output.sub!\\(.*, 'FILE:LINE'\\)")
+ "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
+ (("gsub\\(/.*, 'FILE:LINE'\\)")
+ "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
+ #t)))))
+ (propagated-inputs
+ `(("ruby-minitest-4" ,ruby-minitest-4)))
+ (native-inputs
+ `(("ruby-hoe" ,ruby-hoe)))
+ (synopsis "Adapter library between minitest and test/unit")
+ (description
+ "This library bridges the gap between the small and fast minitest and
+Ruby's large and slower test/unit.")
+ (home-page "https://rubygems.org/gems/minitest_tu_shim")
+ (license license:expat)))
+
(define-public ruby-json
(package
(name "ruby-json")
- branch master updated (9c1c2a7 -> 0c4e762), Ricardo Wurmus, 2015/12/14
- 01/23: gnu: Add ruby-minitest-4., Ricardo Wurmus, 2015/12/14
- 03/23: gnu: Add ruby-minitest-tu-shim.,
Ricardo Wurmus <=
- 04/23: gnu: Add ruby-term-ansicolor., Ricardo Wurmus, 2015/12/14
- 08/23: gnu: Add ruby-saikuro-treemap., Ricardo Wurmus, 2015/12/14
- 05/23: gnu: Add ruby-pstree., Ricardo Wurmus, 2015/12/14
- 13/23: gnu: Add ruby-unf-ext., Ricardo Wurmus, 2015/12/14
- 12/23: gnu: Add ruby-netrc., Ricardo Wurmus, 2015/12/14
- 06/23: gnu: Add ruby-utils., Ricardo Wurmus, 2015/12/14
- 07/23: gnu: Add ruby-json-pure., Ricardo Wurmus, 2015/12/14
- 02/23: gnu: Add ruby-gem-hadar., Ricardo Wurmus, 2015/12/14
- 15/23: gnu: Add ruby-nokogiri-diff., Ricardo Wurmus, 2015/12/14
- 09/23: gnu: Add ruby-rb-fsevent., Ricardo Wurmus, 2015/12/14