Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
45cba2e2
Commit
45cba2e2
authored
Jul 20, 2013
by
Carson McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail if dependency isn't found
parent
bc843ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tasks/mrbgem_spec.rake
tasks/mrbgem_spec.rake
+7
-0
No files found.
tasks/mrbgem_spec.rake
View file @
45cba2e2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment