summaryrefslogtreecommitdiffhomepage
path: root/doc/mrbgems/README.md
diff options
context:
space:
mode:
authorDaniel Bovensiepen <[email protected]>2012-09-22 15:42:29 +0800
committerDaniel Bovensiepen <[email protected]>2012-09-22 15:42:29 +0800
commit62b652c2925b2f71972b201a8134cf22183102b0 (patch)
tree0771594b04a73e2b63bc232fe159da543d10ea6f /doc/mrbgems/README.md
parent7b8b3c0213eb71df0a10493111ccb383b31b9731 (diff)
downloadmruby-62b652c2925b2f71972b201a8134cf22183102b0.tar.gz
mruby-62b652c2925b2f71972b201a8134cf22183102b0.zip
Catch some corner cases
Diffstat (limited to 'doc/mrbgems/README.md')
-rw-r--r--doc/mrbgems/README.md54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md
new file mode 100644
index 000000000..e23ffdcf2
--- /dev/null
+++ b/doc/mrbgems/README.md
@@ -0,0 +1,54 @@
+# mrbgems
+
+mrbgems is a library manager to integrate C and Ruby extension in an easy and
+standardized way into mruby.
+
+## GEM Structure
+
++- GEM_NAME <- Name of Gem
+ |
+ +- mrblib/ <- Source for Ruby extension
+ |
+ +- src/ <- Source for C extension
+ |
+ +- test/ <- Test code (Ruby)
+ |
+ +- Makefile <- Makefile for Gem
+ |
+ +- README.md <- Readme for Gem
+
+## C Extension
+
+### Example
+
++- c_extension_example/
+ |
+ +- src/
+ | |
+ | +- example.c <- C extension source
+ |
+ +- test/
+ | |
+ | +- example.rb <- Test code for C extension
+ |
+ +- Makefile <- Build rules for C extension
+ |
+ +- README.md
+
+## Ruby Extension
+
+### Example
+
++- ruby_extension_example/
+ |
+ +- mrblib/
+ | |
+ | +- example.rb <- Ruby extension source
+ |
+ +- test/
+ | |
+ | +- example.rb <- Test code for Ruby extension
+ |
+ +- Makefile
+ |
+ +- README.md