summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-07-21 17:06:02 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-07-21 17:06:02 -0700
commit9ddb2253d02d6a4f3bdef2e17fb492ce53b799fc (patch)
treea4496ec575ffa5aeac338f5f3a6f6b06b13fa42e /tasks
parent7d28f30b61725330831e73768fb2464bce5b7b48 (diff)
parent45cba2e27f549802f5f9e017c4708367d958093a (diff)
downloadmruby-9ddb2253d02d6a4f3bdef2e17fb492ce53b799fc.tar.gz
mruby-9ddb2253d02d6a4f3bdef2e17fb492ce53b799fc.zip
Merge pull request #1395 from carsonmcdonald/fixdepcheck
Fail if dependency isn't found
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mrbgem_spec.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/mrbgem_spec.rake b/tasks/mrbgem_spec.rake
index 3363b4885..df55e749f 100644
--- a/tasks/mrbgem_spec.rake
+++ b/tasks/mrbgem_spec.rake
@@ -275,13 +275,20 @@ module MRuby
req_versions = dep[:requirements]
# check each GEM dependency against all available GEMs
+ found_dep_gem = false
each do |dep_g|
if name == dep_g.name
unless dep_g.version_ok?(req_versions)
fail "#{name} version should be #{req_versions.join(' and ')} but was '#{dep_g.version}'"
end
+
+ found_dep_gem = true
+ break
end
end
+
+ fail "The GEM '#{g.name}' depends on the GEM '#{name}' but it could not be found" unless found_dep_gem
+
end
end
end