aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-11-20 12:12:47 +0100
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-11-20 15:21:24 +0100
commit4016ba3fd0a38e0a300890aa0a6ad01147f8e9aa (patch)
tree1878102751f47f518dbf8f2cccaae107aa9512b7 /gnu/packages
parent21f7b7bd802fd997e71f41183a6b1125b29f8887 (diff)
downloadguix-4016ba3fd0a38e0a300890aa0a6ad01147f8e9aa.tar
guix-4016ba3fd0a38e0a300890aa0a6ad01147f8e9aa.tar.gz
gnu: Add ruby-instantiator.
* gnu/packages/ruby.scm (ruby-instantiator): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ruby.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5b893c5d29..cf5739a6b0 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1149,6 +1149,42 @@ as a base class when writing classes that depend upon
(home-page "http://github.com/masover/blankslate")
(license license:expat)))
+(define-public ruby-instantiator
+ (package
+ (name "ruby-instantiator")
+ (version "0.0.6")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "instantiator" version))
+ (sha256
+ (base32
+ "0mfmqhg9xrv9i8i1kmphf15ywddhivyh2z3ccl0xjw8qy54zr21i"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'add-test-unit-to-search-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "Rakefile"
+ (("t\\.libs << \"test\"" line)
+ (string-append line "; t.libs << \""
+ (assoc-ref inputs "ruby-test-unit")
+ "/lib/ruby/gems/2.2.0/gems/test-unit-"
+ ,(package-version ruby-test-unit)
+ "/lib\"")))
+ #t)))))
+ (propagated-inputs
+ `(("ruby-blankslate" ,ruby-blankslate)))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-test-unit" ,ruby-test-unit)))
+ (synopsis "Instantiate an arbitrary Ruby class")
+ (description
+ "Instantiator lets you instantiate an arbitrary Ruby class without
+knowing anything about the constructor.")
+ (home-page "https://github.com/floehopper/instantiator")
+ (license license:expat)))
+
(define-public ruby-minitest
(package
(name "ruby-minitest")