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
bb7d404e
Commit
bb7d404e
authored
May 02, 2013
by
Daniel Bovensiepen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more documentation for Gem::Specification
parent
b754cf1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
doc/mrbgems/README.md
doc/mrbgems/README.md
+31
-0
No files found.
doc/mrbgems/README.md
View file @
bb7d404e
...
@@ -98,6 +98,37 @@ The mrbgems build process will use this specification to compile Object and Ruby
...
@@ -98,6 +98,37 @@ 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
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.
by tools like
`mruby`
and
`mirb`
to empower the GEM functionality.
The following properties can be set inside of your
`MRuby::Gem::Specification`
for
information purpose:
*
spec.license or spec.licenses (License [String] or Licenses [Array] for this GEM)
*
spec.author or spec.authors (Developer names author [String] authors [Array])
*
spec.version (Current Version [String]
*
spec.description (Detailed description [String])
*
spec.summary (Short summary [String])
*
spec.homepage (Homepage [String])
*
spec.requirements
It is required for every GEM to have a license and an author!
In case your GEM is depending on other GEMs please use
`spec.add_dependency(gem, requirements)`
like:
MRuby::Gem::Specification.new('c_and_ruby_extension_example') do |spec|
spec.license = 'MIT'
spec.authors = 'mruby developers'
# add GEM dependency parser.
# Version has to be between 1.0.0 and 1.5.2
spec.add_dependency('parser', '> 1.0.0', '< 1.5.2')
end
The usage of versions is optional.
__ATTENTION__
The dependency system is currently (May 2013) under development and doesn't check
or resolve dependencies for now!
In case your GEM has more complex build requirements you can use
In case your GEM has more complex build requirements you can use
the following options additionally inside of your GEM specification:
the following options additionally inside of your GEM specification:
...
...
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