summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-range-ext/mrblib
AgeCommit message (Collapse)Author
2020-10-15Merge branch 'work_for_merge' of https://github.com/zubycz/mruby into ↵Yukihiro "Matz" Matsumoto
zubycz-work_for_merge
2020-10-13Introduce endless range (a part of #5085)taiyoslime
Co-Authored-By: n4o847 <[email protected]> Co-Authored-By: smallkirby <[email protected]>
2020-10-12Integrate `Fixnum` class into `Integer` classdearblue
* The `Fixnum` constant is now an alias for the `Integer` class. * Remove `struct mrb_state::fixnum_class` member. If necessary, use `struct mrb_state::integer_class` instead.
2019-07-17Merge branch 'master' into fix-range-min-with-mruby-range-extYukihiro "Matz" Matsumoto
2019-07-17Fix `(fixnum_value ... float_value).min` with `mruby-range-ext`KOBAYASHI Shuji
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
2019-07-17Allow `mruby-range-ext` to work with `MRB_WITHOUT_FLOAT`; ref 2add8641KOBAYASHI Shuji
2019-07-09Fix Range#min fast path with exclusive rangeRyan Lopopolo
2019-07-09Add a fast path for Float and Fixnum ranges for Range#max and Range#minRyan Lopopolo
If no block is given and the Range has Fixnum or Float endpoints, do not iterate with each and instead compare the endpoints directly. This implementation passes all of the applicable specs from Ruby Spec.
2018-11-19Remove implicit conversion using `to_int` method.Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats).
2016-11-22remove unnecessary ".!"; ref #3261Yukihiro "Matz" Matsumoto
2016-11-21Reimplements Range#firstksss
Range#first shouldn't call `Range#to_a` on infinity range.