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
b754cf1f
Commit
b754cf1f
authored
May 02, 2013
by
Daniel Bovensiepen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Gem::Specification for support of dependencies and requirements
parent
fd2e32e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
tasks/mrbgem_spec.rake
tasks/mrbgem_spec.rake
+12
-0
No files found.
tasks/mrbgem_spec.rake
View file @
b754cf1f
...
...
@@ -30,6 +30,9 @@ module MRuby
attr_accessor
:bins
attr_accessor
:requirements
attr_reader
:dependencies
attr_block
MRuby
::
Build
::
COMMANDS
def
initialize
(
name
,
&
block
)
...
...
@@ -63,6 +66,9 @@ module MRuby
@bins
=
[]
@requirements
=
[]
@dependencies
=
[]
instance_eval
(
&
@initializer
)
if
!
name
||
!
licenses
||
!
authors
...
...
@@ -80,6 +86,12 @@ module MRuby
define_gem_init_builder
end
def
add_dependency
(
name
,
*
requirements
)
requirements
=
[
'> 0.0.0'
]
if
requirements
.
empty?
requirements
.
flatten!
@dependencies
<<
[
:gem
=>
name
,
:requirements
=>
requirements
]
end
def
self
.
bin
=
(
bin
)
@bins
=
[
bin
].
flatten
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