- 09 Jan, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 08 Jan, 2019 6 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix dump/load float leteral evaluate to infinity
-
Yukihiro "Matz" Matsumoto authored
Add `Time` object creation API
-
KOBAYASHI Shuji authored
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`)
-
take-cheeze authored
-
- 07 Jan, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Fix `0.0` and `-0.0` handling.
-
- 06 Jan, 2019 2 commits
-
-
KOBAYASHI Shuji authored
Fix the following issue: Good: $ bin/mruby -e 'p(-0.0)' #=> "-0" Bad: $ bin/mruby -e 'a=0.0; p(-0.0)' #=> "0"
-
Yukihiro "Matz" Matsumoto authored
Add `assert_same` and `assert_not_same`
-
- 05 Jan, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 04 Jan, 2019 8 commits
-
-
Yukihiro "Matz" Matsumoto authored
Integrate mrblib/float.rb into src/numeric.c
-
KOBAYASHI Shuji authored
- Avoid hack for `MRB_WITHOUT_FLOAT` in build scripts - Avoid runtime dispatch for `MRB_WITHOUT_FLOAT`
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Add enumerator chain feature (CRuby-2.6 compatible)
-
Yukihiro "Matz" Matsumoto authored
range: Refactor range.h/range.c
-
Yukihiro "Matz" Matsumoto authored
Add proc composition feature (CRuby-2.6 compatible)
-
Yukihiro "Matz" Matsumoto authored
pack: Remove redundant float check in pack_utf8()
-
- 03 Jan, 2019 8 commits
-
-
KOBAYASHI Shuji authored
Functions order, name, linkage and so on.
-
KOBAYASHI Shuji authored
The argument is converted to fixnum before calling.
-
dearblue authored
-
dearblue authored
-
dearblue authored
- Enumerator::Chain - Enumerable#chain - Enumerable#+
-
dearblue authored
- Proc#<< and Proc#>> - Method#<< and Method#>>
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 02 Jan, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
io: Skip TTY test for environments that TTY device is unavailable.
-
Yukihiro "Matz" Matsumoto authored
range: Embed edges in RRange on boxing environment.
-
- 01 Jan, 2019 4 commits
-
-
KOBAYASHI Shuji authored
e.g. GitLab CI
-
KOBAYASHI Shuji authored
[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
-
Yukihiro "Matz" Matsumoto authored
Use `__send__` instead of `send` in a Range test.
-
KOBAYASHI Shuji authored
This assertion is accidentaly passed because `send` was removed from mruby core so `NoMethodError` is raised and `NoMethodError` is subclass of `NameError`.
-
- 31 Dec, 2018 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
This is also a reason for #4192 as well.
-
Yukihiro "Matz" Matsumoto authored
mruby-enumerator: Refine accessors (obj/meth/args/fib).
-
Yukihiro "Matz" Matsumoto authored
Fix Yacc running multiple times.
-
- 30 Dec, 2018 2 commits
-
-
KOBAYASHI Shuji authored
- `fib=` writer is not used. - All accessors are used as public (e.g. in `initialized_copy`).
-
KOBAYASHI Shuji authored
For fix Codacy issue.
-
- 29 Dec, 2018 1 commit
-
-
KOBAYASHI Shuji authored
Example: $ MRUBY_CONFIG=<(echo 'MRuby::Build.new{toolchain(:gcc);gem(core:"mruby-bin-mruby");enable_test}') ./minirake Before: ... CC build/host/mrbgems/gem_init.c -> build/host/mrbgems/gem_init.o YACC mrbgems/mruby-compiler/core/parse.y -> build/host/mrbgems/mruby-compiler/core/y.tab.c YACC mrbgems/mruby-compiler/core/parse.y -> build/host/mrbgems/mruby-compiler/core/y.tab.c YACC mrbgems/mruby-compiler/core/parse.y -> build/host/mrbgems/mruby-compiler/core/y.tab.c YACC mrbgems/mruby-compiler/core/parse.y -> build/host/mrbgems/mruby-compiler/core/y.tab.c CC build/host/mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o CC build/host/mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o CC build/host/mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o CC build/host/mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o AR build/host/lib/libmruby_core.a ... After: ... CC build/host/mrbgems/gem_init.c -> build/host/mrbgems/gem_init.o YACC mrbgems/mruby-compiler/core/parse.y -> build/host/mrbgems/mruby-compiler/core/y.tab.c CC build/host/mrbgems/mruby-compiler/core/y.tab.c -> build/host/mrbgems/mruby-compiler/core/y.tab.o AR build/host/lib/libmruby_core.a ...
-
- 25 Dec, 2018 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
This reverts commit e20d652f. This change cannot handle hidden dependency between `mruby-print` and `mruby-sprintf`; ref #4202
-