summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
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.
2019-02-24Move `Object#dig` to `Struct#dig`Wataru Ashihara
This method seems to be mistakenly put into `Object` instead of `Struct` since it's in `struct.rb` and daf83946b says: add #dig to Array,Hash and Struct
2019-02-22Integrate `init_mrbtest.c` to `driver.c` in `mruby-test` mrbgemKOBAYASHI Shuji
- `mrbgemtest_init()` is needed if `DISABLE_GEMS` is enabled because core tests are run as part of `mruby-test` mrbgem (moreover, `DISABLE_GEMS` is disabled when `enable_test` is used in build config). - For the same reason `mrb_open_core()` etc for core tests is unneeded.
2019-02-19Merge pull request #4286 from kimushu/mrdb-local-variablesYukihiro "Matz" Matsumoto
mrdb: add "info locals" command
2019-02-19Use more appropriate assertion methodsKOBAYASHI Shuji
2019-02-19Add "info locals" command to mrdbkimu_shu
2019-02-18Merge pull request #4284 from ↵Yukihiro "Matz" Matsumoto
shuujii/use-assert_same-instead-of-assert_equal-in-enum-reverse_each-test Use `assert_same` instead of `assert_equal` in `Enumerable#reverse_each` test
2019-02-18Fix wrong assertion method in some testsKOBAYASHI Shuji
2019-02-18Use `assert_same` instead of `assert_equal` in `Enumerable#reverse_each` testKOBAYASHI Shuji
2019-02-18Use key argument register for `OP_KEY_P` to reduce register use.Yukihiro "Matz" Matsumoto
2019-02-17Refine dependencies for `mruby-config`KOBAYASHI Shuji
2019-02-12Refine `mrbgems/mruby-bin-config/mrbgem.rake`KOBAYASHI Shuji
- Use `MRuby::Gem::Specification` - Fix a binary name is added to `MRuby::Build#bins` multiple times - Close file immediately (avoid using `open(...).read`) - Simplify
2019-02-12Disable `Symbol.all_symbols`.Yukihiro "Matz" Matsumoto
2019-02-12Implement inline packed symbols.Yukihiro "Matz" Matsumoto
Small symbols with all alphanumeric characters (<5) are packed in 32bit symbol integer a la base64. This means those small symbols are not listed in `Symbol.all_symbols`.
2019-02-11Small refactoring in `codegen.c`KOBAYASHI Shuji
2019-02-08Add `NoMethodError` tests to `mruby-enumerator`KOBAYASHI Shuji
2019-02-08Update `mruby-enumerator` test to conform the last update.Yukihiro "Matz" Matsumoto
2019-02-08Update #4265 patch.Yukihiro "Matz" Matsumoto
* Update doc comment to clarify `Enumerator.new` without a block is deprecated and left only for internal use. * Fixed some cases `mruby` raise `ArgumentError` too eagerly compared with `CRuby`.
2019-02-08Fix `Enumerator#(initialize|inspect)` for `nil`/`false`KOBAYASHI Shuji
2019-02-08Merge pull request #4251 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-no-meaning-statements-in-mruby-io-tests Remove no meaning statements in `mruby-io` tests
2019-02-07Add `OP_ENTER` to blocks without parameters; fix #4175Yukihiro "Matz" Matsumoto
So that `lambda{}.call(1)` raises `ArgumentError` as CRuby does. Also, fixed junk assignment for `lambda{|;a|p a}.call{}`.
2019-02-07Merge branch 'rename-bin-mruby-config-to-bin-config' of ↵Yukihiro "Matz" Matsumoto
https://github.com/shuujii/mruby into shuujii-rename-bin-mruby-config-to-bin-config