diff options
| author | dearblue <[email protected]> | 2020-12-21 21:45:37 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2020-12-21 21:48:50 +0900 |
| commit | 6c1c2041ef81ea1ba3e96c93c40bfdf9fbc26602 (patch) | |
| tree | 2c7095ab1d560117c93c06fab498714f49be3b95 /mrbgems/stdlib.gembox | |
| parent | 788ee38bdf4ab5fc95028a9ee482313e98610f99 (diff) | |
| download | mruby-6c1c2041ef81ea1ba3e96c93c40bfdf9fbc26602.tar.gz mruby-6c1c2041ef81ea1ba3e96c93c40bfdf9fbc26602.zip | |
Take advantage of gembox
I think that it is easy to use if it is divided according to the type of library and the general purpose.
It is a subdivision from the previous `default.gembox`.
By type gembox:
- `stdlib`: Add some standard Ruby methods not provided by core.
- `stdlib-ext`: Add some standard Ruby methods that are not provided by `stdlib`.
- `stdlib-io`: Provides `IO`, `File`, `Socket`, `print`, etc. Conflict with `MRB_NO_STDIO`
- `math`: Add a class related to math. Conflict with `MRB_NO_FLOAT`
- `metaprog`: Adds features related to metaprogramming.
Purpose gembox:
- `default.gembox`: Import the same gems as before
- `default-no-stdio.gembox`: Import the` stdlib` and `math`
- `default-no-fpu.gembox`: Import the` stdlib` only
Diffstat (limited to 'mrbgems/stdlib.gembox')
| -rw-r--r-- | mrbgems/stdlib.gembox | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mrbgems/stdlib.gembox b/mrbgems/stdlib.gembox new file mode 100644 index 000000000..72fb9e343 --- /dev/null +++ b/mrbgems/stdlib.gembox @@ -0,0 +1,54 @@ +# It also works with MRB_NO_STDIO and MRB_NO_FLOAT. + +MRuby::GemBox.new do |conf| + # Use Comparable module extension + conf.gem :core => "mruby-compar-ext" + + # Use Enumerable module extension + conf.gem :core => "mruby-enum-ext" + + # Use String class extension + conf.gem :core => "mruby-string-ext" + + # Use Numeric class extension + conf.gem :core => "mruby-numeric-ext" + + # Use Array class extension + conf.gem :core => "mruby-array-ext" + + # Use Hash class extension + conf.gem :core => "mruby-hash-ext" + + # Use Range class extension + conf.gem :core => "mruby-range-ext" + + # Use Proc class extension + conf.gem :core => "mruby-proc-ext" + + # Use Symbol class extension + conf.gem :core => "mruby-symbol-ext" + + # Use Object class extension + conf.gem :core => "mruby-object-ext" + + # Use ObjectSpace class + conf.gem :core => "mruby-objectspace" + + # Use Fiber class + conf.gem :core => "mruby-fiber" + + # Use Enumerator class (require mruby-fiber) + conf.gem :core => "mruby-enumerator" + + # Use Enumerator::Lazy class (require mruby-enumerator) + conf.gem :core => "mruby-enum-lazy" + + # Use toplevel object (main) methods extension + conf.gem :core => "mruby-toplevel-ext" + + # Use Kernel module extension + conf.gem :core => "mruby-kernel-ext" + + # Use class/module extension + conf.gem :core => "mruby-class-ext" +end |
