- 27 Jul, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Move `NilClass#to_h` to `mruby-object-ext` from `mruby-enum-ext`
-
- 25 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Refine `Array#(permutation|combination) test`
-
KOBAYASHI Shuji authored
- No guarantees about the order in which the permutations/combinations are yielded. - Drop dependency on `Enumerator`.
-
- 24 Jul, 2019 4 commits
-
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
When the size of Xorshift128 seed (`sizeof(uint32)*4`) is bigger than ISTRUCT_DATA_SIZE, `Random` uses Xorshift96 instead.
-
Yukihiro "Matz" Matsumoto authored
-
- 23 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Add encoding argument to `Integral#chr`
-
KOBAYASHI Shuji authored
Currently, `Integral#chr` in mruby changes behavior by `MRB_UTF8_STRING` setting. before this patch: $ bin/mruby -e 'p 171.chr' #=> "\xab" (`MRB_UTF8_STRING` is disabled) $ bin/mruby -e 'p 171.chr' #=> "«" (`MRB_UTF8_STRING` is enabled) This behavior is incompatible with Ruby, and a little inconvenient because it can't be interpreted as ASCII-8BIT with `MRB_UTF8_STRING`, I think. So add encoding argument according to Ruby. after this patch: $ bin/mruby -e 'p 171.chr' #=> "\xab" $ bin/mruby -e 'p 171.chr("ASCII-8BIT")' #=> "\xab" $ bin/mruby -e 'p 171.chr("UTF-8")' #=> "«" Allow only `String` for encoding because mruby doesn't have `Encoding` class, and `"ASCII-8BIT"` (`"BINARY"`) and `"UTF-8"` (only with `MRB_UTF8_STRING`) are valid value (default is `"ASCII-8BIT"`).
-
- 22 Jul, 2019 10 commits
-
-
Yukihiro "Matz" Matsumoto authored
Integrate `Integral#chr` (`Fixnum#chr`) to `mruby-string-ext`
-
Yukihiro "Matz" Matsumoto authored
Fix `Module#dup` to frozen module
-
Yukihiro "Matz" Matsumoto authored
Set `MRB_STR_ASCII` flag in `String#inspect`
-
Yukihiro "Matz" Matsumoto authored
As a side effect, `mrb_time_at()` now takes `mrb_int` instead of `double` as time arguments.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
The Complex class needs `mrb_float` so that it does not work with `MRB_WITHOUT_FLOAT` anyway.
-
KOBAYASHI Shuji authored
`String#inspect` can set `MRB_STR_ASCII` flag to receiver and return value because it checks character byte length.
-
Yukihiro "Matz" Matsumoto authored
Now `rand` can be used with `MRB_WITHOUT_FLOAT`; ref #4576
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Normal `TYPED_FIXABLE(f,mrb_float)` does not work on 64bit int from casting problems. The new approach works well, but assumes two's complement and IEEE-754 floating point numbers.
-
- 21 Jul, 2019 1 commit
-
-
KOBAYASHI Shuji authored
Because they're defined in both `mruby-string-ext` and `mruby-numeric-ext` (they seem more natural to define in N, but `mruby-string-ext` depends on `Integral#chr`).
-
- 20 Jul, 2019 1 commit
-
-
KOBAYASHI Shuji authored
Before this patch: $ bin/mruby -e 'p Module.new.freeze.dup.frozen?' #=> true After this patch (same as Ruby): $ bin/mruby -e 'p Module.new.freeze.dup.frozen?' #=> false
-
- 19 Jul, 2019 2 commits
-
-
Yukihiro "Matz" Matsumoto authored
Refine `String#chr` test and separate `Fixnum#chr` test
-
KOBAYASHI Shuji authored
-
- 18 Jul, 2019 3 commits
-
-
Yukihiro "Matz" Matsumoto authored
Use stack memory for small name of attr accessors
-
Yukihiro "Matz" Matsumoto authored
Fix `String#*` test with `MRB_WITHOUT_FLOAT`
-
KOBAYASHI Shuji authored
-
- 17 Jul, 2019 14 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix `String#[]` test
-
Yukihiro "Matz" Matsumoto authored
Fix `(fixnum_value ... float_value).min` with `mruby-range-ext`
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Revert #4300
-
Yukihiro "Matz" Matsumoto authored
Allow `mruby-range-ext` to work with `MRB_WITHOUT_FLOAT`; ref 2add8641
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
Originally, it was not necessary to change. I made mistake.
-
KOBAYASHI Shuji authored
Before this patch: $ bin/mruby -e 'p (2...4.0).min' #=> TypeError After this patch (same as CRuby and without `mruby-range-ext`): $ bin/mruby -e 'p (2...4.0).min' #=> 2
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Functions that are called infrequently need not to be inline.
-
Yukihiro "Matz" Matsumoto authored
-