summaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2013-05-02 13:42:26 +0800
committerDaniel Bovensiepen <[email protected]>2013-05-02 13:42:26 +0800
commitbb7d404e64e155f2c3c966c6ad621ba5b78dbb09 (patch)
tree6c415f35404e0bece113f7198cb47a4b54585e52 /doc
parentb754cf1f6799197294076b6911b028f37af532ec (diff)
downloadmruby-bb7d404e64e155f2c3c966c6ad621ba5b78dbb09.tar.gz
mruby-bb7d404e64e155f2c3c966c6ad621ba5b78dbb09.zip
Add more documentation for Gem::Specification
Diffstat (limited to 'doc')
-rw-r--r--doc/mrbgems/README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md
index 1ad39a02b..5b43ccff2 100644
--- a/doc/mrbgems/README.md
+++ b/doc/mrbgems/README.md
@@ -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
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
the following options additionally inside of your GEM specification: