summaryrefslogtreecommitdiffhomepage
path: root/mrblib
AgeCommit message (Collapse)Author
2018-09-19Removed `to_hash` conversion method.Yukihiro "Matz" Matsumoto
2018-09-19Remove implicit conversion using `to_str` method.Yukihiro "Matz" Matsumoto
We have added internal convenience method `__to_str` which does string type check.
2018-09-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).
2018-09-01Fix ISO/JIS section numbers.Yukihiro "Matz" Matsumoto
2018-08-25Remove unused `Hash#__update` method.Yukihiro "Matz" Matsumoto
2018-08-25Make `Array.new` to accept both integers and floats.Yukihiro "Matz" Matsumoto
This time we used `Integral` module which is mruby specific.
2018-08-25Fixed the corner case bug in `String#{gsub!,sub!}`.Yukihiro "Matz" Matsumoto
`"a".sub!("a", "a")` should not return `nil`.
2018-06-01let Hash#merge keep ifnone valueIchito Nagata
2018-04-28Update the patch to not use `funcall` in C; ref #4013Yukihiro "Matz" Matsumoto
2018-04-28Fix Enumerable#hash on non 32-bit integer conf.kimu_shu
2018-04-23sort method should not consume system stack.Tomoyuki Sahara
2018-04-17Implement `Array#__svalue` in C.Yukihiro "Matz" Matsumoto
2018-03-16`__sort_sub__` is a method defined in `Array`; fix #3970Yukihiro "Matz" Matsumoto
Reorganize `__sort_sub__` arguments.
2018-03-16Needed to pass sort block.Yukihiro "Matz" Matsumoto
2017-12-13Should not define `Float` class in `mrblib/00class.rb`; ref #3828Yukihiro "Matz" Matsumoto
Unless it is defined in `numeric.c`.
2017-12-12Modifying frozen objects will raise `FrozenError`.Yukihiro "Matz" Matsumoto
`FrozenError` is a subclass of `RuntimeError` which used to be raised. [Ruby2.5]
2017-11-04Merge branch 'master' of github.com:mruby/mrubyYAMAMOTO Masaya
2017-10-28Use alias to implement `attr` methodYukihiro "Matz" Matsumoto
2017-10-11Add MRB_WITHOUT_FLOATYAMAMOTO Masaya
2017-08-26Replaced Array#each with while loop for performance reasonsChristopher Aue
Example benchmark: $ time build/bench/bin/mruby -e "Array.new(2_000_000){ |i| i }.index{ |i| i == 1_999_999 }" Before: real 0m0.934s user 0m0.922s sys 0m0.003s After: real 0m0.590s user 0m0.583s sys 0m0.007s
2017-07-30Improved speed of enumeration methodsChristopher Aue
2017-07-28Fixed return value of Module#include and #prependChristopher Aue
2017-07-25Reimplement sort method to reduce array copying.Yukihiro "Matz" Matsumoto
2017-06-23Make `LocalJumpError` a subclass of `ScriptError`.Yukihiro "Matz" Matsumoto
It's incompatible with CRuby, but it is required for mruby because it cannot detect `break` outside of loops in the parsing time, but in the code generation time where it cannot raise `SyntaxError`.
2017-06-21use `unless` instead of `if not`.Yukihiro "Matz" Matsumoto
2017-03-22Fix result if pattern is emptyksss
2017-03-19Callback should yield with pattern every timeksss
2017-03-19Support to return Enumerator for String#gsub,gsub!ksss
2017-03-15Support to return enumerator when no block givenksss
2017-03-15Suuport custom separatorksss
2017-03-15Use duplicated object for block argsksss
2017-03-11Merge branch 'master' into string-gsubYukihiro "Matz" Matsumoto
2017-03-10\1 sequences as empty stringsksss
2017-03-10Avoid infinity loop when empty string patternksss
2017-03-10Use string#upto() if available; fix #3489Yukihiro "Matz" Matsumoto
Terminate loop if the value is longer than the last otherwise.
2017-03-05Check modifiable for String `bang' methodsksss
2017-01-20Integral#step without arg should loop forever as CRuby does.Yukihiro "Matz" Matsumoto
2016-11-23Implement Float shift methods in CYukihiro "Matz" Matsumoto
2016-11-16Fixed off-by-one error in String#[]= with RangesYukihiro "Matz" Matsumoto
2016-11-16make String#[]= to take Ranges as position argumentYukihiro "Matz" Matsumoto
2016-09-28Removed trailing spacesNobuyoshi Nakada
2016-08-20Move Module#include and #prepend to class.c; ref #3197Yukihiro "Matz" Matsumoto
To avoid VM nesting with mrb_funcall()
2016-08-19renamed class.rb and error.rb to ensure they are read first; ref #3197Yukihiro "Matz" Matsumoto
2016-02-16suppress "can't convert Float into Integer" in Enumerable#hashYusuke Endoh
2016-01-27protect NoMethodError from calling to_hash in replaceSayed Abdelhaleem
2015-12-26Refactor Array#eachJun Hiroe
2015-12-15Remove redundant conditions of Array#each in ruby extensionYusuke Tanaka
2015-11-27include changed from by quotes ("") to by brackets (<>); close #3032Yukihiro "Matz" Matsumoto
2015-10-22Merge pull request #2999 from sagmor/better-docsYukihiro "Matz" Matsumoto
More Docs
2015-10-21loop() to return StopIteration#result; [ruby-bugs#11498]Yukihiro "Matz" Matsumoto