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
43732ecd
Commit
43732ecd
authored
Jun 02, 2013
by
Carson McDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor wording changes and a couple spelling fixes
parent
5c6d2818
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
doc/mrbgems/README.md
doc/mrbgems/README.md
+8
-8
No files found.
doc/mrbgems/README.md
View file @
43732ecd
...
...
@@ -29,10 +29,10 @@ NOTE: `:bitbucket` option supports only git. Hg is unsupported in this version.
## GemBox
There are instances when you wish to add a collection of gems into mruby at
once, or be able to substitute gems based on configuration, without having to
There are instances when you wish to add a collection of
mrb
gems into mruby at
once, or be able to substitute
mrb
gems based on configuration, without having to
add each gem to the
*build_config.rb*
file. A packaged collection of mrbgems
is called a GemBox. A GemBox is a file that contains a list of gems to load
is called a GemBox. A GemBox is a file that contains a list of
mrb
gems to load
into mruby, in the same format as if you were adding them to
*build_config.rb*
via
`config.gem`
, but wrapped in an
`MRuby::GemBox`
object. GemBoxes are
loaded into mruby via
`config.gembox 'boxname'`
.
...
...
@@ -86,8 +86,8 @@ of your GEM.
## Build process
mrbgems expects a specifcation file called
*mrbgem.rake*
inside of your
GEM direc
ot
ry. A typical GEM specification could look like this for example:
mrbgems expects a specif
i
cation file called
*mrbgem.rake*
inside of your
GEM direc
to
ry. A typical GEM specification could look like this for example:
MRuby::Gem::Specification.new('c_and_ruby_extension_example') do |spec|
spec.license = 'MIT'
...
...
@@ -95,8 +95,8 @@ GEM direcotry. A typical GEM specification could look like this for example:
end
The mrbgems build process will use this specification to compile Object and Ruby
files. The compilation results will be add
to
*lib/libmruby.a*
. This file is used
by tools like
`mruby`
and
`mirb`
to empower the GEM functionality
.
files. The compilation results will be add
ed to
*lib/libmruby.a*
. This file exposes
the GEM functionality to tools like
`mruby`
and
`mirb`
.
The following properties can be set inside of your
`MRuby::Gem::Specification`
for
information purpose:
...
...
@@ -109,7 +109,7 @@ information purpose:
*
`spec.homepage`
(Homepage)
*
`spec.requirements`
(External requirements as information for user)
It is required for every GEM to have a license and an author
!
The license and author properties are required in every GEM
!
In case your GEM is depending on other GEMs please use
`spec.add_dependency(gem, *requirements)`
like:
...
...
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