summaryrefslogtreecommitdiffhomepage
path: root/mrblib
AgeCommit message (Collapse)Author
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
2015-10-20Remove obvious warnings from docsSeba Gamboa
2015-09-23remove a comment that no longer be true; 2cb6c27Yukihiro "Matz" Matsumoto
2015-09-22String#index should no longer take integer argumentYukihiro "Matz" Matsumoto
2015-09-16support String#[]= with 3 argstakahashim
2015-09-10add Hash#rehash to handle key modification; ref #2945Yukihiro "Matz" Matsumoto
2015-09-02Float << and >> should be more compatible to FixnumYukihiro "Matz" Matsumoto
2015-08-21enum.rb: refactor code (remove redundant code)go.kikuta
2015-08-21array.rb: refactor (use onliner code if possible)go.kikuta
2015-08-21string.rb: refactor code (remove redundant code)go.kikuta
2015-08-21numeric.rb: refactor code (Avoid using {...} for multi-line blocks, ↵go.kikuta
Surrounding space missing in default value assignment)
2015-08-21range.rb: refactor code (use ! instead of not, use favor modifier if and ↵go.kikuta
unless usage when having a single-line body)
2015-08-19array.rb: refactor some codego.kikuta
2015-08-17delete duplicate definition of Exception.exceptioncremno
It overwrote the original definition in src/error.c, line 446.
2015-08-03better hash value from enumerables; fix #2906Yukihiro "Matz" Matsumoto