summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2019-01-01range: Embed edges in RRange on boxing environment.KOBAYASHI Shuji
[Breaking changes] Developers must use following APIs for accessing attributes of RRange because RRange structure depends on boxing setting. - mrb_range_beg - mrb_range_end - mrb_range_excl_p
2018-12-31Should not check non-node value to `void_expr_error`; fix #4203Yukihiro "Matz" Matsumoto
This is also a reason for #4192 as well.
2018-12-30mruby-enumerator: Refine accessors (obj/meth/args/fib).KOBAYASHI Shuji
- `fib=` writer is not used. - All accessors are used as public (e.g. in `initialized_copy`).
2018-12-25Revert "Simplify full-core.gembox"Yukihiro "Matz" Matsumoto
This reverts commit e20d652f22dd4cda7286eedbf46d67b901d4969d. This change cannot handle hidden dependency between `mruby-print` and `mruby-sprintf`; ref #4202
2018-12-25Simplify full-core.gemboxKOBAYASHI Shuji
Dependencies order is auto detected.
2018-12-25mruby-bin-mruby: Add test dependency.KOBAYASHI Shuji
`Kernel#p` etc are used.
2018-12-23Suppress _MSC_VER warns for mingw32dearblue
2018-12-23Suppress TARGET_OS_IPHONE warnsdearblue
2018-12-23Suppress __FreeBSD_version warns for FreeBSDdearblue
2018-12-22Merge pull request #4194 from shuujii/mirb-drop-dependency-on-mruby-printYukihiro "Matz" Matsumoto
mirb: drop dependency on mruby-print in a test
2018-12-22Define byte order macros, if not defined it and there are alternativesdearblue
2018-12-22mirb: drop dependency on mruby-print in a testKOBAYASHI Shuji
2018-12-21Add test for Proc#parametersTatsuhiko Kubo
2018-12-21optimize Proc#parametersTatsuhiko Kubo
2018-12-21Add `NULL` pointer check before `void_expr_error()`; fix #4192Yukihiro "Matz" Matsumoto
2018-12-21Fixed a bug on platforms without `BYTE_ORDER`; ref #4190Yukihiro "Matz" Matsumoto
2018-12-21`mruby-pack` should not rely on `MRB_ENDIAN_BIG` macro; fix #4190Yukihiro "Matz" Matsumoto
The `MRB_ENDIAN_BIG` macro is originally used for `NaN` boxing. We cannot assume it is defined on every big endian platform (#4190 is the case). So instead of relying on untrusted `MRB_ENDIAN_BIG`, we use `BYTE_ORDER` macro with a fallback function to check endian in runtime.
2018-12-19Added Android Hack to `time.c`.Yukihiro "Matz" Matsumoto
Android bionic defines `TIME_UTC` but does not provide `timespec_get`.
2018-12-12Specify the core library instead of the external library.icm7216
2018-12-12Sleep module is undefined. Remove module name.icm7216
2018-12-11Merge pull request #4184 from mruby/stableYukihiro "Matz" Matsumoto
Release mruby 2.0.0
2018-12-11Fixed missing comma in mruby/mirb usage.Hiroshi Mimaki
2018-12-04Add new methods `Module#{>,>=,<=>}`; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Remove unnecessary check in `Module#<`; ref #4174Yukihiro "Matz" Matsumoto
2018-12-04Replace RDoc `<i></i>` to Markdown back quotes; ref #4174Yukihiro "Matz" Matsumoto
2018-12-02Adds Module#< and Module#<=Rob
2018-11-27Merge branch 'master' into stableHiroshi Mimaki
2018-11-25Allow destructuring in formal arguments.Yukihiro "Matz" Matsumoto
e.g. ``` def m(a,(b,c),d); p [a,b,c,d]; end m(1,[2,3],4) # => [1,2,3,4] ``` mruby limitation: Destructured arguments (`b` and `c` in above example) cannot be accessed from the default expression of optional arguments and keyword arguments, since actual assignment is done after the evaluation of those default expressions. Thus: ``` def f(a,(b,c),d=b) p [a,b,c,d] end f(1,[2,3]) ``` raises `NoMethodError` for `b` in mruby.
2018-11-25Remove redundant rules from `parse.y`.Yukihiro "Matz" Matsumoto
2018-11-25Fix wrong number of arguments in `Array#fetch`; fix #4170Yukihiro "Matz" Matsumoto
2018-11-25Protect from exceptions raised outside of `mrb_vm_run()`.Yukihiro "Matz" Matsumoto
It can happen if signals are used (e.g. from `mruby-alarm` gem).
2018-11-22Fix mruby-socket test failure on MinGW.Hiroshi Mimaki
2018-11-20Fixed a bug in `mirb` heredoc handling; fix #3989Yukihiro "Matz" Matsumoto
2018-11-20Stop special treating of `\r` in the lexer; fix #4132Yukihiro "Matz" Matsumoto
2018-11-19Need to keep rooms for empty splat; fix #4166Yukihiro "Matz" Matsumoto
2018-11-19Use type checking `mrb_to_str` instead of converting `mrb_str_to_str`.Yukihiro "Matz" Matsumoto
2018-11-19Removed `to_hash` conversion method.Yukihiro "Matz" Matsumoto
2018-11-19Removed `to_ary` conversion method.Yukihiro "Matz" Matsumoto
2018-11-19Removed `try_convert` method from Array and Hash.Yukihiro "Matz" Matsumoto
2018-11-19Removed `String#try_convert` method from `mruby-string-ext` gem.Yukihiro "Matz" Matsumoto
Because `try_convert` method rarely used in production. For mruby users, we have `__to_str` utility method to check string type.
2018-11-19Remove implicit conversion using `to_str` method; fix #3854Yukihiro "Matz" Matsumoto
We have added internal convenience method `__to_str` which does string type check. The issue #3854 was fixed but fundamental flaw of lack of stack depth check along with fibers still remains. Use `MRB_GC_FIXED_ARENA` for workaround.
2018-11-19Remove implicit conversion using `to_int` method.Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats).
2018-11-19fix non-ASCII comment.Yukihiro "Matz" Matsumoto
2018-11-19Check method existence for Enumerators; fix #3920Yukihiro "Matz" Matsumoto
The issue #3920 was fixed but the fundamental flaw of lack of stack depth check along with fibers still remains, even though it's not easy to cause the issue. Use `MRB_GC_FIXED_ARENA` to avoid the issue for workaround. After this patch, `obj.to_enum` raises `ArgumentError` if the object does not respond to the enumerating method. This is incompatible to CRuby but I think this behavior is better and CRuby should be updated to behave like this.
2018-11-15Fixed a bug in continuous read of target files; ref #4138Yukihiro "Matz" Matsumoto
Line number information in a compiled file was wrong.
2018-11-15Shrink file name table size to `uint16_t`; ref #4138Yukihiro "Matz" Matsumoto
2018-11-15Remove `filename`&`lines` from `mrb_irep` struct.Yukihiro "Matz" Matsumoto
This patch slightly reduce memory consumption (2% for my test).
2018-11-15`String#{squeeze,delete,count}` to use bitmap for matching; ref #4163Yukihiro "Matz" Matsumoto
2018-11-15Pattern length may overflow `uint16_t`; fixed #4163Yukihiro "Matz" Matsumoto
The issue is reported by `https://hackerone.com/dgaletic`.
2018-11-02Remove reserved symbols for now.Yukihiro "Matz" Matsumoto
It should be done by planned embedded symbols.