• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

benchmark/H19-Oct-2021-472361

doc/H03-May-2022-2,0161,533

examples/H19-Oct-2021-796501

include/H19-Oct-2021-5,7022,950

lib/H19-Oct-2021-1,5001,203

mrbgems/H19-Oct-2021-60,52948,604

mrblib/H19-Oct-2021-1,679959

oss-fuzz/H19-Oct-2021-895821

src/H19-Oct-2021-23,21717,574

tasks/H19-Oct-2021-921797

test/H19-Oct-2021-8,0236,368

AUTHORSH A D19-Oct-20211 KiB4644

CONTRIBUTING.mdH A D19-Oct-20212.6 KiB7651

DoxyfileH A D19-Oct-2021101.8 KiB2,4091,868

LEGALH A D19-Oct-2021179 74

LICENSEH A D19-Oct-20211 KiB2116

MakefileH A D19-Oct-2021188 1610

NEWSH A D19-Oct-2021343 147

README.mdH A D19-Oct-20214.3 KiB10669

RakefileH A D19-Oct-20214.3 KiB161131

TODOH A D19-Oct-2021185 95

appveyor.ymlH A D19-Oct-20211 KiB4028

appveyor_config.rbH A D19-Oct-2021982 4735

build_config.rbH A D19-Oct-20213.8 KiB15330

minirakeH A D19-Oct-202140 31

mruby-source.gemspecH A D19-Oct-2021611 1915

travis_config.rbH A D19-Oct-2021840 4130

README.md

1[![Build Status][build-status-img]][travis-ci]
2
3## What is mruby
4
5mruby is the lightweight implementation of the Ruby language complying to (part
6of) the [ISO standard][ISO-standard]. Its syntax is Ruby 2.x compatible.
7
8mruby can be linked and embedded within your application.  We provide the
9interpreter program "mruby" and the interactive mruby shell "mirb" as examples.
10You can also compile Ruby programs into compiled byte code using the mruby
11compiler "mrbc".  All those tools reside in the "bin" directory.  "mrbc" is
12also able to generate compiled byte code in a C source file, see the "mrbtest"
13program under the "test" directory for an example.
14
15This achievement was sponsored by the Regional Innovation Creation R&D Programs
16of the Ministry of Economy, Trade and Industry of Japan.
17
18## How to get mruby
19
20The stable version 2.1.2 of mruby can be downloaded via the following URL: [https://github.com/mruby/mruby/archive/2.1.2.zip](https://github.com/mruby/mruby/archive/2.1.2.zip)
21
22The latest development version of mruby can be downloaded via the following URL: [https://github.com/mruby/mruby/zipball/master](https://github.com/mruby/mruby/zipball/master)
23
24The trunk of the mruby source tree can be checked out with the
25following command:
26
27    $ git clone https://github.com/mruby/mruby.git
28
29You can also install and compile mruby using [ruby-install](https://github.com/postmodern/ruby-install), [ruby-build](https://github.com/rbenv/ruby-build) or [rvm](https://github.com/rvm/rvm).
30
31## mruby home-page
32
33The URL of the mruby home-page is: https://mruby.org.
34
35## Mailing list
36
37We don't have a mailing list, but you can use [GitHub issues](https://github.com/mruby/mruby/issues).
38
39## How to compile and install (mruby and gems)
40
41See the [compile.md](https://github.com/mruby/mruby/blob/master/doc/guides/compile.md) file.
42
43## Running Tests
44
45To run the tests, execute the following from the project's root directory.
46
47    $ rake test
48
49Note: `bison` bundled with MacOS is too old to compile `mruby`.
50Try `brew install bison` and follow the instuction shown to update
51the `$PATH` to compile `mruby`.
52
53## Building documentation
54
55There are two sets of documentation in mruby: the mruby API (generated by yard) and C API (Doxygen)
56
57To build both of them, simply go
58
59    rake doc
60
61You can also view them in your browser
62
63    rake view_api
64    rake view_capi
65
66## How to customize mruby (mrbgems)
67
68mruby contains a package manager called *mrbgems*. To create extensions
69in C and/or Ruby you should create a *GEM*. For a documentation of how to
70use mrbgems consult the file [mrbgems.md](https://github.com/mruby/mruby/blob/master/doc/guides/mrbgems.md).
71For example code of how to use mrbgems look into the folder *examples/mrbgems/*.
72
73## License
74
75mruby is released under the [MIT License](https://github.com/mruby/mruby/blob/master/LICENSE).
76
77## Note for License
78
79mruby has chosen a MIT License due to its permissive license allowing
80developers to target various environments such as embedded systems.
81However, the license requires the display of the copyright notice and license
82information in manuals for instance. Doing so for big projects can be
83complicated or troublesome.  This is why mruby has decided to display "mruby
84developers" as the copyright name to make it simple conventionally.
85In the future, mruby might ask you to distribute your new code
86(that you will commit,) under the MIT License as a member of
87"mruby developers" but contributors will keep their copyright.
88(We did not intend for contributors to transfer or waive their copyrights,
89Actual copyright holder name (contributors) will be listed in the AUTHORS
90file.)
91
92Please ask us if you want to distribute your code under another license.
93
94## How to Contribute
95
96See the [contribution guidelines][contribution-guidelines], and then send a pull
97request to <http://github.com/mruby/mruby>.  We consider you have granted
98non-exclusive right to your contributed code under MIT license.  If you want to
99be named as one of mruby developers, please include an update to the AUTHORS
100file in your pull request.
101
102[ISO-standard]: http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=59579
103[build-status-img]: https://travis-ci.org/mruby/mruby.svg?branch=master
104[contribution-guidelines]: https://github.com/mruby/mruby/blob/master/CONTRIBUTING.md
105[travis-ci]: https://travis-ci.org/mruby/mruby
106