summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2019-04-22Merge pull request #4356 from shuujii/add-assert_match-and-assert_not_matchYukihiro "Matz" Matsumoto
Add `assert_match` and `assert_not_match`
2019-04-21Commented out `String#scan` because it is not implemented yetKOBAYASHI Shuji
2019-04-17Add `Array#sample` testKOBAYASHI Shuji
And simplify tests for `Array#shuffle` and `Array#shuffle!`.
2019-04-16Merge branch 'master' into fix_mruby-io_testShokuji
2019-04-15Fix missing assertions in `mruby-random` testKOBAYASHI Shuji
2019-04-15Fix test, popen and cmd in mruby-ioShouji Kuboyama
2019-04-14Merge pull request #4376 from dearblue/leak-symbolsYukihiro "Matz" Matsumoto
Fix leaked function symbols
2019-04-14Add `assert_match` and `assert_not_match`KOBAYASHI Shuji
2019-04-14Fix leaked function symbolsdearblue
- `free_heap()` in src/gc.c - `symhash()` in src/symbol.c - `no_optimize()` in mrbgems/mruby-compiler/core/codegen.c
2019-04-14Fix string index for appendingdearblue
`sizeof(string-literal)` is included `'\0'` character
2019-04-14Fix hexdigits convertiondearblue
2019-04-12Deallocate `s->lines` in `codegen_error`; ref #4370Yukihiro "Matz" Matsumoto
2019-04-12The number of local variables should be less than 1024; fix #4370Yukihiro "Matz" Matsumoto
The `env` stores stack length in a 10 bit field. See `MRB_ENV_STACK_LEN()` macro.
2019-04-11Fix buffer overflows in parser.Clayton Smith
2019-04-10Merge pull request #4367 from shuujii/extract-frozen-checking-to-functionYukihiro "Matz" Matsumoto
Extract frozen checking to function
2019-04-10Fixed old style declaration; ref #4365Yukihiro "Matz" Matsumoto
2019-04-10Rename `itoa` to `dump_int` to avoid name crash; ref #4173Yukihiro "Matz" Matsumoto
2019-04-09Extract frozen checking to functionKOBAYASHI Shuji
2019-04-08Avoid using `snprintf` when `MRB_DISABLE_STDIO` is set; fix #4173Yukihiro "Matz" Matsumoto
2019-04-06Move `Array#(append|prepend)` from core to `mruby-ary-ext`KOBAYASHI Shuji
They are not included in ISO standard.
2019-04-04Use `mrb_proc_arity` instead of `Proc#arity` call in `Method#arity`KOBAYASHI Shuji
2019-04-01Avoid keeping pointers from `mrb_sym2name_len()`; fix #4342Yukihiro "Matz" Matsumoto
The addresses for packed inline symbols reference `mrb->symbuf` that could be overridden by the later call of `mrb_sym2name_len`. Since file names in call stack information are kept as symbols, keeping the address in the C structures could cause problems like #4342. This changes small incompatible changes in function prototypes: * `mrb_parser_get_filename`: return value changed to `mrb_sym`. * `mrb_debug_get_filename`: add `mrb_state*` as a first argument. * `mrb_debug_get_line`: ditto. I believe above functions are almost internal, and no third-party mrbgem use them.
2019-03-29Fix missing assertions in `mruby-math` testKOBAYASHI Shuji
2019-03-28Use `Mrbtest::FLOAT_TOLERANCE` instead of `Math::TORELANCE`; ref #4345Yukihiro "Matz" Matsumoto
2019-03-28Break loop whem `sum==0` to avoid zero division; ref #4345Yukihiro "Matz" Matsumoto
2019-03-28Use `DBL_EPSILON` instead of `1E-12`; ref #4345Yukihiro "Matz" Matsumoto
2019-03-25Use uppercase version of `ctype` macros e.g. `ISSPACE`; fix #4338Yukihiro "Matz" Matsumoto
2019-03-23Refactor `t_print` for testKOBAYASHI Shuji
2019-03-19Use `FrozenError` instead of `RuntimeError` in frozen object modification testKOBAYASHI Shuji
2019-03-17Fix class/instance variable name validationKOBAYASHI Shuji
- `@@?` etc are invalid class variable name. - `@1` etc are invalid instance variable name.
2019-03-15Use `FrozenError` instead of `RuntimeError` in `String#rstrip!`KOBAYASHI Shuji
2019-03-13Do not raise an exception when bintest failKOBAYASHI Shuji
- An exception do not raise when mrbtest fail. - There are no useful informations in exception message and backtrace.
2019-03-12Merge pull request #4322 from shuujii/reduce-String-creation-in-checking-nameYukihiro "Matz" Matsumoto
Reduce `String` creation in `check_(cv|const)_name_sym`
2019-03-12Fix missing assertions in `mruby-string-ext` testKOBAYASHI Shuji
2019-03-11Reduce `String` creation in `check_(cv|const)_name_sym`KOBAYASHI Shuji
2019-03-07Add a missing file for #4314KOBAYASHI Shuji
2019-03-02Free `struct mrb_time` before error; fix #4308Yukihiro "Matz" Matsumoto
To avoid memory leak from `time_update_datetime`.
2019-02-28Add `warning: ` prefix to parser warning messageKOBAYASHI Shuji
2019-02-28Remove unnecessary backticks; ref #4301Yukihiro "Matz" Matsumoto
2019-02-28Merge pull request #4301 from shuujii/remove-unnecessary-backticksYukihiro "Matz" Matsumoto
Remove unnecessary backticks; ref #2858
2019-02-27Compositing `NODE_DSTR` and `NODE_DSTR`dearblue
2019-02-27Compositing `NODE_DSTR` and `NODE_STR`dearblue
2019-02-27Compositing `NODE_STR` and `NODE_DSTR`dearblue
2019-02-27Replacement to function for composite two string nodesdearblue
2019-02-27Replacement to function for `NODE_STR` chekingdearblue
2019-02-27Compositing `NODE_STR` and `NODE_STR`dearblue
2019-02-27Concatenate string literalsdearblue
2019-02-27Remove unnecessary backticks; ref #2858KOBAYASHI Shuji
2019-02-27Use `yywarning()` instead of `yywarning_s()` for `MRB_WITHOUT_FLOAT`KOBAYASHI Shuji
2019-02-26Remove unneeded `const_defined?(:Time)` in `mruby-io` testKOBAYASHI Shuji
`mruby-time` is included in test dependencies.