Unverified Commit 730b9253 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4184 from mruby/stable

Release mruby 2.0.0
parents 60da293d 1c09046c
...@@ -17,7 +17,7 @@ of the Ministry of Economy, Trade and Industry of Japan. ...@@ -17,7 +17,7 @@ of the Ministry of Economy, Trade and Industry of Japan.
## How to get mruby ## How to get mruby
The stable version 1.4.1 of mruby can be downloaded via the following URL: [https://github.com/mruby/mruby/archive/1.4.1.zip](https://github.com/mruby/mruby/archive/1.4.1.zip) The stable version 2.0.0 of mruby can be downloaded via the following URL: [https://github.com/mruby/mruby/archive/2.0.0.zip](https://github.com/mruby/mruby/archive/2.0.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) 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: ...@@ -38,7 +38,7 @@ To confirm mrdb was installed properly, run mrdb with the `--version` option:
```bash ```bash
$ mrdb --version $ mrdb --version
mruby 1.4.1 (2018-4-27) mruby 2.0.0 (2018-12-11)
``` ```
## 2.2 Basic Operation ## 2.2 Basic Operation
......
...@@ -38,7 +38,7 @@ puts [1,2,3] ...@@ -38,7 +38,7 @@ puts [1,2,3]
3 3
``` ```
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
``` ```
[1, 2, 3] [1, 2, 3]
...@@ -61,7 +61,7 @@ end ...@@ -61,7 +61,7 @@ end
```ZeroDivisionError``` is raised. ```ZeroDivisionError``` is raised.
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
No exception is raised. No exception is raised.
...@@ -119,7 +119,7 @@ false ...@@ -119,7 +119,7 @@ false
true true
``` ```
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
``` ```
true true
...@@ -142,7 +142,7 @@ defined?(Foo) ...@@ -142,7 +142,7 @@ defined?(Foo)
nil nil
``` ```
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
```NameError``` is raised. ```NameError``` is raised.
...@@ -159,7 +159,7 @@ alias $a $__a__ ...@@ -159,7 +159,7 @@ alias $a $__a__
``` nil ``` ``` nil ```
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
Syntax error Syntax error
...@@ -181,7 +181,7 @@ end ...@@ -181,7 +181,7 @@ end
```ArgumentError``` is raised. ```ArgumentError``` is raised.
The re-defined ```+``` operator does not accept any arguments. The re-defined ```+``` operator does not accept any arguments.
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
``` 'ab' ``` ``` 'ab' ```
Behavior of the operator wasn't changed. Behavior of the operator wasn't changed.
...@@ -197,7 +197,7 @@ $ ruby -e 'puts Proc.new {}.binding' ...@@ -197,7 +197,7 @@ $ ruby -e 'puts Proc.new {}.binding'
#<Binding:0x00000e9deabb9950> #<Binding:0x00000e9deabb9950>
``` ```
#### mruby [1.4.1 (2018-4-27)] #### mruby [2.0.0 (2018-12-11)]
``` ```
$ ./bin/mruby -e 'puts Proc.new {}.binding' $ ./bin/mruby -e 'puts Proc.new {}.binding'
......
...@@ -67,12 +67,12 @@ MRB_BEGIN_DECL ...@@ -67,12 +67,12 @@ MRB_BEGIN_DECL
/* /*
* Release month. * Release month.
*/ */
#define MRUBY_RELEASE_MONTH 4 #define MRUBY_RELEASE_MONTH 12
/* /*
* Release day. * Release day.
*/ */
#define MRUBY_RELEASE_DAY 27 #define MRUBY_RELEASE_DAY 11
/* /*
* Release date as a string. * Release date as a string.
......
...@@ -230,7 +230,7 @@ usage(const char *name) ...@@ -230,7 +230,7 @@ usage(const char *name)
{ {
static const char *const usage_msg[] = { static const char *const usage_msg[] = {
"switches:", "switches:",
"-d set $DEBUG to true (same as `mruby -d`)" "-d set $DEBUG to true (same as `mruby -d`)",
"-r library same as `mruby -r`", "-r library same as `mruby -r`",
"-v print version number, then run in verbose mode", "-v print version number, then run in verbose mode",
"--verbose run in verbose mode", "--verbose run in verbose mode",
......
...@@ -41,7 +41,7 @@ usage(const char *name) ...@@ -41,7 +41,7 @@ usage(const char *name)
"switches:", "switches:",
"-b load and execute RiteBinary (mrb) file", "-b load and execute RiteBinary (mrb) file",
"-c check syntax only", "-c check syntax only",
"-d set debugging flags (set $DEBUG to true)" "-d set debugging flags (set $DEBUG to true)",
"-e 'command' one line of script", "-e 'command' one line of script",
"-r library load the library before executing your script", "-r library load the library before executing your script",
"-v print version number, then run in verbose mode", "-v print version number, then run in verbose mode",
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#include <windows.h> #include <windows.h>
#include <winerror.h>
#define SHUT_RDWR SD_BOTH #define SHUT_RDWR SD_BOTH
#ifndef _SSIZE_T_DEFINED #ifndef _SSIZE_T_DEFINED
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment