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
8d54977d
Commit
8d54977d
authored
Jun 22, 2015
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add :mgem gem loader to load mrbgem from mgem-list (
https://github.com/mruby/mgem-list
).
parent
7cf94bac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
tasks/mruby_build_gem.rake
tasks/mruby_build_gem.rake
+20
-0
No files found.
tasks/mruby_build_gem.rake
View file @
8d54977d
...
...
@@ -52,6 +52,26 @@ module MRuby
else
params
[
:git
]
=
"https://bitbucket.org/
#{
params
[
:bitbucket
]
}
.git"
end
elsif
params
[
:mgem
]
mgem_list_dir
=
"
#{
gem_clone_dir
}
/mgem-list"
mgem_list_url
=
'https://github.com/mruby/mgem-list.git'
if
File
.
exist?
mgem_list_dir
git
.
run_pull
mgem_list_dir
,
mgem_list_url
if
$pull_gems
else
FileUtils
.
mkdir_p
mgem_list_dir
git
.
run_clone
mgem_list_dir
,
mgem_list_url
end
require
'yaml'
conf_path
=
"
#{
mgem_list_dir
}
/
#{
params
[
:mgem
]
}
.gem"
conf_path
=
"
#{
mgem_list_dir
}
/mruby-
#{
params
[
:mgem
]
}
.gem"
unless
File
.
exist?
conf_path
fail
"mgem not found:
#{
params
[
:mgem
]
}
"
unless
File
.
exist?
conf_path
conf
=
YAML
.
load
File
.
read
conf_path
fail
"unknown mgem protocol:
#{
conf
[
'protocol'
]
}
"
if
conf
[
'protocol'
]
!=
'git'
params
[
:git
]
=
conf
[
'repository'
]
params
[
:branch
]
=
conf
[
'branch"] if conf["branch'
]
end
if
params
[
:core
]
...
...
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