- 28 Jul, 2019 1 commit
-
-
Yukihiro "Matz" Matsumoto authored
Fix the lack of precision for `Time`; ref d7435506
-
- 27 Jul, 2019 8 commits
-
-
Yukihiro "Matz" Matsumoto authored
Drop dependency from `mruby-enum-chain` to `mruby-enum-ext`
-
dearblue authored
- `Time.local` and `Time.utc` are able to use with `MRB_INT16 + MRB_WITHOUT_FLOAT`. - `time_t` is converted directly from the Ruby object. - `time + sec` and` time - sec` are not affected by the precision of `mrb_float`. Similarly, calculations are possible with `MRB_INT16 + MRB_WITHOUT_FLOAT`.
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
Fix mruby-time with `MRB_WITHOUT_FLOAT`; ref d7435506
-
Yukihiro "Matz" Matsumoto authored
Also fix the misfeature introduced in 23783a44, that ignores newlines between method chains.
-
dearblue authored
-
Yukihiro "Matz" Matsumoto authored
Drop dependency from `mruby-array-ext` to `mruby-enum-ext`
-
Yukihiro "Matz" Matsumoto authored
Move `NilClass#to_h` to `mruby-object-ext` from `mruby-enum-ext`
-
- 26 Jul, 2019 1 commit
-
-
KOBAYASHI Shuji authored
-
- 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 5 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
-