mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
@@ -17,7 +17,7 @@ of the Ministry of Economy, Trade and Industry of Japan.
|
||||
|
||||
## How to get mruby
|
||||
|
||||
The stable version 1.2.0 of mruby can be downloaded via the following URL: [https://github.com/mruby/mruby/archive/1.2.0.zip](https://github.com/mruby/mruby/archive/1.2.0.zip)
|
||||
The stable version 1.3.0 of mruby can be downloaded via the following URL: [https://github.com/mruby/mruby/archive/1.3.0.zip](https://github.com/mruby/mruby/archive/1.3.0.zip)
|
||||
|
||||
The 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)
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ To confirm mrdb was installed properly, run mrdb with the `--version` option:
|
||||
|
||||
```bash
|
||||
$ mrdb --version
|
||||
mruby 1.2.0 (2014-11-17)
|
||||
mruby 1.3.0 (2017-7-4)
|
||||
```
|
||||
|
||||
## 2.2 Basic Operation
|
||||
|
||||
+8
-8
@@ -38,7 +38,7 @@ puts [1,2,3]
|
||||
3
|
||||
```
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
```
|
||||
[1, 2, 3]
|
||||
@@ -61,7 +61,7 @@ end
|
||||
|
||||
```ZeroDivisionError``` is raised.
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
No exception is raised.
|
||||
|
||||
@@ -77,7 +77,7 @@ def test; eval 'test'; end; test
|
||||
|
||||
```SystemStackError``` is raised.
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
Segmentation fault.
|
||||
|
||||
@@ -105,7 +105,7 @@ p Liste.new "foobar"
|
||||
|
||||
``` [] ```
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
```ArgumentError``` is raised.
|
||||
|
||||
@@ -135,7 +135,7 @@ false
|
||||
true
|
||||
```
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
```
|
||||
true
|
||||
@@ -158,7 +158,7 @@ defined?(Foo)
|
||||
nil
|
||||
```
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
```NameError``` is raised.
|
||||
|
||||
@@ -175,7 +175,7 @@ alias $a $__a__
|
||||
|
||||
``` nil ```
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
Syntax error
|
||||
|
||||
@@ -197,7 +197,7 @@ end
|
||||
```ArgumentError``` is raised.
|
||||
The re-defined ```+``` operator does not accept any arguments.
|
||||
|
||||
#### mruby [1.2.0 (2015-11-17)]
|
||||
#### mruby [1.3.0 (2017-7-4)]
|
||||
|
||||
``` 'ab' ```
|
||||
Behavior of the operator wasn't changed.
|
||||
|
||||
@@ -62,17 +62,17 @@ MRB_BEGIN_DECL
|
||||
/*
|
||||
* Release year.
|
||||
*/
|
||||
#define MRUBY_RELEASE_YEAR 2015
|
||||
#define MRUBY_RELEASE_YEAR 2017
|
||||
|
||||
/*
|
||||
* Release month.
|
||||
*/
|
||||
#define MRUBY_RELEASE_MONTH 11
|
||||
#define MRUBY_RELEASE_MONTH 7
|
||||
|
||||
/*
|
||||
* Release day.
|
||||
*/
|
||||
#define MRUBY_RELEASE_DAY 17
|
||||
#define MRUBY_RELEASE_DAY 4
|
||||
|
||||
/*
|
||||
* Release date as a string.
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@ require 'test/assert.rb'
|
||||
|
||||
def cmd(s)
|
||||
case RbConfig::CONFIG['host_os']
|
||||
when /mswin(?!ce)|mingw|cygwin|bccwin/
|
||||
when /mswin(?!ce)|mingw|bccwin/
|
||||
"bin\\#{s}.exe"
|
||||
else
|
||||
"bin/#{s}"
|
||||
@@ -12,7 +12,7 @@ end
|
||||
|
||||
def shellquote(s)
|
||||
case RbConfig::CONFIG['host_os']
|
||||
when /mswin(?!ce)|mingw|cygwin|bccwin/
|
||||
when /mswin(?!ce)|mingw|bccwin/
|
||||
"\"#{s}\""
|
||||
else
|
||||
"'#{s}'"
|
||||
@@ -21,7 +21,7 @@ end
|
||||
|
||||
ARGV.each do |gem|
|
||||
case RbConfig::CONFIG['host_os']
|
||||
when /mswin(?!ce)|mingw|cygwin|bccwin/
|
||||
when /mswin(?!ce)|mingw|bccwin/
|
||||
gem = gem.gsub('\\', '/')
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user