summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2019-01-26Refine error message for time intervalKOBAYASHI Shuji
Time interval value can be zero, and float (in `Kernel#sleep`)
2019-01-25Merge pull request #4240 from shuujii/refactor-sleep-testYukihiro "Matz" Matsumoto
Use `assert_raise` and `assert_nothing_raised` in `mruby-sleep` tests
2019-01-25Merge pull request #4245 from shuujii/remove-assert_nothing_raised-in-io-testYukihiro "Matz" Matsumoto
Remove definition of `assert_nothing_raised` in `IO` test
2019-01-25Merge pull request #4246 from shuujii/use-assertion-methods-in-file-testYukihiro "Matz" Matsumoto
Use assertion methods in `File` test
2019-01-25Remove unused file for `mruby-io` testKOBAYASHI Shuji
2019-01-25Use assertion methods in `File` testKOBAYASHI Shuji
2019-01-25Remove definition of `assert_nothing_raised` in `IO` testKOBAYASHI Shuji
2019-01-25Merge pull request #4243 from ↵Yukihiro "Matz" Matsumoto
shuujii/remove-definition-of-sprintf-in-mruby-print Remove definition of `Kernel#sprintf` in `mruby-print`
2019-01-24Remove redundant `NULL` check for `mrb_malloc`KOBAYASHI Shuji
2019-01-24Remove definition of `Kernel#sprintf` in `mruby-print`KOBAYASHI Shuji
2019-01-21Use `assert_raise` and `assert_nothing_raised` in `mruby-sleep` testsKOBAYASHI Shuji
2019-01-16Remove special treatments for `MRB_WITHOUT_FLOAT` in build scriptsKOBAYASHI Shuji
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`.