summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2019-01-10Merge pull request #4220 from shuujii/change-order-for-assertion-argsYukihiro "Matz" Matsumoto
Change the order of "expected" and "actual" in test
2019-01-09Change the order of "expected" and "actual" in testKOBAYASHI Shuji
2019-01-09Use `$mrbtest_io_wfname` for `chmod` test.Yukihiro "Matz" Matsumoto
2019-01-08Merge pull request #4219 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-dump-load-float-literal-evaluate-to-infinity Fix dump/load float leteral evaluate to infinity
2019-01-08Fix dump/load float leteral evaluate to infinityKOBAYASHI Shuji
Example: # example.rb p(2e308) p(-2e308) Good: $ bin/mruby example.rb inf -inf Bad: $ bin/mrbc example.rb $ bin/mruby -b example.mrb 0 -0 Cause: Float infinity representation is `inf` on dump and it is converted by corresponding `String#to_f` on load. Treatment: - Introduce new representations (`i`: +infinity, `I`: -infinity) - Allow old representations (`inf`, `-inf`, `infinity`, `-infinity`) too - Raise error for unknown representations (use corresponding `Kernel#Float`)
2019-01-08Export Time creation APItake-cheeze
2019-01-06Fix 0.0 and -0.0 handling.KOBAYASHI Shuji
Fix the following issue: Good: $ bin/mruby -e 'p(-0.0)' #=> "-0" Bad: $ bin/mruby -e 'a=0.0; p(-0.0)' #=> "0"
2019-01-04Remove `mrb_` prefix from static functions in `mruby-range-ext`; #4213Yukihiro "Matz" Matsumoto
2019-01-04Merge pull request #4210 from dearblue/enum-chainYukihiro "Matz" Matsumoto
Add enumerator chain feature (CRuby-2.6 compatible)
2019-01-04Merge pull request #4211 from dearblue/proc-compositionYukihiro "Matz" Matsumoto
Add proc composition feature (CRuby-2.6 compatible)
2019-01-04Merge pull request #4212 from shuujii/pack-remove-float-checkYukihiro "Matz" Matsumoto
pack: Remove redundant float check in pack_utf8()
2019-01-03pack: Remove redundant float check in pack_utf8()KOBAYASHI Shuji
The argument is converted to fixnum before calling.
2019-01-03Add test for Enumerator::Chaindearblue
2019-01-03Add test for #<< and #>> for Proc and Method classdearblue
2019-01-03Add enumerator chain feature (CRuby-2.6 compatible)dearblue
- Enumerator::Chain - Enumerable#chain - Enumerable#+
2019-01-03Add proc composition feature (CRuby-2.6 compatible)dearblue
- Proc#<< and Proc#>> - Method#<< and Method#>>
2019-01-03Remove `Kernel#class_defined?` which is not available in CRuby; #3829Yukihiro "Matz" Matsumoto
2019-01-03`mruby-inline-struct` to support `MRB_WITHOUT_FLOAT`.Yukihiro "Matz" Matsumoto
2019-01-02Merge pull request #4208 from shuujii/io-skip-tty-testYukihiro "Matz" Matsumoto
io: Skip TTY test for environments that TTY device is unavailable.
2019-01-01io: Skip TTY test for environments that TTY device is unavailable.KOBAYASHI Shuji
e.g. GitLab CI
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