repo.or.cz
/
mruby.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
1cbbb7e
)
Add test dependencies
author
Seba Gamboa
<
[email protected]
>
Wed, 9 Sep 2015 16:33:42 +0000
(9 13:33 -0300)
committer
Seba Gamboa
<
[email protected]
>
Wed, 9 Sep 2015 16:33:42 +0000
(9 13:33 -0300)
tasks/mrbgem_spec.rake
patch
|
blob
|
blame
|
history
diff --git
a/tasks/mrbgem_spec.rake
b/tasks/mrbgem_spec.rake
index
74aa5b8
..
f6fe1fe
100644
(file)
--- a/
tasks/mrbgem_spec.rake
+++ b/
tasks/mrbgem_spec.rake
@@
-103,6
+103,10
@@
module MRuby
@dependencies << {:gem => name, :requirements => requirements, :default => default_gem}
end
+ def add_test_dependency(*args)
+ add_dependency(*args) if build.test_enabled?
+ end
+
def add_conflict(name, *req)
@conflicts << {:gem => name, :requirements => req.empty? ? nil : req}
end