| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2020-10-15 | Merge branch 'work_for_merge' of https://github.com/zubycz/mruby into ↵ | Yukihiro "Matz" Matsumoto | |
| zubycz-work_for_merge | |||
| 2020-10-13 | Introduce endless range (a part of #5085) | taiyoslime | |
| Co-Authored-By: n4o847 <[email protected]> Co-Authored-By: smallkirby <[email protected]> | |||
| 2020-10-12 | Remove unnecessary assignment in String#upto | n4o847 | |
| Co-authored-by: taiyoslime <[email protected]> Co-authored-by: smallkirby <[email protected]> | |||
| 2019-07-23 | Add encoding argument to `Integral#chr` | KOBAYASHI Shuji | |
| 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"`). | |||
| 2019-04-27 | Remove duplicated `String#each_char` | KOBAYASHI Shuji | |
| 2019-03-15 | Use `FrozenError` instead of `RuntimeError` in `String#rstrip!` | KOBAYASHI Shuji | |
| 2018-11-19 | Removed `String#try_convert` method from `mruby-string-ext` gem. | Yukihiro "Matz" Matsumoto | |
| Because `try_convert` method rarely used in production. For mruby users, we have `__to_str` utility method to check string type. | |||
| 2018-11-19 | Remove implicit conversion using `to_str` method; fix #3854 | Yukihiro "Matz" Matsumoto | |
| We have added internal convenience method `__to_str` which does string type check. The issue #3854 was fixed but fundamental flaw of lack of stack depth check along with fibers still remains. Use `MRB_GC_FIXED_ARENA` for workaround. | |||
| 2018-04-21 | Implement `String#upto` in Ruby. | Yukihiro "Matz" Matsumoto | |
| Avoid using `mrb_yield` in C code. The function is not recommended. Because it doesn't work well with fibers. | |||
| 2018-04-19 | CRuby2.6 stops deprecating `String#lines` with a block. | Yukihiro "Matz" Matsumoto | |
| `String#lines` (with a block) is now implemented in Ruby. | |||
| 2017-12-12 | Modifying frozen objects will raise `FrozenError`. | Yukihiro "Matz" Matsumoto | |
| `FrozenError` is a subclass of `RuntimeError` which used to be raised. [Ruby2.5] | |||
| 2017-10-17 | Add `{String,Symbol}#casecmp?`; CRuby2.4 | Yukihiro "Matz" Matsumoto | |
| 2017-06-14 | Reimplement String#upto | ksss | |
| 2017-03-10 | Terminate loop if generated string longer than the last; ref #3489 | Yukihiro "Matz" Matsumoto | |
| 2017-03-05 | Check modifiable for String `bang' methods | ksss | |
| 2017-02-10 | String#ljust and String#rjust reimplemented with optimized Ruby | Tomasz Dabrowski | |
| 2017-02-10 | String#ljust and String#rjust reimplementation (fix #3445) | Tomasz Dabrowski | |
| - String#ljust and String#rjust are now C functions to improve performance - infinite loop because of an empty padding argument is now prevented (ArgumentError is raised) - extra tests for ljust/rjust added | |||
| 2017-01-04 | Rewrite String#prepend with Ruby | ksss | |
| Fix #3357 | |||
| 2016-11-17 | String#{strip,lstrip,rstrip} may cause OOB access | Yukihiro "Matz" Matsumoto | |
| 2016-09-28 | Removed trailing spaces | Nobuyoshi Nakada | |
| 2016-07-27 | Reduce needless Array generation in some String methods | Kouhei Sutou | |
| Here are some benchmarks: each_char: # /tmp/each_char.rb a = "a" * 1000000 a.each_char do |x| end Without this change: % time bin/mruby /tmp/each_char.rb bin/mruby /tmp/each_char.rb 1.07s user 0.02s system 99% cpu 1.088 total With this change: % time bin/mruby /tmp/each_char.rb bin/mruby /tmp/each_char.rb 0.52s user 0.01s system 99% cpu 0.530 total 2 times faster with this change. codepoints: # /tmp/codepoints.rb a = "a" * 1000000 a.codepoints do |x| end Without this change: % time bin/mruby /tmp/codepoints.rb bin/mruby /tmp/codepoints.rb 1.16s user 0.05s system 99% cpu 1.216 total With this change: % time bin/mruby /tmp/codepoints.rb bin/mruby /tmp/codepoints.rb 0.56s user 0.02s system 99% cpu 0.589 total | |||
| 2016-07-26 | Support to call without block to String#each_char | ksss | |
| 2016-07-14 | String#insert should be destructive | ksss | |
| 2016-01-30 | Add String#rjust to mruby-string-ext | Akira Moroo | |
| 2015-11-24 | add {Array|Hash|String}.try_convert | takahashim | |
| 2015-09-24 | UTF-8 string support in core | Yukihiro "Matz" Matsumoto | |
| define MRB_UTF8_STRING (in mrbconf.h) to enable UTF-8 support. | |||
| 2015-08-22 | Use #nil? instead of == nil. | INOUE Yasuyuki | |
| 2015-01-13 | Add String#upto | Jun Hiroe | |
| 2015-01-12 | add String#ljust into mruby-string-ext | takahashim | |
| 2014-12-13 | Add String#insert | Jun Hiroe | |
| 2014-11-23 | Fix String#slice! raise TypeError or return invalid value. | TOMITA Masahiro | |
| 2014-06-19 | Modify return value of String#slice! if idx == self.size | Akito Mochizuki | |
| 2014-06-15 | Implement String#slice_bang | Jun Hiroe | |
| 2014-06-11 | String#clear: use String#replace to simple | ksss | |
| 2014-06-03 | Merge pull request #2346 from suzukaze/add-string-comment2 | Yukihiro "Matz" Matsumoto | |
| Fix indent in String#casecmp comments | |||
| 2014-06-02 | Fix indent in String#casecmp comments | Jun Hiroe | |
| 2014-06-02 | Add comments in String#lstrip, rstrip, strip, lstring_bang, rstrip_bang and ↵ | Jun Hiroe | |
| strip_bang | |||
| 2014-04-20 | String#casecmp should be call `to_str` | ksss | |
| when non String object sent And should be raise TypeError when can not responsed to `to_str` | |||
| 2013-12-27 | add String#partition and String#rpartition. | Tomoyuki Sahara | |
| 2013-04-19 | Add String#swapcase,swapcase!,concat,casecmp,start_with,end_with | h2so5 | |
| 2013-03-08 | add "strip" family to String. | Tomoyuki Sahara | |
